Add a simple rawmemchr implementation. Use strlen for rawmemchr(s, '\0') as it
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2
3         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
4         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
5
6 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
7
8         * sysdeps/aarch64/memcpy.S (memcpy):
9         Rewrite of optimized memcpy and memmove.
10         * sysdeps/aarch64/memmove.S (memmove): Remove
11         memmove code (merged into memcpy.S).
12
13 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14
15         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
16         * sysdeps/generic/dl-dtv.h: New file.
17         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
18         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
19         (dtv_t): Remove.
20         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
21         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
22         (dtv_t): Remove.
23         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
24         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
25         (dtv_t): Remove.
26         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
27         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
28         (dtv_t): Remove.
29         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
30         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
31         (dtv_t): Remove.
32         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
33         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
34         (dtv_t): Remove.
35         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
36         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
37         (dtv_t): Remove.
38         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
39         (dtv_t): Remove.
40         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
41         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
42         (dtv_t): Remove.
43         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
44         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
45         (dtv_t): Remove.
46         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
47         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
48         (dtv_t): Remove.
49         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
50         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
51         (dtv_t): Remove.
52         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
53         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
54         (dtv_t): Remove.
55         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
56         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
57         (dtv_t): Remove.
58         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
59         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
60         (dtv_t): Remove.
61         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
62         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
63         (dtv_t): Remove.
64
65 2016-06-20  Florian Weimer  <fweimer@redhat.com>
66
67         Revert symbol poisoning of  __malloc_initialize_hook.
68         * include/stdc-predef.h (__malloc_initialize_hook): Remove
69         poisoning.
70         * malloc/Makefile: Remove un-poisoning.
71         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
72         instead of old__malloc_initialize_hook.
73         * malloc/malloc-hooks.h: Likewise.
74         * malloc/malloc.c: Likewise.
75         * malloc/mcheck-init.c: Likewise.
76
77 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
78
79         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
80
81 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
82
83         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
84         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
85         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
86         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
87
88 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
89
90         * NEWS: Mention addition of nextup and nextdown.
91         * manual/arith.texi: Document nextup and nextdown.
92         * manual/libm-err-tab.pl: Add nextup and nextdown.
93         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
94         * math/Versions (libm): Add GLIBC_2.24.
95         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
96         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
97         Add new test.
98         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
99         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
100         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
101         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
102         (nextup_test_data): Likewise.
103         (nextdown_test_data): Likewise.
104         * math/s_nextdown.c: New file.
105         * math/s_nextdownf.c: Likewise.
106         * math/s_nextdownl.c: Likewise.
107         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
108         F(nextup): New function.
109         F(nextdown): Likewise.
110         * math/tgmath.h: Add nextup and nextdown.
111         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
112         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
113         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
114         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
115         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
116         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
117         Add nextup and nextdown.
118         (CFLAGS-nldbl-nextup.c): New variable.
119         (CFLAGS-nldbl-nextdown.c): Likewise.
120         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
121         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
122         * sysdeps/nacl/libm.abilist: Update.
123         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
124         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
125         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
126         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
127         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
128         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
129         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
130         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
131         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
132         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
133         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
134         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
137         Likewise.
138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
140         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
141         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
142         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
143         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
144         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
146         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
147         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
148         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
149         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
150         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
151
152 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
153
154         * manual/pattern.texi: Fix typos & grammar errors.
155
156 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
157
158         * manual/search.texi: Fix typos & grammar errors.
159
160 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
161
162         * manual/message.texi: Fix typos & grammar errors.
163
164 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
165
166         * manual/contrib.texi: Fix spelling typos.
167         * manual/crypt.texi: Likewise.
168         * manual/filesys.texi: Likewise.
169         * manual/locale.texi: Likewise.
170         * manual/message.texi: Likewise.
171         * manual/nss.texi: Likewise.
172         * manual/string.texi: Likewise.
173
174 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
175
176         * manual/locale.texi: Fix typos & grammar errors.
177
178 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
179
180         * manual/charset.texi: Fix typos & grammar errors.
181
182 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
183
184         * manual/string.texi: Fix typos.
185
186 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
187
188         * manual/ctype.texi: Fix typos.
189
190 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
191
192         * manual/memory.texi: Fix various typos & grammar errors.
193
194 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
195
196         [BZ #20255]
197         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
198         * math/libm-test.inc (fdim_test_data): Add another test.
199
200         [BZ #6796]
201         [BZ #20255]
202         [BZ #20256]
203         * math/s_fdim.c: Include <math_private.h>.
204         (__fdim): Use math_narrow_eval on result.
205         * math/s_fdimf.c: Include <math_private.h>.
206         (__fdimf): Use math_narrow_eval on result.
207         * sysdeps/i386/fpu/s_fdim.S: Remove file.
208         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
209         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
210         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
211         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
212         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
213         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
214         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
215         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
216         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
217         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
218         * math/libm-test.inc (fdim_test_data): Expect errno setting on
219         overflow.  Add sNaN tests.
220
221         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
222         fpclassify.
223         * math/s_fdimf.c (__fdimf): Likewise.
224         * math/s_fdiml.c (__fdiml): Likewise.
225
226 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
227
228         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
229         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
230         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
231         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
232         ifunc'ed strcasecmp/strncasecmp.
233         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
234         [EALIGN]: Removed.
235         [END]: Likewise.
236         [__strcasecmp]: Define instead of the above to control symbol name.
237         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
238         for __strcasecmp_power8.
239         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
240         for __strncasecmp_power8.
241         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
242         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
243         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
244         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
245         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
246         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
247
248 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
249
250         [BZ #20252]
251         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
252         arguments when second argument is a NaN.
253         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
254         qNaN tests.
255
256         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
257         (conj_test_data): Likewise.
258         (copysign_test_data): Likewise.
259         (creal_test_data): Likewise.
260         (fma_test_data): Likewise.
261         (fmod_test_data): Likewise.
262
263         [BZ #20250]
264         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
265         itself.
266         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
267         zero input to itself.
268         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
269         Likewise.
270         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
271         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
272         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
273         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
274         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
275
276 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
277
278         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
279         * nptl/tst-cancel4-common.c: New file.
280         * nptl/tst-cancel4-common.h: Likewise.
281         * nptl/tst-cancel4.c: Move common definitions to
282         tst-cancel4-common.{c,h} file.
283         * nptl/tst-cancel4_1.c: New test.
284         * nptl/tst-cancel4_2.c: New test.
285
286 2016-06-13  Florian Weimer  <fweimer@redhat.com>
287
288         [BZ #20248]
289         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
290         (write_message): New function.
291         (stackoverflow_handler): Call it instead of printf, to avoid
292         excessive stack usage by printf.
293         (do_test): Restore SIGSEGV, SIGBUS default handlers.
294
295 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
296
297         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
298         (prio_inherit_missing): Remove define.
299         * sysdeps/unix/sysv/linux/arm/kernel-features.h
300         (__ASSUME_FUTEX_LOCK_PI): Likewise.
301         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
302         Likewise.
303         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
304         (__ASSUME_FUTEX_LOCK_PI): Likewise.
305         * sysdeps/unix/sysv/linux/mips/kernel-features.h
306         (__ASSUME_FUTEX_LOCK_PI): Likewise.
307         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
308         (__ASSUME_FUTEX_LOCK_PI): Likewise.
309
310 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
311
312         [BZ #19670]
313         [BZ #19672]
314
315         * io/test-lfs.c (do_prepare): Use xmalloc.
316         * io/tst-fcntl.c (do_prepare): Likewise.
317         * libio/tst-fopenloc.c (do_bz17916): Likewise.
318         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
319         * login/tst-utmp.c (do_prepare): Likewise.
320         * posix/tst-exec.c (do_prepare): Likewise.
321         * posix/tst-pathconf.c (prepare): Likewise.
322         * posix/tst-spawn.c (do_prepare): Likewise.
323         * posix/tst-truncate.c (do_prepare): Likewise.
324         * rt/tst-aio.c (do_prepare): Likewise.
325         * rt/tst-aio64.c (do_prepare): Likewise.
326
327 2016-06-11  Florian Weimer  <fweimer@redhat.com>
328
329         [BZ #20237]
330         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
331         (get*ent): Set entidx to NULL during initialization.  If entidx is
332         NULL, start iteration from the beginning.
333
334 2016-06-11  Florian Weimer  <fweimer@redhat.com>
335
336         * malloc/malloc.c (musable): Return correct size for dumped fake
337         mmapped chunk.
338
339 2016-06-11  Florian Weimer  <fweimer@redhat.com>
340
341         [BZ #20222]
342         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
343         (_IO_cookie_write): Likewise.
344         (_IO_cookie_seek): Likewise.
345         (_IO_cookie_close): Likewise.
346         (_IO_old_cookie_seek): Likewise.
347         (set_callbacks): New function.
348         (_IO_cookie_init): Call set_callbacks to copy callbacks.
349
350 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
351
352         * locale/programs/localedef.c (oldstyle_tables): Remove.
353         * locale/programs/localedef.h (oldstyle_tables): Likewise.
354
355 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
356
357         [BZ #20240]
358         * math/Makefile (CFLAGS-s_modf.c): New variable.
359         (CFLAGS-s_modff.c): Likewise.
360         (CFLAGS-s_modfl.c): Likewise.
361         * math/libm-test.inc (modf_test_data): Add sNaN tests.
362
363 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
364
365         [BZ #20215]
366         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
367         [!__GNUC_PREREQ (3,2)]: Likewise.
368
369 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
370
371         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
372         (msghdr.msg_controllen): Likewise.
373         (cmsghdr.cmsg_len): Likewise.
374         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
375         ptw-oldsendmsg.
376         (CFLAGS-oldrecvmsg.c): Remove rule.
377         (CFLAGS-oldsendmsg.c): Likewise.
378         (CFLAGS-recvmsg.c): Add rule.
379         (CFLAGS-sendmsg.c): Likewise.
380         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
381         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
382         (CFLAGS-recvmsg.c): Remove rule.
383         (CFLAGS-sendmsg.c): Likewise.
384         (CFLAGS-oldrecvmsg.c): Likewise.
385         (CFLAGS-oldsendmsg.c): Likewise.
386         (CFLAGS-recvmmsg.c): Likewise.
387         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
388         to kernel defined interfaces.
389         (msghdr.msg_controllen): Likewise.
390         (cmsghdr.cmsg_len): Likewise.
391         (msghdr.__glibc_reserved1): Remove member.
392         (msghdr.__glibc_reserved2): Likewise.
393         (cmsghdr.__glibc_reserved1): Likewise.
394         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
395         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
396         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
397         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
398         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
399         version.
400         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
401         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
402         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
403         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
404         Remove recvmsg and sendmsg.
405         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
406         Likewise.
407         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
408         Likewise.
409         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
410         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
411         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
412         Likewise.
413         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
414         Likewise.
415         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
416         [libc] (GLIBC_2.24): Likewise.
417         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
418         Likewise.
419         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
420         Likewise.
421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
422         [libc] (GLIBC_2.24): Likewise.
423         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
424         Likewise.
425         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
426         Likewise.
427         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
428         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
429         Likewise.
430         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
431         Likewise.
432         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
433         Likewise.
434         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
435         Likewise.
436         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
437         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
438         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
439         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
440         version for {recv,send,recm,sendm}msg.
441         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
442         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
443         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
444         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
445         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
446         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
447         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
448         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
449         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
450         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
451         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
452         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
454         Likewise.
455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
456         Likewise.
457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
459         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
460         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
461         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
462         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
463         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
464         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
466         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
467         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
468         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
469         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
470
471 2016-06-10  Florian Weimer  <fweimer@redhat.com>
472
473         [BZ #19564]
474         Remove __malloc_initialize_hook from the API.
475         * malloc/malloc.h (__malloc_initialize_hook): Remove.
476         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
477         #pragma GCC poison.
478         * malloc/malloc-hooks.h: New file.
479         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
480         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
481         (old__malloc_initialize_hook): Rename from
482         __malloc_initialize_hook to evade poisoning.  Turn into compat
483         symbol.
484         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
485         __malloc_initialize_hook.
486         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
487         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
488         * manual/memory.texi (Hooks for Malloc): Remove
489         __malloc_initialize_hook.  Adjust hook example.
490
491 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
492
493         [BZ #20235]
494         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
495         itself.
496         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
497         * math/libm-test.inc (log2_test_data): Add sNaN tests.
498
499         [BZ #20234]
500         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
501         infinity or NaN input to itself.
502
503         [BZ #20233]
504         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
505         to itself.
506
507         [BZ #20232]
508         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
509         itself.
510
511 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
512
513         * sysdeps/x86_64/start.S (_start): Always indirect branch to
514         __libc_start_main via GOT.
515
516 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
517
518         * sysdeps/x86_64/memcopy.h: New file.
519         * sysdeps/x86_64/wordcopy.c: Likewise.
520
521 2016-06-09  Florian Weimer  <fweimer@redhat.com>
522
523         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
524         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
525         <cstdlib>.
526         (optimization_barrier): New.
527         (do_test): Use it.  Call quick_exit in the global namespace.
528         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
529         instead of <cstdlib>, <thread>.
530         (optimization_barrier): New.
531         (non_main_thread): Adjust declaration.  Call optimization_barrier.
532         Call quick_exit in the global namespace.
533         (do_test): Call optimization_barrier.  Use pthread_create,
534         pthread_join instead of std::thread.
535
536 2016-06-09  Andreas Schwab  <schwab@suse.de>
537
538         [BZ #19755]
539         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
540         new entries in auto-propagate mode.
541         * nscd/grpcache.c (cache_addgr): Likewise.
542
543 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
544
545         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
546         New functions.
547         (add_temp_file): Use them.
548
549 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
550
551         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
552
553 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
554
555         [BZ #20229]
556         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
557         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
558         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
559
560         [BZ #20228]
561         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
562         itself.
563         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
564         * math/libm-test.inc (log10_test_data): Add sNaN tests.
565
566         [BZ #20227]
567         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
568         itself.
569         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
570         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
571         * math/libm-test.inc (log_test_data): Add sNaN tests.
572
573         [BZ #20226]
574         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
575         itself.
576         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
577         * math/libm-test.inc (exp_test_data): Add sNaN tests.
578         (exp10_test_data): Likewise.
579         (expm1_test_data): Likewise.
580
581         [BZ #20225]
582         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
583         itself.
584         * math/s_ldexpf.c (__ldexpf): Likewise.
585         * math/s_ldexpl.c (__ldexpl): Likewise.
586         * math/w_scalbln.c (__w_scalbln): Likewise.
587         * math/w_scalblnf.c (__w_scalblnf): Likewise.
588         * math/w_scalblnl.c (__w_scalblnl): Likewise.
589         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
590         (scalbln_test_data): Likewise.
591
592         [BZ #20224]
593         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
594         argument to itself.
595         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
596
597 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
598
599         [BZ #19776]
600         * sysdeps/x86_64/memcpy.S: Make it dummy.
601         * sysdeps/x86_64/mempcpy.S: Likewise.
602         * sysdeps/x86_64/memmove.S: New file.
603         * sysdeps/x86_64/memmove_chk.S: Likewise.
604         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
605         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
606         * sysdeps/x86_64/memmove.c: Removed.
607         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
608         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
609         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
610         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
611         Likewise.
612         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
613         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
614         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
615         memcpy-sse2-unaligned, memmove-avx-unaligned,
616         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
617         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
618         (__libc_ifunc_impl_list): Replace
619         __memmove_chk_avx512_unaligned_2 with
620         __memmove_chk_avx512_unaligned.  Remove
621         __memmove_chk_avx_unaligned_2.  Replace
622         __memmove_chk_sse2_unaligned_2 with
623         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
624         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
625         with __memmove_avx512_unaligned.  Replace
626         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
627         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
628         with __memcpy_chk_avx512_unaligned.  Remove
629         __memcpy_chk_avx_unaligned_2.  Replace
630         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
631         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
632         Replace __memcpy_avx512_unaligned_2 with
633         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
634         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
635         with __mempcpy_chk_avx512_unaligned.  Remove
636         __mempcpy_chk_avx_unaligned_2.  Replace
637         __mempcpy_chk_sse2_unaligned_2 with
638         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
639         Replace __mempcpy_avx512_unaligned_2 with
640         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
641         Replace __mempcpy_sse2_unaligned_2 with
642         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
643         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
644         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
645         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
646         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
647         (ENTRY): Removed.
648         (END): Likewise.
649         (ENTRY_CHK): Likewise.
650         (libc_hidden_builtin_def): Likewise.
651         Don't include ../memcpy.S.
652         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
653         __memcpy_chk_avx512_unaligned_erms and
654         __memcpy_chk_avx512_unaligned.  Use
655         __memcpy_chk_avx_unaligned_erms and
656         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
657         Default to __memcpy_chk_sse2_unaligned.
658         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
659         Change function suffix from unaligned_2 to unaligned.
660         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
661         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
662         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
663         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
664         (ENTRY): Removed.
665         (END): Likewise.
666         (ENTRY_CHK): Likewise.
667         (libc_hidden_builtin_def): Likewise.
668         Don't include ../mempcpy.S.
669         (mempcpy): New.  Add a weak alias.
670         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
671         __mempcpy_chk_avx512_unaligned_erms and
672         __mempcpy_chk_avx512_unaligned.  Use
673         __mempcpy_chk_avx_unaligned_erms and
674         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
675         Default to __mempcpy_chk_sse2_unaligned.
676
677 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
678
679         [BZ #19881]
680         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
681         into ...
682         * sysdeps/x86_64/memset.S: This.
683         (__bzero): Removed.
684         (__memset_tail): Likewise.
685         (__memset_chk): Likewise.
686         (memset): Likewise.
687         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
688         defined.
689         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
690         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
691         (__memset_zero_constant_len_parameter): Check SHARED instead of
692         PIC.
693         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
694         memset-avx2 and memset-sse2-unaligned-erms.
695         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
696         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
697         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
698         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
699         (__bzero): Enabled.
700         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
701         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
702         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
703         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
704         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
705         (memset): Removed.
706         (__memset_chk): Likewise.
707         (MEMSET_SYMBOL): New.
708         (libc_hidden_builtin_def): Replace __memset_sse2 with
709         __memset_sse2_unaligned.
710         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
711         __memset_chk_sse2 and __memset_chk_avx2 with
712         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
713         Use __memset_chk_sse2_unaligned_erms or
714         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
715         __memset_chk_avx512_unaligned_erms and
716         __memset_chk_avx512_unaligned.
717
718 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
719
720         * math/gen-auto-libm-test.c (fp_format_desc): remove
721         suffix member.
722         (output_generic_value): Remove usage of suffix member,
723         and the resulting unuse of the fp_format argument.
724         (output_for_one_input_case): Remove unused fp_format
725         parameter.
726
727         * math/auto-libm-test-out: Regenerate.
728
729         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
730         usage with TEST_COND_ibm128.
731         (TEST_COND_flt_32): Remove.
732         (TEST_COND_dbl_64): Remove.
733         (TEST_COND_ldbl_96_intel): Remove.
734         (TEST_COND_ldbl_96_m68k): Remove.
735         (TEST_COND_ldbl_128): Remove.
736
737 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
738
739         * auto-libm-test-in:
740         Replace flt-32 usage with binary32.
741         Replace dbl-64 usage with binary64.
742         Replace ldbl-intel-96 usage with intel96.
743         Replace ldbl-m68k-96 usage with m68k96.
744         Replace ldbl-128ibm usage with ibm128.
745         Replace ldbl-128 usage with binary128.
746
747         * auto-libm-test-out: Regenerate.
748
749 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
750
751         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
752         (parse_ulps): Dynamically generate type name matching
753         string from all_floats.
754         (get_ulps): Generate the ulps as an array instead.
755         (output_ulps): Dynamically compose the type based
756         on the number of supported formats, and print
757         the indices as type specific helper macros.
758
759         * math/libm-test.inc: Remove comment about CHOOSE.
760         (ulp_data): Generate the type in libm-test-ulps.h.
761         (ULP_IDX): New macro.
762         (find_ulps): Update usage of max_ulp.
763
764         * math/test-double-vlen2.h (CHOOSE): Remove.
765         * math/test-double-vlen4.h (CHOOSE): Likewise.
766         * math/test-double-vlen8.h (CHOOSE): Likewise.
767         * math/test-float.c (CHOOSE): Likewise.
768         * math/test-float-finite.c (CHOOSE): Likewise.
769         * math/test-double.c (CHOOSE): Likewise.
770         * math/test-double-finite.c (CHOOSE): Likewise.
771         * math/test-idouble.c (CHOOSE): Likewise.
772         * math/test-ifloat.c (CHOOSE): Likewise.
773         * math/test-ildoubl.c (CHOOSE): Likewise.
774         * math/test-ldouble-finite.c (CHOOSE): Likewise.
775         * math/test-ldouble.c (CHOOSE): Likewise.
776
777         * math/test-float.h (TEST_FLOAT): Remove.
778         * math/test-double.h (TEST_DOUBLE): Likewise.
779         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
780
781 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
782
783         * math/gen-libm-test.pl: (apply_lit): New subroutine.
784         (parse_args): Strip C suffix from floating point literals
785         typed with 'f' and wrap them with LIT().
786
787         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
788         (test_ff_f_data_nexttoward): Rename to
789         (test_fj_f_data): New struct.
790         (nexttoward_test_data): Relabel tests as
791         TEST_fj_f instead of TEST_ff_f.
792
793 2016-06-08  Florian Weimer  <fweimer@redhat.com>
794
795         Emacs bug 23726.
796         * malloc/malloc.c (dumped_main_arena_start): Update comment.
797         (__libc_realloc): Correct size computation for dumped fake mmapped
798         chunks.
799
800 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
801
802         [BZ #20219]
803         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
804         to itself.
805         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
806
807         [BZ #20218]
808         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
809         to itself.
810         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
811
812 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
813
814         [BZ #20195]
815         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
816         check to ...
817         (init_cpu_features): Here.
818
819 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
820
821         [BZ #20214]
822         * sysdeps/unix/sysv/linux/bits/in.h
823         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
824          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
825         Define to 1.
826         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
827          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
828         Define to 0.
829         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
830         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
831
832 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
833
834         [BZ #20198]
835         * stdlib/Makefile (tests): Add tst-quick_exit, and
836         tst-thread-quick_exit.
837         [ifeq ($(have-cxx-thread_local),yes)]
838         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
839         (CFLAGS-tst-thread-quick_exit.o): Likewise.
840         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
841         (LDLIBS-tst-thread-quick_exit): Likewise.
842         [ifneq ($(have-cxx-thread_local),yes)]
843         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
844         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
845         If run_dtors is true call __call_tls_dtors.
846         (exit): Call __run_exit_handlers with run_dtors set to true.
847         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
848         definition.
849         * stdlib/quick_exit.c (quick_exit): Remove function.
850         (__new_quick_exit): New function.
851         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
852         function.
853         * stdlib/tst-quick_exit.cc: New file.
854         * stdlib/tst-thread-quick_exit.cc: New file.
855         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
856         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
857         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
858         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
859         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
860         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
861         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
862         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
863         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
864         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
865         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
866         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
867         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
868         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
869         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
870         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
875         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
876         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
877         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
878         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
879         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
880         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
881         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
882         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
883         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
884         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
885
886 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
887
888         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
889         a typo in comments.
890
891 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
892
893         [BZ #20213]
894         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
895         argument to itself.
896         * math/libm-test.inc (asin_test_data): Add sNaN tests.
897
898 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
899
900         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
901         required flags.
902         (CFLAGS-pwritev64.c): Likewise.
903         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
904         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
905         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
906         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
907         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
908         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
909         syscall from auto-generation.
910         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
911         [WORDSIZE == 64] (pwritev64): Remove macro.
912         [!PWRITEV] (PWRITEV): Likewise.
913         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
914         [!PWRITEV] (PWRITE): Likewise.
915         [!PWRITEV] (OFF_T): Likewise.
916         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
917         (LO_HI_LONG): Remove macro.
918         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
919         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
920         (PWRITEV): Remove macro.
921         (PWRITEV_REPLACEMENTE): Likewise.
922         (PWRITE): Likewise.
923         (OFF_T): Likewise.
924         (pwritev64): New function.
925         * nptl/tst-cancel4.c (tf_writev): Add test.
926
927         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
928         required flags.
929         (CFLAGS-preadv64.c): Likewise.
930         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
931         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
932         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
933         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
934         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
935         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
936         syscall from auto-generation.
937         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
938         [WORDSIZE == 64] (preadv64): Remove macro.
939         [!PREADV] (PREADV): Likewise.
940         [!PREADV] (PREADV_REPLACEMENT): Likewise.
941         [!PREADV] (PREAD): Likewise.
942         [!PREADV] (OFF_T): Likewise.
943         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
944         (LO_HI_LONG): Remove macro.
945         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
946         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
947         (PREADV): Remove macro.
948         (PREADV_REPLACEMENTE): Likewise.
949         (PREAD): Likewise.
950         (OFF_T): Likewise.
951         (preadv64): New function.
952         * nptl/tst-cancel4.c (tf_preadv): Add test.
953
954 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
955
956         [BZ #20212]
957         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
958         argument to itself.
959         * math/libm-test.inc (acos_test_data): Add sNaN tests.
960
961 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
962
963         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
964         New symbol defined as libc_hidden_def.
965         (strcasestr): Became a weak alias to __strcasestr.
966         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
967         according to multi-arch support.  Move __stpncpy hidden
968         definition from here to...
969         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
970         symbol stpncpy.
971         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
972         libc_hidden_builtin_def.
973         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
974         memset symbol to use when multi-arch support is available.
975
976 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
977
978         * dlfcn/tst-rec-dlopen.c: Include string.h.
979
980 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
981
982         * manual/install.texi: Remove mention of --without-tls
983         * INSTALL: Regenerate.
984
985 2016-06-05  Florian Weimer  <fweimer@redhat.com>
986
987         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
988         Remove.
989         (call_function, interposed_malloc_called): New variables.
990         (malloc): New function.
991         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
992         and clear call_function as needed.
993
994 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
995
996         * include/wchar.h (__wmemset): Use __typeof.
997
998 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
999
1000         * include/wchar.h (__wmemset): Declare function without typeof.
1001
1002 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1003
1004         [BZ #20205]
1005         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1006         exponent when incrementing negative subnormal with low mantissa
1007         word zero.
1008         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1009         Add another test.
1010
1011 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1012
1013         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1014         __wmemset instead of wmemset.
1015
1016 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1017
1018         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1019         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1020         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1021         __USE_KERNEL_IPV6_DEFS to 0.
1022         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1023         Update comment.
1024
1025 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1026
1027         [BZ #19861]
1028         Do not use IFUNC resolver with potentially unrelocated symbol.
1029         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1030         (DEFINE_FORK): Remove macro and inline definition.
1031         (fork_alias): Renamed from fork_ifunc.
1032         (__fork_alias): Renamed from __fork_ifunc.
1033
1034 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1035
1036         [BZ 19653]
1037         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1038         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1039
1040 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1041
1042         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1043         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1044         i386-linux-gnu).
1045         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1046         Set to no.
1047         * sysdeps/mach/hurd/configure: Refresh.
1048
1049 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1050
1051         [BZ #20178]
1052         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1053         on failure instead of exit.
1054
1055 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1056
1057         [BZ #3629]
1058         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1059         of POSIX.1-2008.
1060
1061 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1062
1063         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1064           Use PLT entry for calling _hurd_self_sigstate.
1065
1066 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1067
1068         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1069         available logical processors with SMT level type sharing L2
1070         cache for Intel processors.
1071
1072 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1073
1074         [BZ #20160]
1075         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1076         argument to itself before returning the result.
1077         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1078         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1079         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1080         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1081         Likewise.
1082         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1083         Likewise.
1084         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1085         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1086         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1087         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1088         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1089         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1090
1091         [BZ #20160]
1092         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1093         argument to itself before returning the result.
1094         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1095         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1096         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1097         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1098         Likewise.
1099         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1100         Likewise.
1101         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1102         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1103         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1104         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1105         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1106         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1107
1108 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1109
1110         * libm-test.inc: Replace usage of M_El with
1111         (lit_e): New macro.
1112
1113 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1114
1115         * libm-test.inc: Replace usage of M_PI_4l with
1116         (lit_pi_4_d): New macro.
1117
1118 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1119
1120         * libm-test.inc: Replace usage of M_PIl with
1121         (lit_pi): New macro.
1122
1123 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1124
1125         * libm-test.inc: Replace usage of M_PI2l with
1126         (lit_pi_2_d): New macro.
1127
1128         * math/test-double.h (LITM): New macro.
1129         * math/test-float.h (LITM): Likewise.
1130         * math/test-ldouble.h (LITM): Likewise.
1131
1132 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1133
1134         * libm-test.inc (M_PI_34l): Rename to
1135         (lit_pi_3_m_4_d): New Macro.
1136         (M_PI_34_LOG10El): Rename to
1137         (lit_pi_3_m_4_ln10_m_d): New Macro.
1138         (M_PI2_LOG10El): Rename to
1139         (lit_pi_2_ln10_m_d):  New Macro.
1140         (M_PI4_LOG10El): Rename to
1141         (lit_pi_4_ln10_m_d):  New Macro.
1142         (M_PI_LOG10El): Rename to
1143         (lit_pi_ln10_d):  New Macro.
1144
1145 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1146
1147         [BZ #20157]
1148         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1149         determine whether to negate low half if [_ARCH_PPCGR], and integer
1150         comparison otherwise.
1151         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1152         determine whether to negate low half.
1153
1154         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1155         (NO_TEST_INLINE_DOUBLE): Likewise.
1156         (TEST_COND_x86_64): Likewise.
1157         (TEST_COND_x86): Likewise.
1158         (M_PI_6l): Likewise.
1159
1160 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1161
1162         * math/libm-test.inc:
1163         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1164         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1165         (TEST_LDOUBLE): Update usage to evaluate as true if
1166         the guarded tests match the property being tested.
1167         (LDBL_MAX_EXP): Change to MAX_EXP.
1168         (LDBL_MIN_EXP): Change to MIN_EXP.
1169         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1170         nexttoward tests.
1171
1172 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1173
1174         * math/libm-test.inc:
1175         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1176         (TYPE_MIN): Likewise.
1177         (TYPE_TRUE_MIN): Likewise.
1178         (TYPE_MAX): Likewise.
1179         (MIN_EXP): Likewise.
1180         (MAX_EXP): Likewise.
1181         (MANT_DIG): Likewise.
1182
1183         (FSTR_MAX): New macro.
1184         (__CONCATX): Likewise.
1185         (QTYPE_STR): Likewise.
1186         (TEST_COND_binary32): Likewise.
1187         (TEST_COND_binary64): Likewise.
1188         (TEST_COND_binary128): Likewise.
1189         (TEST_COND_ibm128): Likewise.
1190         (TEST_COND_intel96): Likewise.
1191         (TEST_COND_m68k96): Likewise.
1192
1193         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1194         (TEST_COND_dbl_64): Likewise.
1195         (TEST_COND_ldbl_96_intel): Likewise.
1196         (TEST_COND_ldbl_96_m68k): Likewise.
1197         (TEST_COND_ldbl_128): Likewise.
1198         (TEST_COND_ldbl_128ibm): Likewise.
1199
1200         (plus_zero): Redefine using LIT macro.
1201         (minus_zero): Likewise.
1202         (plus_infty): Redefine as (INF).
1203         (minux_infty): Redefine as (-INF).
1204         (max_value): Redefine as TYPE_MAX.
1205         (min_value): Redefine as TYPE_MIN.
1206         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1207
1208         (print_float): Refactor to use snprintf to convert FLOAT values
1209         to string. This brings it closer to dropin replacement of strtof
1210         for the TS 18661 defined types.
1211         (update_stats): Likewise.
1212         (print_complex_function_ulps): Likewise.
1213         (print_max_error): Likewise.
1214         (print_complex_max_error): Likewise.
1215         (check_float_internal): Likewise.
1216
1217         * math/test-float.h (PREFIX): New macro.
1218         (LIT): Likewise.
1219         (TYPE_STR): Likewise.
1220         (FTOSTR): Likewise.
1221
1222         * math/test-double.h (PREFIX): New macro.
1223         (LIT): Likewise.
1224         (TYPE_STR): Likewise.
1225         (FTOSTR): Likewise.
1226
1227         * math/test-ldouble.h (PREFIX): New macro.
1228         (LIT): Likewise.
1229         (TYPE_STR): Likewise.
1230         (FTOSTR): Likewise.
1231
1232 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1233
1234         [BZ #20156]
1235         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1236         to itself when zero or not finite.
1237         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1238         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1239         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1240         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1241
1242 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1243
1244         [BZ #20153]
1245         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1246         x * x + x for infinities and NaNs.
1247
1248         [BZ #20151]
1249         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1250         argument to itself before returning result.
1251         (__ieee754_y0l): Likewise.
1252         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1253         (__ieee754_y1l).
1254
1255         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1256         (atan_test_data): Likewise.
1257         (ceil_test_data): Likewise.
1258         (cos_test_data): Likewise.
1259         (cosh_test_data): Likewise.
1260         (erf_test_data): Likewise.
1261         (exp2_test_data): Likewise.
1262         (fabs_test_data): Likewise.
1263         (floor_test_data): Likewise.
1264         (ilogb_test_data): Likewise.
1265         (j0_test_data): Likewise.
1266         (j1_test_data): Likewise.
1267         (jn_test_data): Likewise.
1268         (lgamma_test_data): Likewise.
1269         (lrint_test_data): Likewise.
1270         (llrint_test_data): Likewise.
1271         (logb_test_data): Likewise.
1272         (lround_test_data): Likewise.
1273         (llround_test_data): Likewise.
1274         (nearbyint_test_data): Likewise.
1275         (rint_test_data): Likewise.
1276         (round_test_data): Likewise.
1277         (sin_test_data): Likewise.
1278         (sincos_test_data): Likewise.
1279         (sinh_test_data): Likewise.
1280         (sqrt_test_data): Likewise.
1281         (tan_test_data): Likewise.
1282         (tanh_test_data): Likewise.
1283         (tgamma_test_data): Likewise.
1284         (trunc_test_data): Likewise.
1285         (y0_test_data): Likewise.
1286         (y1_test_data): Likewise.
1287         (yn_test_data): Likewise.
1288
1289         * math/libm-test.inc: Update comment about NaN testing.
1290         (TEST_SNAN): New macro.
1291         (snan_value): Likewise.
1292         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1293         (fpclassify_test_data): Add sNaN tests.
1294         (isfinite_test_data): Likewise.
1295         (isinf_test_data): Likewise.
1296         (isnan_test_data): Likewise.
1297         (isnormal_test_data): Likewise.
1298         (issignaling_test_data): Likewise.
1299         (signbit_test_data): Likewise.
1300         * math/gen-libm-test.pl (%beautify): Add snan_value.
1301         (show_exceptions): Add argument $test_snan.
1302         (parse_args): Handle snan_value as non-finite.  Update call to
1303         show_exceptions.
1304         * math/Makefile (libm-test-no-inline-cflags): Add
1305         -fsignaling-nans.
1306
1307 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1308
1309         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1310         (CFLAGS-oldsendmsg.c): Add rule.
1311         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1312         Correct recvmsg symbol name.
1313         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1314         Likewise.
1315
1316 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1317
1318         * sysdeps/unix/sysv/linux/Makefile
1319         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1320         oldsendmmsg.
1321         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1322         sendmmsg.
1323         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1324         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1325         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1326         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1328         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1329         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1330         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1331         Likewise.
1332         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1333         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1334         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1335         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1336         iovlen and controllen fields to adjust to POSIX specification.
1337         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1338
1339         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1340         and change to correct expected type.
1341         (msghdr.msg_controllen): Likewise.
1342         (cmsghdr.cmsg_len): Likewise.
1343         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1344         expected POSIX assumption about the size.
1345         (msghdr.msg_controllen): Likewise.
1346         (msghdr.__glibc_reserved1): Likewise.
1347         (msghdr.__glibc_reserved2): Likewise.
1348         (cmsghdr.cmsg_len): Likewise.
1349         (cmsghdr.__glibc_reserved1): Likewise.
1350         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1351         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1352         (CFLAGS-sendmsg.c): Remove rule.
1353         (CFLAGS-recvmsg.c): Likewise.
1354         (CFLAGS-oldsendmsg.c): Add rule.
1355         (CFLAGS-oldrecvmsg.c): Likewise.
1356         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1357         recvmsg and sendmsg.
1358         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1359         Likewise.
1360         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1361         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1362         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1363         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1364         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1365         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1366         Likewise.
1367         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1368         Likewise.
1369         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1370         Likewise.
1371         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1372         Likewise.
1373         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1374         Likewise.
1375         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1376         Likewise.
1377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1378         (GLIBC_2.24): Likewise.
1379         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1380         Likewise.
1381         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1382         Likewise.
1383         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1384         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1385         Likewise.
1386         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1387         Likewise.
1388         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1389         Likewise.
1390         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1391         (GLIBC_2.24): Likewise.
1392         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1393         Likewise.
1394         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1395         Likewise.
1396         * sysdeps/unix/sysv/linux/Makefile
1397         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1398         (CFLAGS-sendmsg.c): Add rule.
1399         (CFLAGS-recvmsg.c): Likewise.
1400         (CFLAGS-oldsendmsg.c): Likewise.
1401         (CFLAGS-oldrecvmsg.c): Likewise.
1402         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1403         initialization.
1404         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1405         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1406         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1407         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1408         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1409         iovlen and controllen fields to adjust to POSIX specification.
1410         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1411         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1412         added recvmsg and sendmsg.
1413         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1414         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1415         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1416         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1417         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1418         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1419         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1420         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1421         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1422         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1423         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1424         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1426         Likewise.
1427         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1429         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1430         Likewise.
1431         Likewise.
1432         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1433         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1434         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1435         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1436         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1437         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1438         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1439         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1440         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1441         Likewise.
1442         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1443         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1444
1445         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1446         from auto-generation.
1447         (sendmsg): Likewise.
1448         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1449         (sendmsg): Likewise.
1450         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1451         (sendmsg): Likewise.
1452         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1453         (sendmsg): Likewise.
1454         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1455         (sendmsg): Likewise.
1456         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1457         (sendmsg): Likewise.
1458         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1459         Likewise.
1460         (sendmsg): Likewise.
1461         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1462         (sendmsg): Likewise.
1463         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1464         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1465         Remove.
1466         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1467         Likewise.
1468         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1469         Undefine.
1470         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1471         Likewise.
1472         * sysdeps/unix/sysv/linux/kernel-features.h
1473         (__ASSUME_SENDMSG_SYSCALL): Define.
1474         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1475         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1476         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1477         Remove.
1478         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1479         Likewise.
1480         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1481         Undefine.
1482         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1483         Likewise.
1484         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1485         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1486         Remove.
1487         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1488         Likewise.
1489         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1490         Undefine.
1491         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1492         Likewise.
1493         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1494         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1495         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1496         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1497         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1498         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1499         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1500         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1501         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1502
1503 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1504
1505         * stdlib/gen-tst-strtod-round.c: Add backslash to
1506         compile command in comment.
1507         (printfp): Remove the literal suffix, and define an infinite
1508         value as INF to avoid expansion clash with INFINITY.
1509         (round_str): Remove the literal suffix.
1510         (round_for_all): Likewise, remove the now duplicate ldbl-64
1511         entry, and remove some magic constants.
1512
1513         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1514         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1515         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1516         (_CONCAT): New macro.
1517         (CONCAT): Likewise.
1518         (CHOOSE_ld): Likewise.
1519         (CHOOSE_f): Likewise.
1520         (CHOOSE_d): Likewise.
1521         (FTYPE_MEMBER): Likewise.
1522         (BOOL_MEMBER): Likewise.
1523         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1524         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1525         (_XNTRY): Likewise.
1526         (XNTRY): Likewise.
1527         (_ENTRY): Likewise.
1528         (ENTRY): Likewise.
1529         (test_exactness): Generate members via macro.
1530         (test_results): Likewise.
1531         (test): Update members.
1532         (TEST): Redefine using new macros.
1533         (INF): New macro.
1534         (fetestmodes): New structure.
1535         (do_test): Refactor to be type generic.
1536         (test_in_one_mode): Refactor duplicate code into
1537         (GEN_ONE_TEST): New macro.
1538
1539         * stdlib/tst-strtod-round-data.h: Regenerate.
1540
1541         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1542         Extend to pass additional arbitrary parameters to
1543         generators.
1544
1545 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1546
1547         [BZ #15479]
1548         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1549         floating-point state after first floating-point operation on
1550         input.  Restore full floating-point state instead of just rounding
1551         mode.
1552         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1553         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1554         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1555         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1556         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1557
1558         [BZ #15479]
1559         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1560         floating-point state after first floating-point operation on
1561         input.  Restore full floating-point state instead of just rounding
1562         mode.
1563         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1564         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1565         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1566         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1567         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1568
1569 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1570
1571         [BZ #19727]
1572         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1573         valid high surrogate.
1574         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1575         of an utf16 surrogate.
1576         * iconv/gconv_simple.c (BODY): Likewise.
1577         * iconvdata/bug-iconv12.c: New file.
1578         * iconvdata/Makefile (tests): Add bug-iconv12.
1579
1580 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1581
1582         [BZ #19726]
1583         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1584         outptrp in case of an illegal input.
1585         * iconv/tst-iconv6.c: New file.
1586         * iconv/Makefile (tests): Add tst-iconv6.
1587
1588 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1589
1590         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1591         an error in case of a value in range of an utf16 low surrogate.
1592
1593 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1594
1595         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1596         an error in case of a value in range of an utf16 low surrogate.
1597
1598 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1599
1600         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1601         Move to ...
1602         * sysdeps/s390/Makefile: ... here.
1603         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1604         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1605         (BRANCH_ON_COUNT): New define.
1606         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1607         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1608         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1609         run on s390-32, too.
1610         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1611         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1612         run on s390-32, too.
1613         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1614         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1615         run on s390-32, too.
1616
1617 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1618
1619         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1620         etf3eh or new vector loop-variant.
1621
1622 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1623
1624         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1625         etf3eh or new vector loop-variant.
1626
1627 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1628
1629         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1630         or new vector loop-variant.
1631
1632 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1633
1634         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1635         Rename to TR_LOOP and usage of tr instead of troo instruction.
1636
1637 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1638
1639         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1640         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1641
1642 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1643
1644         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1645         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1646         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1647         New override define.
1648         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1649
1650 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1651
1652         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1653         * sysdeps/s390/configure.ac: Add test for S390 vector register
1654         support in gcc.
1655         * sysdeps/s390/configure: Regenerated.
1656
1657 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1658
1659         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1660         Install file from $(objpfx)gconv-modules.
1661         ($(objpfx)gconv-modules): Concatenate architecture specific file
1662         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1663         * sysdeps/s390/gconv-modules: New file.
1664         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1665         Deleted.
1666         ($(objpfx)gconv-modules-s390): Deleted.
1667         (sysdeps-gconv-modules): New variable.
1668
1669 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1670
1671         [BZ #15479]
1672         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1673         of immediate operand to rounding instruction.
1674         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1675         Likewise.
1676         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1677         Likewise.
1678         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1679         Likewise.
1680
1681 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1682
1683         * math/libm-test.inc (MIN_EXP): Directly define as
1684         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1685
1686 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1687
1688         * math/libm-test.inc (MANT_DIG): Directly define as
1689         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1690
1691 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1692
1693         * stdlib/gen-tst-strtod-round.c (main):
1694           Change usage to more closely match the generated
1695           output.  Add usage and compilation instructions.
1696           (string_to_fp): Add and use FILE* parameter as
1697           output target.
1698           (print_fp): Likewise.
1699           (round_str): Likewise.
1700           (round_for_all): Likewise.
1701         * stdlib/tst-strtod-round.c (tests): Move into
1702         * stdlib/tst-strtod-round-data.h: New file.
1703
1704 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1705
1706         [BZ #15479]
1707         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1708         (__round): Do not force "inexact" exception.
1709         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1710         variable.
1711         (__round): Do not force "inexact" exception.
1712         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1713         (__roundf): Do not force "inexact" exception.
1714         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1715         (__roundl): Do not force "inexact" exception.
1716         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1717         (__roundl): Do not force "inexact" exception.
1718         * math/libm-test.inc (round_test_data): Do not allow spurious
1719         "inexact" exceptions.
1720
1721         [BZ #15479]
1722         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1723         exception in comment.
1724         (huge): Remove variable.
1725         (__floor): Do not force "inexact" exception.
1726         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1727         "inexact" exception in comment.
1728         (huge): Remove variable.
1729         (__floor): Do not force "inexact" exception.
1730         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1731         exception in comment.
1732         (huge): Remove variable.
1733         (__floorf): Do not force "inexact" exception.
1734         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1735         exception in comment.
1736         (huge): Remove variable.
1737         (__floorl): Do not force "inexact" exception.
1738
1739         [BZ #15479]
1740         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1741         exception in comment.
1742         (huge): Remove variable.
1743         (__ceil): Do not force "inexact" exception.
1744         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1745         "inexact" exception in comment.
1746         (huge): Remove variable.
1747         (__ceil): Do not force "inexact" exception.
1748         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1749         (__ceilf): Do not force "inexact" exception.
1750         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1751         exception in comment.
1752         (huge): Remove variable.
1753         (__ceill): Do not force "inexact" exception.
1754
1755 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1756
1757         * config.h.in (BIND_NOW): New.
1758         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1759         * configure: Regenerated.
1760         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1761         indirect branch via the GOT slot.
1762
1763 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1764
1765         [BZ #19765]
1766         * sysdeps/s390/mempcpy.S: New File.
1767         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1768         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1769         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1770         Add mempcpy variants.
1771         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1772         (memcpy): Adjust to be usable from mempcpy entry point.
1773         (__memcpy_mvcle): Likewise.
1774         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1775         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
1776         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
1777         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
1778         (__memcpy_z10): Likewise.
1779         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1780
1781 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1782
1783         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
1784         Remove __GI_ symbol.
1785         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
1786         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
1787         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
1788         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1789         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
1790         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
1791
1792 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1793
1794         * sysdeps/s390/s390-64/memcpy.S (memcpy):
1795         Use cghi instead of chi to compare 64bit value.
1796
1797 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1798
1799         * sysdeps/s390/s390-32/memcpy.S (memcpy):
1800         Jump to 1MB check before executing mvc-loop.
1801
1802 2016-05-24  Florian Weimer  <fweimer@redhat.com>
1803
1804         [BZ #6527]
1805         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
1806         unconditionally.
1807         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
1808
1809 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1810
1811         * stdlib/tst-strtod6.c (do_test): Use new type generic
1812         invocation of the test function.
1813         (test): Refactor into ...
1814         (TEST_STRTOD): New macro base function.
1815
1816 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1817
1818         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
1819         (TEST_STRTOD): New macro.
1820         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
1821
1822 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1823
1824         * stdlib/tst-strtod6.c (do_test): Use new type generic
1825         invocation of the test function.
1826         (test): Refactor into ...
1827         (TEST_STRTOD): New macro base function.
1828
1829 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1830
1831         CVE-2016-4429
1832         [BZ #20112]
1833         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
1834         payload.
1835
1836 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1837
1838         [BZ #20111]
1839         * bits/sockaddr.h (_SS_SIZE): Define.
1840         * bits/socket.h (_SS_SIZE): Remove.
1841         (_SS_PADSIZE): Adjust to account for all padding.
1842         (struct sockaddr_storage): Update comment.  Avoid implicit
1843         padding.
1844         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
1845         (_SS_PADSIZE): Adjust to account for all padding.
1846         (struct sockaddr_storage): Update comment.  Avoid implicit
1847         padding.
1848         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
1849         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
1850         (_SS_PADSIZE): Adjust to account for all padding.
1851         (struct sockaddr_storage): Update comment.  Avoid implicit
1852         padding.
1853         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
1854         __SS_SIZE is 126 in this version.
1855         * inet/tst-sockaddr.c: New file.
1856         * inet/Makefile (tests): Add tst-sockaddr.c
1857         (tst-sockaddr.c): Compile with non-strict aliasing.
1858
1859 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
1860
1861         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
1862         [XPG3 || XPG4].
1863         (NL_ARGMAX): Also expect for [XPG3].
1864         (NL_LANGMAX): Likewise.
1865         (NL_MSGMAX): Likewise.
1866         (NL_NMAX): Likewise.
1867         (NL_SETMAX): Likewise.
1868         (NL_TEXTMAX): Likewise.
1869         (NZERO): Likewise.
1870         (TMP_MAX): Likewise.
1871         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
1872         variable.
1873
1874         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
1875         (PF_MAX): Update value.
1876         (AF_KCM): New macro.
1877         (SOL_NETBEUI): Likewise.
1878         (SOL_LLC): Likewise.
1879         (SOL_DCCP): Likewise.
1880         (SOL_NETLINK): Likewise.
1881         (SOL_TIPC): Likewise.
1882         (SOL_RXRPC): Likewise.
1883         (SOL_PPPOL2TP): Likewise.
1884         (SOL_BLUETOOTH): Likewise.
1885         (SOL_PNPIPE): Likewise.
1886         (SOL_RDS): Likewise.
1887         (SOL_IUCV): Likewise.
1888         (SOL_CAIF): Likewise.
1889         (SOL_ALG): Likewise.
1890         (SOL_NFC): Likewise.
1891         (SOL_KCM): Likewise.
1892         (MSG_BATCH): New enum value and macro.
1893
1894 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1895
1896         [BZ #18185]
1897         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
1898         sharing L2 cache to 2 for Knights Landing.
1899
1900 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
1901
1902         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
1903         (FTW_DP): Do not expect for [XPG3 || XPG4].
1904         (FTW_SL): Do not expect for [XPG3].
1905         (FTW_SLN): Likewise.
1906         (FTW_PHYS): Likewise.
1907         (FTW_MOUNT): Likewise.
1908         (FTW_DEPTH): Likewise.
1909         (FTW_CHDIR): Likewise.
1910         (nftw): Likewise.
1911         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
1912         variable.
1913
1914 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1915
1916         * manual/errno.texi: Fix various typos & grammar errors.
1917
1918 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1919
1920         * manual/intro.texi: Fix duplicated typo.
1921
1922 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1923
1924         [BZ #13304]
1925         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
1926         <float.h>, <math_private.h> and <stdlib.h>.
1927         (add_split): New function.
1928         (mul_split): Likewise.
1929         (ext_val): New typedef.
1930         (store_ext_val): New function.
1931         (mul_ext_val): New function.
1932         (compare): New function.
1933         (add_split_ext): New function.
1934         (__fmal): After checking for Inf, NaN and zero, compute result as
1935         an exact sum of scaled double values in round-to-nearest before
1936         adding those up and adjusting for other rounding modes.
1937         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
1938         tests of fma.
1939         * math/auto-libm-test-out: Regenerated.
1940
1941 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1942
1943         [BZ #20119]
1944         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
1945         processor level type mask for CPUID with EAX == 11.
1946
1947 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1948
1949         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
1950         logical threads if the HTT bit is 0.
1951         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
1952         (index_cpu_HTT): Likewise.
1953         (reg_HTT): Likewise.
1954
1955 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1956
1957         [BZ #20115]
1958         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
1959         Remove alignments on jump targets.
1960
1961 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1962
1963         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
1964         (getpwent): Likewise.
1965         (setpwent): Likewise.
1966         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
1967         variable.
1968
1969         * conform/data/search.h-data (insque): Do not expect for [XPG3].
1970         (remque): Likewise.
1971         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
1972         variable.
1973
1974 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1975
1976         * math/libm-test.inc: Update comment not to refer to signs of NaNs
1977         not being tested.
1978
1979 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1980
1981         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1982         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
1983         call.
1984         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1985         (__condvar_cleanup1): Likewise.
1986
1987 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1988
1989         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
1990         New
1991         (__pthread_unwind): Renamed to ...
1992         (PTHREAD_UNWIND): This.
1993         (__pthread_enable_asynccancel): Replace
1994         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
1995
1996 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1997
1998         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
1999         (CLONE_NEWCGROUP): New macro.
2000
2001         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2002         (Q_GETNEXTQUOTA): New macro.
2003
2004 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2005
2006         [BZ #19907]
2007         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2008         buffer updated by the previous run.
2009         * string/test-memcpy.c (do_one_test): Likewise.
2010         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2011         * string/test-memmove.c (do_one_test): Likewise.
2012
2013 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2014
2015         [BZ #20094]
2016         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2017         not [__USE_XOPEN].
2018         (unlockpt): Likewise.
2019         (ptsname): Likewise.
2020         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2021         variable.
2022
2023         [BZ #20076]
2024         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2025         instead of [__USE_UNIX98].
2026         (S_ISSOCK): Likewise.
2027         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2028         variable.
2029
2030         [BZ #20074]
2031         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2032         [__USE_POSIX].
2033         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2034         variable.
2035
2036         [BZ #20051]
2037         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2038         (ttyslot): Do not declare.
2039         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2040         (ttyslot): New prototype.
2041         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2042         variable.
2043         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2044
2045 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2046
2047         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2048
2049 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2050
2051         Fix race condition in tst-mallocfork2, use fewer resources.
2052         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2053         to current process group.
2054         (signal_sender): Yield in the non-sleeping case.
2055
2056 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2057
2058         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2059         (ecvt): Likewise.
2060         (fcvt): Likewise.
2061         (gcvt): Likewise.
2062         (getsubopt): Likewise.
2063         (grantpt): Likewise.
2064         (initstate): Likewise.
2065         (l64a): Likewise.
2066         (mktemp): Likewise.
2067         (mkstemp): Likewise.
2068         (ptsname): Likewise.
2069         (random): Likewise.
2070         (realpath): Likewise.
2071         (setstate): Likewise.
2072         (srandom): Likewise.
2073         (ttyslot): Likewise.
2074         (unlockpt): Likewise.
2075         (valloc): Likewise.
2076
2077         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2078         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2079         variable.
2080
2081 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2082
2083         [BZ #20072]
2084         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2085         init_cpu_features only if SHARED is defined.
2086         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2087
2088 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2089
2090         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2091         non-inclusive caches on Intel processors.
2092
2093 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2094
2095         * malloc/malloc.c (dumped_main_arena_start)
2096         (dumped_main_arena_end): New variables.
2097         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2098         (do_check_chunk): Skip dumped fake mmapped chunks.
2099         (munmap_chunk): Likewise.
2100         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2101         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2102         mmapped chunks.
2103         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2104         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2105         and dumped_main_arena_end to cover the dumped heap.
2106
2107 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2108
2109         * conform/data/time.h-data (getdate_err): Do not expect for
2110         [XPG3].
2111         (getdate): Likewise.
2112         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2113         variable.
2114
2115         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2116         (F_ULOCK): Likewise.
2117         (F_TEST): Likewise.
2118         (F_TLOCK): Likewise.
2119         (useconds_t): Likewise.
2120         (intptr_t): Do not expect for [XPG3] or [XPG4].
2121         (brk): Do not expect for [XPG3]
2122         (fchown): Likewise.
2123         (fchdir): Likewise.
2124         (ftruncate): Likewise.
2125         (getdtablesize): Likewise.
2126         (gethostid): Likewise.
2127         (getpagesize): Likewise.
2128         (getpgid): Likewise.
2129         (getsid): Likewise.
2130         (getwd): Likewise.
2131         (lchown): Likewise.
2132         (lockf): Likewise.
2133         (readlink): Likewise.
2134         (sbrk): Likewise.
2135         (setpgrp): Likewise.
2136         (setregid): Likewise.
2137         (setreuid): Likewise.
2138         (symlink): Likewise.
2139         (sync): Likewise.
2140         (truncate): Likewise.
2141         (ualarm): Likewise.
2142         (usleep): Likewise.
2143         (vfork): Likewise.
2144         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2145         variable.
2146
2147         [BZ #20054]
2148         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2149         not [__USE_UNIX98].
2150         * conform/data/unistd.h-data (gethostname): Do not expect for
2151         [XPG3].
2152
2153         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2154         [!POSIX] (S_IFBLK): Likewise.
2155         [!POSIX] (S_IFCHR): Likewise.
2156         [!POSIX] (S_IFIFO): Likewise.
2157         [!POSIX] (S_IFREG): Likewise.
2158         [!POSIX] (S_IFDIR): Likewise.
2159         [!POSIX] (S_IFLNK): Likewise.
2160         [!POSIX] (S_IFSOCK): Likewise.
2161         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2162         variable.
2163         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2164
2165 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2166
2167         * sysdeps/aarch64/memset.S (__memset):
2168         Rewrite of optimized memset.
2169
2170 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2171
2172         [BZ #19703]
2173         Partially async-signal-safe fork for single-threaded processes.
2174         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2175         variable.  Do not acquire and reset/release malloc and libio locks
2176         in single-threaded processes.
2177         * malloc/tst-mallocfork2.c: New file.
2178         * malloc/Makefile (tests): Add it.
2179
2180 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2181
2182         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2183         argument.  Use scratch buffer instead of extend_alloca.
2184         (gethosts): Use scratch buffer instead of extend_alloca.
2185         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2186         extend_alloca.
2187         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2188
2189 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2190
2191         [BZ #20055]
2192         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2193         instead of [__USE_UNIX98].
2194         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2195         [__USE_UNIX98].
2196         * conform/data/termios.h-data (tcgetsid): Do not expect for
2197         [XPG3].
2198         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2199         variable.
2200         (test-xfail-XPG4/termios.h/conform): Likewise.
2201
2202 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2203
2204         Do not use mcheck in localedef.
2205         * locale/programs/localedef.c (turn_on_mcheck)
2206         (__malloc_initialize_hook): Remove.
2207
2208 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2209
2210         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2211         * sysdeps/s390/s390-64/Makefile: Likewise.
2212
2213 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2214
2215         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2216         Remove ifunc-defines.sym.
2217         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2218         Likewise.
2219         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2220         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2221         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2222         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2223         rtld-global-offsets.sym.
2224         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2225         * sysdeps/x86/cpu-features-offsets.sym: This.
2226         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2227         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2228
2229 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2230
2231         [BZ #20073]
2232         * io/sys/stat.h (fchmod): Declare for
2233         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2234         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2235         variable.
2236
2237         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2238         [XPG3] (S_IFSOCK): Likewise.
2239         [XPG3] (S_ISVTX): Likewise.
2240         [XPG3] (S_ISLNK): Likewise.
2241         [XPG3] (S_ISSOCK): Likewise.
2242         [XPG3] (fchmod): Likewise.
2243         [XPG3] (lstat): Likewise.
2244         [XPG3] (mknod): Likewise.
2245
2246         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2247         [XPG3].  Expect type long and XFAIL for [XPG4].
2248         (st_blocks): Likewise.
2249
2250         [BZ #20044]
2251         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2252         (pthread_atfork): New prototype.
2253         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2254         variable.
2255
2256         [BZ #20043]
2257         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2258         prototype.
2259
2260 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2261
2262         [BZ #20017]
2263         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2264         gmtime.
2265
2266 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2267
2268         [BZ #19994]
2269         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2270         flag in _res.options.
2271
2272 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2273
2274         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2275         [XPG3 || XPG4].
2276         (blksize_t): Likewise.
2277         (clockid_t): Likewise.
2278         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2279         variable.
2280         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2281
2282 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2283
2284         * sysdeps/unix/sysv/linux/s390/init-first.c:
2285         Add VDSO_SYMBOL(getcpu).
2286         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2287         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2288         Add VDSO_SYMBOL(getcpu).
2289         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2290         New define HAVE_GETCPU_VSYSCALL.
2291         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2292
2293 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2294
2295         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2296         instead of <sysdeps/x86_64/cacheinfo.c>.
2297         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2298         * sysdeps/x86/cacheinfo.c: Here.
2299
2300 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2301
2302         * malloc/malloc-internal.h: Adjust header file guard.
2303
2304 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2305
2306         [BZ #19787]
2307         * inet/getnameinfo.c (check_sprintf_result): New function.
2308         (CHECKED_SNPRINTF): New macro.
2309         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2310         to the host buffer.
2311         (gni_host_local): Use checked_copy to copy the host name.
2312         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2313         (gni_serv_local): Use checked_copy to copy the service name.
2314         (getnameinfo): Remove unnecessary truncation of result buffers.
2315
2316 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2317
2318         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2319         in case of inet_ntop failure.
2320
2321 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2322
2323         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2324         avoid long lines.
2325         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2326         variables.
2327         (gni_host_inet, gni_host_local): Add comment.
2328         (gni_host): Add comment.  Use temporary to avoid long lines.
2329
2330 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2331
2332         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2333         registers specifiers where general purpose registers specifiers should
2334         have been used.
2335
2336 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2337
2338         [BZ #19779]
2339         CVE-2016-1234
2340         Avoid copying names of directory entries.
2341         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2342         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2343         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2344         (struct readdir_result): New type.
2345         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2346         (GL_READDIR): New macros.
2347         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2348         (convert_dirent, convert_dirent64): New functions.
2349         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2350         convert_dirent64.  Adjust references to the readdir result.
2351         * sysdeps/unix/sysv/linux/i386/glob64.c:
2352         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2353         * posix/bug-glob2.c (LONG_NAME): Define.
2354         (filesystem): Add LONG_NAME.
2355         (my_DIR): Increase the size of room_for_dirent.
2356
2357 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2358
2359         [BZ #20041]
2360         * misc/sys/select.h (__need_timespec): Only define if
2361         [__USE_XOPEN2K].
2362         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2363         variable.
2364         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2365         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2366         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2367
2368 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2369             Segher Boessenkool  <segher@gcc.gnu.org>
2370
2371         [BZ #20004]
2372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2373         (__novec_swapcontext): Add missing load.
2374
2375 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2376
2377         [BZ #20023]
2378         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2379         <time.h>.
2380         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2381         variable.
2382         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2383
2384 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2385
2386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2387         flags CLONE_VM compare.
2388
2389 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2390
2391         [BZ #20031]
2392         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2393         completely empty.
2394
2395 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2396
2397         [BZ #19573]
2398         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2399         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2400         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2401         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2402         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2403         (hesiod_free_list): Mark as hidden.
2404         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2405         res_set, res_get.
2406         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2407         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2408         (hesiod_init): Remove obsolete res_ninit call.
2409         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2410         (hesiod_bind): Do not call init.
2411         (get_txt_records): Use res_mkquery, res_send instead of
2412         res_nmkquery, res_nsend.
2413         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2414         instead of _nss_hesiod_init.
2415         (_nss_hesiod_initgroups_dyn): Likewise.
2416         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2417         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2418         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2419
2420 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2421
2422         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2423         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2424
2425 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2426
2427         * hesiod/hesiod.h: Remove RCS keyword.
2428         * hesiod/hesiod_p.h: Likewise.
2429
2430         * hesiod/hesiod.c: Likewise.
2431
2432 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2433
2434         [BZ #12450]
2435         * locale/iso-639.def: Add Samogitian/sgs.
2436
2437 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2438
2439         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2440
2441         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2442
2443 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2444             Carlos O'Donell  <carlos@redhat.com>
2445
2446         [BZ #19072]
2447         * grp/Makefile (headers): Add grp-merge.h
2448         (routines): Add grp-merge.
2449         * grp/getgrgid_r.c: Include grp-merge.h.
2450         (DEEPCOPY_FN): Define.
2451         (MERGE_FN): Define.
2452         * grp/getgrname_r.c: Include grp-merge.h.
2453         (DEEPCOPY_FN): Define.
2454         (MERGE_FN): Define.
2455         * grp/grp-merge.c: New file.
2456         * grp/grp-merge.h: New file.
2457         * include/grp-merge.h: New file.
2458         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2459         __copy_grp@GLIBC_PRIVATE.
2460         * manual/nss.texi (Actions in the NSS configuration): Describe
2461         return, continue, and merge.
2462         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2463         (DEEPCOPY_FN): Define.
2464         (MERGE_FN): Define.
2465         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2466         (DEEPCOPY_FN): Define.
2467         (MERGE_FN): Define.
2468         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2469         [!MERGE_FN]: Define __merge_einval.
2470         (CHECK_MERGE): Define.
2471         (REENTRANT_NAME): Process merge if do_merge is true.
2472         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2473         (__nss_getent_r): Likewise.
2474         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2475         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2476
2477 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2478
2479         [BZ #20012]
2480         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2481         length to calculate the buffer to read.
2482         (fmemopen_write): Set the buffer position based on bytes written.
2483         (fmemopen_seek): Return EINVAL for invalid whence modes.
2484
2485         [BZ #19957]
2486         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2487         tst-getpid2.
2488         (test): Add tst-clone2.
2489         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2490         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2491         pid/tid fields for CLONE_VM.
2492         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2493         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2494         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2495         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2496         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2497         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2498         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2499         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2501         Likewise.
2502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2503         Likewise.
2504         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2505         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2506         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2507         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2508         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2509         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2510         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2511         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2512
2513 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2514
2515         [BZ #19642]
2516         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2517         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2518         (gni_serv_local, gni_serv): New functions extracted from
2519         getnameinfo.
2520         (getnameinfo): Call gni_host and gni_serv to perform the
2521         processing.  Always free scratch buffer.
2522
2523 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2524
2525         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2526         remaining bytes in the dest string, with zeros.
2527
2528 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2529
2530         [BZ #20010]
2531         CVE-2016-3706
2532         * sysdeps/posix/getaddrinfo.c
2533         (convert_hostent_to_gaih_addrtuple): New function.
2534         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2535         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2536         AF_INET data.
2537
2538 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2539
2540         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2541         callback function gl_readdir.
2542         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2543         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2544         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2545         memcpy to copy the name.
2546         * manual/pattern.texi (Calling Glob): Document requirements for
2547         implementations of the gl_readdir callback function.
2548         * manual/examples/mkdirent.c: New example.
2549         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2550         per the manual guidance.
2551         * posix/tst-gnuglob.c (my_readdir): Likewise.
2552
2553 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2554
2555         [BZ #20014]
2556         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2557         not [__USE_POSIX].
2558         (getchar_unlocked): Likewise.
2559         (putc_unlocked): Likewise.
2560         (putchar_unlocked): Likewise.
2561         (flockfile): Likewise.
2562         (ftrylockfile): Likewise.
2563         (funlockfile): Likewise.
2564         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2565         variable.
2566         (test-xfail-XPG4/stdio.h/conform): Likewise.
2567
2568         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2569         Expect constant.
2570         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2571         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2572         variable.
2573         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2574         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2575
2576         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2577         [__USE_LARGEFILE64] (off64_t): Likewise.
2578         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2579         variable.
2580
2581 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2582
2583         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2584
2585 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2586
2587         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2588         * resolv/res_init.c: Likewise.
2589         * resolv/res_mkquery.c: Likewise.
2590
2591 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2592
2593         * resolv/res_init.c (isascii): Do not define.  Use definition in
2594         <ctype.h>.
2595         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2596         (LOG_AUTH): Remove.
2597         (SPRINTF): Remove, adjust caller.
2598         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2599
2600 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2601
2602         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2603         SUNSECURITY conditional.
2604         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2605
2606 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2607
2608         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2609         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2610         Remove BSD-related preprocessor conditionals.
2611         * conf/portability.h: Remove.
2612
2613 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2614
2615         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2616         * resolv/res_data.c: Likewise.
2617
2618 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2619
2620         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2621         * resolv/res_data.c: Remove code conditional on ultrix.
2622
2623 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2624
2625         * resolv/res_init.c (RFC1535): Do not define.  Remove
2626         RFC1535 preprocessor conditionals.
2627         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2628         because there configuration options which make the resolver
2629         behavior different.
2630
2631 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2632
2633         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2634         RESOLVSORT preprocessor conditionals.
2635         * resolv/nss_dns/dns-host.c: Likewise.
2636         * resolv/res_init.c: Likewise.
2637
2638 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2639
2640         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2641         is never defined.
2642
2643 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2644
2645         * inet/inet_lnaof.c: Remove SCSS keyword.
2646         * inet/inet_mkadr.c: Likewise.
2647         * inet/inet_net.c: Likewise.
2648         * inet/inet_netof.c: Likewise.
2649         * inet/rcmd.c: Likewise.
2650         * inet/rexec.c: Likewise.
2651         * inet/ruserpass.c: Likewise.
2652
2653 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2654
2655         * resolv/inet_addr.c: Remove _LIBC conditionals.
2656         * resolv/res_data.c: Likewise.
2657         * resolv/res_init.c: Likewise.
2658         * resolv/res_mkquery.c: Likewise.
2659         * resolv/res_libc.c: Update comment.
2660         * resolv/README: Update.
2661
2662 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2663
2664         * resolv/gethnamaddr.c: Remove SCSS keyword.
2665         * resolv/herror.c: Likewise.
2666         * resolv/inet_addr.c: Likewise.
2667         * resolv/inet_net_ntop.c: Likewise.
2668         * resolv/inet_net_pton.c: Likewise.
2669         * resolv/inet_neta.c: Likewise.
2670         * resolv/inet_ntop.c: Likewise.
2671         * resolv/inet_pton.c: Likewise.
2672         * resolv/ns_date.c: Remove RCS keyword.
2673         * resolv/ns_name.c: Likewise.
2674         * resolv/ns_netint.c: Likewise.
2675         * resolv/ns_parse.c: Likewise.
2676         * resolv/ns_print.c: Likewise.
2677         * resolv/ns_samedomain.c: Likewise.
2678         * resolv/ns_ttl.c: Likewise.
2679         * resolv/nsap_addr.c: Likewise.
2680         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2681         * resolv/res_data.c: Remove RCS keyword.
2682         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2683         * resolv/res_init.c: Likewise.
2684         * resolv/res_mkquery.c: Likewise.
2685         * resolv/res_query.c: Likewise.
2686         * resolv/res_send.c: Likewise.
2687
2688 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2689
2690         * conform/data/stdio.h-data (fdopen): Expect also for
2691         [XPG3 || XPG4].
2692
2693         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2694         (fseeko): Likewise.
2695         (ftello): Likewise.
2696         (ftrylockfile): Likewise.
2697         (funlockfile): Likewise.
2698         (getc_unlocked): Likewise.
2699         (getchar_unlocked): Likewise.
2700         (putc_unlocked): Likewise.
2701         (putchar_unlocked): Likewise.
2702
2703 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2704
2705         [BZ #19868]
2706         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2707         DNS packet syntax checks (which were not needed before).  Skip
2708         over non-PTR records.
2709
2710 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2711
2712         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2713         definition.  Include <stddef.h> instead.
2714
2715 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2716
2717         [BZ #19831]
2718         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2719         function.
2720         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2721         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2722
2723 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2724
2725         [BZ #19862]
2726         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2727         (getanswer_r): Do not call syslog.
2728         (gaih_getanswer_slice): Likewise.
2729         * resolv/gethnamaddr.c (AskedForGot): Remove.
2730         (getanswer): Do not call syslog.
2731         (gethostbyaddr): Likewise.
2732
2733 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2734
2735         * conform/data/signal.h-data (union sigval): Expect also if
2736         [XOPEN2K].
2737         (struct sigevent): Likewise.
2738         (SIGEV_NONE): Likewise.
2739         (SIGEV_SIGNAL): Likewise.
2740         (SIGEV_THREAD): Likewise.
2741         (SIGRTMIN): Likewise.
2742         (SIGRTMAX): Likewise.
2743         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2744         variable.
2745         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2746
2747 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2748
2749         [BZ #19830]
2750         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2751         (gaih_getanswer_slice): Likewise.
2752         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2753         Also check for availability of RR metadata.
2754
2755 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2756
2757         [BZ #19825]
2758         * resolv/res_send.c (send_vc): Remove early *resplen2
2759         initialization.  Set *resplen2 on socket error.  Call
2760         close_and_return_error for other errors.
2761
2762 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2763
2764         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2765         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2766         (SCM_IUCV_TRGCLS): New define.
2767
2768 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2769
2770         [BZ #20005]
2771         * libio/fmemopen.c (fmemopen_write): Update internal position after
2772         write.
2773         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2774         * stdio-common/tst-fmemopen4.c: New file..
2775
2776 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
2777
2778         [BZ #19996]
2779         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
2780         not [__USE_XOPEN2K].
2781         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
2782         variable.
2783
2784         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
2785         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
2786         variable.
2787
2788         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
2789         [__USE_XOPEN2K8].
2790         [__USE_LARGEFILE64] (off64_t): Likewise.
2791         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
2792         variable.
2793
2794 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
2795
2796         [BZ #19989]
2797         * libio/stdio.h (cuserid): Do not declare if
2798         [__USE_XOPEN2K && !__USE_GNU].
2799         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
2800         variable.
2801
2802 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2803
2804         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2805         (sysdep_routines): Add P8 and PPC64 strcspn targets.
2806         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2807         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
2808         ifunc'ed strcspn.
2809         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
2810         [EALIGN]: Removed.
2811         [END]: Likewise
2812         [STRSPN]: Define instead of the above to control symbol name.
2813         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
2814         New file.
2815         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
2816         Likewise.
2817         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
2818         Likewise.
2819         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
2820         Likewise.
2821         * sysdeps/powerpc/powerpc64/power8/strspn.S:
2822         [INITIAL_MASK]: New macro.
2823         [STRCSPN]: Likewise.
2824         [UPDATE_MASK]: Likewise.
2825         [USE_AS_STRCSPN]: Lisewise.
2826
2827 2016-04-25  Florian Weimer  <fweimer@redhat.com>
2828
2829         [BZ #19931]
2830         * stdio-common/tst-vfprintf-width-prec.c: New file.
2831         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
2832         (tests-special): Add tst-vfprintf-width-prec-mem.out.
2833         (generated): Add mtrace-related files.
2834         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
2835         (tst-%-mem.out): New pattern rule, replaces
2836         tst-printf-bz18872-mem.out.
2837         * stdio-common/vfprintf.c (vfprintf): When handling a precision
2838         specifier, deallocate any previously allocated work buffer.
2839
2840 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2841
2842         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
2843         Add nop before __startcontext, add explaining comments.
2844
2845 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
2846
2847         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
2848         any more. Notably since IPV6_PKTINFO has been reintroduced with a
2849         completely different API.
2850
2851         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
2852         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
2853         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
2854         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
2855         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
2856         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
2857         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
2858         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
2859         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
2860         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2861
2862 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2863
2864         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2865
2866 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
2867
2868         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
2869         when it is the default of 0.
2870
2871 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2872
2873         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
2874         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2875         (sysdep_routines): Add new strcasestr targets.
2876         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2877         (__libc_ifunc_impl_list): Likewise.
2878         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
2879         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
2880         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
2881         * sysdeps/powerpc/powerpc64/power8/Makefile:
2882         New file to add strcasestr-ppc64 to sysdep_routines.
2883         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
2884         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
2885
2886 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
2887
2888         * benchtests/Makefile (wcsmbs-benchset): Include only for
2889         native builds and runs.
2890         (LOCALES): Likewise.
2891         (bench-build): Build timing-type here instead of the bench
2892         target.  Generate locale only for native builds.
2893         * benchtests/README: Add note for cross-building.
2894
2895         * benchtests/Makefile (bench-clean): Clean up extra-objs.
2896
2897         * benchtests/README: Update README to include instructions on
2898         using bench-build.
2899
2900         * Makefile.in (bench-build): New target.
2901         * Rules (PHONY): Add bench-build target.
2902         * benchtests/Makefile (bench): Depend on bench-build.
2903         (bench-build): New target.
2904
2905 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2906
2907         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
2908         profil_reply_port.
2909         (profile_waiter): Do not initialize profil_reply_port.
2910         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
2911         frequency instead of tick length in us.
2912
2913 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
2914
2915         [BZ #18712]
2916         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
2917         (__old_mempcpy_small): Likewise.
2918         (__old_strcpy_small): Likewise.
2919         (__old_stpcpy_small): Likewise.
2920         (__old_strpbrk_c2): Fix compat symbol name.
2921         (__old_strpbrk_c3): Likewise.
2922         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
2923         (__mempcpy_small): Remove.
2924         (__strcpy_small): Remove.
2925         (__stpcpy_small): Remove.
2926
2927 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
2928
2929         [BZ #19400]
2930         * locale/iso-639.def: Add the Talossan/tzl language.
2931
2932 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2933
2934         [BZ #16983]
2935         * locale/programs/ld-address.c (address_finish): Update postal_fmt
2936         comment.  Add "ln" to strchr check on postal_fmt.
2937
2938 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2939
2940         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
2941         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
2942         tel_dom_fmt.
2943
2944 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2945
2946         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2947         (sysdep_routines): Added __strlen_power8.
2948         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
2949         __strlen_power8 entry.
2950         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
2951         Implementation for POWER8.
2952         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
2953         for __strlen_power8.
2954         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
2955         Implementation for POWER8.
2956
2957 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
2958
2959         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
2960
2961 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
2962
2963         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
2964         Goldmont and Airmont processors.
2965
2966 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
2967
2968         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
2969         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
2970         (__STRING2_SMALL_GET32): Remove.
2971         (memset): Remove.
2972         (__memset_1): Remove.
2973         (__memset_gc): Remove.
2974         (__mempcpy): Remove.
2975         (mempcpy): Remove.
2976         (__mempcpy_args): Remove.
2977         (strchr): Remove.
2978         (strcpy): Remove.
2979         (strcpy_args): Remove.
2980         (__stpcpy_args): Remove.
2981         (__strcmp_cc): Remove.
2982         (__strcmp_gc): Remove.
2983         (strstr): Remove.
2984
2985 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
2986
2987         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
2988         * nis/nis_call.c (nis_server_cache_add): Likewise.
2989
2990 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2991
2992         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
2993
2994 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2995
2996         * malloc/arena.c (__malloc_fork_lock_parent)
2997         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
2998         internal_function attribute.
2999
3000 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3001
3002         * stdio-common/printf_fp.c (__printf_fp_l):
3003         Rename ___printf_fp_l to __printf_fp_l and
3004         remove strong alias. Use libc_hidden_def instead
3005         of ldbl_hidden_def macro.
3006
3007 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3008
3009         Remove malloc hooks from fork handler.  They are no longer needed
3010         because malloc runs right before fork, and no malloc calls from
3011         other fork handlers are not possible anymore.
3012         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3013         declarations.
3014         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3015         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3016         (atfork_recursive_cntr): Remove.
3017         (__malloc_fork_lock_parent): Do not override malloc hooks and
3018         thread_arena.
3019         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3020         thread_arena.
3021         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3022         thread_arena instead of save_arena.
3023
3024 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3025
3026         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3027         (thread_atfork, thread_atfork_static): Remove.
3028         * sysdeps/mach/hurd/malloc-machine.h:
3029         (thread_atfork, thread_atfork_static): Remove.
3030
3031 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3032
3033         [BZ #19431]
3034         Run the malloc fork handler as late as possible to avoid deadlocks.
3035         * malloc/malloc-internal.h: New file.
3036         * malloc/malloc.c: Include it.
3037         * malloc/arena.c (ATFORK_MEM): Remove.
3038         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3039         Update comment.
3040         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3041         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3042         Remove outdated comment.
3043         (ptmalloc_init): Do not call thread_atfork.  Remove
3044         thread_atfork_static.
3045         * malloc/tst-malloc-fork-deadlock.c: New file.
3046         * Makefile (tests): Add tst-malloc-fork-deadlock.
3047         (tst-malloc-fork-deadlock): Link against libpthread.
3048         * manual/memory.texi (Aligned Memory Blocks): Update safety
3049         annotation comments.
3050         * sysdeps/nptl/fork.c (__libc_fork): Call
3051         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3052         __malloc_fork_unlock_child.
3053         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3054
3055 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3056
3057         [BZ #19613]
3058         Remove union wait.
3059         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3060         (w_stopsig, w_stopval): Remove.
3061         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3062         stat_loc argument.
3063         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3064         (__WAIT_STATUS_DEFN): Remove.
3065         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3066         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3067         (wait, wait3, wait4): Use int * for the stat_loc argument.
3068         * posix/wait.c (__wait): Likewise.
3069         * posix/wait3.c (__wait3): Likewise.
3070         * posix/wait4.c (__wait4): Likewise.
3071         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3072         (__WAIT_STATUS_DEFN): Remove.
3073         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3074         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3075         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3076         argument.
3077         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3078         * sysdeps/posix/wait3.c (__wait3): Likewise.
3079         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3080         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3081         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3082         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3083         stat_loc argument.
3084         * manual/process.texi (BSD Wait Functions): Remove union wait.
3085
3086 2016-04-13  Andreas Schwab  <schwab@suse.de>
3087
3088         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3089         (test-extras): Add tst-tlsalign-vars.
3090         * math/Makefile: Wrap long lines.
3091         (libm-vec-test-wrappers): Define.
3092         (test-extras): Add $(libm-vec-test-wrappers).
3093         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3094         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3095         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3096         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3097         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3098         (extra-test-objs): Add corresponding objects.
3099
3100 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3101
3102         [BZ #19928]
3103         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3104         New.
3105         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3106         times of shared cache size.
3107         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3108         (VMOVNT): New.
3109         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3110         (VMOVNT): Likewise.
3111         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3112         (VMOVNT): Likewise.
3113         (VMOVU): Changed to movups for smaller code sizes.
3114         (VMOVA): Changed to movaps for smaller code sizes.
3115         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3116         comments.
3117         (PREFETCH): New.
3118         (PREFETCH_SIZE): Likewise.
3119         (PREFETCHED_LOAD_SIZE): Likewise.
3120         (PREFETCH_ONE_SET): Likewise.
3121         Rewrite to use forward and backward loops, which move 4 vector
3122         registers at a time, to support overlapping addresses and use
3123         non temporal store if size is above the threshold and there is
3124         no overlap between destination and source.
3125
3126 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3127
3128         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3129         Include dl-vdso.
3130         * sysdeps/unix/sysv/linux/mips/Versions: Add
3131         __vdso_clock_gettime.
3132         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3133         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3134         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3135         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3136         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3137         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3138         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3139         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3140         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3141
3142 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3143
3144         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3145         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3146         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3147         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3148         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3149         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3152         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3153         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3154         syscalls generation.
3155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3156         [__NR_pwrite64] (__NR_write): Remove define.
3157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3158         [__NR_pwrite64] (__NR_write): Remove define.
3159         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3160         Remove define.
3161         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3162         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3163         Remove define.
3164         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3165         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3166         Linux implementation as base.
3167         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3168
3169         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3170         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3171         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3172         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3175         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3176         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3177         syscall generation.
3178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3179         [__NR_pread64] (__NR_pread): Remove define.
3180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3181         [__NR_pread64] (__NR_pread): Likewise.
3182         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3183         define.
3184         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3185         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3186         Remove define.
3187         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3188         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3189         Linux implementation as base.
3190         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3191         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3192         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3193
3194         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3195         definition.
3196         (__ALIGNMENT_COUNT): Likewise.
3197         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3198         (__ALIGNMENT_COUNT): Likewise.
3199         (SYSCALL_LL): New define.
3200         (SYSCALL_LL64): Likewise.
3201         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3202         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3203         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3204         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3205
3206         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3207         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3208         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3209         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3210         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3211         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3212
3213 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3214
3215         [BZ #19865]
3216         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3217         original buffer before retry.
3218
3219 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3220
3221         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3222         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3223         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3224         GLRO(dl_auxv) list.
3225         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3226         including <ldsodefs.h>.
3227         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3228
3229 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3230
3231         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3232         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3233         $(CPPFLAGS).
3234
3235 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3236
3237         [BZ #17950]
3238         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3239         Add -mfpmath=387.
3240
3241 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3242
3243         * sysdeps/i386/configure.ac: Change == to = when calling test.
3244         * sysdeps/x86_64/configure.ac: Likewise.
3245         * sysdeps/i386/configure: Regenerated.
3246         * sysdeps/x86_64/configure: Likewise.
3247
3248 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3249
3250         [BZ #16137]
3251         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3252         * benchtests/bench-strcoll.c (input_files): Likewise.
3253         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3254         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3255         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3256
3257 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3258
3259         [BZ #19929]
3260         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3261         [__USE_XOPEN2K8 && !__USE_GNU].
3262         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3263         variable.
3264
3265         [BZ #19925]
3266         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3267         define if [!__USE_MISC && __USE_XOPEN2K].
3268         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3269         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3270         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3271         Likewise.
3272         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3273         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3274         variable.
3275         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3276
3277 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3278
3279         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3280         (sysdep_routines): Add new strspn targets.
3281         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3282         (__libc_ifunc_impl_list): Add strspn.
3283         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3284         New file.
3285         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3286         Likewise.
3287         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3288         Likewise.
3289         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3290         Likewise.
3291
3292 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3293
3294         * misc/hsearch_r.c: Include <limits.h>.
3295
3296 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3297
3298         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3299
3300 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3301
3302         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3303         (MEMCPY_SYMBOL): New.
3304         (MEMPCPY_SYMBOL): Likewise.
3305         (MEMMOVE_CHK_SYMBOL): Likewise.
3306         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3307         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3308         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3309         Provide alias for memcpy in libc.a and ld.so.
3310
3311 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3312
3313         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3314         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3315         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3316         Disabled fro now.
3317         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3318         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3319
3320 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3321
3322         * benchtests/Makefile (string-benchset): Add memcpy-large,
3323         memmove-large and memset-large.
3324         * benchtests/bench-memcpy-large.c: New file.
3325         * benchtests/bench-memmove-large.c: Likewise.
3326         * benchtests/bench-memmove-large.c: Likewise.
3327         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3328
3329 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3330
3331         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3332         32-bit displacement to avoid long nop between instructions.
3333
3334 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3335
3336         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3337         a comment on VMOVU and VMOVA.
3338
3339 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3340
3341         [BZ #19633]
3342         Use specified locale for number formatting in strfmon_l.
3343         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3344         (__nl_lookup_word): New inline functions.
3345         * include/printf.h (__print_fp_l): Declare.
3346         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3347         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3348         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3349         (___printf_fp): New function.
3350         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3351         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3352         * stdlib/tst-strfmon_l.c (do_test): New test.
3353         * stdlib/Makefile (tests): Add kt.
3354         (LOCALES): Build additional locales.
3355         (tst-strfmon_l.out): Require locales.
3356
3357 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3358
3359         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3360         if not in libc.
3361         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3362         Likewise.
3363         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3364         Likewise.
3365         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3366         Likewise.
3367
3368 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3369
3370         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3371         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3372         with unaligned_erms.
3373         (__memmove_erms): Skip if source == destination.
3374         (__memmove_unaligned_erms): Don't check source == destination
3375         first.
3376
3377 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3378
3379         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3380         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3381
3382 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3383
3384         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3385         * string/strspn.c (strspn): Likewise.
3386
3387 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3388
3389         * benchtests/bench-memset.c (do_test): Support 64-byte
3390         alignment.
3391         (test_main): Test 64-byte alignment.
3392
3393 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3394
3395         * benchtests/bench-memmove.c (test_main): Test 64-byte
3396         alignment.
3397
3398 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3399
3400         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3401
3402 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3403
3404         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3405         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3406         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3407
3408         * string/strpbrk.c (strpbrk): Rewrite function.
3409         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3410         (__strpbrk_c2): Likewise.
3411         (__strpbrk_c3): Likewise.
3412         * string/string-inlines.c
3413         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3414         Likewise.
3415         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3416         Likewise.
3417
3418         * string/strspn.c (strcspn): Rewrite function.
3419         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3420         (__strspn_c1): Remove inline function.
3421         (__strspn_c2): Likewise.
3422         (__strspn_c3): Likewise.
3423         * string/string-inlines.c
3424         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3425         compatibility symbol.
3426         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3427         Likewise.
3428         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3429         Likewise.
3430         * string/string-inlines.c: Include generic version.
3431
3432 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3433             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3434
3435         * string/Version (libc): Add GLIBC_2.24.
3436         * string/strcspn.c (strcspn): Rewrite function.
3437         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3438         (__strcspn_c1): Remove inline function.
3439         (__strcspn_c2): Likewise.
3440         (__strcspn_c3): Likewise.
3441         * string/string-inline.c
3442         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3443         compatibility symbol.
3444         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3445         Likewise.
3446         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3447         Likewise.
3448         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3449
3450 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3451
3452         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3453         Use ahi instead of aghi to adjust stack pointer.
3454
3455 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3456
3457         [BZ #19853]
3458         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3459         TEST to take significant digits as second parameter.
3460         [TEST]: Redefine in terms of TEST_N taking 30
3461         significant digits.
3462         (do_test): Add test case to demonstrate precision
3463         failure in the ldbl-128ibm printf.
3464         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3465         (__mpn_extract_long_double): Carry 7 extra intermediate
3466         bits of precision to aide computing difference when
3467         signs differ.
3468
3469 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3470
3471         [BZ #19881]
3472         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3473         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3474         memset-avx512-unaligned-erms.
3475         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3476         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3477         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3478         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3479         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3480         __memset_sse2_unaligned_erms, __memset_erms,
3481         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3482         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3483         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3484         file.
3485         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3486         Likewise.
3487         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3488         Likewise.
3489         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3490         Likewise.
3491
3492 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3493
3494         [BZ #19776]
3495         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3496         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3497         memmove-avx512-unaligned-erms.
3498         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3499         (__libc_ifunc_impl_list): Test
3500         __memmove_chk_avx512_unaligned_2,
3501         __memmove_chk_avx512_unaligned_erms,
3502         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3503         __memmove_chk_sse2_unaligned_2,
3504         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3505         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3506         __memmove_avx512_unaligned_erms, __memmove_erms,
3507         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3508         __memcpy_chk_avx512_unaligned_2,
3509         __memcpy_chk_avx512_unaligned_erms,
3510         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3511         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3512         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3513         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3514         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3515         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3516         __mempcpy_chk_avx512_unaligned_erms,
3517         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3518         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3519         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3520         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3521         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3522         __mempcpy_erms.
3523         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3524         file.
3525         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3526         Likwise.
3527         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3528         Likwise.
3529         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3530         Likwise.
3531
3532 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3533
3534         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3535         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3536         (La_s390_64_regs): Likewise.
3537         (La_s390_32_retval): Append vector register lrv_v24.
3538         (La_s390_64_retval): Likeweise.
3539         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3540         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3541         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3542         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3543
3544 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3545
3546         [BZ #19916]
3547         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3548         to create a non-vector/vector version for _dl_runtime_resolve and
3549         _dl_runtime_profile. Move implementation to ...
3550         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3551         (_dl_runtime_resolve) Save and restore fpr/vrs.
3552         (_dl_runtime_profile) Save and restore vrs and fix some issues
3553         if _dl_call_pltexit is called.
3554         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3555         Choose the correct resolver function if running on a machine with vx.
3556         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3557         to create a non-vector/vector version for _dl_runtime_resolve and
3558         _dl_runtime_profile. Move implementation to ...
3559         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3560         (_dl_runtime_resolve) Save and restore fpr/vrs.
3561         (_dl_runtime_profile) Save and restore vrs and fix some issues
3562         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3563         Choose the correct resolver function if running on a machine with vx.
3564
3565 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3566
3567         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3568
3569 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3570
3571         [BZ #19509]
3572         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3573         skip_map != NULL.
3574         * elf/tst-dlsym-error.c: New file.
3575         * elf/Makefile (tests): Add tst-dlsym-error.
3576         (tst-dlsym-error): Link against libdl.
3577
3578 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3579
3580         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3581         (__ASSUME_FUTIMESAT): Remove macro.
3582         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3583
3584 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3585
3586         [BZ #19879]
3587         CVE-2016-3075
3588         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3589         copy name.
3590
3591 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3592
3593         [BZ #19837]
3594         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3595         error if parse_line fails.
3596
3597 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3598
3599         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3600         (index_cpu_ERMS): Likewise.
3601         (reg_ERMS): Likewise.
3602
3603 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3604
3605         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3606         PER_LINUX_FDPIC): Add.
3607
3608 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3609
3610         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3611         memcpy-avx512-no-vzeroupper.
3612         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3613         to ...
3614         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3615         (MEMCPY): Don't define.
3616         (MEMCPY_CHK): Likewise.
3617         (MEMPCPY): Likewise.
3618         (MEMPCPY_CHK): Likewise.
3619         (MEMPCPY_CHK): Renamed to ...
3620         (__mempcpy_chk_avx512_no_vzeroupper): This.
3621         (MEMPCPY_CHK): Renamed to ...
3622         (__mempcpy_chk_avx512_no_vzeroupper): This.
3623         (MEMCPY_CHK): Renamed to ...
3624         (__memmove_chk_avx512_no_vzeroupper): This.
3625         (MEMCPY): Renamed to ...
3626         (__memmove_avx512_no_vzeroupper): This.
3627         (__memcpy_avx512_no_vzeroupper): New alias.
3628         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3629
3630 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3631
3632         [BZ #18858]
3633         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3634         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3635         and mempcpy-avx512-no-vzeroupper.
3636         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3637         New.
3638         (MEMPCPY): Likewise.
3639         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3640         (MEMPCPY_CHK): New.
3641         (MEMPCPY): Likewise.
3642         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3643         (MEMPCPY): Likewise.
3644         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3645         (MEMPCPY): Likewise.
3646         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3647         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3648         Likewise.
3649         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3650         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3651
3652 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3653              Amit Pawar  <Amit.Pawar@amd.com>
3654
3655         [BZ #19583]
3656         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3657         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3658         processors.  Set Fast_Copy_Backward for AMD Excavator
3659         processors.
3660         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3661         New.
3662         (index_arch_Fast_Unaligned_Copy): Likewise.
3663         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3664         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3665
3666 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3667
3668         [BZ #19791]
3669         * resolv/res_send.c (close_and_return_error): New function.
3670         (send_dg): Initialize *resplen2 after reopen failure.  Call
3671         close_and_return_error for error returns.  On error paths without
3672         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3673         successful return.
3674
3675 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3676
3677         [BZ# 19860]
3678         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3679         zero if the compiler does not provide the AVX512F bit.
3680
3681 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3682
3683         [BZ #19848]
3684         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3685         from 8 to 4.
3686         (__ieee754_powl): Compare integer exponent against 4 not 8.
3687         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3688         from 8 to 4.
3689         (__ieee754_powl): Compare integer exponent against 4 not 8.
3690         * math/auto-libm-test-in: Add more tests of pow.
3691         * math/auto-libm-test-out: Regenerated.
3692         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3694
3695 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3696
3697         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3698         Make code unconditional.
3699         [!__NR_utimensat]: Remove conditional code.
3700         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3701         Make code unconditional.
3702         [!__NR_utimensat]: Remove conditional code.
3703         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3704         Make code unconditional.
3705         [!__NR_utimensat]: Remove conditional code.
3706
3707 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3708
3709         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3710         Make code unconditional.
3711
3712 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3713
3714         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3715         call-clobbered %eax on retry path.
3716         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3717
3718 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3719
3720         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3721         Don't set %rcx twice before "rep movsb".
3722
3723 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3724
3725         [BZ #19583]
3726         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3727         inline.  Check family before setting family, model and
3728         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3729         bits here.
3730         (init_cpu_features): Replace HAS_CPU_FEATURE and
3731         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3732         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3733         for Intel processors with usable AVX2.  Call get_common_indeces
3734         for other processors with family == NULL.
3735         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3736         (CPU_FEATURES_ARCH_P): Likewise.
3737         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3738         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3739
3740 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3741
3742         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3743         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3744         $(shared-thread-library) instead of hardcoding the path to libpthread.
3745
3746 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3747
3748         * sysdeps/unix/sysv/linux/kernel-features.h
3749         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3750         * sysdeps/unix/sysv/linux/getdents.c
3751         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3752         [!have_no_getdents64_defined]: Likewise.
3753         (__GETDENTS): Remove __have_no_getdents64 conditional.
3754
3755 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3756
3757         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3758         Remove macro.
3759         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3760         <kernel-features.h>.
3761         (signalfd) [__NR_signalfd4]: Make code unconditional.
3762         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3763
3764 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3765
3766         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3767         style.
3768
3769 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3770
3771         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3772         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3773         __pthread_unwind.
3774         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3775         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
3776         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
3777         (__condvar_cleanup1): Likewise.
3778
3779 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
3780
3781         [BZ #19822]
3782         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
3783         move it to the final $@ location.
3784
3785 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3786
3787         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
3788         access where posix_spawn success and pid argument is null.
3789         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
3790         success case.
3791
3792 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
3793
3794         * sysdeps/mach/hurd/i386/c++-types.data: New file.
3795
3796         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
3797
3798         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
3799         and __fcntl.
3800         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
3801         __fcntl only.
3802         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
3803         adding attribute_hidden to __open and __fcntl.
3804
3805         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
3806         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
3807         depend on libc-modules.h,
3808         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
3809
3810 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
3811
3812         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
3813         Remove macro.
3814         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
3815         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
3816         entry.
3817
3818         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
3819         Remove macro.
3820         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
3821         include <kernel-features.h>.
3822         [!__ASSUME_FALLOCATE]: Remove conditional code.
3823         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
3824
3825 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3826
3827         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
3828         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
3829         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
3830         (_ZGVdN4v_cos_avx2): Likewise.
3831         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
3832         (_ZGVdN4v_cos): Likewise.
3833         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
3834         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
3835         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
3836         (_ZGVdN4v_exp_avx2): Likewise.
3837         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
3838         (_ZGVdN4v_exp): Likewise.
3839         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
3840         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
3841         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
3842         (_ZGVdN4v_log_avx2): Likewise.
3843         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
3844         (_ZGVdN4v_log): Likewise.
3845         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
3846         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
3847         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
3848         (_ZGVdN4vv_pow_avx2): Likewise.
3849         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
3850         (_ZGVdN4vv_pow): Likewise.
3851         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
3852         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
3853         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
3854         (_ZGVdN4v_sin_avx2): Likewise.
3855         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
3856         (_ZGVdN4v_sin): Likewise.
3857         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
3858         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
3859         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
3860         (_ZGVdN4vvv_sincos_avx2): Likewise.
3861         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
3862         (_ZGVdN4vvv_sincos): Likewise.
3863         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
3864         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
3865         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
3866         (_ZGVbN4v_cosf_sse4): Likewise.
3867         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
3868         (_ZGVdN8v_cosf_avx2): Likewise.
3869         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
3870         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
3871         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
3872         (_ZGVbN4v_expf_sse4): Likewise.
3873         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
3874         (_ZGVdN8v_expf_avx2): Likewise.
3875         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
3876         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
3877         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
3878         (_ZGVbN4v_logf_sse4): Likewise.
3879         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
3880         (_ZGVdN8v_logf_avx2): Likewise.
3881         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
3882         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
3883         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
3884         (_ZGVbN4vv_powf_sse4): Likewise.
3885         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
3886         (_ZGVdN8vv_powf_avx2): Likewise.
3887         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
3888         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
3889         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
3890         (_ZGVbN4vvv_sincosf_sse4): Likewise.
3891         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
3892         (_ZGVdN8vvv_sincosf_avx2): Likewise.
3893         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
3894         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
3895         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
3896         (_ZGVbN4v_sinf_sse4): Likewise.
3897         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
3898         (_ZGVdN8v_sinf_avx2): Likewise.
3899         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3900         Use JUMPTARGET to call callee.
3901         (WRAPPER_IMPL_SSE2_ff): Likewise.
3902         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3903         (WRAPPER_IMPL_AVX): Likewise.
3904         (WRAPPER_IMPL_AVX_ff): Likewise.
3905         (WRAPPER_IMPL_AVX_fFF): Likewise.
3906         (WRAPPER_IMPL_AVX512): Likewise.
3907         (WRAPPER_IMPL_AVX512_ff): Likewise.
3908         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3909         Likewise.
3910         (WRAPPER_IMPL_SSE2_ff): Likewise.
3911         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3912         (WRAPPER_IMPL_AVX): Likewise.
3913         (WRAPPER_IMPL_AVX_ff): Likewise.
3914         (WRAPPER_IMPL_AVX_fFF): Likewise.
3915         (WRAPPER_IMPL_AVX512): Likewise.
3916         (WRAPPER_IMPL_AVX512_ff): Likewise.
3917         (WRAPPER_IMPL_AVX512_fFF): Likewise.
3918
3919 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3920
3921         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
3922         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
3923         qualifier.
3924         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
3925         internal_function qualifiers.
3926
3927 2016-03-15  Carlos O'Donell <carlos@redhat.com>
3928
3929         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
3930         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
3931         * math/atest-exp.c (exp_mpn): Mark chk unused.
3932         * math/atest-exp2.c (exp_mpn): Likwise.
3933         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
3934         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
3935
3936 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
3937
3938         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
3939         Remove macro.
3940         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
3941         <kernel-features.h>.
3942         [__NR_ppoll]: Make code unconditional.
3943         [!__ASSUME_PPOLL]: Remove conditional code.
3944
3945         * sysdeps/unix/sysv/linux/kernel-features.h
3946         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
3947         (__ASSUME_ACCEPT4): Likewise.
3948         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3949         Define.
3950         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
3951         Likewise.
3952         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3953         Likewise.
3954         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
3955         Likewise.
3956         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
3957         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
3958         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3959         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3960         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3961         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3962         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3963         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3964         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3965         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3966         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3967         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3968         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3969         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3970         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3971         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3972         Likewise.
3973         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3974         Likewise.
3975         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3976         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3977         0x040300].
3978         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3979         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3980         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3981         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3982         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3983         0x030300].
3984         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
3985         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3986         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3987         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3988         0x040300].
3989         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3990         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3991         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3992         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3993         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3994         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3995         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3996         0x030300].
3997         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3998         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3999         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4000         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4001         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4002         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4003         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4004         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4005         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4006         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4007         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4008         0x040300].
4009         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4010         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4011         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4012         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4013         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4014         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4015         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4016         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4017         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4018         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4019         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4020         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4021         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4022         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4023         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4024         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4025         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4026         Likewise.
4027         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4028         Likewise.
4029
4030 2016-03-15  Andreas Schwab  <schwab@suse.de>
4031
4032         [BZ #19257]
4033         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4034         statp->_u._ext.nscount as loop count.
4035
4036 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4037
4038         * math/test-signgam-finite-c99.c: Also #undef
4039         __LIBC_INTERNAL_MATH_INLINES.
4040         * math/test-signgam-main.c: Likewise.
4041
4042 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4043
4044         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4045         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4046         (MADV_FREE): Likewise.
4047         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4048         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4049         EPOLLEXCLUSIVE.
4050
4051 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4052
4053         * timezone/README: Remove mention of checktab.awk. Mention wiki
4054         SharedSourceFiles.
4055
4056 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4057
4058         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4059         WUNTRACED.
4060
4061 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4062
4063         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4064         order to match the type of p when calling atomic_exchange_acq().
4065
4066 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4067
4068         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4069         cfi_offset calls.
4070         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4071         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4072         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4073         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4074         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4075
4076 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4077
4078         * timezone/checktab.awk: Removed.
4079
4080 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4081
4082         * manual/math.texi (Errors in Math Functions): Document relaxed
4083         accuracy goals for IBM long double.
4084         * math/libm-test.inc (test_exceptions): Always allow spurious
4085         "underflow" and "inexact" exceptions for IBM long double.
4086
4087 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4088
4089         [BZ #19762]
4090         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4091         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4092         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4093         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4094         (bit_arch_*): This for feature array.
4095         (bit_*): Renamed to ...
4096         (bit_cpu_*): This for cpu array.
4097         (index_*): Renamed to ...
4098         (index_arch_*): This for feature array.
4099         (index_*): Renamed to ...
4100         (index_cpu_*): This for cpu array.
4101         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4102         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4103         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4104         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4105         bit_##name with index_cpu_##name and bit_cpu_##name.
4106         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4107         bit_##name with index_arch_##name and bit_arch_##name.
4108
4109 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4110
4111         [BZ #19792]
4112         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4113         Terminate FDE before return label.
4114
4115 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4116
4117         [BZ #19790]
4118         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4119         (rintl): Define as macro.
4120         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4121         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4122         of fesetround.  Ensure results are evaluated before end of scope.
4123         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4124         USE_AS_NEARBYINTL and include s_rintl.c.
4125         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4126         Disable exception traps in new environment.
4127         (libc_feholdsetround_ppc_ctx): Likewise.
4128
4129 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4130
4131         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4132         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4133         (tst_audit10_aux) [__AVX512F__]: ... here.
4134
4135 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4136
4137         * include/sys/auxv.h: New file.
4138
4139 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4140
4141         [BZ #19759]
4142         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4143
4144 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4145
4146         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4147         operand modifier.
4148         (feclearexcept): Likewise.
4149
4150 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4151
4152         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4153         to reflect the entire 32-bit HWCAP.
4154         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4155         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4156
4157 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4158
4159         [BZ #19783]
4160         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4161         $(test-via-rtld-prefix).
4162         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4163
4164 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4165
4166         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4167         union wait.  Report any non-zero exit status as error.
4168
4169 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4170
4171         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4172         configured with --enable-hardcoded-path-in-tests.
4173
4174 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4175
4176         [BZ #19677]
4177         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4178         (__ieee754_remainderl): Put zero low parts in canonical form.
4179         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4180         file.  Based on
4181         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4182         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4183         with wrapper round test-fmodrem-ldbl-128ibm.c.
4184         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4185         file.
4186         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4187         Likewise.
4188         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4189         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4190
4191 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4192
4193         [BZ #19610]
4194         * elf/ldconfig.c (opt_link): Update comment.
4195         (options): Update help string for option -X.
4196         (search_dir): Unlink stale symbolic link only if updating symbolic
4197         links.
4198         * elf/tst-ldconfig-X.sh: New file.
4199         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4200         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4201
4202 2016-03-07  Andreas Schwab  <schwab@suse.de>
4203
4204         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4205         needed arguments.
4206
4207 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4208
4209         [BZ #15333]
4210         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4211         to lstat64.
4212
4213 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4214
4215         * libio/filedoalloc.c (isatty): Remove.
4216         (local_isatty): Add comment.  Call __isatty directly.
4217         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4218         * libio/wfiledoalloc.c (isatty): Remove.
4219         (_IO_wfile_doallocate): Update comment.
4220
4221 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4222
4223         [BZ #19269]
4224         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4225         tst-audit4-aux.o.
4226         (tst-audit10): Depend on tst-audit10-aux.o.
4227         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4228         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4229         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4230         instead of inline AVX code.
4231         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4232         instead of inline AVX512 code.
4233         * sysdeps/x86_64/tst-audit4-aux.c: New file
4234         * sysdeps/x86_64/tst-audit10-aux.c: New file
4235
4236         [BZ #19648]
4237         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4238
4239 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4240
4241         [BZ #14750]
4242         [BZ #10354]
4243         [BZ #18433]
4244         * include/sched.h (__clone): Add hidden prototype.
4245         (__clone2): Likewise.
4246         * include/unistd.h (__dup): Likewise.
4247         * posix/Makefile (tests): Add tst-spawn2.
4248         * posix/tst-spawn2.c: New file.
4249         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4250         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4251         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4252         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4253         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4254         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4255         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4256         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4257         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4258         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4259         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4261         Likewise.
4262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4263         Likewise.
4264         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4265         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4266         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4267         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4268         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4269         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4270         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4271         * sysdeps/unix/sysv/linux/nptl-signals.h
4272         (____nptl_is_internal_signal): New function.
4273         * sysdeps/unix/sysv/linux/spawni.c: New file.
4274
4275         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4276         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4277         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4278         * posix/tst-execvp2.c (do_test): Likewise.
4279         * posix/tst-execvp3.c (do_test): Likewise.
4280         * posix/tst-execvp4.c (do_test): Likewise.
4281         * posix/tst-execvpe1.c: New file.
4282         * posix/tst-execvpe2.c: Likewise.
4283         * posix/tst-execvpe3.c: Likewise.
4284         * posix/tst-execvpe4.c: Likewise.
4285         * posix/tst-execvpe5.c: Likewise.
4286         * posix/tst-execvpe6.c: Likewise.
4287
4288         [BZ #19534]
4289         * posix/execl.c (execl): Remove dynamic memory allocation.
4290         * posix/execle.c (execle): Likewise.
4291         * posix/execlp.c (execlp): Likewise.
4292
4293 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4294
4295         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4296         Replace .text with .text.avx512.
4297         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4298         Likewise.
4299
4300 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4301
4302         * sysdeps/generic/libnsl.abilist: New file.
4303         * sysdeps/generic/libutil.abilist: New file.
4304
4305 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4306
4307         [BZ #19762]
4308         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4309         HAS_ARCH_FEATURE with Fast_Rep_String.
4310         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4311         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4312         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4313         Likewise.
4314         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4315         Likewise.
4316         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4317         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4318         Likewise.
4319         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4320         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4321         Likewise.
4322
4323 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4324
4325         [BZ #19745]
4326         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4327         with *%rax in call.
4328
4329 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4330
4331         [BZ #19745]
4332         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4333         with *__libc_start_main@GOTPCREL(%rip) in call.
4334
4335 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4336
4337         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4338         inside conditional for nonempty $(CXX).
4339
4340         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4341         nonempty.
4342
4343         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4344         to test for empty $(CXX) rather than $(CXX) of "no".
4345
4346 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4347
4348         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4349
4350 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4351             H.J. Lu  <hongjiu.lu@intel.com>
4352
4353         [BZ #18880]
4354         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4355         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4356         enable __memcpy_ssse3_back.
4357
4358 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4359
4360         [BZ #19758]
4361         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4362         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4363
4364 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4365
4366         [BZ #19490]
4367         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4368         (__fentry__): Likewise.
4369
4370 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4371
4372         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4373         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4374
4375 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4376
4377         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4378         __mcount_internal directly.
4379         (C_LABEL(__fentry__)): Likewise.
4380         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4381         directly.
4382
4383 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4384
4385         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4386         (__start_context): Call __setcontext directly.
4387
4388 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4389
4390         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4391         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4392         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4393         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4394         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4395         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4396         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4397         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4398         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4399         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4400         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4401         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4402         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4403         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4404         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4405         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4406         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4407         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4408         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4409         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4410         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4411         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4412         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4413         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4414         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4415         Remove conditional code.
4416         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4417         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4418         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4419         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4420         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4421         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4422         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4423         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4424         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4425         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4426         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4427         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4428
4429 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4430
4431         * NEWS (2.23): Fix typo in bug 19048 text.
4432
4433 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4434
4435         [BZ #14259]
4436         * Makeconfig: Rename msgcatdir to localedir.
4437         Rename inst_msgcatdir to inst_localedir.
4438         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4439         * config.make.in: Add localedir.
4440         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4441         (ldd-rewrite): Likewise.
4442         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4443         (install-others): Use inst_localedir.
4444         (CPPFLAGS): Use localedir.
4445         * locale/Makefile (locale-CPPFLAGS): Likewise.
4446         * po/Makefile (mo-installed): Use inst_localedir.
4447
4448         [BZ #19575]
4449         * localedata/charmaps/GB18030: Update comments regarding PAU to
4450         non-PUA mappings.
4451
4452 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4453
4454         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4455         test for header.
4456         * sysdeps/unix/sysv/linux/configure: Regenerated.
4457         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4458         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4459         Remove conditional code.
4460         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4461
4462         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4463         Define to 3.2.0.
4464         (arch_minimum_kernel): Likewise.
4465         * sysdeps/unix/sysv/linux/configure: Regenerated.
4466         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4467         Define to 2.6.32.
4468         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4469         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4470         (arch_minimum_kernel): Define to 2.6.32.
4471         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4472         * README: Document Linux 3.2 requirement.
4473         * manual/install.texi (Linux): Document Linux 3.2 headers
4474         requirement.
4475         * INSTALL: Regenerated.
4476
4477 2016-02-24  Andreas Schwab  <schwab@suse.de>
4478
4479         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4480         if !NO_LONG_DOUBLE.
4481
4482 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4483
4484         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4485         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4486
4487 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4488
4489         [BZ #19512]
4490         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4491
4492 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4493
4494         * posix/tst-dir.c: Include libc-internal.h.
4495
4496 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4497
4498         [BZ #19056]
4499         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4500         * manual/filesys.texi (Reading/Closing Directory): Mention
4501         deprecaion.
4502         * posix/tst-dir.c (main): Disable deprecation warning in test.
4503
4504 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4505
4506         [BZ #19679]
4507         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4508         Renamed to ...
4509         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4510         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4511         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4512         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4513         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4514         * sysdeps/x86_64/dl-trampoline.h
4515         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4516         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4517
4518 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4519
4520         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4521
4522 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4523
4524         * elf/elf.h (R_386_GOT32X): New.
4525         (R_386_NUM): Update.
4526         (R_X86_64_GOTPCRELX: New.
4527         (R_X86_64_REX_GOTPCRELX): New.
4528         (R_X86_64_NUM): Update.
4529
4530 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4531
4532         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4533
4534 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4535
4536         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4537         assign attr->stackaddr to it, and adjust it down when
4538         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4539         [_STACK_GROWS_UP]: Delete assert.
4540         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4541         Implement stack grows up logic.
4542         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4543         stack grows up logic.
4544
4545 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4546
4547         * NEWS: Update with 2.24 template.
4548
4549 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4550
4551         [BZ #19678]
4552         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4553         Ensure +0.0 is returned when taking the next value below the least
4554         positive value.
4555
4556 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4557
4558         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4559         available.  Do not define NO_THREADS.
4560         * malloc/malloc.c: Do not check NO_THREADS.
4561         * malloc/arena.c: Likewise.
4562
4563 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4564
4565         * malloc/malloc.c (__libc_mallinfo): Update comment.
4566         (struct malloc_par): Remove max_total_mem member, it was always 0.
4567         (int_mallinfo): Store 0 into usmblks (no functional change).
4568         * malloc/hooks.c (struct malloc_state): Document that
4569         max_total_mem is always 0.
4570         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4571         always 0.
4572         * manual/memory.texi (Statistics of Malloc): Likewise.
4573
4574 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4575
4576         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4577         * malloc/arena.c (arena_max): Remove.
4578         (heap_trim, _int_new_arena): Do not update arena_max.
4579
4580 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4581
4582         * resolv/res_init.c (res_ninit): Update comment.
4583
4584 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4585
4586         [BZ #19505]
4587         * posix/spawn_int.h: Add headers and include guard.
4588         (__spawn_valid_fd): New function.
4589         * posix/spawn_faction_addopen.c
4590         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4591         * posix/spawn_faction_addclose.c
4592         (posix_spawn_file_actions_addclose): Likewise.
4593         * posix/spawn_faction_adddup2.c
4594         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4595         second file descriptor.
4596         * posix/spawn_valid_fd.c: New file.
4597         * posix/tst-posix_spawn-fd.c: New file.
4598         * posix/Makefile (routines): Add spawn_valid_fd.
4599         (tests): Add tst-posix_spawn-fd.
4600
4601 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4602
4603         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4604         (do_test): Limit the number of arenas, so that we can use fewer
4605         outer threads.  Limit timeout to 3 seconds, in preparation for a
4606         larger TIMEOUT value.
4607
4608 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4609
4610         [BZ #19674]
4611         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4612         sign in overflowing and underflowing results when overflow or
4613         underflow is detected early.  Include sign in result before rather
4614         than after scaling.
4615
4616         [BZ #19603]
4617         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4618         (__ieee754_remainderl): Adjust sign of integer version of low part
4619         when taking absolute value of high part.
4620         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4621         * math/libm-test.inc (remainder_test_data): Add another test.
4622         (remquo_test_data): Likewise.
4623
4624 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4625
4626         [BZ #19602]
4627         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4628         equal high parts and both low parts zero specially.
4629         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4630         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4631         Add test-fmodl-ldbl-128ibm.
4632
4633         [BZ #19595]
4634         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4635         common logic for all cases of shifting subnormal results.  Do not
4636         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4637         exponent to ldbl_insert_mantissa in subnormal case.
4638
4639         [BZ #19594]
4640         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4641         on high and low parts then adjust result and use
4642         ldbl_canonicalize_int if needed.
4643
4644         [BZ #19593]
4645         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4646         on high part and __floor or __ceil on low part then use
4647         ldbl_canonicalize_int if needed.
4648
4649         [BZ #19592]
4650         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4651         high and low parts then use ldbl_canonicalize_int if needed.
4652
4653         [BZ #17899]
4654         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4655         New function.
4656         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4657         on high and low parts then use ldbl_canonicalize_int if needed.
4658
4659 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4660
4661         * configure: Regenerated.
4662
4663         * po/libc.pot: Regenerated.
4664
4665         * po/be.po: Updated translation.
4666         * po/bg.po: Likewise.
4667         * po/ca.po: Likewise.
4668         * po/cs.po: Likewise.
4669         * po/da.po: Likewise.
4670         * po/el.po: Likewise.
4671         * po/eo.po: Likewise.
4672         * po/es.po: Likewise.
4673         * po/fi.po: Likewise.
4674         * po/fr.po: Likewise.
4675         * po/gl.po: Likewise.
4676         * po/hr.po: Likewise.
4677         * po/hu.po: Likewise.
4678         * po/ia.po: Likewise.
4679         * po/id.po: Likewise.
4680         * po/it.po: Likewise.
4681         * po/ja.po: Likewise.
4682         * po/lt.po: Likewise.
4683         * po/nb.po: Likewise.
4684         * po/nl.po: Likewise.
4685         * po/pt_BR.po: Likewise.
4686         * po/rw.po: Likewise.
4687         * po/sk.po: Likewise.
4688         * po/sl.po: Likewise.
4689         * po/sv.po: Likewise.
4690         * po/tr.po: Likewise.
4691         * po/zh_CN.po: Likewise.
4692         * po/zh_TW.po: Likewise.
4693
4694         * version.h (RELEAES): Set to "development".
4695         (VERSION): Set to 2.23.90.
4696
4697         * version.h (RELEASE): Set to "stable".
4698         (VERSION): Set to 2.23.
4699         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4700
4701         * NEWS: Updated fixed bugs.
4702
4703 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4704             Wilco Dijkstra  <wdijkstr@arm.com>
4705
4706         [BZ #19462]
4707         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4708         (_STRING_INLINE_unaligned): This.
4709         * include/string.h: Include <string_private.h>.
4710         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4711         _STRING_INLINE_unaligned.
4712         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4713         (_STRING_INLINE_unaligned): New.
4714         * sysdeps/aarch64/string_private.h: New file.
4715         * sysdeps/generic/string_private.h: Likewise.
4716         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4717         * sysdeps/s390/string_private.h: Likewise.
4718         * sysdeps/x86/string_private.h: Likewise.
4719         * sysdeps/m68k/m680x0/m68020/bits/string.h
4720         (_STRING_ARCH_unaligned): Renamed to ...
4721         (_STRING_INLINE_unaligned): This.
4722         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4723         to ...
4724         (_STRING_INLINE_unaligned): This.
4725         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4726         to ...
4727         (_STRING_INLINE_unaligned): This.
4728         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4729         to ...
4730         (_STRING_INLINE_unaligned): This.
4731
4732 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4733             H.J. Lu  <hongjiu.lu@intel.com>
4734
4735         [BZ #19590]
4736         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4737         relocation.
4738
4739 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4740
4741         [BZ #18665]
4742         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4743         *herrno_p.
4744         (gaih_getanswer): Document functional behviour. Return tryagain
4745         if any result is tryagain.
4746         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4747         when freed.
4748         * resolv/res_send.c: Add copyright text.
4749         (__libc_res_nsend): Document that MAXPACKET is expected.
4750         (send_vc): Document. Remove buffer reuse.
4751         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4752         size of the buffer. Add Dprint for truncated UDP buffer.
4753
4754 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4755
4756         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4757         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4758         * INSTALL: Regenerate.
4759
4760 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4761             Jonathan Wakely  <jwakely@redhat.com>
4762             Carlos O'Donell  <carlos@redhat.com>
4763
4764         [BZ 19439]
4765         * math/Makefile (tests): Add test-math-isinff.
4766         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4767         * math/bits/mathcalls.h [__USE_MISC]: Use
4768         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4769         functions not in C++11 and which don't conflict e.g. isinff,
4770         isinfl etc.
4771         * math/test-math-isinff.cc: New file.
4772
4773 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4774
4775         * misc/bug18240.c (do_test): Set RLIMIT_AS.
4776
4777 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4778
4779         [BZ #19529]
4780         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
4781
4782 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4783
4784         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4785
4786 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
4787
4788         [BZ #19550]
4789         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
4790         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
4791         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
4792         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
4793         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
4794         New syscall entry.
4795         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
4796         New syscall entry.
4797         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
4798         syscall entry.
4799
4800 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4801
4802         [BZ #18240]
4803         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
4804         unsigned int wraparound.
4805
4806 2016-01-27  Florian Weimer  <fweimer@redhat.com>
4807
4808         [BZ #18240]
4809         * misc/bug18240.c: New test.
4810         * misc/Makefile (tests): Add it.
4811
4812 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4813             Joseph Myers  <joseph@codesourcery.com>
4814
4815         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
4816         load in branch delay slot when less than a word of input left.
4817
4818 2016-01-27  Andreas Schwab  <schwab@suse.de>
4819
4820         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
4821         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
4822         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
4823         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
4824
4825 2016-01-26  David S. Miller  <davem@davemloft.net>
4826
4827         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
4828
4829 2016-01-25  David S. Miller  <davem@davemloft.net>
4830
4831         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
4832         __sqrtl_finite.
4833         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
4834         instead using versioned_symbol.
4835         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
4836         of entries.
4837
4838         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
4839         __sqrtl_finite to GLIBC_2.23
4840
4841 2016-01-25  Ricchard Henderson  <rth@redhat.com>
4842
4843         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4844
4845 2016-01-25  Andreas Schwab  <schwab@suse.de>
4846
4847         [BZ #17514]
4848         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
4849         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
4850         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
4851         * nptl/tst-mutex-errorcheck.c: New file.
4852
4853 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4854
4855         [BZ #18560]
4856         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
4857         (IPCOP_semop): Likewise.
4858         (IPCOP_semget): Likewise.
4859         (IPCOP_semctl): Likewise.
4860         (IPCOP_msgsnd): Likewise.
4861         (IPCOP_msgrcv): Likewise.
4862         (IPCOP_msgget): Likewise.
4863         (IPCOP_msgctl): Likewise.
4864         (IPCOP_shmat): Likewise.
4865         (IPCOP_shmdt): Likewise.
4866         (IPCOP_shmget): Likewise.
4867         (IPCOP_shmctl): Likewise.
4868
4869 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4870
4871         * string/tst-endian.c: Include <libc-internal.h>.
4872         (do_test): Ignore tautological-compare warnings around
4873         "htobeXX (beXXtoh (i)) != i" and
4874         "htoleXX (leXXtoh (i)) != i" if-statements.
4875
4876 2016-01-24  David S. Miller  <davem@davemloft.net>
4877
4878         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
4879         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
4880         alias.
4881         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4882         __sqrtl_finite.
4883
4884         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4885
4886 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
4887
4888         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
4889         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
4890         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4891
4892 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4893
4894         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
4895         (thread_func): Use new function to simplify barrier check.
4896         (do_test): Use new function to simplify checking barrier exit
4897         code, and actually join the child thread.
4898
4899 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4900
4901         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
4902         semicolon.
4903         (__libc_tend): Likewise.
4904         (__libc_tabort): Likewise.
4905
4906 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
4907
4908         * sysdeps/nios2/libm-test-ulps: Update.
4909         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
4910         (__gtsf2): Likewise.
4911         (__unorddf2): Likewise.
4912         (__unordsf2): Likewise.
4913         (__ledf2): Likewise.
4914
4915 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
4916
4917         * nis/nis_table.c (__follow_path): Disable diagnostic for
4918         uninitialized variable that is a false positive for gcc 4.7.
4919         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
4920
4921 2016-01-20  Roland McGrath  <roland@hack.frob.com>
4922
4923         * sysdeps/nacl/lowlevellock-futex.h
4924         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
4925         Always evaluate PRIVATE argument.
4926
4927 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4928
4929         [BZ #19490]
4930         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
4931         (pthread_cond_broadcast): Use ENTRY/END
4932         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
4933         (pthread_cond_signal): Likewise.
4934         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
4935         Likewise.
4936         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
4937         Likewise.
4938         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
4939         Likewise.
4940
4941 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
4942
4943         * sysdeps/ieee754/dbl-64/s_finite.c
4944         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
4945         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
4946         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
4947         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
4948         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
4949
4950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
4951         (__gtsf2): Add as optional for libc.so.
4952         (__unordsf2): Likewise.
4953         (__signbit): Remove for libc.so.
4954         (__signbitl): Likewise.
4955
4956 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
4957
4958         * iconvdata/bug-iconv11.c (test_ibm93x):
4959         Use %zu printf format specifier for size_t argument.
4960
4961 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
4962
4963         * math/gen-libm-test.pl (parse_ulps): Do not reduce
4964         already-recorded ulps.
4965         * sysdeps/arm/libm-test-ulps: Regenerated.
4966         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4967         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4968         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4969
4970 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
4971             Paul Pluzhnikov  <ppluzhnikov@google.com>
4972
4973         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
4974         assembler not supporting AVX-512.
4975
4976 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4977
4978         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4979
4980 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4981
4982         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
4983         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4984
4985         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
4986
4987         * sysdeps/arm/libm-test-ulps: Regenerated.
4988
4989 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
4990
4991         [BZ #19451]
4992         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
4993
4994 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
4995
4996         [BZ #19486]
4997         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
4998         * sysdeps/generic/fix-fp-int-convert-overflow.h
4999         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5000         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5001         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5002         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5003         Likewise.
5004         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5005         Avoid conversions to long int where inexact exceptions
5006         could be raised.
5007         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5008         Likewise.
5009         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5010         Avoid conversions to long long int where inexact exceptions
5011         could be raised.
5012         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5013         Likewise.
5014
5015 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5016
5017         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5018         * configure: Regenerated.
5019
5020 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5021
5022         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5023
5024 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5025
5026         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5027         outside of comment.
5028
5029 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5030
5031         * nptl/tst-barrier1.c: Add description on first line.
5032         * nptl/tst-barrier2.c: Likewise.
5033         * nptl/tst-barrier3.c: Likewise.
5034         * nptl/tst-barrier4.c: Likewise.
5035         * nptl/tst-barrier5.c: Likewise.
5036
5037 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5038
5039         [BZ #18868]
5040         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5041
5042 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5043
5044         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5045         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5046         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5047         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5048         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5049         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5050         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5051         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5052         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5053         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5054         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5055
5056 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5057
5058         [BZ #13065]
5059         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5060         new implementation.
5061         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5062         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5063         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5064         (BARRIER_IN_THRESHOLD): New macro.
5065         * nptl/pthread_barrierattr_setpshared.c
5066         (pthread_barrierattr_setpshared): Clean up.
5067         * nptl/tst-barrier4.c: Correct comment.
5068         * nptl/tst-barrier5.c: New file.
5069         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5070         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5071         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5072         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5073         * nptl/lowlevelbarrier.sym: Remove.
5074         * nptl/DESIGN-barrier.txt: Remove.
5075         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5076         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5077         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5078         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5079         error.
5080         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5081         implementation.
5082
5083 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5084
5085         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5086         (do_child): Mask SIGRTMIN while thr is running.
5087
5088 2016-01-15  Martin Sebor  <msebor@redhat.com>
5089
5090         [BZ #19432]
5091         * iconvdata/Makefile: Add bug-iconv11.
5092         * iconvdata/bug-iconv11.c: New test.
5093         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5094         * iconvdata/ibm933.c: Same.
5095         * iconvdata/ibm935.c: Same.
5096         * iconvdata/ibm937.c: Same.
5097         * iconvdata/ibm939.c: Same.
5098
5099 2016-01-15  Martin Sebor  <msebor@redhat.com>
5100
5101         [BZ #19443]
5102         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5103         [DEBUG] (_ufc_set_bits): Declare used.
5104         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5105         [DEBUG] (print_all): Declare used.
5106         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5107         operands of the ternary ?: expression to target type.
5108         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5109         calling the undeclared abort.
5110         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5111
5112 2016-01-15  Martin Sebor  <msebor@redhat.com>
5113
5114         [BZ #18755]
5115         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5116         warnings.
5117         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5118         (__gai_create_helper_thread): Same.
5119         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5120         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5121         to suppress -Wmaybe-uninitialized warnings.
5122
5123 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5124
5125         [BZ #19465]
5126         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5127         inside if.
5128         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5129         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5130         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5131
5132 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5133
5134         [BZ #19466]
5135         * time/tst-mktime2.c (time_t_max): Removed.
5136         (time_t_min): Likewise.
5137         (TYPE_SIGNED): New.
5138         (TYPE_MINIMUM): Likewise.
5139         (TYPE_MAXIMUM): Likewise.
5140         (TIME_T_MIN): Likewise.
5141         (TIME_T_MAX): Likewise.
5142         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5143         and TIME_T_MIN.
5144         (do_test): Likewise.
5145
5146 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5147
5148         [BZ #19467]
5149         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5150         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5151
5152 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5153
5154         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5155
5156 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5157
5158         * benchtests/Makefile (PYTHON): Define.
5159         (bench-func): Use $(PYTHON) to run python scripts.
5160         ($(objpfx)bench-%.c): Likewise.
5161
5162 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5163
5164         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5165         leading slash when `file_name' is "/".
5166
5167 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5168
5169         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5170         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5171         Likewise.
5172         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5173         Likewise.
5174         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5175         Likewise.
5176         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5177         enum constant and macro.
5178         (PTRACE_SETSIGMASK): Likewise.
5179         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5180         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5181         (PTRACE_GETSIGMASK): Likewise.
5182         (PTRACE_SETSIGMASK): Likewise.
5183         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5184         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5185         Likewise.
5186         (PTRACE_SETSIGMASK): Likewise.
5187         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5188         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5189         (PTRACE_GETSIGMASK): Likewise.
5190         (PTRACE_SETSIGMASK): Likewise.
5191         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5192         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5193         Likewise.
5194         (PTRACE_SETSIGMASK): Likewise.
5195         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5196         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5197         Likewise.
5198         (PTRACE_SETSIGMASK): Likewise.
5199         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5200         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5201         Likewise.
5202         (PTRACE_SETSIGMASK): Likewise.
5203         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5204
5205 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5206             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5207
5208         [BZ #19439]
5209         * math/bits/mathcalls.h
5210         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5211         prototype.
5212         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5213
5214 2016-01-11  Andreas Schwab  <schwab@suse.de>
5215
5216         [BZ #19253]
5217         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5218         cache when TZDEFRULES was used.
5219         * time/tst-tzname.c: New file.
5220         * time/Makefile (test): Add tst-tzname.
5221         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5222         * timezone/Makefile (test-zones): Add $(posixrules-file).
5223         ($(testdata)/$(posixrules-file)): New rule.
5224
5225 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5226
5227         Fix doc quoting problems with Texinfo 5
5228         Without this change, in the info file output, Texinfo 5 quotes code
5229         in text with undirected single quotes 'like this' and generates
5230         code examples that with many PDF readers cannot be cut out of PDFs
5231         and pasted into code.
5232         * manual/libc.texinfo: Configure the libc manual like the GNU
5233         Emacs manual, by using @documentencoding and setting
5234         txicodequoteundirected and txicodequotebacktick.  This way,
5235         Texinfo 5 quotes code in text with directed single quotes ‘like
5236         this’ and produces examples that can be cut out of PDFs.  This
5237         change causes Texinfo 5 to generate info files that contain UTF-8
5238         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5239         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5240
5241 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5242
5243         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5244         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5245         barriers to their respective compiler built-ins.
5246         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5247         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5248         * sysdeps/powerpc/sysdep.h: Likewise.
5249         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5250         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5251         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5252
5253 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5254
5255         * scripts/config.guess: Revert previous shebang change.
5256         * scripts/config.sub: Likewise.
5257         * scripts/mkinstalldirs: Likewise.
5258
5259 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5260
5261         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5262         PPC_FEATURE2_HAS_IEEE128.
5263         * sysdeps/powerpc/dl-procinfo.c:
5264         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5265
5266 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5267
5268         [BZ #19415]
5269         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5270         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5271         (_dl_lookup_address): Rewrite using function resolver trampoline.
5272         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5273         two bits in address.
5274
5275 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5276
5277         * longlong.h: Change !__SHMEDIA__ to
5278         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5279         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5280
5281 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5282             Joseph Myers  <joseph@codesourcery.com>
5283             Mark Shinwell  <shinwell@codesourcery.com>
5284             Andrew Stubbs  <ams@codesourcery.com>
5285             Rich Felker <dalias@libc.org>
5286
5287         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5288
5289 2016-01-07  Richard Henderson  <rth@redhat.com>
5290
5291         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5292
5293 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5294
5295         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5296         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5297         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5298         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5299         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5300
5301 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5302             Joseph Myers  <joseph@codesourcery.com>
5303
5304         * timezone/private.h: Update from tzcode 2015g.
5305         * timezone/tzfile.h: Likewise.
5306         * timezone/tzselect.ksh: Likewise.
5307         * timezone/zdump.c: Likewise.
5308         * timezone/zic.c: Likewise.
5309         * timezone/ialloc.c: Remove file.
5310         * timezone/scheck.c: Likewise.
5311         * timezone/Makefile (extra-objs): Remove variable.
5312         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5313         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5314         -Wno-maybe-uninitialized.
5315         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5316         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5317         (CFLAGS-ialloc.c): Remove variable.
5318         (CFLAGS-scheck.c): Likewise.
5319         * timezone/README: Update list of files from tzcode.
5320
5321 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5322
5323         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5324         instead of __fxprintf when _LIBC is undefined.
5325
5326 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5327
5328         * catgets/test-gencat.sh: Remove space after shebang.
5329         * conform/GlibcConform.pm: Likewise.
5330         * conform/check-header-lists.sh: Likewise.
5331         * conform/conformtest.pl: Likewise.
5332         * conform/linknamespace.pl: Likewise.
5333         * conform/list-header-symbols.pl: Likewise.
5334         * debug/catchsegv.sh: Likewise.
5335         * elf/genrtldtbl.awk: Likewise.
5336         * elf/tst-pathopt.sh: Likewise.
5337         * elf/tst-rtld-load-self.sh: Likewise.
5338         * grp/tst_fgetgrent.sh: Likewise.
5339         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5340         * iconvdata/gen-8bit-gap.sh: Likewise.
5341         * iconvdata/gen-8bit.sh: Likewise.
5342         * iconvdata/run-iconv-test.sh: Likewise.
5343         * intl/tst-gettext.sh: Likewise.
5344         * intl/tst-gettext2.sh: Likewise.
5345         * intl/tst-gettext4.sh: Likewise.
5346         * intl/tst-gettext6.sh: Likewise.
5347         * intl/tst-translit.sh: Likewise.
5348         * io/ftwtest-sh: Likewise.
5349         * libio/test-freopen.sh: Likewise.
5350         * locale/gen-translit.pl: Likewise.
5351         * malloc/tst-mtrace.sh: Likewise.
5352         * manual/check-safety.sh: Likewise.
5353         * manual/libc-texinfo.sh: Likewise.
5354         * manual/tsort.awk: Likewise.
5355         * manual/xtract-typefun.awk: Likewise.
5356         * nptl/tst-cancel-wrappers.sh: Likewise.
5357         * nptl/tst-tls6.sh: Likewise.
5358         * posix/globtest.sh: Likewise.
5359         * posix/tst-getconf.sh: Likewise.
5360         * posix/wordexp-tst.sh: Likewise.
5361         * scripts/check-c++-types.sh: Likewise.
5362         * scripts/check-local-headers.sh: Likewise.
5363         * scripts/config.guess: Likewise.
5364         * scripts/config.sub: Likewise.
5365         * scripts/cpp: Likewise.
5366         * scripts/cross-test-ssh.sh: Likewise.
5367         * scripts/documented.sh: Likewise.
5368         * scripts/evaluate-test.sh: Likewise.
5369         * scripts/gen-libc-abis: Likewise.
5370         * scripts/gen-sorted.awk: Likewise.
5371         * scripts/list-fixed-bugs.py: Likewise.
5372         * scripts/merge-test-results.sh: Likewise.
5373         * scripts/mkinstalldirs: Likewise.
5374         * scripts/rellns-sh: Likewise.
5375         * scripts/test-installation.pl: Likewise.
5376         * scripts/update-copyrights: Likewise.
5377         * stdio-common/tst-printf.sh: Likewise.
5378         * stdio-common/tst-unbputc.sh: Likewise.
5379         * stdlib/tst-fmtmsg.sh: Likewise.
5380         * stdlib/tst-setcontext3.sh: Likewise.
5381         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5382         * sysdeps/unix/make-syscalls.sh: Likewise.
5383
5384 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5385
5386         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5387         asm stw with atomic_exchange_rel.  Add explanatory comment.
5388         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5389         Likewise.
5390
5391 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5392
5393         [BZ #19122]
5394         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5395         * sysdeps/generic/dl-unistd.h: New file.
5396         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5397
5398 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5399
5400          [BZ #19122]
5401          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5402          * sysdeps/generic/dl-mman.h: New file.
5403          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5404
5405 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5406
5407         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5408         trailing whitespace removed.
5409         * scripts/config.guess: Update to version 2016-01-01.
5410         * scripts/config.sub: Update to version 2016-01-01.
5411         * scripts/move-if-change: Update from gnulib.
5412
5413 2016-01-04  Anton Blanchard  <anton@samba.org>
5414
5415         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5416         for array indices.
5417         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5418
5419 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5420
5421         * NEWS: Update copyright dates.
5422         * catgets/gencat.c (print_version): Likewise.
5423         * csu/version.c (banner): Likewise.
5424         * debug/catchsegv.sh: Likewise.
5425         * debug/pcprofiledump.c (print_version): Likewise.
5426         * debug/xtrace.sh (do_version): Likewise.
5427         * elf/ldconfig.c (print_version): Likewise.
5428         * elf/ldd.bash.in: Likewise.
5429         * elf/pldd.c (print_version): Likewise.
5430         * elf/sotruss.sh: Likewise.
5431         * elf/sprof.c (print_version): Likewise.
5432         * iconv/iconv_prog.c (print_version): Likewise.
5433         * iconv/iconvconfig.c (print_version): Likewise.
5434         * locale/programs/locale.c (print_version): Likewise.
5435         * locale/programs/localedef.c (print_version): Likewise.
5436         * login/programs/pt_chown.c (print_version): Likewise.
5437         * malloc/memusage.sh (do_version): Likewise.
5438         * malloc/memusagestat.c (print_version): Likewise.
5439         * malloc/mtrace.pl: Likewise.
5440         * manual/libc.texinfo: Likewise.
5441         * nptl/version.c (banner): Likewise.
5442         * nscd/nscd.c (print_version): Likewise.
5443         * nss/getent.c (print_version): Likewise.
5444         * nss/makedb.c (print_version): Likewise.
5445         * posix/getconf.c (main): Likewise.
5446         * scripts/test-installation.pl: Likewise.
5447         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5448
5449         * All files with FSF copyright notices: Update copyright dates
5450         using scripts/update-copyrights.
5451         * intl/plural.c: Regenerated.
5452         * locale/programs/charmap-kw.h: Likewise.
5453         * locale/programs/locfile-kw.h: Likewise.
5454
5455 2016-01-02  Helge Deller  <deller@gmx.de>
5456
5457         [BZ #19285]
5458         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5459         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5460         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5461         (MADV_xxK_PAGES): Remove.
5462
5463 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5464
5465         [BZ #15421]
5466         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5467         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5468         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5469         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5470
5471 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5472
5473         [BZ #19408]
5474         * sysdeps/unix/sysv/linux/personality.c: New file.
5475         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5476         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5477         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5478         (sysdep_routines): Add personality.
5479         (tests): Add tst-personality.
5480         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5481         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5482         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5483         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5484         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5485         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5486         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5487         Likewise.
5488         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5489         Likewise.
5490         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5491         Likewise.
5492         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5493         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5494         Likewise.
5495
5496 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5497
5498         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5499         (PATH_ARM_SYSTYPE): Remove.
5500         (PATH_CPUINFO): Likewise.
5501         (IO_BASE_FOOTBRIDGE): Likewise.
5502         (IO_SHIFT_FOOTBRIDGE): Likewise.
5503         (struct platform): Likewise.
5504         (init_iosys): Remove compatibility code for 2.4 kernels.
5505         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5506
5507 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5508
5509         * malloc/tst-malloc-thread-fail.c: New file.
5510         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5511         (tst-malloc-thread-fail): Link against libpthread.
5512
5513 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5514
5515         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5516         (get_parser): New function.
5517         (main): New function.
5518
5519 2015-12-29  Rob Wu  <rob@robwu.nl>
5520
5521         [BZ #19369]
5522         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5523
5524 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5525
5526         [BZ #19270]
5527         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5528
5529 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5530
5531         [BZ #15421]
5532         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5533
5534 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5535
5536         [BZ #13690]
5537         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5538         after releasing it.
5539         (__lll_robust_unlock): Likewise.
5540         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5541         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5542         (lll_robust_unlock): Likewise.
5543         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5544         Prevent warnings in callers.
5545
5546 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5547
5548         * malloc/arena.c (list_lock): Update comment.
5549
5550 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5551
5552         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5553         __parse_hwcap_and_convert_at_platform to libc.a.
5554
5555 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5556
5557         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5558         platform and feature support for POWER9.
5559         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5560         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5561         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5562         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5563         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5564         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5565         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5566         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5567
5568 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5569
5570         Harmonize generic stdio-lock support with nptl
5571
5572         This fixes build when _IO_funlockfile is a macro, fixes build where
5573         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5574         stack unwind.
5575
5576         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5577         _IO_release_lock ): Use cleanup attribute on new
5578         _IO_acquire_lock_file variable instead of assuming that
5579         _IO_release_lock will be called.
5580         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5581         _IO_acquire_lock_needs_exceptions_enabled.
5582         (_IO_acquire_lock_clear_flags2): New macro.
5583
5584 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5585
5586         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5587
5588 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5589
5590         [BZ #19182]
5591         * malloc/arena.c (list_lock): Document lock ordering requirements.
5592         (free_list_lock): New lock.
5593         (ptmalloc_lock_all): Comment on free_list_lock.
5594         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5595         (detach_arena): Update comment.  free_list_lock is now needed.
5596         (_int_new_arena): Use free_list_lock around detach_arena call.
5597         Acquire arena lock after list_lock.  Add comment, including FIXME
5598         about incorrect synchronization.
5599         (get_free_list): Switch to free_list_lock.
5600         (reused_arena): Acquire free_list_lock around detach_arena call
5601         and attached threads counter update.  Add two FIXMEs about
5602         incorrect synchronization.
5603         (arena_thread_freeres): Switch to free_list_lock.
5604         * malloc/malloc.c (struct malloc_state): Update comments to
5605         mention free_list_lock.
5606
5607 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5608
5609         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5610         Remove functions.
5611         (sloww, sloww1): Accept argument to offset quadrant.
5612         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5613         quadrant.
5614         (__sin, __cos): Consolidate common code into new functions.
5615         (reduce_sincos_1, do_sincos_1): New functions.
5616         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5617
5618         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5619         code to new functions.
5620         (reduce_sincos_2, do_sincos_2): New functions.
5621         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5622
5623         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5624         common code for sincos.
5625         (__cos) [!IN_SINCOS]: Likewise.
5626         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5627         New function.
5628         (__sincos): Use it.
5629
5630 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5631
5632         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5633         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5634         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5635
5636 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5637
5638         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5639         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5640         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5641         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5642         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5643         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5644         index_Prefer_No_VZEROUPPER): New feature.
5645         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5646         Prefer_No_VZEROUPPER for Knights Landing.
5647
5648 015-12-18  Torvald Riegel  <triegel@redhat.com>
5649
5650         * math/atest-exp2.c (mp_exp_m1): Remove.
5651
5652 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5653
5654         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5655         syscalls.
5656         (__SYSCALL0): New macro.
5657         (__SYSCALL1): Likewise.
5658         (__SYSCALL2): Likewise.
5659         (__SYSCALL3): Likewise.
5660         (__SYSCALL4): Likewise.
5661         (__SYSCALL5): Likewise.
5662         (__SYSCALL6): Likewise.
5663         (__SYSCALL_CONCAT_X): Likewise.
5664         (__SYSCALL_CONCAT): Likewise.
5665         (__SYSCALL_DIST): Likewise.
5666         (__SYSCALL_CALL): Likewise.
5667
5668 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5669
5670         [BZ #19363]
5671         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5672
5673 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5674
5675         [BZ #19375]
5676         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5677         negative subnormals.
5678
5679 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5680
5681         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5682         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5683         (INTERNAL_SYSCALL_NCS): Use it.
5684         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5685
5686 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5687
5688         [BZ #19243]
5689         * malloc/arena.c (get_free_list): Remove assert and adjust
5690         reference count handling.  Add comment about reused_arena
5691         interaction.
5692         (reused_arena): Add comments abount get_free_list interaction.
5693         * malloc/tst-malloc-thread-exit.c: New file.
5694         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5695         (tst-malloc-thread-exit): Link against libpthread.
5696
5697 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5698
5699         [BZ #19367]
5700         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5701         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5702         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5703         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5704         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5705
5706 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5709         Silvermont optimizations for Knights Landing.
5710
5711 2015-12-15  Andreas Schwab  <schwab@suse.de>
5712
5713         [BZ #17197]
5714         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5715         immediately after emitting SI.
5716         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5717         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5718         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5719         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5720         * iconvdata/bug-iconv10.c: New file.
5721         * iconvdata/Makefile (tests): Add bug-iconv10.
5722         ($(objpfx)bug-iconv10.out): New rule.
5723
5724 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5725
5726         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5727         aliasing violation.
5728
5729 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5730
5731         [BZ #18472]
5732         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5733         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5734         conditionals for them.
5735         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5736         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5737         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5738         sys/kdaemon.h.
5739         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5740         compat-only syscall, obsoleted in glibc 2.23.
5741         (create_module): Likewise.
5742         (get_kernel_syms): Likewise.
5743         (query_module): Likewise.
5744         (uselib): Likewise.
5745         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5746
5747 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5748
5749         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5750         <linux/version.h>.
5751         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5752         conditional code.
5753         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5754         and ioshift_name initialization.
5755
5756 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5757
5758         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5759         Fix indentation.
5760
5761 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5762
5763         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5764
5765 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5766
5767         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5768
5769 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5770             Jakub Wilk  <jwilk@debian.org>
5771
5772         [BZ #19347]
5773         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5774         to change the group of the device to the tty group.
5775
5776 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         Split large string section; add truncation advice
5779         * manual/examples/strncat.c: Remove.
5780         This example was misleading, as the code would have undefined
5781         behavior if "hello" was longer than SIZE.  Anyway, the manual
5782         shouldn't encourage strncpy+strncat for this sort of thing.
5783         * manual/string.texi (Copying Strings and Arrays): Split into
5784         three sections Copying Strings and Arrays, Concatenating Strings,
5785         and Truncating Strings, as this section was way too long.  All
5786         cross-referenced changed.  Add advice about string-truncation
5787         functions.  Remove misleading strncat example.
5788
5789 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
5790
5791         * manual/nss.texi (NSS Modules Interface): Document
5792         NSS_STATUS_NOTFOUND and SUCCESS.
5793
5794 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5795
5796         [BZ 18568]
5797         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
5798         201505L, for Unicode 8.
5799
5800 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
5801
5802         * locale/C-translit.h: Regenerate.
5803
5804 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5805
5806         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
5807         and U+0153.
5808
5809 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
5810
5811         [BZ #19351]
5812         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
5813         expanding log(1+z), compare z rather than its square with epsilon
5814         to determine when to avoid evaluating the expansion.
5815
5816         [BZ #19350]
5817         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
5818         Increase overflow threshold.
5819
5820         [BZ #19349]
5821         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
5822         when small.
5823
5824         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5825         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5826         New macro.
5827         [__LINUX_KERNEL_VERSION >= 0x040300]
5828         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5829         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5830         Likewise.
5831         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5832         Likewise.
5833         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5834         Likewise.
5835         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5836         Likewise.
5837         [__LINUX_KERNEL_VERSION >= 0x040300]
5838         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5839         [__LINUX_KERNEL_VERSION >= 0x040300]
5840         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5841         [__LINUX_KERNEL_VERSION >= 0x040300]
5842         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5843         [__LINUX_KERNEL_VERSION >= 0x040300]
5844         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5845         [__LINUX_KERNEL_VERSION >= 0x040300]
5846         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5847         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5848         Likewise.
5849         [__LINUX_KERNEL_VERSION >= 0x040300]
5850         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5851         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5852         Likewise.
5853         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5854         Likewise.
5855         [__LINUX_KERNEL_VERSION >= 0x040300]
5856         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5857         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5858         Likewise.
5859         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5860         Likewise.
5861         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5862         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
5863         Likewise.
5864         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
5865         Likewise.
5866         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5867         Likewise.
5868         [__LINUX_KERNEL_VERSION >= 0x040300]
5869         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5870         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5871         Likewise.
5872         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5873         Likewise.
5874         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5875         Likewise.
5876         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5877         Likewise.
5878         [__LINUX_KERNEL_VERSION >= 0x040300]
5879         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5880         [__LINUX_KERNEL_VERSION >= 0x040300]
5881         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5882         [__LINUX_KERNEL_VERSION >= 0x040300]
5883         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5884         [__LINUX_KERNEL_VERSION >= 0x040300]
5885         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5886         [__LINUX_KERNEL_VERSION >= 0x040300]
5887         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5888         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5889         Likewise.
5890         [__LINUX_KERNEL_VERSION >= 0x040300]
5891         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5892         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5893         Likewise.
5894         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5895         Likewise.
5896         [__LINUX_KERNEL_VERSION >= 0x040300]
5897         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5898         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5899         Likewise.
5900         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5901         Likewise.
5902         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5903         (__ASSUME_SOCKET_SYSCALL): Likewise.
5904         (__ASSUME_BIND_SYSCALL): Likewise.
5905         (__ASSUME_CONNECT_SYSCALL): Likewise.
5906         (__ASSUME_LISTEN_SYSCALL): Likewise.
5907         (__ASSUME_ACCEPT_SYSCALL): Likewise.
5908         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5909         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5910         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5911         (__ASSUME_SEND_SYSCALL): Likewise.
5912         (__ASSUME_SENDTO_SYSCALL): Likewise.
5913         (__ASSUME_RECV_SYSCALL): Likewise.
5914         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5915         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
5916         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5917         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5918         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5919         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5920         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5921         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
5922         Likewise.
5923         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
5924         Likewise.
5925         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
5926         Likewise.
5927         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
5928         Likewise.
5929         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
5930         Likewise.
5931         [__LINUX_KERNEL_VERSION >= 0x020625]
5932         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5933         [__LINUX_KERNEL_VERSION >= 0x020625]
5934         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5935         [__LINUX_KERNEL_VERSION >= 0x020625]
5936         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5937         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
5938         Likewise.
5939         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
5940         Likewise.
5941         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
5942         Likewise.
5943         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
5944         Likewise.
5945         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
5946         Likewise.
5947         [__LINUX_KERNEL_VERSION >= 0x020625]
5948         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5949         [__LINUX_KERNEL_VERSION >= 0x020625]
5950         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5951         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
5952         Likewise.
5953         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
5954         Likewise.
5955
5956 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5957
5958         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
5959         record the current if the current ABI and CPU support the FP64
5960         extension.
5961         (has-modd-spreg): Define to record the current if the current ABI and
5962         CPU support 32-bit floating point values in odd FPU registers.
5963         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5964         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
5965         $(has-modd-spreg) equals yes.
5966         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
5967         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
5968         $(has-modd-spreg) equal yes.
5969
5970 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5971
5972         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
5973         basename.
5974
5975 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
5976
5977         * benchtests/Makefile (bench-math): Move ffs and ffsll...
5978         (bench-string): ... here.
5979         (bench): Add bench-string.
5980         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
5981         to *-benchset to reflect what they are.
5982         (benchset): Adjust.
5983
5984         * benchtests/sincos-inputs: Add inputs from sin-inputs and
5985         cos-inputs.
5986
5987 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
5988
5989         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
5990         __attribute__ ((__simd__)) for vector math function declarations.
5991
5992 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5993
5994         Fix typo in strncat, wcsncat manual entries
5995         * manual/string.texi (Copying and Concatenation): Fix typos in
5996         sample implementations of strncat and wcsncat, by having them use
5997         the old value of the destination length, not the new one.
5998
5999 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6000
6001         [BZ #16961]
6002         [BZ #16962]
6003         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6004         string on the stack for strtod.
6005         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6006         a string on the stack for strtof.
6007         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6008         constructing a string on the stack for strtold.
6009         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6010         __strtold_nan to GLIBC_PRIVATE.
6011         * math/test-nan-overflow.c: New file.
6012         * math/test-nan-payload.c: Likewise.
6013         * math/Makefile (tests): Add test-nan-overflow and
6014         test-nan-payload.
6015
6016 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6017
6018         Consistency about byte vs character in string.texi
6019         * manual/string.texi (String and Array Utilities):
6020         Distinguish more carefully among bytes, multibyte characters,
6021         and wide characters.  Use "byte" when talking about C 'char',
6022         to distinguish it more clearly from multibyte characters.
6023         Say "wide character" or "multibyte character" instead of
6024         "character", when a wide or multibyte character is intended.
6025         Similarly for "multibyte string" versus "string".
6026         Define these terms more carefully.
6027
6028 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6029
6030         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6031         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6032         Likewise.
6033         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6034         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6035         * sysdeps/sh/math_private.h: New file.
6036         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6037         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6038         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6039         long double function name.
6040         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6041         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6042         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6043         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6044         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6045         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6046         Remove __finitel, __isinfl, and __isnanl.
6047         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6048         Likewise.
6049         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6050         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6051         Remove __finitel.
6052         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6053         Likewise.
6054         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6055
6056 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6057
6058         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6059         installed libmvec_nonshared.a.
6060
6061 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6062
6063         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6064         (sysdep_routines): Likewise.
6065         (sysdep-rtld-routines): Likewise.
6066         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6067         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6068         * sysdeps/powerpc/Versions: Added new
6069         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6070         * sysdeps/powerpc/hwcapinfo.c: New file.
6071         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6072         and parse hwcap, hwcap2 and platform number information.
6073         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6074         to store HWCAP+HWCAP2 and platform number.
6075         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6076         for HWCAP+HWCAP2 and platform number in the TCB.
6077         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6078         the HWCAP, HWCAP2 and platform number in the TCB.
6079         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6080         (TLS_INIT_TP): Included calls to add the hwcap and
6081         at_platform values in the TCB in TP initialization.
6082         (TLS_DEFINE_INIT_TP): Likewise.
6083         (THREAD_GET_HWCAP): New macro.
6084         (THREAD_SET_HWCAP): Likewise.
6085         (THREAD_GET_AT_PLATFORM): Likewise.
6086         (THREAD_SET_AT_PLATFORM): Likewise.
6087         * sysdeps/powerpc/powerpc32/dl-machine.h:
6088         (dl_platform_init): New function that calls
6089         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6090         powerpc32.
6091         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6092         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6093         this functionality, static linking case.
6094         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6095         linking case.
6096         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6097         __parse_hwcap_and_convert_at_platform for the static linking case.
6098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6099         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6100         ABI list for GLIBC 2.23.
6101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6102         Likewise.
6103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6104         Likewise.
6105
6106 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6107
6108         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6109         * configure: Regenerate.
6110         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6111         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6112
6113 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6114
6115         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6116         * iconvdata/ibm933.c: Likewise.
6117         * iconvdata/ibm935.c: Likewise.
6118         * iconvdata/ibm937.c: Likewise.
6119         * iconvdata/ibm939.c: Likewise.
6120
6121 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6122
6123         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6124         pthread_join.
6125         * nptl/tst-cancel21.c (tf): Likewise.
6126
6127 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6128
6129         [BZ #19313]
6130         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6131         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6132         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6133         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6134         Likewise.
6135         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6136         Likewise.
6137         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6138         Likewise.
6139         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6140         Likewise.
6141         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6142         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6143         unsigned long int with __CPU_MASK_TYPE.
6144
6145 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6146
6147         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6148
6149 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6150
6151         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6152         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6153         t512.x.
6154         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6155
6156 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6157
6158         [BZ #19214]
6159         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6160         argument to return extended model.  Update family and model
6161         with extended family and model when family == 0x0f.
6162         (init_cpu_features): Updated.
6163
6164 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6165
6166         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6167         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6168
6169         * sysdeps/mach/hurd/mmap64.c: New file.
6170
6171 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6172
6173         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6174         rights for its main user thread in NEWTASK.
6175
6176 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6177
6178         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6179         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6180
6181 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6182
6183         [BZ #14259]
6184         * Makeconfig: Rename localedir to complocaledir.
6185         Rename inst_localedir to inst_complocaledir.
6186         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6187         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6188         * configure.ac: Use libc_cv_complocaledir.
6189         * configure: Regenerate.
6190         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6191         -DCOMPLOCALEDIR.
6192         * locale/findlocale.c: Use COMPLOCALEDIR.
6193         * locale/loadarchive.c: Likewise.
6194         * locale/programs/locale.c: Likewise.
6195         * locale/programs/localedef.c: Likewise.
6196         * locale/programs/locarchive.c: Likewise.
6197         * localedata/Makefile: Use inst_complocaledir.
6198         * sysdeps/gnu/configure: Regenerate.
6199         * sysdeps/hppa/configure: Regenerate.
6200         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6201         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6203         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6204         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6205         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6206         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6207
6208 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6209
6210         [BZ #19058]
6211         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6212         AS_NEEDED.
6213         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6214         workaround.
6215         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6216         libmvec-static-only-routines): Added new file.
6217         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6218
6219 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6220
6221         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6222         of interrupted RPC instead of restoring it.
6223
6224         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6225         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6226         libc_hidden_def.
6227         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6228         into initialized data instead of common. Define rtld_hidden_data_def.
6229         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6230         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6231         libc_hidden_def.
6232         (if_freenameindex): Add libc_hidden_weak.
6233         (if_nameindex): Add libc_hidden_weak.
6234         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6235         __open64.
6236         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6237         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6238         * sysdeps/mach/nanosleep.c: Include <time.h>
6239         (__nanosleep): Rename to __libc_nanosleep.
6240         (__nanosleep): Add weak_alias.
6241         (nanosleep): Update alias.
6242
6243 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6244
6245         * stdlib/strtod_nan.c: New file.
6246         * stdlib/strtod_nan_double.h: Likewise.
6247         * stdlib/strtod_nan_float.h: Likewise.
6248         * stdlib/strtod_nan_main.c: Likewise.
6249         * stdlib/strtod_nan_narrow.h: Likewise.
6250         * stdlib/strtod_nan_wide.h: Likewise.
6251         * stdlib/strtof_nan.c: Likewise.
6252         * stdlib/strtold_nan.c: Likewise.
6253         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6254         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6255         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6256         * wcsmbs/wcstod_nan.c: Likewise.
6257         * wcsmbs/wcstof_nan.c: Likewise.
6258         * wcsmbs/wcstold_nan.c: Likewise.
6259         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6260         strtold_nan.
6261         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6262         wcstof_nan.
6263         * include/stdlib.h (__strtof_nan): Declare and use
6264         libc_hidden_proto.
6265         (__strtod_nan): Likewise.
6266         (__strtold_nan): Likewise.
6267         (__wcstof_nan): Likewise.
6268         (__wcstod_nan): Likewise.
6269         (__wcstold_nan): Likewise.
6270         * include/wchar.h (____wcstoull_l_internal): Declare.
6271         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6272         (____strtoull_l_internal): Remove declaration.
6273         (STRTOF_NAN): Define macro.
6274         (SET_MANTISSA): Remove macro.
6275         (STRTOULL): Likewise.
6276         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6277         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6278         (STRTOF_NAN): Define macro.
6279         (SET_MANTISSA): Remove macro.
6280         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6281         (SET_MANTISSA): Remove macro.
6282         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6283         macro.
6284         (SET_MANTISSA): Remove macro.
6285         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6286         macro.
6287         (SET_MANTISSA): Remove macro.
6288         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6289         (SET_MANTISSA): Remove macro.
6290         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6291         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6292         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6293
6294         [BZ #19266]
6295         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6296         upper case and lower case letters inside NAN(), not using TOLOWER.
6297         * stdlib/tst-strtod-nan-locale-main.c: New file.
6298         * stdlib/tst-strtod-nan-locale.c: Likewise.
6299         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6300         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6301         Depend on $(gen-locales).
6302         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6303         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6304         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6305         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6306         Depend on $(gen-locales).
6307         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6308
6309 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6310
6311         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6312
6313         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6314         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6315         __finitel, __isinfl, and __isnanl.
6316         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6317         Likewise.
6318         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6319         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6320         __finitel.
6321         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6322         Likewise.
6323         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6324
6325 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6326
6327         * malloc/memusage.c (me): Remove redundant getenv call.
6328
6329 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6330
6331         [BZ #19143]
6332         [BZ #19164]
6333         * nptl/check-cpuset.h: Remove.
6334         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6335         Remove CPU set size check.
6336         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6337         Likewise.
6338         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6339         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6340         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6341         (__pthread_setaffinity_new): Remove CPU set size check.
6342         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6343         (__kernel_cpumask_size): Remove.
6344         (__sched_setaffinity_new): Remove CPU set size check.
6345         * manual/threads.texi (Default Thread Attributes): Remove stale
6346         reference to check_cpuset_attr, determine_cpumask_size in comment.
6347         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6348         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6349         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6350         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6351         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6352         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6353         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6354         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6355         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6356         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6357         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6358         skeleton test file.
6359         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6360         tst-affinity-pid.
6361
6362 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6363
6364         * scripts/update-abilist.sh: New file.
6365         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6366         * Makerules (update-all-abi-%, update-all-abi)
6367         (subdir_update-all-abi): New targets.
6368         * elf/Makefile (update-all-abi): New target.
6369
6370 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6371
6372         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6373         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6374         (__libc_lock_define_initialized): Use it.
6375         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6376         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6377         * malloc/malloc.c (main_arena): Likewise.
6378         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6379         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6380
6381 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6382
6383         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6384         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6385         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6386         (PTRACE_O_MASK): Update value.
6387         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6388         New value in enum __ptrace_setoptions.
6389         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6390         (PTRACE_O_MASK): Update value.
6391         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6392         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6393         (PTRACE_O_MASK): Update value.
6394         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6395         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6396         (PTRACE_O_MASK): Update value.
6397         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6398         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6399         (PTRACE_O_MASK): Update value.
6400         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6401         New value in enum __ptrace_setoptions.
6402         (PTRACE_O_MASK): Update value.
6403         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6404         New value in enum __ptrace_setoptions.
6405         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6406         (PTRACE_O_MASK): Update value.
6407
6408         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6409         New macro.
6410         (PACKET_AUXDATA): Likewise.
6411         (PACKET_ORIGDEV): Likewise.
6412         (PACKET_VERSION): Likewise.
6413         (PACKET_HDRLEN): Likewise.
6414         (PACKET_RESERVE): Likewise.
6415         (PACKET_TX_RING): Likewise.
6416         (PACKET_LOSS): Likewise.
6417         (PACKET_VNET_HDR): Likewise.
6418         (PACKET_TX_TIMESTAMP): Likewise.
6419         (PACKET_TIMESTAMP): Likewise.
6420         (PACKET_FANOUT): Likewise.
6421         (PACKET_TX_HAS_OFF): Likewise.
6422         (PACKET_QDISC_BYPASS): Likewise.
6423         (PACKET_ROLLOVER_STATS): Likewise.
6424         (PACKET_FANOUT_DATA): Likewise.
6425         (PACKET_MR_UNICAST): Likewise.
6426
6427         [BZ #19242]
6428         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6429         (TOUPPER): Likewise.
6430         * stdlib/tst-strtol-locale-main.c: New file.
6431         * stdlib/tst-strtol-locale.c: Likewise.
6432         * stdlib/Makefile (tests): Add tst-strtol-locale.
6433         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6434         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6435         Depend on $(gen-locales).
6436         * wcsmbs/tst-wcstol-locale.c: New file.
6437         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6438         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6439         tr_TR.ISO-8859-9.
6440         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6441         Depend on $(gen-locales).
6442
6443 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6444
6445         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6446         __glibc_likely instead of __builtin_expect.  After falling back to
6447         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6448         system interface to register the code pages as occupied.
6449
6450 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6451
6452         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6453         [!ARM_MATH_PRIVATE_H].
6454         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6455         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6456         [!HPPA_MATH_PRIVATE_H].
6457         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6458         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6459         to [!I386_MATH_PRIVATE_H].
6460         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6461         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6462         Change guard to [!M68K_MATH_PRIVATE_H].
6463         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6464         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6465         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6466         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6467         macro.
6468         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6469         [!MIPS_MATH_PRIVATE_H].
6470         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6471         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6472         [!NIO2_MATH_PRIVATE_H].
6473         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6474         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6475         [!TILE_MATH_PRIVATE_H].
6476         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6477
6478         [BZ #15421]
6479         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6480         initialize with 0 and define as weak alias of __signgam.
6481         * include/math.h [!_ISOMAC] (__signgam): Declare.
6482         * math/Makefile (libm-calls): Add w_lgamma_compat.
6483         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6484         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6485         test-signgam-ullong-init.
6486         (tests-static): Add test-signgam-uchar-static,
6487         test-signgam-uchar-init-static, test-signgam-uint-static,
6488         test-signgam-uint-init-static, test-signgam-ullong-static and
6489         test-signgam-ullong-init-static.
6490         (CFLAGS-test-signgam-uchar.c): New variable.
6491         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6492         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6493         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6494         (CFLAGS-test-signgam-uint.c): Likewise.
6495         (CFLAGS-test-signgam-uint-init.c): Likewise.
6496         (CFLAGS-test-signgam-uint-static.c): Likewise.
6497         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6498         (CFLAGS-test-signgam-ullong.c): Likewise.
6499         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6500         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6501         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6502         * math/Versions (libm): Add GLIBC_2.23.
6503         * math/lgamma-compat.h: New file.
6504         * math/test-signgam-main.c: Likewise.
6505         * math/test-signgam-uchar-init-static.c: Likewise.
6506         * math/test-signgam-uchar-init.c: Likewise.
6507         * math/test-signgam-uchar-static.c: Likewise.
6508         * math/test-signgam-uchar.c: Likewise.
6509         * math/test-signgam-uint-init-static.c: Likewise.
6510         * math/test-signgam-uint-init.c: Likewise.
6511         * math/test-signgam-uint-static.c: Likewise.
6512         * math/test-signgam-uint.c: Likewise.
6513         * math/test-signgam-ullong-init-static.c: Likewise.
6514         * math/test-signgam-ullong-init.c: Likewise.
6515         * math/test-signgam-ullong-static.c: Likewise.
6516         * math/test-signgam-ullong.c: Likewise.
6517         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6518         wrapper of w_lgamma_main.c.
6519         * math/w_lgamma_compat.c: New file.
6520         * math/w_lgamma_compatf.c: Likewise.
6521         * math/w_lgamma_compatl.c: Likewise.
6522         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6523         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6524         defining compatibility symbols.
6525         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6526         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6527         wrapper of w_lgammaf_main.c.
6528         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6529         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6530         defining compatibility symbols.
6531         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6532         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6533         wrapper of w_lgammal_main.c.
6534         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6535         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6536         defining compatibility symbols.
6537         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6538         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6539         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6540         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6541         <lgamma-compat.h>.
6542         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6543         (__ieee754_gamma): Define as alias.
6544         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6545         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6546         <lgamma-compat.h>.
6547         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6548         (__ieee754_gammaf): Define as alias.
6549         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6550         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6551         <lgamma-compat.h>.
6552         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6553         (__ieee754_gammal): Define as alias.
6554         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6555         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6556         <math/w_lgamma_compat.c>.
6557         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6558         Define as alias of __lgamma_compat and use in defining lgammal.
6559         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6560         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6561         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6562         (USE_AS_COMPAT): New macro.
6563         (LGAMMA_OLD_VER): Undefine and redefine.
6564         (lgammal): Do not define here.
6565         (gammal): Only define here if [GAMMA_ALIAS].
6566         * conform/linknamespace.pl (@whitelist): Remove signgam.
6567         * sysdeps/nacl/libm.abilist: Update.
6568         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6569         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6570         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6571         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6572         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6573         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6574         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6575         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6576         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6577         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6578         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6579         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6581         Likewise.
6582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6583         Likewise.
6584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6585         Likewise.
6586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6587         Likewise.
6588         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6589         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6590         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6591         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6592         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6593         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6594         Likewise.
6595         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6596         Likewise.
6597         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6598         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6599         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6600
6601 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6602
6603         [BZ #16364]
6604         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6605         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6606
6607 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6608
6609         * sysdeps/s390/fpu/bits/mathinline.h:
6610         Use __asm__ [__volatile__] instead of asm [volatile].
6611         * sysdeps/s390/abort-instr.h: Likewise.
6612         * sysdeps/s390/atomic-machine.h: Likewise.
6613         * sysdeps/s390/bits/string.h: Likewise.
6614         * sysdeps/s390/dl-tls.h: Likewise.
6615         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6616         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6617         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6618         * sysdeps/s390/fpu/fesetround.c: Likewise.
6619         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6620         * sysdeps/s390/fpu/s_fma.c: Likewise.
6621         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6622         * sysdeps/s390/memusage.h: Likewise.
6623         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6624         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6625         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6626         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6627         * sysdeps/s390/nptl/tls.h: Likewise.
6628         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6629         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6630         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6631         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6632         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6633         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6634         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6635         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6636         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6637         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6638         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6639         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6640         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6641         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6642         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6643         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6644         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6645         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6646         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6647         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6648         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6649         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6650         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6651
6652 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6653             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6654
6655         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6656         Add lwarx hint, and use macro for acquire instruction.
6657         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6658         Likewise.
6659         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6660         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6661         update to use new atomic macros.
6662
6663 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6664
6665         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6666         (__lll_trylock_elision): Fix setting of adapt_count.
6667         * sysdeps/unix/sysv/linux/powerpc/htm.h
6668         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6669         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6670         (_ABORT_SYSCALL): Renumber, and clarify definition.
6671         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6672
6673 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6674
6675         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6676         after system headers to prevent MIN/MAX redefinition.  Define
6677         HAVE_ALLOCA to preserve builtin alloca usage.
6678
6679 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6680
6681         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6682         static and don't set or restore rounding.
6683         (__cos)[IN_SINCOS]: Likewise.
6684         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6685         (__sincos): Set and restore rounding mode.  Remove check for infinite
6686         or NaN input.
6687
6688         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6689
6690         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6691         as used.
6692
6693 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6694
6695         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6696
6697 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6698
6699         * config.make.in (have-glob-dat-reloc): New.
6700         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6701         target supports GLOB_DAT relocaton. AC_SUBST.
6702         * configure: Regenerated.
6703         * elf/Makefile (tests): Add tst-prelink.
6704         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6705         (tst-prelink-ENV): New.
6706         ($(objpfx)tst-prelink-conflict.out): Likewise.
6707         ($(objpfx)tst-prelink-cmp.out): Likewise.
6708         * sysdeps/x86/tst-prelink.c: Moved to ...
6709         * elf/tst-prelink.c: Here.
6710         * sysdeps/x86/tst-prelink.exp: Moved to ...
6711         * elf/tst-prelink.exp: Here.
6712         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6713         (tst-prelink-ENV): Removed.
6714         ($(objpfx)tst-prelink-conflict.out): Likewise.
6715         ($(objpfx)tst-prelink-cmp.out): Likewise.
6716         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6717
6718 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6719
6720         [BZ #14551]
6721         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6722         (__mpn_construct_long_double): If high part overflows to infinity,
6723         set errno and recompute overflowed result of the correct sign.
6724         * sysdeps/ieee754/ldbl-128ibm/Makefile
6725         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6726         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6727         $(libm).
6728         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6729
6730 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6731
6732         [BZ #15479]
6733         [BZ #19238]
6734         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6735         floating-point state after first operation on input.  Restore full
6736         state rather than just rounding mode.
6737         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6738         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6739         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6740
6741         [BZ #19235]
6742         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6743         add 0.5 to integer arguments.
6744         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6745         Likewise.
6746         (.LC2): New object.
6747
6748 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6749
6750         * scripts/pylintrc (reports): Set to no.
6751
6752 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6753
6754         * elf/dl-load.c (open_verify): Take new argument FD.
6755         Skip __open call if passed FD is not -1.
6756         (_dl_map_object, open_path): Update callers.
6757         * elf/dl-sysdep-open.h: New file.
6758         * elf/dl-load.c: Include it.
6759         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6760         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6761         * sysdeps/nacl/dl-sysdep-open.h: New file.
6762         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6763         from libc to rtld.
6764
6765 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6766
6767         [BZ #19228]
6768         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6769         and restore full floating-point state.
6770         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6771         Likewise.
6772         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6773         Likewise.
6774         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6775         Likewise.
6776         * math/test-nearbyint-except-2.c: New file.
6777         * math/Makefile (tests): Add test-nearbyint-except-2.
6778
6779 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         [BZ #19178]
6782         * sysdeps/x86/Makefile (tests): Add tst-prelink.
6783         (tst-prelink-ENV): New.
6784         ($(objpfx)tst-prelink-conflict.out): Likewise.
6785         ($(objpfx)tst-prelink-cmp.out): Likewise.
6786         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6787         * sysdeps/x86/tst-prelink.c: New file.
6788         * sysdeps/x86/tst-prelink.exp: Likewise.
6789
6790 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6791
6792         * math/auto-libm-test-in: Add another test of pow.
6793         * math/auto-libm-test-out: Regenerated.
6794         * math/libm-test.inc (pow_test_data): Add another test.
6795
6796 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6797
6798         [BZ #19219]
6799         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
6800         weak_alias to nearbyintl.
6801
6802 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6803
6804         * sysdeps/aarch64/bits/string.h: New file.
6805         (_STRING_ARCH_unaligned): Define.
6806
6807 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6808
6809         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
6810         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
6811         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
6812         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
6813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
6814
6815 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
6816
6817         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
6818         for original name of the DSO.  Add it to the name list of the DSO
6819         if it is actually given.
6820         (_dl_map_object): Keep track of whether an audit module rewrote
6821         the file name.  If yes, pass the original name to
6822         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
6823         debugging is enabled, log the change of the file name.
6824         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
6825         _dl_map_object_from_fd.
6826         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
6827         * elf/tst-audit11.c: New file
6828         * elf/tst-auditmod11.c: New file.
6829         * elf/tst-audit11mod1.c: New file.
6830         * elf/tst-audit11mod2.c: New file.
6831         * elf/tst-audit11mod2.map: New file.
6832         * elf/tst-audit12.c: New file
6833         * elf/tst-auditmod12.c: New file.
6834         * elf/tst-audit12mod1.c: New file.
6835         * elf/tst-audit12mod2.c: New file.
6836         * elf/tst-audit12mod2.map: New file.
6837         * elf/tst-audit12mod3.c: New file.
6838
6839 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6840
6841         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
6842         Don't create weak aliases,
6843         because versioned symbols are created later.
6844         * sysdeps/s390/s390-32/setjmp.S
6845         (setjmp, _setjmp): Remove weak and rename to an unique name
6846         in SHARED case due to existing versioned symbols.
6847         * sysdeps/s390/s390-64/setjmp.S: Likewise.
6848         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
6849         (getcontext): Create weak alias only in non SHARED case.
6850         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6851
6852 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6853
6854         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
6855         (__ASSUME_*_SYSCALL) Define new macros.
6856         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
6857         Remove socketcall syscalls.
6858         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
6859         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
6860         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
6861         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
6862         * sysdeps/unix/sysv/linux/send.c (__libc_send):
6863         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
6864
6865 2015-11-09  Florian Weimer  <fweimer@redhat.com>
6866
6867         [BZ #12926]
6868         Terminate process on invalid netlink response.
6869         * sysdeps/unix/sysv/linux/netlinkaccess.h
6870         (__netlink_assert_response): Declare.
6871         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
6872         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
6873         (sysdep_routines): Add netlink_assert_response.
6874         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
6875         __netlink_assert_response.
6876         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
6877         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
6878         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
6879         __netlink_assert_response.
6880
6881 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6882
6883         [BZ #19178]
6884         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
6885         (RTYPE_CLASS_PLT): Likewise.
6886         (RTYPE_CLASS_COPY): Likewise.
6887         (RTYPE_CLASS_TLS): Likewise.
6888         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
6889         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
6890         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
6891         DL_DEBUG_PRELINK.
6892
6893 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
6894
6895         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
6896         calls with argument -0.5.
6897         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
6898
6899         * configure.ac (libc_cv_z_nodelete): Remove configure test.
6900         (libc_cv_z_nodlopen): Likewise.
6901         (libc_cv_z_initfirst): Likewise.
6902         * configure: Regenerated.
6903
6904 2015-11-06  Florian Weimer  <fweimer@redhat.com>
6905
6906         Simplify abilist format to be line-based.
6907         * scripts/abilist.awk: Collect descriptors in the descs variable.
6908         (emit): Write descs variable and sort it
6909         externally, with sort.
6910         * sysdeps/**/*.abilist: Convert to new format.
6911
6912 2015-11-06  Mark Wielaard  <mjw@redhat.com>
6913
6914         [BZ #11460]
6915         * io/Makefile (routines): Add fts64.
6916         (tests): Add tst-fts and tst-fts-lfs.
6917         (CFLAGS-fts64.c): New.
6918         * io/Versions (GLIBC_2.23): New.
6919         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
6920         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
6921         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
6922         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
6923         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
6924         (FTSENT64): Likewise.
6925         (fts64_children): Likewise.
6926         (fts64_close): Likewise.
6927         (fts64_open): Likewise.
6928         (fts64_read): Likewise.
6929         (fts64_set): Likewise.
6930         * io/fts64.c: New file.
6931         * io/tst-fts.c: New test.
6932         * io/tst-fts-lfs.c: Likewise.
6933         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
6934         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
6935         fts64_set.
6936         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6937         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6938         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6939         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6940         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6941         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6942         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6943         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6944         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6945         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6946         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6947         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6948         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6950         Likewise.
6951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6952         Likewise.
6953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6955         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6956         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6957         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6958         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6959         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6962         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6963         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6964         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6965         * sysdeps/wordsize-64/fts.c: New file.
6966         * sysdeps/wordsize-64/fts64.c: Likewise.
6967         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
6968         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
6969         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
6970         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
6971
6972 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6973
6974         * math/libm-test.inc (NON_FINITE): New macro.
6975         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
6976         * math/gen-libm-test.pl (show_exceptions): Add argument
6977         $non_finite.
6978         (parse_args): Update call to show_exceptions.
6979         * math/test-math-finite.h: New file.
6980         * math/test-math-no-finite.h: Likewise.
6981         * math/test-double-finite.c: Likewise.
6982         * math/test-float-finite.c: Likewise.
6983         * math/test-ldouble-finite.c: Likewise.
6984         * math/test-double.c: Include "test-math-no-finite.h".
6985         * math/test-float.c: Include "test-math-no-finite.h".
6986         * math/test-ldouble.c: Include "test-math-no-finite.h".
6987         * math/test-math-inline.h (TEST_FINITE): New macro.
6988         * math/test-math-vector.h (TEST_FINITE): Likewise.
6989         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
6990         (libm-tests): Add test-float-finite and test-double-finite.
6991         ($(objpfx)test-float-finite.o): New dependency on
6992         $(objpfx)libm-test.stmp.
6993         ($(objpfx)test-double-finite.o): Likewise.
6994         ($(objpfx)test-ldouble-finite.o): Likewise.
6995         (libm-test-no-inline-cflags): New variable.
6996         (libm-test-finite-cflags): Likewise.
6997         (CFLAGS-test-float-finite.c): Likewise.
6998         (CFLAGS-test-double-finite.c): Likewise.
6999         (CFLAGS-test-ldouble-finite.c): Likewise.
7000         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7001         (CFLAGS-test-double.c): Likewise.
7002         (CFLAGS-test-ldouble.c): Likewise.
7003
7004 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7005
7006         * io/fcntl.c (__fcntl): Add ... to prototype.
7007         * misc/ioctl.c (__ioctl): Likewise.
7008         * misc/syscall.c (syscall): Likewise.
7009
7010 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7011
7012         * scripts/list-fixed-bugs.py: New file.
7013
7014         [BZ #19213]
7015         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7016         returned for argument 1.
7017         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7018         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7019         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7020         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7021         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7022         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7023
7024         [BZ #19211]
7025         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7026         __USE_XOPEN], not if [!__USE_ISOC99].
7027         (lgammaf): Likewise.
7028         (lgammal): Likewise.
7029         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7030         (gammaf): Likewise.
7031         (gammal): Likewise.
7032         * math/test-signgam-finite-c11.c: New file.
7033         * math/test-signgam-finite-c99.c: Likewise.
7034         * math/test-signgam-finite.c: Likewise.
7035         * math/Makefile (tests): Add test-signgam-finite,
7036         test-signgam-finite-c99 and test-signgam-finite-c11.
7037         (CFLAGS-test-signgam-finite.c): New variable.
7038         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7039         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7040
7041         [BZ #19212]
7042         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7043         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7044         500].
7045         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7046         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7047         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7048         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7049         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7050         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7051         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7052         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7053         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7054         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7055
7056         [BZ #19209]
7057         * math/bits/math-finite.h (ldexp): Remove declaration.
7058         (ldexpf): Likewise.
7059         (ldexpl): Likewise.
7060
7061         [BZ #19205]
7062         * math/bits/math-finite.h (acosf): Condition declaration on
7063         [__USE_ISOC99].
7064         (acosl): Likewise.
7065         (acoshf): Likewise.
7066         (acoshl): Likewise.
7067         (asinf): Likewise.
7068         (asinl): Likewise.
7069         (atan2f): Likewise.
7070         (atan2l): Likewise.
7071         (atanhf): Likewise.
7072         (atanhl): Likewise.
7073         (coshf): Likewise.
7074         (coshl): Likewise.
7075         (expf): Likewise.
7076         (expl): Likewise.
7077         (fmodf): Likewise.
7078         (fmodl): Likewise.
7079         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7080         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7081         (j0l): Likewise.
7082         (y0f): Likewise.
7083         (y0l): Likewise.
7084         (j1f): Likewise.
7085         (j1l): Likewise.
7086         (y1f): Likewise.
7087         (y1l): Likewise.
7088         (jnf): Likewise.
7089         (jnl): Likewise.
7090         (ynf): Likewise.
7091         (ynl): Likewise.
7092         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7093         (lgammal_r): Likewise.
7094         (__lgamma_r_finite): New declaration.
7095         (__lgammaf_r_finite): Likewise.
7096         (__lgammal_r_finite): Likewise.
7097         (lgamma): Use __lgamma_r_finite.
7098         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7099         __lgammaf_r_finite.
7100         (lgammal): Condition definition on [__USE_ISOC99].  Use
7101         __lgammal_r_finite.
7102         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7103         __lgamma_r_finite.
7104         (gammaf): Condition definition on [__USE_ISOC99].  Use
7105         __lgammaf_r_finite.
7106         (gammal): Condition definition on [__USE_ISOC99].  Use
7107         __lgammal_r_finite.
7108         (logf): Condition declaration on [__USE_ISOC99].
7109         (logl): Likewise.
7110         (log10f): Likewise.
7111         (log10l): Likewise.
7112         (ldexpf): Likewise.
7113         (ldexpl): Likewise.
7114         (powf): Likewise.
7115         (powl): Likewise.
7116         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7117         __USE_ISOC99].
7118         (remainderf): Condition declaration on [__USE_ISOC99].
7119         (remainderl): Likewise.
7120         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7121         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7122         (scalbl): Likewise.
7123         (sinhf): Condition declaration on [__USE_ISOC99].
7124         (sinhl): Likewise.
7125         (sqrtf): Likewise.
7126         (sqrtl): Likewise.
7127
7128 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7129
7130         * sysdeps/arm/atomic-machine.h
7131         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7132         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7133         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7134         Remove conditional code.
7135         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7136         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7137         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7138         Change conditional to [__ASSEMBLER__].
7139         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7140         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7141         [!__ASSEMBLER__].
7142         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7143         code.
7144         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7145         conditional macro definitions.
7146         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7147         (__arch_compare_and_exchange_val_16_acq): Likewise.
7148         (__arch_compare_and_exchange_val_32_acq): Likewise.
7149         (atomic_exchange_and_add): Likewise.
7150         (atomic_add): Likewise.
7151         (atomic_add_negative): Likewise.
7152         (atomic_add_zero): Likewise.
7153         (atomic_bit_set): Likewise.
7154         (atomic_bit_test_set): Likewise.
7155         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7156         code unconditional.
7157         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7158
7159         * math/test-math-errno.h: New file.
7160         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7161         empty.
7162         (TEST_ERRNO): New macro.
7163         (TEST_EXCEPTIONS): Likewise.
7164         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7165         (TEST_EXCEPTIONS): Likewise.
7166         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7167         * math/test-double.c: Include "test-math-errno.h".
7168         * math/test-float.c: Likewise.
7169         * math/test-ldouble.c: Likewise.
7170         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7171         code unconditional.
7172         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7173         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7174         unconditional.
7175         (test_errno): Only run code if TEST_ERRNO.
7176         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7177
7178 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7179
7180         * nptl/tst-once5.cc: Remove attribution.
7181
7182 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7183
7184         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7185         sqrt, tan, tanh, y0, y1 and yn.
7186         * math/auto-libm-test-out: Regenerated.
7187         * math/libm-test.inc (scalb_test_data): Add more tests.
7188         (scalbn_test_data): Likewise.
7189         (scalbln_test_data): Likewise.
7190         (signbit_test_data): Likewise.
7191         (sin_test_data): Likewise.
7192         (sincos_test_data): Likewise.
7193         (sinh_test_data): Likewise.
7194         (sqrt_test_data): Likewise.
7195         (tan_test_data): Likewise.
7196         (tanh_test_data): Likewise.
7197         (tgamma_test_data): Likewise.
7198         (y0_test_data): Likewise.
7199         (y1_test_data): Likewise.
7200         (yn_test_data): Likewise.
7201         (significand_test_data): Likewise.
7202         * sysdeps/i386/fpu/libm-test-ulps: Update.
7203
7204 2015-11-03  David Kastrup  <dak@gnu.org>
7205
7206         [BZ #18604]
7207         * assert/assert.h (assert): Don't macro-expand failed assertion
7208         expression in error message.
7209         * malloc/malloc.c (assert): Likewise.
7210
7211 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7212
7213         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7214         test.
7215         * configure: Regenerated.
7216
7217 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7218
7219         * math/libm-test.inc (modf_test_data): Add more tests.
7220         (nearbyint_test_data): Likewise.
7221         (nextafter_test_data): Likewise.
7222         (nexttoward_test_data): Likewise.
7223         (pow_test_data): Likewise.
7224         (remainder_test_data): Likewise.
7225         (remquo_test_data): Likewise.
7226         (rint_test_data): Likewise.
7227
7228         [BZ #19201]
7229         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7230         Check for zero remainder in case of large exponents and ensure
7231         correct sign of result in that case.
7232         * math/libm-test.inc (remainder_test_data): Add more tests.
7233
7234         [BZ #6799]
7235         * math/s_nextafter.c: Include <errno.h>.
7236         (__nextafter): Set errno on overflow and underflow.
7237         * math/s_nexttowardf.c: Include <errno.h>.
7238         (__nexttowardf): Set errno on overflow and underflow.
7239         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7240         (__nextafterl): Set errno on overflow and underflow.
7241         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7242         (__nexttoward): Set errno on overflow and underflow.
7243         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7244         (__nexttowardf): Set errno on overflow and underflow.
7245         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7246         (__nextafterf): Set errno on overflow and underflow.
7247         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7248         (__nextafterl): Set errno on overflow and underflow.
7249         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7250         (__nexttoward): Set errno on overflow and underflow.
7251         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7252         (__nexttowardf): Set errno on overflow and underflow.
7253         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7254         (__nextafterl): Set errno on overflow and underflow.
7255         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7256         (__nexttoward): Set errno on overflow and underflow.
7257         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7258         (__nexttowardf): Set errno on overflow and underflow.
7259         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7260         (__nexttoward): Set errno on overflow and underflow.
7261         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7262         (__nexttowardf): Set errno on overflow and underflow.
7263         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7264         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7265         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7266         (__nextafterl): Set errno on overflow and underflow.
7267         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7268         setting to be missing on overflow.  Add more tests.
7269         (nexttoward_test_data): Likewise.
7270
7271         * configure.ac (libc_cv_initfini_array): Remove configure test.
7272         * configure: Regenerated.
7273
7274 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7275
7276         [BZ #19189]
7277         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7278         non-finite argument handle arguments with negative sign.
7279
7280         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7281         result from infinite argument.
7282         (j1_test_data): Likewise.
7283         (jn_test_data): Likewise.
7284         (y0_test_data): Likewise.
7285         (y1_test_data): Likewise.
7286         (yn_test_data): Likewise.
7287
7288         [BZ #16171]
7289         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7290         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7291         * math/w_remainderf.c (dremf): Define as weak alias of
7292         __remainderf.
7293         * math/w_remainderl.c (dreml): Define as weak alias of
7294         __remainderl.
7295         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7296         __remainder.
7297         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7298         __remainderf.
7299         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7300         __remainderl.
7301         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7302         weak alias of remainderl.
7303         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7304         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7305         alias of __remainder.
7306         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7307         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7308         strong alias of __remainderl.
7309         (dreml): Use long_double_symbol.
7310         * math/Makefile (libm-calls): Remove w_drem.
7311         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7312         (CFLAGS-nldbl-drem.c): Remove variable.
7313         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7314         * math/w_drem.c: Remove file.
7315         * math/w_dremf.c: Likewise.
7316         * math/w_dreml.c: Likewise.
7317         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7318         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7319         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7320
7321         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7322         * sysdeps/i386/configure: Regenerated.
7323         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7324         * sysdeps/x86_64/configure: Regenerated.
7325
7326         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7327         test.
7328         (libc_cv_visibility_attribute): Likewise.
7329         (libc_cv_protected_data): Test unconditionally.
7330         (libc_cv_broken_visibility_attribute): Remove configure test.
7331         (libc_cv_have_sdata_section): Test unconditionally.
7332         * configure: Regenerated.
7333
7334         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7335         * include/scratch_buffer.h: Include <stddef.h> instead of
7336         <libc-internal.h>.
7337         (struct scratch_buffer): Use max_align_t instead of
7338         libc_max_align_t.
7339
7340 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7341
7342         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7343         instead of extend_alloca.  Change control flow to avoid a goto.
7344         Remove assert which is trivially always true.
7345
7346 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7347
7348         [BZ #16068]
7349         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7350         (FE_ALL_EXCEPT_X86): New macro.
7351         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7352         FE_ALL_EXCEPT.  Ensure precision control is included in
7353         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7354         handle "denormal operand exception" and clear FZ and DAZ bits.
7355         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7356         (FE_ALL_EXCEPT_X86): New macro.
7357         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7358         FE_ALL_EXCEPT.  Ensure precision control is included in
7359         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7360         handle "denormal operand exception" and clear FZ and DAZ bits.
7361         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7362         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7363         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7364         test-fenv-x87 and test-fenv-sse-2.
7365         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7366
7367         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7368         * math/test-double.h (BUILD_COMPLEX): New macro.
7369         * math/test-float.h (BUILD_COMPLEX): Likewise.
7370         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7371
7372         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7373         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7374         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7375         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7376         instead of DBL_DENORM_MIN in comment.
7377         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7378         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7379         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7380         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7381         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7382         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7383
7384 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7385
7386         [BZ# 19048]
7387         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7388         attached_threads member.
7389         (main_arena): Initialize attached_threads.
7390         * malloc/arena.c (list_lock): Update comment.
7391         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7392         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7393         (deattach_arena): New function.
7394         (_int_new_arena): Initialize arena reference count and deattach
7395         replaced arena.
7396         (get_free_list, reused_arena): Update reference count and deattach
7397         replaced arena.
7398         (arena_thread_freeres): Update arena reference count and only put
7399         unreferenced arenas on the free list.
7400
7401 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7402
7403         [BZ #19181]
7404         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7405         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7406         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7407         * math/test-fenv-clear-main.c: New file.
7408         * math/test-fenv-clear.c: Likewise.
7409         * math/Makefile (tests): Add test-fenv-clear.
7410         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7411         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7412         test-fenv-clear-sse.
7413         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7414
7415         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7416         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7417         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7418
7419 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7420
7421         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7422         static libc.
7423
7424 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7425
7426         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7427         test.
7428         * sysdeps/i386/configure: Regenerated.
7429         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7430         test.
7431         * sysdeps/x86_64/configure: Regenerated.
7432         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7433         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7434         memset-avx2 unconditionally instead of conditionally on
7435         [$(config-cflags-avx2) = yes].
7436         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7437         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7438         unconditional.
7439         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7440         * sysdeps/x86_64/multiarch/memset_chk.S
7441         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7442         to [IS_IN (libc) && SHARED].
7443
7444 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7445
7446         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7447         configure test.
7448         * sysdeps/arm/configure: Regenerated.
7449         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7450         Define variable if not already defined.
7451
7452         [BZ #17404]
7453         * sysdeps/mips/atomic-machine.h
7454         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7455         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7456         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7457
7458         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7459         unconditional.
7460         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7461         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7462         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7463         unconditional.
7464         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7465         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7466         unconditional.
7467         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7468         * stdlib/setenv.c
7469         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7470         code unconditional.
7471         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7472         Remove conditional code.
7473         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7474         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7475         unconditional.
7476         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7477         code.
7478         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7479         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7480         unconditional.
7481         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7482         code.
7483         * sysdeps/ieee754/ldbl-128/k_tanl.c
7484         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7485         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7486         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7487         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7488         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7489         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7490         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7491         unconditional.
7492         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7493         code.
7494         * sysdeps/ieee754/ldbl-96/k_tanl.c
7495         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7496         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7497
7498         * nptl/tst-initializers1-c11.c: New file.
7499         * nptl/tst-initializers1-gnu11.c: Likewise.
7500         * nptl/Makefile (tests): Add these new tests.
7501         (CFLAGS-tst-initializers1-c11.c): New variable.
7502         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7503
7504         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7505         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7506         instead of -std=gnu99.
7507         * configure.ac (systemtap): Test with -std=gnu11 instead of
7508         -std=gnu99.
7509         * configure: Regenerated.
7510         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7511         in compilation command in comment.
7512
7513         * sysdeps/nptl/configure.ac: Remove file.
7514         * sysdeps/nptl/configure: Remove generated file.
7515         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7516         * configure: Regenerated.
7517         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7518         * config.make.in (have-forced-unwind): Remove variable.
7519         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7520         unconditional.
7521         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7522         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7523         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7524         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7525         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7526         unconditional.
7527
7528 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7529
7530         [BZ #19174]
7531         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7532         .skip_lock_out_of_tbegin_retries.
7533         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7534         (__lll_lock_elision): Likewise, and respect a value of
7535         try_tbegin <= 0.
7536
7537 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7538
7539         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7540         statement.
7541
7542 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7543
7544         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7545         variable.
7546         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7547         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7548
7549         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7550         of -std=c1x -D_ISOC11_SOURCE.
7551
7552         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7553         * configure: Regenerated.
7554         * manual/install.texi (Tools for Compilation): Document
7555         requirement for GCC 4.7 or later.
7556         * INSTALL: Regenerated.
7557
7558 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7559
7560         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7561         on CNT to a conditional jump to 'puntdata'.
7562
7563 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7564
7565         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7566         (libc_cv_gcc_tls_model_attr): Likewise.
7567         * configure: Regenerated.
7568
7569         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7570         * configure: Regenerated.
7571         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7572
7573 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7574
7575         * configure.ac (old_glibc_headers): Remove configure test.
7576         * configure: Regenerated.
7577         * config.make.in (old-glibc-headers): Remove variable.
7578         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7579         (install): Remove dependency on remove-old-headers.
7580         (headers2_0): Remove variable.
7581         (remove-old-headers): Remove rule.
7582
7583         * configure.ac (libc_cv_dot_text): Remove configure test.
7584         (libc_cv_asm_set_directive): Use .text instead of
7585         ${libc_cv_dot_text} in configure test.
7586         * configure: Regenerated.
7587
7588 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7589
7590         [BZ #19168]
7591         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7592
7593 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7594
7595         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7596         not support static linking.
7597         * configure: Regenerate.
7598
7599 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7600
7601         * math/libm-test.inc (check_float_internal): Do not special-case
7602         errors up to 0.5 ulp.
7603
7604         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7605         log2.
7606         * math/auto-libm-test-out: Regenerated.
7607         * math/libm-test.inc (MAX_EXP): New macro.
7608         (ilogb_test_data): Add more tests.
7609         (isfinite_test_data): Likewise.
7610         (isgreater_test_data): Likewise.
7611         (isgreaterequal_test_data): Likewise.
7612         (isinf_test_data): Likewise.
7613         (isless_test_data): Likewise.
7614         (islessequal_test_data): Likewise.
7615         (islessgreater_test_data): Likewise.
7616         (isnan_test_data): Likewise.
7617         (isnormal_test_data): Likewise.
7618         (issignaling_test_data): Likewise.
7619         (isunordered_test_data): Likewise.
7620         (j0_test_data): Likewise.
7621         (j1_test_data): Likewise.
7622         (jn_test_data): Likewise.
7623         (lgamma_test_data): Likewise.
7624         (log_test_data): Likewise.
7625         (log10_test_data): Likewise.
7626         (log1p_test_data): Likewise.
7627         (log2_test_data): Likewise.
7628         (logb_test_data): Likewise.
7629         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7630
7631         [BZ #18611]
7632         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7633         avoid excess range and precision on underflow.
7634         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7635         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7636         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7637         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7638         underflow.
7639         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7640         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7641         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7642         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7643         * math/auto-libm-test-in: Do not allow missing errno setting for
7644         tests of j1 and jn.
7645         * math/auto-libm-test-out: Regenerated.
7646
7647 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7648
7649         [BZ #15491]
7650         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7651         floating-point environment instead of clearing all exceptions.
7652         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7653         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7654         merging in "invalid" exceptions from frndint.
7655         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7656         * math/test-nearbyint-except.c: New file.
7657         * math/Makefile (tests): Add test-nearbyint-except.
7658
7659 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7660
7661         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7662
7663         * sysdeps/tile/libm-test-ulps: Regenerated.
7664
7665 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7666
7667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7668         (__NR_sync_file_range2): Assume it is always defined.
7669         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7670         (__NR_sync_file_range): Assume it is always defined.
7671
7672 2015-10-22  Andreas Schwab  <schwab@suse.de>
7673
7674         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7675         INTERNAL_SYSCALL_ERRNO.
7676         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7677         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7678         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7679         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7680         Likewise.
7681         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7682
7683 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7684
7685         * io/tst-fcntl.c (fd): New static variable.
7686         (do_prepare): Open temporary file here....
7687         (do_test): ...not here.
7688
7689         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7690
7691 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7692
7693         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7694         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7695         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7696         Moved before "#ifdef __ASSEMBLER__".
7697
7698 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7699
7700         [BZ #19156]
7701         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7702         arguments very close to 0.
7703
7704 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7705
7706         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7707         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7708
7709 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7710
7711         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7712         New.  Defined for GCC 5 and above when not compiling for
7713         profiling.
7714         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7715
7716         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7717         Renamed to ...
7718         (CFLAGS-epoll_pwait.o): This.
7719         (CFLAGS-mmap.c): Renamed to ...
7720         (CFLAGS-mmap.o): This.
7721         (CFLAGS-mmap64.c): Renamed to ...
7722         (CFLAGS-mmap64.o): This.
7723         (CFLAGS-epoll_pwait.os): New.
7724         (CFLAGS-mmap.os): Likewise.
7725         (CFLAGS-mmap64.os): Likewise.
7726         (CFLAGS-semtimedop.os): Likewise.
7727         (CFLAGS-semtimedop.c): Renamed to ...
7728         (CFLAGS-semtimedop.o): This.
7729
7730 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7731
7732         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7733         warning message.
7734
7735 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7736
7737         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7738         * Makefile ($(objpfx)c++-types-check.out): Filter out
7739         $(+gccwarn-c) instead of -Wstrict-prototypes.
7740
7741         * io/fts.c (fts_open): Convert to prototype-style function
7742         definition.
7743         * malloc/mcheck.c (mcheck): Likewise.
7744         (mcheck_pedantic): Likewise.
7745         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7746         internal_function.
7747         (re_search_internal): Likewise.
7748         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7749         prototype-style function definition.
7750         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7751         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7752         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7753         (xdr_utmpptr): Likewise.
7754         (xdr_utmparr): Likewise.
7755         (xdr_utmpidle): Likewise.
7756         (xdr_utmpidleptr): Likewise.
7757         (xdr_utmpidlearr): Likewise.
7758
7759         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7760         log, log10 and log2.
7761         * math/auto-libm-test-out: Regenerated.
7762         * math/libm-test.inc (fmod_test_data): Add more tests.
7763         (fpclassify_test_data): Likewise.
7764         (frexp_test_data): Likewise.
7765         (hypot_test_data): Likewise.
7766         (ilogb_test_data): Likewise.
7767
7768 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7769
7770         * debug/fortify_fail.c (__fortify_fail): Convert to
7771         prototype-style function definition.  Use internal_function.
7772         * libio/genops.c (save_for_backup): Convert to prototype-style
7773         function definition.
7774         * libio/wgenops.c (save_for_wbackup): Likewise.
7775         * login/grantpt.c (grantpt): Likewise.
7776         * login/ptsname.c (ptsname): Likewise.
7777         (__ptsname_r): Likewise.
7778         * login/unlockpt.c (unlockpt): Likewise.
7779         * mach/msgserver.c (__mach_msg_server): Likewise.
7780         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
7781         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
7782         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
7783         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
7784         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
7785         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
7786         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
7787         Likewise.
7788         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
7789         internal_function.
7790         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
7791         prototype-style function definition.
7792         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
7793         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
7794         (__pthread_create_2_0): Likewise.
7795         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
7796         * nptl/register-atfork.c (__register_atfork): Likewise.
7797         * posix/glob.c (glob): Likewise.
7798         * posix/regcomp.c (re_comp): Likewise.
7799         * posix/regexec.c (re_exec): Likewise.
7800         * stdlib/add_n.c [__STDC__]: Make code unconditional.
7801         [!__STDC__]: Remove conditional code.
7802         * stdlib/cmp.c [__STDC__]: Make code unconditional.
7803         [!__STDC__]: Remove conditional code.
7804         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
7805         [!__STDC__]: Remove conditional code.
7806         * stdlib/divrem.c [__STDC__]: Make code unconditional.
7807         [!__STDC__]: Remove conditional code.
7808         * stdlib/lshift.c [__STDC__]: Make code unconditional.
7809         [!__STDC__]: Remove conditional code.
7810         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
7811         [!__STDC__]: Remove conditional code.
7812         * stdlib/mul.c [__STDC__]: Make code unconditional.
7813         [!__STDC__]: Remove conditional code.
7814         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
7815         [!__STDC__]: Remove conditional code.
7816         * stdlib/rshift.c [__STDC__]: Make code unconditional.
7817         [!__STDC__]: Remove conditional code.
7818         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
7819         function definition.
7820         (STRTOF): Likewise.
7821         * stdlib/strtod_l.c (__STRTOF): Likewise.
7822         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
7823         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
7824         (__strtol_l): Likewise.
7825         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
7826         [!__STDC__]: Remove conditional code.
7827         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
7828         definition.
7829         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7830         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7831         type.
7832         (__strcasecmp): Convert to prototype-style function definition.
7833         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
7834         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7835         type.
7836         (__strncasecmp): Convert to prototype-style function definition.
7837         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
7838         * sunrpc/xdr.c (xdr_union): Likewise.
7839         * sunrpc/xdr_array.c (xdr_array): Likewise.
7840         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
7841         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
7842         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
7843         Likewise.
7844         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
7845         Likewise.
7846         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
7847         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7848         Likewise.
7849         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
7850         (LOCALE_PARAM_PROTO): Likewise.
7851         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
7852         argument type.
7853         (ut_argument_spec): Remove macro.
7854         (ut_argument_spec_iso): Rename to ut_argument_spec.
7855         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
7856         prototype-style function definition.
7857         (memcpy_uppcase): Likewise.
7858         (__strftime_internal): Likewise.
7859         (my_strftime): Likewise.
7860         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
7861         (LOCALE_PARAM_DECL): Likewise.
7862         [_LIBC] (LOCALE_PARAM): Include argument type.
7863         (__strptime_internal): Convert to prototype-style function
7864         definition.
7865         (strptime): Likewise.
7866         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7867         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7868         type.
7869         (__wcscasecmp): Convert to prototype-style function definition.
7870         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
7871         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7872         type.
7873         (__wcsncasecmp): Convert to prototype-style function definition.
7874
7875         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
7876         function definition.
7877         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7878         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7879         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
7880         * elf/dl-minimal.c (_itoa): Likewise.
7881         * hurd/hurdmalloc.c (malloc): Likewise.
7882         (free): Likewise.
7883         (realloc): Likewise.
7884         * inet/inet6_option.c (inet6_option_space): Likewise.
7885         (inet6_option_init): Likewise.
7886         (inet6_option_append): Likewise.
7887         (inet6_option_alloc): Likewise.
7888         (inet6_option_next): Likewise.
7889         (inet6_option_find): Likewise.
7890         * io/ftw.c (FTW_NAME): Likewise.
7891         (NFTW_NAME): Likewise.
7892         (NFTW_NEW_NAME): Likewise.
7893         (NFTW_OLD_NAME): Likewise.
7894         * libio/iofwide.c (_IO_fwide): Likewise.
7895         * libio/strops.c (_IO_str_init_static_internal): Likewise.
7896         (_IO_str_init_static): Likewise.
7897         (_IO_str_init_readonly): Likewise.
7898         (_IO_str_overflow): Likewise.
7899         (_IO_str_underflow): Likewise.
7900         (_IO_str_count): Likewise.
7901         (_IO_str_seekoff): Likewise.
7902         (_IO_str_pbackfail): Likewise.
7903         (_IO_str_finish): Likewise.
7904         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
7905         (_IO_wstr_overflow): Likewise.
7906         (_IO_wstr_underflow): Likewise.
7907         (_IO_wstr_count): Likewise.
7908         (_IO_wstr_seekoff): Likewise.
7909         (_IO_wstr_pbackfail): Likewise.
7910         (_IO_wstr_finish): Likewise.
7911         * locale/programs/localedef.c (normalize_codeset): Likewise.
7912         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7913         (add_locales_to_archive): Likewise.
7914         (delete_locales_from_archive): Likewise.
7915         * malloc/malloc.c (__libc_mallinfo): Likewise.
7916         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
7917         * misc/tsearch.c (__tfind): Likewise.
7918         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
7919         * nptl/pthread_attr_getdetachstate.c
7920         (__pthread_attr_getdetachstate): Likewise.
7921         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
7922         Likewise.
7923         * nptl/pthread_attr_getinheritsched.c
7924         (__pthread_attr_getinheritsched): Likewise.
7925         * nptl/pthread_attr_getschedparam.c
7926         (__pthread_attr_getschedparam): Likewise.
7927         * nptl/pthread_attr_getschedpolicy.c
7928         (__pthread_attr_getschedpolicy): Likewise.
7929         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
7930         Likewise.
7931         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
7932         Likewise.
7933         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
7934         Likewise.
7935         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
7936         Likewise.
7937         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
7938         (__pthread_attr_init_2_0): Likewise.
7939         * nptl/pthread_attr_setdetachstate.c
7940         (__pthread_attr_setdetachstate): Likewise.
7941         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
7942         Likewise.
7943         * nptl/pthread_attr_setinheritsched.c
7944         (__pthread_attr_setinheritsched): Likewise.
7945         * nptl/pthread_attr_setschedparam.c
7946         (__pthread_attr_setschedparam): Likewise.
7947         * nptl/pthread_attr_setschedpolicy.c
7948         (__pthread_attr_setschedpolicy): Likewise.
7949         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
7950         Likewise.
7951         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
7952         Likewise.
7953         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
7954         Likewise.
7955         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
7956         Likewise.
7957         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
7958         Likewise.
7959         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
7960         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
7961         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
7962         use internal_function.
7963         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
7964         prototype-style function definition.
7965         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
7966         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
7967         internal_function.
7968         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
7969         Convert to prototype-style function definition.
7970         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7971         Likewise.
7972         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
7973         Likewise.
7974         (__pthread_mutex_unlock): Likewise.
7975         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
7976         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
7977         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
7978         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
7979         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
7980         * nss/makedb.c (process_input): Likewise.
7981         * posix/fnmatch.c (__strchrnul): Likewise.
7982         (__wcschrnul): Likewise.
7983         (fnmatch): Likewise.
7984         * posix/fnmatch_loop.c (FCT): Likewise.
7985         * posix/glob.c (globfree): Likewise.
7986         (__glob_pattern_type): Likewise.
7987         (__glob_pattern_p): Likewise.
7988         * posix/regcomp.c (re_compile_pattern): Likewise.
7989         (re_set_syntax): Likewise.
7990         (re_compile_fastmap): Likewise.
7991         (regcomp): Likewise.
7992         (regerror): Likewise.
7993         (regfree): Likewise.
7994         * posix/regexec.c (regexec): Likewise.
7995         (re_match): Likewise.
7996         (re_search): Likewise.
7997         (re_match_2): Likewise.
7998         (re_search_2): Likewise.
7999         (re_search_stub): Likewise.  Use internal_function
8000         (re_copy_regs): Likewise.
8001         (re_set_registers): Convert to prototype-style function
8002         definition.
8003         (prune_impossible_nodes): Likewise.  Use internal_function.
8004         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8005         prototype-style function definition.
8006         (inet_net_pton_ipv4): Likewise.
8007         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8008         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8009         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8010         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8011         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8012         Make variadic.
8013         * time/strptime_l.c (localtime_r): Convert to prototype-style
8014         function definition.
8015         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8016         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8017         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8018         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8019
8020         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8021         definition.
8022         (_ufc_doit_r): Likewise.
8023         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8024         (_ufc_output_conversion_r): Likewise.
8025         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8026         * inet/rcmd.c (rcmd_af): Likewise.
8027         (rcmd): Likewise.
8028         (ruserok_af): Likewise.
8029         (ruserok): Likewise.
8030         (ruserok2_sa): Likewise.
8031         (ruserok_sa): Likewise.
8032         (iruserok_af): Likewise.
8033         (iruserok): Likewise.
8034         (__ivaliduser): Likewise.
8035         (__validuser2_sa): Likewise.
8036         * inet/rexec.c (rexec_af): Likewise.
8037         (rexec): Likewise.
8038         * inet/ruserpass.c (ruserpass): Likewise.
8039         * locale/programs/xmalloc.c (xcalloc): Likewise.
8040         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8041         * math/w_drem.c (__drem): Likewise.
8042         * math/w_dremf.c (__dremf): Likewise.
8043         * math/w_dreml.c (__dreml): Likewise.
8044         * misc/daemon.c (daemon): Likewise.
8045         * resolv/res_debug.c (p_fqnname): Likewise.
8046         * stdlib/div.c (div): Likewise.
8047         * string/memcmp.c (memcmp_bytes): Likewise.
8048         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8049         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8050
8051         * crypt/cert.c (main): Convert to prototype-style function
8052         definition.
8053         * io/pipe.c (__pipe): Likewise.
8054         * io/pipe2.c (__pipe2): Likewise.
8055         * misc/futimesat.c (futimesat): Likewise.
8056         * misc/utimes.c (__utimes): Likewise.
8057         * posix/execve.c (__execve): Likewise.
8058         * posix/execvp.c (execvp): Likewise.
8059         * posix/execvpe.c (__execvpe): Likewise.
8060         * posix/fexecve.c (fexecve): Likewise.
8061         * socket/socketpair.c (socketpair): Likewise.
8062         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8063         * stdlib/erand48.c (erand48): Likewise.
8064         * stdlib/erand48_r.c (__erand48_r): Likewise.
8065         * stdlib/jrand48.c (jrand48): Likewise.
8066         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8067         * stdlib/lcong48.c (lcong48): Likewise.
8068         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8069         * stdlib/nrand48.c (nrand48): Likewise.
8070         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8071         * stdlib/seed48.c (seed48): Likewise.
8072         * stdlib/seed48_r.c (__seed48_r): Likewise.
8073         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8074         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8075         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8076
8077 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8078
8079         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8080         * configure: Regenerated.
8081         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8082         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8083         unconditional.
8084         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8085         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8086         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8087         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8088         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8089         unconditional.
8090         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8091
8092         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8093         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8094
8095         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8096         function definition.
8097         * crypt/crypt_util.c (__encrypt_r): Likewise.
8098         * libio/genops.c (_IO_no_init): Likewise.
8099         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8100         (_IO_old_fopencookie): Likewise.
8101         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8102         * libio/iogetline.c (_IO_getline): Likewise.
8103         (_IO_getline_info): Likewise.
8104         * libio/iogetwline.c (_IO_getwline): Likewise.
8105         (_IO_getwline_info): Likewise.
8106         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8107         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8108         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8109         (find_entry): Likewise.
8110         (iterate_table): Likewise.
8111         (lookup): Likewise.
8112         * login/forkpty.c (forkpty): Likewise.
8113         * misc/hsearch_r.c (__hsearch_r): Likewise.
8114         * misc/select.c (__select): Likewise.
8115         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8116         Likewise.
8117         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8118         Likewise.
8119         * nptl/old_pthread_cond_timedwait.c
8120         (__pthread_cond_timedwait_2_0): Likewise.
8121         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8122         * nptl/pthread_barrierattr_getpshared.c
8123         (pthread_barrierattr_getpshared): Likewise.
8124         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8125         Likewise.
8126         * nptl/pthread_mutex_setprioceiling.c
8127         (pthread_mutex_setprioceiling): Likewise.
8128         * nptl/pthread_mutexattr_getprioceiling.c
8129         (pthread_mutexattr_getprioceiling): Likewise.
8130         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8131         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8132         Likewise.
8133         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8134         Likewise.
8135         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8136         Likewise.
8137         * socket/recvfrom.c (__recvfrom): Likewise.
8138         * socket/sendto.c (__sendto): Likewise.
8139         * socket/setsockopt.c (__setsockopt): Likewise.
8140         * stdio-common/_itoa.c (_itoa): Likewise.
8141         * stdio-common/_itowa.c (_itowa): Likewise.
8142         * stdio-common/reg-printf.c (__register_printf_specifier):
8143         Likewise.
8144         (__register_printf_function): Likewise.
8145         * stdio-common/tempname.c (__path_search): Likewise.
8146         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8147         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8148         * stdlib/random_r.c (__initstate_r): Likewise.
8149         * stdlib/setenv.c (__add_to_environ): Likewise.
8150         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8151         * streams/getpmsg.c (getpmsg): Likewise.
8152         * streams/putmsg.c (putmsg): Likewise.
8153         * streams/putpmsg.c (putpmsg): Likewise.
8154         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8155         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8156         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8157         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8158         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8159         * sunrpc/svc_udp.c (cache_get): Likewise.
8160         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8161         * sysdeps/mach/hurd/getcwd.c
8162         (__canonicalize_directory_name_internal): Likewise.
8163         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8164         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8165         * sysdeps/mach/hurd/select.c (__select): Likewise.
8166         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8167         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8168         * sysdeps/sparc/nptl/pthread_barrier_init.c
8169         (__pthread_barrier_init): Likewise.
8170         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8171         (__pthread_cond_timedwait): Likewise.
8172         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8173         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8174         Likewise.
8175         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8176         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8177         Likewise.
8178         * sysvipc/semtimedop.c (semtimedop): Likewise.
8179         * time/setitimer.c (__setitimer): Likewise.
8180         * time/strftime_l.c (emacs_strftime): Likewise.
8181
8182 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8183
8184         * config.make.in (have-ssp): Delete.
8185         (stack-protector): New variable.
8186         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8187         cache test for -fstack-protector-strong.  Export stack_protector to
8188         the best ssp flag.
8189         * configure: Regenerated.
8190         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8191         * nscd/Makefile (CFLAGS-nscd): Likewise.
8192         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8193
8194 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8195
8196         [BZ #19122]
8197         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8198         attribute_hidden.
8199
8200 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8201
8202         [BZ #18743]
8203         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8204         code to...
8205         (ELIDE_LOCK): ...here.
8206         (__get_new_count): New function with part of the code from
8207         __elide_lock that updates the value of adapt_count after a
8208         transaction abort.
8209         (__elided_trylock): Moved this code to...
8210         (ELIDE_TRYLOCK): ...here.
8211
8212 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8213
8214         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8215         * configure: Regenerate.
8216         * INSTALL: Regenerate.
8217         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8218         and tweak grammar.
8219
8220 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8221
8222         * login/programs/pt_chown.c: Include signal.h
8223         (main): Clear any signal mask from the parent process.
8224
8225 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8226
8227         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8228         * configure: Regenerated.
8229         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8230         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8231         $(gnu89-inline-CFLAGS).
8232
8233         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8234         test.
8235         (libc_cv_asm_weakext_directive): Likewise.
8236         * configure: Regenerated.
8237         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8238         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8239         * include/libc-symbols.h
8240         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8241         #error.
8242         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8243         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8244
8245         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8246         prototype-style function definition.
8247         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8248         * sysdeps/i386/ffs.c (__ffs): Likewise.
8249         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8250         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8251         Likewise.
8252         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8253         Likewise.
8254         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8255         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8256         Likewise.
8257         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8258         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8259         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8260         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8261         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8262         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8263         * sysdeps/mach/hurd/access.c (__access): Likewise.
8264         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8265         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8266         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8267         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8268         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8269         (cthread_getspecific): Likewise.
8270         (cthread_setspecific): Likewise.
8271         (__libc_getspecific): Likewise.
8272         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8273         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8274         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8275         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8276         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8277         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8278         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8279         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8280         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8281         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8282         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8283         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8284         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8285         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8286         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8287         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8288         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8289         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8290         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8291         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8292         * sysdeps/mach/hurd/link.c (__link): Likewise.
8293         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8294         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8295         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8296         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8297         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8298         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8299         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8300         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8301         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8302         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8303         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8304         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8305         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8306         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8307         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8308         * sysdeps/mach/hurd/send.c (__send): Likewise.
8309         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8310         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8311         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8312         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8313         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8314         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8315         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8316         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8317         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8318         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8319         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8320         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8321         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8322         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8323         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8324         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8325         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8326         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8327         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8328         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8329         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8330         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8331         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8332         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8333         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8334         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8335         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8336         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8337         * sysdeps/posix/alarm.c (alarm): Likewise.
8338         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8339         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8340         * sysdeps/posix/dup.c (__dup): Likewise.
8341         * sysdeps/posix/dup2.c (__dup2): Likewise.
8342         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8343         (main): Likewise.
8344         * sysdeps/posix/flock.c (__flock): Likewise.
8345         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8346         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8347         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8348         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8349         * sysdeps/posix/isatty.c (__isatty): Likewise.
8350         * sysdeps/posix/killpg.c (killpg): Likewise.
8351         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8352         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8353         * sysdeps/posix/raise.c (raise): Likewise.
8354         * sysdeps/posix/remove.c (remove): Likewise.
8355         * sysdeps/posix/rename.c (rename): Likewise.
8356         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8357         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8358         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8359         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8360         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8361         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8362         * sysdeps/posix/sigset.c (sigset): Likewise.
8363         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8364         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8365         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8366         * sysdeps/posix/time.c (time): Likewise.
8367         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8368         (ttyname): Likewise.
8369         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8370         * sysdeps/posix/utime.c (utime): Likewise.
8371         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8372         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8373         Likewise.
8374         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8375         (pthread_spin_trylock): Likewise.
8376         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8377         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8378         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8379         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8380         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8381         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8382         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8383         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8384         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8385         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8386         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8387         * sysdeps/s390/ffs.c (__ffs): Likewise.
8388         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8389         Likewise.
8390         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8391         Likewise.
8392         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8393         Likewise.
8394         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8395         (pthread_barrier_destroy): Likewise.
8396         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8397         (__pthread_barrier_wait): Likewise.
8398         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8399         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8400         (__pthread_barrier_wait): Likewise.
8401         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8402         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8403         (memcmp_not_common_alignment): Likewise.
8404         (MEMCMP): Likewise.
8405         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8406         (_wordcopy_fwd_dest_aligned): Likewise.
8407         (_wordcopy_bwd_aligned): Likewise.
8408         (_wordcopy_bwd_dest_aligned): Likewise.
8409         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8410         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8411         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8412         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8413         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8414         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8415         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8416         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8417         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8418         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8419         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8420         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8421         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8422         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8423         * sysdeps/unix/stime.c (stime): Likewise.
8424         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8425         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8426         Likewise.  Use internal_function.
8427         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8428         Convert to prototype-style function definition.
8429         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8430         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8431         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8432         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8433         Likewise.  Use internal_function.
8434         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8435         prototype-style function definition
8436         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8437         Likewise.
8438         (__getlogin_r): Likewise.
8439         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8440         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8441         (__pthread_cond_broadcast): Likewise.
8442         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8443         (__pthread_cond_destroy): Likewise.
8444         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8445         (__pthread_cond_init): Likewise.
8446         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8447         (__pthread_cond_signal): Likewise.
8448         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8449         (__pthread_cond_wait): Likewise.
8450         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8451         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8452         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8453         Likewise.
8454         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8455         Likewise.
8456         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8457         Likewise.
8458         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8459         Likewise.
8460         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8462         (__ftruncate64): Likewise.
8463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8464         (truncate64): Likewise.
8465         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8466         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8467         (pthread_getcpuclockid): Likewise.
8468         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8469         Likewise.
8470         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8471         Likewise.
8472         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8473         Likewise.
8474         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8475         Likewise.
8476         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8477         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8478         (__libc_sigaction): Likewise.
8479         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8480         Likewise.
8481         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8482         (__sigprocmask): Likewise.
8483         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8484         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8485         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8486         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8487         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8488         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8489         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8490         Likewise.
8491         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8492         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8493         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8494         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8495         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8496         Likewise.
8497         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8498         (__sigprocmask): Likewise.
8499         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8500         (cfgetispeed): Likewise.
8501         (cfsetospeed): Likewise.
8502         (cfsetispeed): Likewise.
8503         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8504         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8505         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8506         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8507         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8508         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8509         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8510         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8511         Likewise.
8512         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8513         Likewise.
8514         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8515         Likewise.
8516         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8517         Likewise.
8518         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8519
8520 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8521
8522         sunrpc: Rewrite with explicit TLS access using __thread.
8523         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8524         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8525         directly.
8526         (__rpc_thread_variables): Access thread_rpc_vars directly.
8527         Eliminate redundant assignment of the tvp variable.
8528
8529 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8530
8531         malloc: Rewrite with explicit TLS access using __thread.
8532         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8533         (tsd_setspecific, tsd_getspecific): Remove.
8534         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8535         (tsd_setspecific, tsd_getspecific): Likewise.
8536         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8537         (tsd_setspecific, tsd_getspecific): Likewise.
8538         * malloc/arena.c (thread_arena): New TLS variable.
8539         (arena_key): Remove variable.
8540         (arena_get): Use thread_arena.
8541         (arena_lookup): Remove macro.
8542         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8543         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8544         (_int_new_arena, get_free_list, reused_arena)
8545         (arena_thread_freeres): Use thread_arena.
8546         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8547         tsd_getspecific, tsd_setspecific from safety annotations.
8548         (Allocating Cleared Space): Remove arena_lookup from safety
8549         annotations.
8550
8551 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8552
8553         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8554         struct scratch_buffer instead of extend_alloca.
8555
8556 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8557
8558         * sysdeps/unix/sysv/linux/kernel-features.h
8559         (__ASSUME_SOCK_CLOEXEC): Remove.
8560         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8561         (__have_paccept): Remove unused macro.
8562         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8563         * misc/syslog.c (openlog_internal): Remove fallback code for
8564         !__ASSUME_SOCK_CLOEXEC.
8565         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8566         missing SOCK_CLOEXEC.
8567         * nscd/connections.c (have_sock_cloexec): Remove definition.
8568         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8569         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8570         !__ASSUME_SOCK_CLOEXEC.
8571         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8572         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8573         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8574         definition.
8575         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8576         code for !__ASSUME_SOCK_CLOEXEC.
8577
8578 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8579
8580         [BZ #18982]
8581         * manual/stdio.texi (Variable Arguments Output): Add portability
8582         note, explaining that vfprintf clobbers the va_list pointer.
8583
8584 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8585
8586         * math/libm-test.inc (fabs_test_data): Add more tests.
8587         (fdim_test_data): Likewise.
8588         (fma_test_data): Likewise.
8589         (fmax_test_data): Likewise.
8590         (fmin_test_data): Likewise.
8591         (fmod_test_data): Likewise.
8592
8593 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8594
8595         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8596         data.
8597
8598 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8599
8600         * math/libm-test.inc (ceil_test_data): Add more tests and more
8601         expectations for "inexact".
8602         (floor_test_data): Add more tests.
8603         (round_test_data): Likewise.
8604         (trunc_test_data): Likewise.
8605
8606         * crypt/cert.c (good_bye): Convert to prototype-style function
8607         definition.
8608         (get8): Likewise.
8609         (put8): Likewise.
8610         * crypt/crypt-entry.c (crypt): Likewise.
8611         (__fcrypt): Likewise.
8612         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8613         (_ufc_set_bits): Likewise.
8614         (_ufc_clearmem): Likewise.
8615         (__init_des_r): Likewise.
8616         (shuffle_sb): Likewise.
8617         (shuffle_sb): Likewise.
8618         (_ufc_setup_salt_r): Likewise.
8619         (_ufc_mk_keytab_r): Likewise.
8620         (_ufc_dofinalperm_r): Likewise.
8621         (encrypt): Likewise.
8622         (__setkey_r): Likewise.
8623         (setkey): Likewise.
8624         * crypt/md5.c (md5_init_ctx): Likewise.
8625         (md5_read_ctx): Likewise.
8626         (md5_finish_ctx): Likewise.
8627         (md5_stream): Likewise.
8628         (md5_buffer): Likewise.
8629         (md5_process_bytes): Likewise.
8630         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8631         (__sha256_finish_ctx): Likewise.
8632         (__sha256_process_bytes): Likewise.
8633         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8634         (__sha512_finish_ctx): Likewise.
8635         (__sha512_process_bytes): Likewise.
8636         * ctype/isctype.c (__isctype): Likewise.
8637         * debug/backtrace.c (__backtrace): Likewise.
8638         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8639         * debug/fgets_chk.c (__fgets_chk): Likewise.
8640         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8641         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8642         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8643         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8644         * debug/memset_chk.c (__memset_chk): Likewise.
8645         * debug/strcat_chk.c (__strcat_chk): Likewise.
8646         * debug/strncat_chk.c (__strncat_chk): Likewise.
8647         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8648         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8649         * dirent/dirfd.c (dirfd): Likewise.
8650         * dirent/getdents.c (__getdirentries): Likewise.
8651         * dirent/getdents64.c (getdirentries64): Likewise.
8652         * dirent/rewinddir.c (__rewinddir): Likewise.
8653         * dirent/seekdir.c (seekdir): Likewise.
8654         * dirent/telldir.c (telldir): Likewise.
8655         * elf/sln.c (makesymlinks): Likewise.
8656         (makesymlink): Likewise.
8657         * gmon/gmon.c (__moncontrol): Likewise.
8658         (__monstartup): Likewise.
8659         (write_hist): Likewise.
8660         (write_call_graph): Likewise.
8661         (write_bb_counts): Likewise.
8662         * grp/setgroups.c (setgroups): Likewise.
8663         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8664         * inet/inet_net.c (inet_network): Likewise.
8665         * inet/inet_netof.c (inet_netof): Likewise.
8666         * inet/rcmd.c (rresvport_af): Likewise.
8667         (rresvport): Likewise.
8668         * io/access.c (__access): Likewise.
8669         * io/chdir.c (__chdir): Likewise.
8670         * io/chmod.c (__chmod): Likewise.
8671         * io/chown.c (__chown): Likewise.
8672         * io/close.c (__close): Likewise.
8673         * io/creat.c (creat): Likewise.
8674         * io/creat64.c (creat64): Likewise.
8675         * io/dup.c (__dup): Likewise.
8676         * io/dup2.c (__dup2): Likewise.
8677         * io/dup3.c (__dup3): Likewise.
8678         * io/euidaccess.c (__euidaccess): Likewise.
8679         * io/faccessat.c (faccessat): Likewise.
8680         * io/fchmod.c (__fchmod): Likewise.
8681         * io/fchmodat.c (fchmodat): Likewise.
8682         * io/fchown.c (__fchown): Likewise.
8683         * io/fchownat.c (fchownat): Likewise.
8684         * io/fcntl.c (__fcntl): Likewise.
8685         * io/flock.c (__flock): Likewise.
8686         * io/fts.c (fts_load): Likewise.
8687         (fts_close): Likewise.
8688         (fts_read): Likewise.
8689         (fts_set): Likewise.
8690         (fts_children): Likewise.
8691         (fts_build): Likewise.
8692         (fts_stat): Likewise.
8693         (fts_sort): Likewise.
8694         (fts_alloc): Likewise.
8695         (fts_lfree): Likewise.
8696         (fts_palloc): Likewise.
8697         (fts_padjust): Likewise.
8698         (fts_maxarglen): Likewise.
8699         (fts_safe_changedir): Likewise.
8700         * io/getwd.c (getwd): Likewise.
8701         * io/isatty.c (__isatty): Likewise.
8702         * io/lchown.c (__lchown): Likewise.
8703         * io/link.c (__link): Likewise.
8704         * io/linkat.c (linkat): Likewise.
8705         * io/lseek.c (__libc_lseek): Likewise.
8706         * io/mkdir.c (__mkdir): Likewise.
8707         * io/mkdirat.c (mkdirat): Likewise.
8708         * io/mkfifo.c (mkfifo): Likewise.
8709         * io/mkfifoat.c (mkfifoat): Likewise.
8710         * io/open.c (__libc_open): Likewise.
8711         * io/open64.c (__libc_open64): Likewise.
8712         * io/readlink.c (__readlink): Likewise.
8713         * io/readlinkat.c (readlinkat): Likewise.
8714         * io/rmdir.c (__rmdir): Likewise.
8715         * io/symlink.c (__symlink): Likewise.
8716         * io/symlinkat.c (symlinkat): Likewise.
8717         * io/ttyname.c (ttyname): Likewise.
8718         * io/ttyname_r.c (__ttyname_r): Likewise.
8719         * io/umask.c (__umask): Likewise.
8720         * io/unlink.c (__unlink): Likewise.
8721         * io/unlinkat.c (unlinkat): Likewise.
8722         * io/utime.c (utime): Likewise.
8723         * libio/clearerr.c (clearerr): Likewise.
8724         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8725         * libio/feof.c (_IO_feof): Likewise.
8726         * libio/feof_u.c (feof_unlocked): Likewise.
8727         * libio/ferror.c (_IO_ferror): Likewise.
8728         * libio/ferror_u.c (ferror_unlocked): Likewise.
8729         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8730         * libio/fileno.c (__fileno): Likewise.
8731         * libio/fputc.c (fputc): Likewise.
8732         * libio/fputc_u.c (fputc_unlocked): Likewise.
8733         * libio/fputwc.c (fputwc): Likewise.
8734         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8735         * libio/freopen.c (freopen): Likewise.
8736         * libio/freopen64.c (freopen64): Likewise.
8737         * libio/fseek.c (fseek): Likewise.
8738         * libio/fseeko.c (fseeko): Likewise.
8739         * libio/fseeko64.c (fseeko64): Likewise.
8740         * libio/ftello.c (__ftello): Likewise.
8741         * libio/ftello64.c (ftello64): Likewise.
8742         * libio/fwide.c (fwide): Likewise.
8743         * libio/genops.c (_IO_un_link): Likewise.
8744         (_IO_link_in): Likewise.
8745         (_IO_least_marker): Likewise.
8746         (_IO_switch_to_main_get_area): Likewise.
8747         (_IO_switch_to_backup_area): Likewise.
8748         (_IO_switch_to_get_mode): Likewise.
8749         (_IO_free_backup_area): Likewise.
8750         (_IO_switch_to_put_mode): Likewise.
8751         (__overflow): Likewise.
8752         (__underflow): Likewise.
8753         (__uflow): Likewise.
8754         (_IO_setb): Likewise.
8755         (_IO_doallocbuf): Likewise.
8756         (_IO_default_underflow): Likewise.
8757         (_IO_default_uflow): Likewise.
8758         (_IO_default_xsputn): Likewise.
8759         (_IO_sgetn): Likewise.
8760         (_IO_default_xsgetn): Likewise.
8761         (_IO_sync): Likewise.
8762         (_IO_default_setbuf): Likewise.
8763         (_IO_default_seekpos): Likewise.
8764         (_IO_default_doallocate): Likewise.
8765         (_IO_init): Likewise.
8766         (_IO_old_init): Likewise.
8767         (_IO_default_sync): Likewise.
8768         (_IO_default_finish): Likewise.
8769         (_IO_default_seekoff): Likewise.
8770         (_IO_sputbackc): Likewise.
8771         (_IO_sungetc): Likewise.
8772         (_IO_set_column): Likewise.
8773         (_IO_set_column): Likewise.
8774         (_IO_adjust_column): Likewise.
8775         (_IO_get_column): Likewise.
8776         (_IO_init_marker): Likewise.
8777         (_IO_remove_marker): Likewise.
8778         (_IO_marker_difference): Likewise.
8779         (_IO_marker_delta): Likewise.
8780         (_IO_seekmark): Likewise.
8781         (_IO_unsave_markers): Likewise.
8782         (_IO_nobackup_pbackfail): Likewise.
8783         (_IO_default_pbackfail): Likewise.
8784         (_IO_default_seek): Likewise.
8785         (_IO_default_stat): Likewise.
8786         (_IO_default_read): Likewise.
8787         (_IO_default_write): Likewise.
8788         (_IO_default_showmanyc): Likewise.
8789         (_IO_default_imbue): Likewise.
8790         (_IO_iter_next): Likewise.
8791         (_IO_iter_file): Likewise.
8792         * libio/getc.c (_IO_getc): Likewise.
8793         * libio/getwc.c (_IO_getwc): Likewise.
8794         * libio/iofclose.c (_IO_new_fclose): Likewise.
8795         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8796         * libio/iofflush.c (_IO_fflush): Likewise.
8797         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
8798         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8799         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
8800         * libio/iofgets.c (_IO_fgets): Likewise.
8801         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
8802         * libio/iofgetws.c (fgetws): Likewise.
8803         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8804         * libio/iofopen64.c (_IO_fopen64): Likewise.
8805         * libio/iofopncook.c (_IO_cookie_read): Likewise.
8806         (_IO_cookie_write): Likewise.
8807         (_IO_cookie_seek): Likewise.
8808         (_IO_cookie_close): Likewise.
8809         (_IO_cookie_seekoff): Likewise.
8810         (_IO_old_cookie_seek): Likewise.
8811         * libio/iofputs.c (_IO_fputs): Likewise.
8812         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
8813         * libio/iofputws.c (fputws): Likewise.
8814         * libio/iofputws_u.c (fputws_unlocked): Likewise.
8815         * libio/iofread.c (_IO_fread): Likewise.
8816         * libio/iofread_u.c (__fread_unlocked): Likewise.
8817         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
8818         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8819         * libio/ioftell.c (_IO_ftell): Likewise.
8820         * libio/iofwrite.c (_IO_fwrite): Likewise.
8821         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8822         * libio/iogets.c (_IO_gets): Likewise.
8823         * libio/iopadn.c (_IO_padn): Likewise.
8824         * libio/iopopen.c (_IO_new_proc_open): Likewise.
8825         (_IO_new_popen): Likewise.
8826         (_IO_new_proc_close): Likewise.
8827         * libio/ioputs.c (_IO_puts): Likewise.
8828         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
8829         (_IO_seekoff): Likewise.
8830         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
8831         (_IO_seekpos): Likewise.
8832         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
8833         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8834         * libio/ioungetc.c (_IO_ungetc): Likewise.
8835         * libio/ioungetwc.c (ungetwc): Likewise.
8836         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8837         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8838         * libio/iowpadn.c (_IO_wpadn): Likewise.
8839         * libio/libc_fatal.c (__libc_fatal): Likewise.
8840         * libio/memstream.c (__open_memstream): Likewise.
8841         (_IO_mem_sync): Likewise.
8842         (_IO_mem_finish): Likewise.
8843         * libio/oldfileops.c (_IO_old_file_init): Likewise.
8844         (_IO_old_file_close_it): Likewise.
8845         (_IO_old_file_finish): Likewise.
8846         (_IO_old_file_fopen): Likewise.
8847         (_IO_old_file_attach): Likewise.
8848         (_IO_old_file_setbuf): Likewise.
8849         (_IO_old_do_write): Likewise.
8850         (old_do_write): Likewise.
8851         (_IO_old_file_underflow): Likewise.
8852         (_IO_old_file_overflow): Likewise.
8853         (_IO_old_file_sync): Likewise.
8854         (_IO_old_file_seekoff): Likewise.
8855         (_IO_old_file_write): Likewise.
8856         (_IO_old_file_xsputn): Likewise.
8857         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
8858         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8859         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
8860         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
8861         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8862         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
8863         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
8864         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8865         (_IO_old_popen): Likewise.
8866         (_IO_old_proc_close): Likewise.
8867         * libio/oldpclose.c (__old_pclose): Likewise.
8868         * libio/pclose.c (__new_pclose): Likewise.
8869         * libio/peekc.c (_IO_peekc_locked): Likewise.
8870         * libio/putc.c (_IO_putc): Likewise.
8871         * libio/putc_u.c (putc_unlocked): Likewise.
8872         * libio/putchar.c (putchar): Likewise.
8873         * libio/putchar_u.c (putchar_unlocked): Likewise.
8874         * libio/putwc.c (putwc): Likewise.
8875         * libio/putwc_u.c (putwc_unlocked): Likewise.
8876         * libio/putwchar.c (putwchar): Likewise.
8877         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
8878         * libio/rewind.c (rewind): Likewise.
8879         * libio/setbuf.c (setbuf): Likewise.
8880         * libio/setlinebuf.c (setlinebuf): Likewise.
8881         * libio/vasprintf.c (_IO_vasprintf): Likewise.
8882         * libio/vscanf.c (_IO_vscanf): Likewise.
8883         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
8884         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
8885         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
8886         * libio/wgenops.c (_IO_least_wmarker): Likewise.
8887         (_IO_switch_to_main_wget_area): Likewise.
8888         (_IO_switch_to_wbackup_area): Likewise.
8889         (_IO_wsetb): Likewise.
8890         (_IO_wdefault_pbackfail): Likewise.
8891         (_IO_wdefault_finish): Likewise.
8892         (_IO_wdefault_uflow): Likewise.
8893         (__woverflow): Likewise.
8894         (__wuflow): Likewise.
8895         (__wunderflow): Likewise.
8896         (_IO_wdefault_xsputn): Likewise.
8897         (_IO_wdefault_xsgetn): Likewise.
8898         (_IO_wdoallocbuf): Likewise.
8899         (_IO_wdefault_doallocate): Likewise.
8900         (_IO_switch_to_wget_mode): Likewise.
8901         (_IO_free_wbackup_area): Likewise.
8902         (_IO_switch_to_wput_mode): Likewise.
8903         (_IO_sputbackwc): Likewise.
8904         (_IO_sungetwc): Likewise.
8905         (_IO_adjust_wcolumn): Likewise.
8906         (_IO_init_wmarker): Likewise.
8907         (_IO_wmarker_delta): Likewise.
8908         (_IO_seekwmark): Likewise.
8909         (_IO_unsave_wmarkers): Likewise.
8910         * libio/wmemstream.c (open_wmemstream): Likewise.
8911         (_IO_wmem_sync): Likewise.
8912         (_IO_wmem_finish): Likewise.
8913         * locale/nl_langinfo.c (nl_langinfo): Likewise.
8914         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
8915         * locale/programs/simple-hash.c (init_hash): Likewise.
8916         (delete_hash): Likewise.
8917         (insert_entry): Likewise.
8918         (set_entry): Likewise.
8919         (next_prime): Likewise.
8920         (is_prime): Likewise.
8921         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
8922         (xmalloc): Likewise.
8923         (xrealloc): Likewise.
8924         * locale/programs/xstrdup.c (xstrdup): Likewise.
8925         * localedata/collate-test.c (xstrcoll): Likewise.
8926         * localedata/xfrm-test.c (xstrcmp): Likewise.
8927         * login/getlogin_r.c (__getlogin_r): Likewise.
8928         * login/getpt.c (__posix_openpt): Likewise.
8929         * login/login_tty.c (login_tty): Likewise.
8930         * login/setlogin.c (setlogin): Likewise.
8931         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
8932         (mach_msg_destroy_port): Likewise.
8933         (mach_msg_destroy_memory): Likewise.
8934         * malloc/mcheck.c (flood): Likewise.
8935         * misc/acct.c (acct): Likewise.
8936         * misc/brk.c (__brk): Likewise.
8937         * misc/chflags.c (chflags): Likewise.
8938         * misc/chroot.c (chroot): Likewise.
8939         * misc/fchflags.c (fchflags): Likewise.
8940         * misc/fstab.c (getfsspec): Likewise.
8941         (getfsfile): Likewise.
8942         * misc/fsync.c (fsync): Likewise.
8943         * misc/ftruncate.c (__ftruncate): Likewise.
8944         * misc/ftruncate64.c (__ftruncate64): Likewise.
8945         * misc/getdomain.c (getdomainname): Likewise.
8946         (getdomainname): Likewise.
8947         * misc/gethostname.c (__gethostname): Likewise.
8948         * misc/getpass.c (getpass): Likewise.
8949         * misc/getttyent.c (skip): Likewise.
8950         (value): Likewise.
8951         * misc/gtty.c (gtty): Likewise.
8952         * misc/hsearch.c (hsearch): Likewise.
8953         (hcreate): Likewise.
8954         * misc/hsearch_r.c (__hcreate_r): Likewise.
8955         (__hdestroy_r): Likewise.
8956         * misc/ioctl.c (__ioctl): Likewise.
8957         * misc/mkdtemp.c (mkdtemp): Likewise.
8958         * misc/mkostemp.c (mkostemp): Likewise.
8959         * misc/mkostemp64.c (mkostemp64): Likewise.
8960         * misc/mkostemps.c (mkostemps): Likewise.
8961         * misc/mkostemps64.c (mkostemps64): Likewise.
8962         * misc/mkstemp.c (mkstemp): Likewise.
8963         * misc/mkstemp64.c (mkstemp64): Likewise.
8964         * misc/mkstemps.c (mkstemps): Likewise.
8965         * misc/mkstemps64.c (mkstemps64): Likewise.
8966         * misc/mktemp.c (__mktemp): Likewise.
8967         * misc/preadv.c (preadv): Likewise.
8968         * misc/preadv64.c (preadv64): Likewise.
8969         * misc/pwritev.c (pwritev): Likewise.
8970         * misc/pwritev64.c (pwritev64): Likewise.
8971         * misc/readv.c (__readv): Likewise.
8972         * misc/revoke.c (revoke): Likewise.
8973         * misc/setdomain.c (setdomainname): Likewise.
8974         * misc/setegid.c (setegid): Likewise.
8975         * misc/seteuid.c (seteuid): Likewise.
8976         * misc/sethostid.c (sethostid): Likewise.
8977         * misc/sethostname.c (sethostname): Likewise.
8978         * misc/setregid.c (__setregid): Likewise.
8979         * misc/setreuid.c (__setreuid): Likewise.
8980         * misc/sstk.c (sstk): Likewise.
8981         * misc/stty.c (stty): Likewise.
8982         * misc/syscall.c (syscall): Likewise.
8983         * misc/syslog.c (setlogmask): Likewise.
8984         * misc/truncate.c (__truncate): Likewise.
8985         * misc/truncate64.c (truncate64): Likewise.
8986         * misc/ualarm.c (ualarm): Likewise.
8987         * misc/usleep.c (usleep): Likewise.
8988         * misc/ustat.c (ustat): Likewise.
8989         * misc/writev.c (__writev): Likewise.
8990         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
8991         * nptl/old_pthread_cond_broadcast.c
8992         (__pthread_cond_broadcast_2_0): Likewise.
8993         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
8994         Likewise.
8995         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
8996         Likewise.
8997         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
8998         Likewise.
8999         * nptl/pt-raise.c (raise): Likewise.
9000         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9001         Likewise.
9002         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9003         * nptl/pthread_barrierattr_destroy.c
9004         (pthread_barrierattr_destroy): Likewise.
9005         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9006         Likewise.
9007         * nptl/pthread_barrierattr_setpshared.c
9008         (pthread_barrierattr_setpshared): Likewise.
9009         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9010         Likewise.
9011         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9012         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9013         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9014         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9015         Likewise.
9016         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9017         Likewise.
9018         * nptl/pthread_condattr_getpshared.c
9019         (pthread_condattr_getpshared): Likewise.
9020         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9021         Likewise.
9022         * nptl/pthread_condattr_setpshared.c
9023         (pthread_condattr_setpshared): Likewise.
9024         * nptl/pthread_detach.c (pthread_detach): Likewise.
9025         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9026         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9027         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9028         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9029         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9030         Likewise.
9031         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9032         Likewise.
9033         * nptl/pthread_mutex_getprioceiling.c
9034         (pthread_mutex_getprioceiling): Likewise.
9035         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9036         Likewise.
9037         * nptl/pthread_mutexattr_getprotocol.c
9038         (pthread_mutexattr_getprotocol): Likewise.
9039         * nptl/pthread_mutexattr_getpshared.c
9040         (pthread_mutexattr_getpshared): Likewise.
9041         * nptl/pthread_mutexattr_getrobust.c
9042         (pthread_mutexattr_getrobust): Likewise.
9043         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9044         Likewise.
9045         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9046         Likewise.
9047         * nptl/pthread_mutexattr_setprioceiling.c
9048         (pthread_mutexattr_setprioceiling): Likewise.
9049         * nptl/pthread_mutexattr_setprotocol.c
9050         (pthread_mutexattr_setprotocol): Likewise.
9051         * nptl/pthread_mutexattr_setpshared.c
9052         (pthread_mutexattr_setpshared): Likewise.
9053         * nptl/pthread_mutexattr_setrobust.c
9054         (pthread_mutexattr_setrobust): Likewise.
9055         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9056         Likewise.
9057         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9058         Likewise.
9059         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9060         Likewise.
9061         * nptl/pthread_rwlockattr_getkind_np.c
9062         (pthread_rwlockattr_getkind_np): Likewise.
9063         * nptl/pthread_rwlockattr_getpshared.c
9064         (pthread_rwlockattr_getpshared): Likewise.
9065         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9066         Likewise.
9067         * nptl/pthread_rwlockattr_setkind_np.c
9068         (pthread_rwlockattr_setkind_np): Likewise.
9069         * nptl/pthread_rwlockattr_setpshared.c
9070         (pthread_rwlockattr_setpshared): Likewise.
9071         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9072         Likewise.
9073         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9074         Likewise.
9075         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9076         Likewise.
9077         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9078         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9079         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9080         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9081         * nptl/sem_close.c (sem_close): Likewise.
9082         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9083         * nptl/sem_init.c (__old_sem_init): Likewise.
9084         * nptl/sigaction.c (__sigaction): Likewise.
9085         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9086         * posix/_exit.c (_exit): Likewise.
9087         * posix/alarm.c (alarm): Likewise.
9088         * posix/confstr.c (confstr): Likewise.
9089         * posix/fpathconf.c (__fpathconf): Likewise.
9090         * posix/getgroups.c (__getgroups): Likewise.
9091         * posix/getpgid.c (__getpgid): Likewise.
9092         * posix/group_member.c (__group_member): Likewise.
9093         * posix/pathconf.c (__pathconf): Likewise.
9094         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9095         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9096         * posix/setgid.c (__setgid): Likewise.
9097         * posix/setpgid.c (__setpgid): Likewise.
9098         * posix/setuid.c (__setuid): Likewise.
9099         * posix/sleep.c (__sleep): Likewise.
9100         * posix/sysconf.c (__sysconf): Likewise.
9101         * posix/times.c (__times): Likewise.
9102         * posix/uname.c (__uname): Likewise.
9103         * posix/waitid.c (__waitid): Likewise.
9104         * pwd/getpw.c (__getpw): Likewise.
9105         * resolv/base64.c (b64_pton): Likewise.
9106         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9107         * resolv/gethnamaddr.c (Dprintf): Likewise.
9108         (gethostbyname): Likewise.
9109         (gethostbyname2): Likewise.
9110         (gethostbyaddr): Likewise.
9111         (_sethtent): Likewise.
9112         (_gethtbyname): Likewise.
9113         (_gethtbyname2): Likewise.
9114         (_gethtbyaddr): Likewise.
9115         (map_v4v6_address): Likewise.
9116         (map_v4v6_hostent): Likewise.
9117         (addrsort): Likewise.
9118         (ht_sethostent): Likewise.
9119         (ht_gethostbyname): Likewise.
9120         (ht_gethostbyaddr): Likewise.
9121         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9122         (inet_net_ntop_ipv4): Likewise.
9123         * resolv/inet_neta.c (inet_neta): Likewise.
9124         * resolv/inet_ntop.c (inet_ntop): Likewise.
9125         (inet_ntop4): Likewise.
9126         (inet_ntop6): Likewise.
9127         * resolv/inet_pton.c (__inet_pton): Likewise.
9128         (inet_pton4): Likewise.
9129         (inet_pton6): Likewise.
9130         * resolv/res_debug.c (loc_aton): Likewise.
9131         (loc_ntoa): Likewise.
9132         * resource/getpriority.c (__getpriority): Likewise.
9133         * resource/getrusage.c (__getrusage): Likewise.
9134         * resource/nice.c (nice): Likewise.
9135         * resource/setpriority.c (__setpriority): Likewise.
9136         * resource/setrlimit64.c (setrlimit64): Likewise.
9137         * resource/vlimit.c (vlimit): Likewise.
9138         * resource/vtimes.c (vtimes): Likewise.
9139         * rt/aio_error.c (aio_error): Likewise.
9140         * rt/aio_return.c (aio_return): Likewise.
9141         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9142         * signal/kill.c (__kill): Likewise.
9143         * signal/killpg.c (killpg): Likewise.
9144         * signal/raise.c (raise): Likewise.
9145         * signal/sigaction.c (__sigaction): Likewise.
9146         * signal/sigaddset.c (sigaddset): Likewise.
9147         * signal/sigaltstack.c (sigaltstack): Likewise.
9148         * signal/sigandset.c (sigandset): Likewise.
9149         * signal/sigblock.c (__sigblock): Likewise.
9150         * signal/sigdelset.c (sigdelset): Likewise.
9151         * signal/sigempty.c (sigemptyset): Likewise.
9152         * signal/sigfillset.c (sigfillset): Likewise.
9153         * signal/sighold.c (sighold): Likewise.
9154         * signal/sigignore.c (sigignore): Likewise.
9155         * signal/sigintr.c (siginterrupt): Likewise.
9156         * signal/sigisempty.c (sigisemptyset): Likewise.
9157         * signal/sigismem.c (sigismember): Likewise.
9158         * signal/signal.c (signal): Likewise.
9159         * signal/sigorset.c (sigorset): Likewise.
9160         * signal/sigpause.c (__sigpause): Likewise.
9161         * signal/sigpending.c (sigpending): Likewise.
9162         * signal/sigprocmask.c (__sigprocmask): Likewise.
9163         * signal/sigrelse.c (sigrelse): Likewise.
9164         * signal/sigreturn.c (__sigreturn): Likewise.
9165         * signal/sigset.c (sigset): Likewise.
9166         * signal/sigsetmask.c (__sigsetmask): Likewise.
9167         * signal/sigstack.c (sigstack): Likewise.
9168         * signal/sigsuspend.c (__sigsuspend): Likewise.
9169         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9170         * signal/sysv_signal.c (__sysv_signal): Likewise.
9171         * socket/accept.c (accept): Likewise.
9172         * socket/accept4.c (__libc_accept4): Likewise.
9173         * socket/bind.c (__bind): Likewise.
9174         * socket/connect.c (__connect): Likewise.
9175         * socket/getpeername.c (getpeername): Likewise.
9176         * socket/getsockname.c (__getsockname): Likewise.
9177         * socket/getsockopt.c (getsockopt): Likewise.
9178         * socket/listen.c (__listen): Likewise.
9179         * socket/recv.c (__recv): Likewise.
9180         * socket/recvmsg.c (__recvmsg): Likewise.
9181         * socket/send.c (__send): Likewise.
9182         * socket/sendmsg.c (__sendmsg): Likewise.
9183         * socket/shutdown.c (shutdown): Likewise.
9184         * socket/sockatmark.c (sockatmark): Likewise.
9185         * socket/socket.c (__socket): Likewise.
9186         * stdio-common/ctermid.c (ctermid): Likewise.
9187         * stdio-common/cuserid.c (cuserid): Likewise.
9188         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9189         * stdio-common/remove.c (remove): Likewise.
9190         * stdio-common/rename.c (rename): Likewise.
9191         * stdio-common/renameat.c (renameat): Likewise.
9192         * stdio-common/tempname.c (__gen_tempname): Likewise.
9193         * stdio-common/xbug.c (InitBuffer): Likewise.
9194         (AppendToBuffer): Likewise.
9195         (ReadFile): Likewise.
9196         * stdlib/a64l.c (a64l): Likewise.
9197         * stdlib/drand48_r.c (drand48_r): Likewise.
9198         * stdlib/getcontext.c (getcontext): Likewise.
9199         * stdlib/getenv.c (getenv): Likewise.
9200         * stdlib/l64a.c (l64a): Likewise.
9201         * stdlib/llabs.c (llabs): Likewise.
9202         * stdlib/lldiv.c (lldiv): Likewise.
9203         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9204         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9205         * stdlib/putenv.c (putenv): Likewise.
9206         * stdlib/random.c (__srandom): Likewise.
9207         (__initstate): Likewise.
9208         (__setstate): Likewise.
9209         * stdlib/random_r.c (__srandom_r): Likewise.
9210         (__setstate_r): Likewise.
9211         (__random_r): Likewise.
9212         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9213         * stdlib/setcontext.c (setcontext): Likewise.
9214         * stdlib/setenv.c (setenv): Likewise.
9215         (unsetenv): Likewise.
9216         * stdlib/srand48.c (srand48): Likewise.
9217         * stdlib/srand48_r.c (__srand48_r): Likewise.
9218         * stdlib/swapcontext.c (swapcontext): Likewise.
9219         * stdlib/system.c (__libc_system): Likewise.
9220         * stdlib/tst-strtod.c (expand): Likewise.
9221         * stdlib/tst-strtol.c (expand): Likewise.
9222         * stdlib/tst-strtoll.c (expand): Likewise.
9223         * streams/fattach.c (fattach): Likewise.
9224         * streams/fdetach.c (fdetach): Likewise.
9225         * streams/getmsg.c (getmsg): Likewise.
9226         * streams/isastream.c (isastream): Likewise.
9227         * string/ffs.c (__ffs): Likewise.
9228         * string/ffsll.c (ffsll): Likewise.
9229         * string/memcmp.c (memcmp_common_alignment): Likewise.
9230         (memcmp_not_common_alignment): Likewise.
9231         (MEMCMP): Likewise.
9232         * string/memcpy.c (memcpy): Likewise.
9233         * string/memmove.c (MEMMOVE): Likewise.
9234         * string/memset.c (memset): Likewise.
9235         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9236         * string/strchrnul.c (STRCHRNUL): Likewise.
9237         * string/strerror.c (strerror): Likewise.
9238         * string/strndup.c (__strndup): Likewise.
9239         * string/strverscmp.c (__strverscmp): Likewise.
9240         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9241         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9242         (clnttcp_freeres): Likewise.
9243         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9244         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9245         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9246         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9247         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9248         (xdr_callhdr): Likewise.
9249         * sunrpc/rpcinfo.c (udpping): Likewise.
9250         (tcpping): Likewise.
9251         (pstatus): Likewise.
9252         (pmapdump): Likewise.
9253         (brdcst): Likewise.
9254         (deletereg): Likewise.
9255         (getprognum): Likewise.
9256         (getvers): Likewise.
9257         (get_inet_address): Likewise.
9258         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9259         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9260         (svcudp_stat): Likewise.
9261         (svcudp_recv): Likewise.
9262         (svcudp_reply): Likewise.
9263         (svcudp_getargs): Likewise.
9264         (svcudp_freeargs): Likewise.
9265         (svcudp_destroy): Likewise.
9266         * sunrpc/xdr.c (xdr_bytes): Likewise.
9267         (xdr_netobj): Likewise.
9268         (xdr_string): Likewise.
9269         (xdr_wrapstring): Likewise.
9270         * sunrpc/xdr_float.c (xdr_float): Likewise.
9271         (xdr_double): Likewise.
9272         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9273         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9274         * sysvipc/ftok.c (ftok): Likewise.
9275         * sysvipc/msgctl.c (msgctl): Likewise.
9276         * sysvipc/msgget.c (msgget): Likewise.
9277         * sysvipc/msgrcv.c (msgrcv): Likewise.
9278         * sysvipc/msgsnd.c (msgsnd): Likewise.
9279         * sysvipc/semget.c (semget): Likewise.
9280         * sysvipc/semop.c (semop): Likewise.
9281         * sysvipc/shmat.c (shmat): Likewise.
9282         * sysvipc/shmctl.c (shmctl): Likewise.
9283         * sysvipc/shmdt.c (shmdt): Likewise.
9284         * sysvipc/shmget.c (shmget): Likewise.
9285         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9286         * termios/speed.c (cfgetospeed): Likewise.
9287         (cfgetispeed): Likewise.
9288         (cfsetospeed): Likewise.
9289         (cfsetispeed): Likewise.
9290         * termios/tcflow.c (tcflow): Likewise.
9291         * termios/tcflush.c (tcflush): Likewise.
9292         * termios/tcgetattr.c (__tcgetattr): Likewise.
9293         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9294         * termios/tcgetsid.c (tcgetsid): Likewise.
9295         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9296         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9297         * time/adjtime.c (__adjtime): Likewise.
9298         * time/dysize.c (dysize): Likewise.
9299         * time/ftime.c (ftime): Likewise.
9300         * time/getitimer.c (__getitimer): Likewise.
9301         * time/gettimeofday.c (__gettimeofday): Likewise.
9302         * time/gmtime.c (__gmtime_r): Likewise.
9303         (gmtime): Likewise.
9304         * time/localtime.c (__localtime_r): Likewise.
9305         (localtime): Likewise.
9306         * time/offtime.c (__offtime): Likewise.
9307         * time/settimeofday.c (__settimeofday): Likewise.
9308         * time/stime.c (stime): Likewise.
9309         * time/strftime_l.c (tm_diff): Likewise.
9310         (iso_week_days): Likewise.
9311         * time/strptime.c (strptime): Likewise.
9312         * time/time.c (time): Likewise.
9313         * time/timespec_get.c (timespec_get): Likewise.
9314         * time/tzset.c (tzset_internal): Likewise.
9315         (compute_change): Likewise.
9316         (__tz_compute): Likewise.
9317         * wcsmbs/btowc.c (__btowc): Likewise.
9318         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9319         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9320         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9321         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9322         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9323         * wcsmbs/wcscat.c (__wcscat): Likewise.
9324         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9325         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9326         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9327         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9328         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9329         * wcsmbs/wcslen.c (__wcslen): Likewise.
9330         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9331         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9332         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9333         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9334         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9335         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9336         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9337         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9338         * wcsmbs/wcstok.c (wcstok): Likewise.
9339         * wcsmbs/wctob.c (wctob): Likewise.
9340         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9341         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9342         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9343         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9344         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9345         * wcsmbs/wmemset.c (__wmemset): Likewise.
9346         * wctype/wcfuncs.c (__towlower): Likewise.
9347         (__towupper): Likewise.
9348
9349         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9350         (lll_unlock_elision): Add adapt_count parameter.
9351
9352 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9353
9354         * sysdeps/nptl/configure.ac: Do not give errors based on the
9355         results of top-level configure tests.
9356         * sysdeps/nptl/configure: Regenerated.
9357
9358         * configure.ac (libc_cv_Bgroup): Remove configure test.
9359         * configure: Regenerated.
9360         * config.make.in (have-Bgroup): Remove variable.
9361
9362         * configure.ac (sizeof_long_double): Remove configure test.
9363         * configure: Regenerated.
9364         * config.make.in (sizeof-long-double): Remove variable.
9365
9366         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9367         * configure: Regenerated.
9368         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9369         variable.
9370         (exceptions): Likewise.
9371         * sysdeps/arm/configure: Regenerated.
9372         * config.make.in (exceptions): Remove variable.
9373         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9374         $(exceptions).
9375         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9376         (CFLAGS-vdprintf_chk.c): Likewise.
9377         (CFLAGS-printf_chk.c): Likewise.
9378         (CFLAGS-fprintf_chk.c): Likewise.
9379         (CFLAGS-vprintf_chk.c): Likewise.
9380         (CFLAGS-vfprintf_chk.c): Likewise.
9381         (CFLAGS-gets_chk.c): Likewise.
9382         (CFLAGS-fgets_chk.c): Likewise.
9383         (CFLAGS-fgets_u_chk.c): Likewise.
9384         (CFLAGS-fread_chk.c): Likewise.
9385         (CFLAGS-fread_u_chk.c): Likewise.
9386         (CFLAGS-wprintf_chk.c): Likewise.
9387         (CFLAGS-fwprintf_chk.c): Likewise.
9388         (CFLAGS-vwprintf_chk.c): Likewise.
9389         (CFLAGS-vfwprintf_chk.c): Likewise.
9390         (CFLAGS-fgetws_chk.c): Likewise.
9391         (CFLAGS-fgetws_u_chk.c): Likewise.
9392         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9393         (CFLAGS-fputc.c): Likewise.
9394         (CFLAGS-fputwc.c): Likewise.
9395         (CFLAGS-freopen64.c): Likewise.
9396         (CFLAGS-freopen.c): Likewise.
9397         (CFLAGS-fseek.c): Likewise.
9398         (CFLAGS-fseeko64.c): Likewise.
9399         (CFLAGS-fseeko.c): Likewise.
9400         (CFLAGS-ftello64.c): Likewise.
9401         (CFLAGS-ftello.c): Likewise.
9402         (CFLAGS-fwide.c): Likewise.
9403         (CFLAGS-genops.c): Likewise.
9404         (CFLAGS-getc.c): Likewise.
9405         (CFLAGS-getchar.c): Likewise.
9406         (CFLAGS-getwc.c): Likewise.
9407         (CFLAGS-getwchar.c): Likewise.
9408         (CFLAGS-iofclose.c): Likewise.
9409         (CFLAGS-iofflush.c): Likewise.
9410         (CFLAGS-iofgetpos64.c): Likewise.
9411         (CFLAGS-iofgetpos.c): Likewise.
9412         (CFLAGS-iofgets.c): Likewise.
9413         (CFLAGS-iofgetws.c): Likewise.
9414         (CFLAGS-iofputs.c): Likewise.
9415         (CFLAGS-iofputws.c): Likewise.
9416         (CFLAGS-iofread.c): Likewise.
9417         (CFLAGS-iofsetpos64.c): Likewise.
9418         (CFLAGS-iofsetpos.c): Likewise.
9419         (CFLAGS-ioftell.c): Likewise.
9420         (CFLAGS-iofwrite.c): Likewise.
9421         (CFLAGS-iogetdelim.c): Likewise.
9422         (CFLAGS-iogetline.c): Likewise.
9423         (CFLAGS-iogets.c): Likewise.
9424         (CFLAGS-iogetwline.c): Likewise.
9425         (CFLAGS-ioputs.c): Likewise.
9426         (CFLAGS-ioseekoff.c): Likewise.
9427         (CFLAGS-ioseekpos.c): Likewise.
9428         (CFLAGS-iosetbuffer.c): Likewise.
9429         (CFLAGS-iosetvbuf.c): Likewise.
9430         (CFLAGS-ioungetc.c): Likewise.
9431         (CFLAGS-ioungetwc.c): Likewise.
9432         (CFLAGS-oldfileops.c): Likewise.
9433         (CFLAGS-oldiofclose.c): Likewise.
9434         (CFLAGS-oldiofgetpos64.c): Likewise.
9435         (CFLAGS-oldiofgetpos.c): Likewise.
9436         (CFLAGS-oldiofsetpos64.c): Likewise.
9437         (CFLAGS-oldiofsetpos.c): Likewise.
9438         (CFLAGS-peekc.c): Likewise.
9439         (CFLAGS-putc.c): Likewise.
9440         (CFLAGS-putchar.c): Likewise.
9441         (CFLAGS-putwc.c): Likewise.
9442         (CFLAGS-putwchar.c): Likewise.
9443         (CFLAGS-rewind.c): Likewise.
9444         (CFLAGS-wfileops.c): Likewise.
9445         (CFLAGS-wgenops.c): Likewise.
9446         (CFLAGS-oldiofopen.c): Likewise.
9447         (CFLAGS-iofopen.c): Likewise.
9448         (CFLAGS-iofopen64.c): Likewise.
9449         (CFLAGS-oldtmpfile.c): Likewise.
9450         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9451         (CFLAGS-fprintf.c): Likewise.
9452         (CFLAGS-printf.c): Likewise.
9453         (CFLAGS-vfwprintf.c): Likewise.
9454         (CFLAGS-vfscanf.c): Likewise.
9455         (CFLAGS-vfwscanf.c): Likewise.
9456         (CFLAGS-fscanf.c): Likewise.
9457         (CFLAGS-scanf.c): Likewise.
9458         (CFLAGS-isoc99_vfscanf.c): Likewise.
9459         (CFLAGS-isoc99_vscanf.c): Likewise.
9460         (CFLAGS-isoc99_fscanf.c): Likewise.
9461         (CFLAGS-isoc99_scanf.c): Likewise.
9462         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9463         (CFLAGS-isoc99_fwscanf.c): Likewise.
9464         (CFLAGS-isoc99_vwscanf.c): Likewise.
9465         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9466
9467         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9468         after mkstemp64.
9469         * login/tst-utmp.c (do_prepare): Likewise.
9470         * rt/tst-aio.c (do_prepare): Likewise.
9471         * rt/tst-aio64.c (do_prepare): Likewise.
9472
9473 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9474
9475         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9476         (__lll_lock_elision): Remove adapt_count decrement...
9477         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9478         (__lll_trylock_elision): Likewise.
9479         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9480         (__lll_unlock_elision): ... to here. And utilize
9481         new adapt_count parameter.
9482         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9483         (__lll_unlock_elision): Update to include adapt_count
9484         parameter.
9485         (lll_unlock_elision): Pass pointer to adapt_count
9486         variable.
9487
9488 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9489
9490         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9491         Add elision adapt_count parameter to list of arguments.
9492         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9493         (lll_unlock_elision): Update with new parameter list
9494         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9495         (lll_unlock_elision): Likewise.
9496         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9497         (lll_unlock_elision): Likewise.
9498
9499 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9500
9501         [BZ #19122]
9502         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9503         attribute_hidden.
9504
9505         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9506         attribute_hidden.
9507         [IS_IN (rtld)] (__strdup): Likewise.
9508         [IS_IN (rtld)] (__strerror_r): Likewise.
9509         [IS_IN (rtld)] (__strsep_g): Likewise.
9510         [IS_IN (rtld)] (memchr): Likewise.
9511         [IS_IN (rtld)] (memcmp): Likewise.
9512         [IS_IN (rtld)] (memcpy): Likewise.
9513         [IS_IN (rtld)] (memmove): Likewise.
9514         [IS_IN (rtld)] (memset): Likewise.
9515         [IS_IN (rtld)] (rawmemchr): Likewise.
9516         [IS_IN (rtld)] (stpcpy): Likewise.
9517         [IS_IN (rtld)] (strchr): Likewise.
9518         [IS_IN (rtld)] (strcmp): Likewise.
9519         [IS_IN (rtld)] (strlen): Likewise.
9520         [IS_IN (rtld)] (strnlen): Likewise.
9521         [IS_IN (rtld)] (strsep): Likewise.
9522
9523         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9524         attribute_hidden.
9525         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9526
9527         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9528         attribute_hidden.
9529         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9530
9531         * include/setjmp.h (__longjmp): Add attribute_hidden.
9532         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9533
9534         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9535         Add attribute_hidden.
9536
9537         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9538         [IS_IN (rtld)] (__open): Likewise.
9539         [IS_IN (rtld)] (__fcntl): Likewise.
9540
9541         * include/dirent.h (__opendirat): Add attribute_hidden.
9542         (__getdents): Likewise.
9543         (__getdents64): Likewise.
9544         (__alloc_dir): Likewise.
9545         [IS_IN (rtld)] (__closedir): Likewise.
9546         [IS_IN (rtld)] (__fdopendir): Likewise.
9547         [IS_IN (rtld)] (__readdir): Likewise.
9548         [IS_IN (rtld)] (__readdir64): Likewise.
9549         [IS_IN (rtld)] (__rewinddir): Likewise.
9550
9551         * include/dlfcn.h (_dl_catch_error): Moved to ...
9552         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9553         attribute_hidden.
9554
9555         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9556         (_itoa_word): Likewise.
9557
9558         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9559         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9560         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9561         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9562         (_dl_higher_prime_number): Likewise.
9563         (_dl_debug_printf_c): Likewise.
9564         (_dl_signal_cerror): Likewise.
9565         (_dl_receive_error): Likewise.
9566         (_dl_reloc_bad_type): Likewise.
9567         (_dl_resolve_conflicts): Likewise.
9568         (_dl_check_all_versions): Likewise.
9569         (_dl_check_map_versions): Likewise.
9570         (_dl_sort_fini): Likewise.
9571         (_dl_debug_initialize): Likewise.
9572         (_dl_init_paths): Likewise.
9573         (_dl_show_auxv): Likewise.
9574         (_dl_next_ld_env_entry): Likewise.
9575         (_dl_important_hwcaps): Likewise.
9576         (_dl_load_cache_lookup): Likewise.
9577         (_dl_update_slotinfo): Likewise.
9578         (_dl_show_scope): Likewise.
9579
9580         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9581         attribute_hidden.
9582         (_wordcopy_fwd_dest_aligned): Likewise.
9583         (_wordcopy_bwd_aligned): Likewise.
9584         (_wordcopy_bwd_dest_aligned): Likewise.
9585
9586         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9587         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9588         Likewise.
9589         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9590         Likewise.
9591         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9592
9593 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9594
9595         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9596         GCC 5 requirement.
9597
9598 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9599
9600         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9601         test.
9602         * sysdeps/i386/configure: Regenerated.
9603         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9604         code unconditional.
9605
9606         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9607         test.
9608         (libc_cv_asm_popsection_directive): Likewise.
9609         * configure: Regenerated.
9610         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9611         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9612         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9613         (__make_section_unallocated): Make definition unconditional.
9614         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9615         Remove conditional definition.
9616         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9617         (__make_section_unallocated): Likewise.
9618
9619         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9620         * configure: Regenerated.
9621         * config.make.in (static-libgcc): Remove variable.
9622         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9623         $(static-libgcc).
9624         (build-module-helper): Likewise.
9625
9626         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9627         * configure: Regenerated.
9628
9629 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9630
9631         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9632         (struct char_buffer): New type.
9633         (char_buffer_start, char_buffer_size, char_buffer_error)
9634         (char_buffer_rewind, char_buffer_add): New functions.
9635         (ADDW): Remove macro, replaced by the char_buffer_add function.
9636         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9637         of extend_alloca.  Make control flow more explicit.
9638
9639 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9640
9641         [BZ #19137]
9642         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9643         Add -fomit-frame-pointer.
9644         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9645
9646 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9647
9648         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9649         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9650         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9651         only if !__GNUC_PREREQ (5,0).
9652         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9653         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9654         (INTERNAL_SYSCALL_NCS): Likewise.
9655         (LOADREGS_0): New macro for GCC 5.
9656         (ASMARGS_0): Likewise.
9657         (LOADREGS_1): Likewise.
9658         (ASMARGS_1): Likewise.
9659         (LOADREGS_2): Likewise.
9660         (ASMARGS_2): Likewise.
9661         (LOADREGS_3): Likewise.
9662         (ASMARGS_3): Likewise.
9663         (LOADREGS_4): Likewise.
9664         (ASMARGS_4): Likewise.
9665         (LOADREGS_5): Likewise.
9666         (ASMARGS_5): Likewise.
9667         (LOADREGS_6): Likewise.
9668         (ASMARGS_6): Likewise.
9669
9670 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9671
9672         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9673         -fomit-frame-pointer.
9674         (CFLAGS-mmap64.c): Likewise.
9675         (CFLAGS-semtimedop.c): Likewise.
9676         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9677         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9678         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9679         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9680
9681 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9682
9683         [BZ #18928]
9684         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9685         _dl_pointer_guard member.
9686         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9687         initializer.
9688         (security_init): Always set up pointer guard.
9689         (process_envvars): Do not process LD_POINTER_GUARD.
9690
9691 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9692
9693         [BZ #19134]
9694         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9695         (.LC2): Likewise.
9696         (.LC3): Likewise.
9697         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9698
9699 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9700
9701         [BZ #19129]
9702         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9703         r0 and r1.
9704
9705 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9706
9707         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9708
9709 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9710
9711         * include/stap-probe.h: Fix macro definition formatting.
9712
9713 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9714
9715         [BZ #19074]
9716         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9717         load and store num_ifs.
9718
9719 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9720
9721         [BZ #18822]
9722         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9723         (__sched_getaffinity_new): Add libc_hidden_proto and
9724         libc_hidden_def.
9725
9726 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9727
9728         [BZ #19007]
9729         * scripts/localplt.awk: Also allow GOT references.
9730         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9731         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9732         with "+ REL R_386_GLOB_DAT".
9733         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9734         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9735
9736 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9737
9738         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9739         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9740         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9741         Likewise.
9742         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9743         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9744         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9745         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9746         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9747         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9748         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9749         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9750         Likewise.
9751         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9752
9753 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9754
9755         [BZ #19125]
9756         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9757         <math_private.h> and <stdint.h>.
9758         (__llround): Avoid conversions to and from long long int, and
9759         subtractions, where those might raise spurious exceptions.
9760         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9761         <math_private.h> and <stdint.h>.
9762         (__llroundf): Avoid conversions to and from long long int, and
9763         subtractions, where those might raise spurious exceptions.
9764
9765 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9766
9767         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9768         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9769         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9770         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9771         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9772         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9773         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9774         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9775         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
9776         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9777         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9778         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9779         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
9780         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9781         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9782         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
9783         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
9784         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9785         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
9786         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
9787         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9788         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
9789         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
9790         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9791         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
9792         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
9793         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
9794         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9795         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9796         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
9797         (__xstat64_conv): Likewise.
9798         (__xstat32_conv): Likewise.
9799
9800 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9801
9802         * sysdeps/unix/sysv/linux/sysdep.h: New file.
9803         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
9804         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
9805         <sysdeps/unix/sysv/linux/sysdep.h>.
9806         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9807         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
9808         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9809         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9810         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9811         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
9812         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
9813         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9814         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9817         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9818         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9819         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9820         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9821         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9822         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
9823         (sysdep-dl-routines): Add sysdep.
9824         [$(subdir) == nptl] (libpthread-routines): Likewise.
9825         [$(subdir) == rt] (librt-routines): Likewise.
9826         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
9827         PIC when branching to SYSCALL_ERROR_LABEL.
9828         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
9829         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
9830         <sysdeps/unix/sysv/linux/sysdep.h>.
9831         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
9832         (SYSCALL_ERROR_ERRNO): Removed.
9833         (SYSCALL_ERROR_HANDLER): Changed to empty.
9834         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
9835         (__syscall_error): New prototype.
9836         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
9837         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
9838
9839 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9840
9841         [BZ #19124]
9842         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
9843         (_dl_runtime_resolve_avx512): Make it a hidden alias of
9844         _dl_runtime_resolve_avx.
9845         (_dl_runtime_profile_avx512): Make it a hidden alias of
9846         _dl_runtime_profile_avx.
9847
9848 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9849
9850         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
9851         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
9852         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
9853         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
9854
9855         [BZ #16422]
9856         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
9857         New configure test.
9858         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
9859         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
9860         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
9861         <math_private.h> and <stdint.h>.
9862         (__llrint): Avoid conversions to long long int where those might
9863         raise spurious exceptions.
9864         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9865         <math_private.h> and <stdint.h>.
9866         (__llrintf): Avoid conversions to long long int where those might
9867         raise spurious exceptions.
9868
9869 2015-10-12  Andreas Schwab  <schwab@suse.de>
9870
9871         [BZ #18969]
9872         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
9873         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
9874         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
9875         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
9876         $(gen-locales).
9877         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
9878         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
9879         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
9880         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
9881         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
9882         $(gen-locales).
9883         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
9884         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
9885         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
9886         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
9887         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
9888         ($(objpfx)tst-ftell-active-handler.out)
9889         ($(objpfx)tst-ftell-append.out)
9890         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
9891         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
9892         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
9893         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
9894         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
9895         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
9896         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
9897         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
9898         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
9899         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
9900         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
9901         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
9902         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
9903         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
9904         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
9905         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
9906         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
9907         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
9908         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
9909         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
9910         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
9911         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
9912         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
9913         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
9914         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
9915         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
9916         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
9917         $(gen-locales).
9918         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
9919         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
9920         $(gen-locales).
9921         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
9922         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
9923         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
9924         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
9925         $(gen-locales).
9926         * libio/tst_wprintf2.c (main): Use explicit locale.
9927         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
9928
9929 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9930
9931         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
9932         __msg_sig_post.
9933         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
9934
9935 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9936
9937         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
9938         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9939
9940         * sysdeps/arm/libm-test-ulps: Regenerated.
9941
9942         [BZ #15470]
9943         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
9944
9945         [BZ #16399]
9946         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
9947         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
9948         and <fix-fp-int-convert-overflow.h>.
9949         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9950         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9951         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
9952         and <fix-fp-int-convert-overflow.h>.
9953         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
9954         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9955         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
9956         <fix-fp-int-convert-overflow.h>.
9957         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9958         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9959         * sysdeps/ieee754/dbl-64/s_lround.c: Include
9960         <fix-fp-int-convert-overflow.h>.
9961         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
9962         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9963         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
9964         and <fix-fp-int-convert-overflow.h>.
9965         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9966         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9967         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
9968         <limits.h> and <fix-fp-int-convert-overflow.h>.
9969         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9970         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9971         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
9972         and <fix-fp-int-convert-overflow.h>.
9973         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9974         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9975         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
9976         and <fix-fp-int-convert-overflow.h>.
9977         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9978         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9979         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
9980
9981 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
9982
9983         [BZ #18589]
9984         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
9985         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
9986         $(gen-locales).
9987
9988 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9989             Phil Blundell <pb@pbcl.net>
9990
9991         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
9992         * nptl/tst-cancel26.c: New file.
9993         * nptl/tst-cancel27.c: Likewise.
9994
9995 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
9996
9997         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
9998         __ILP32__ isn't defined.
9999         (lrint): Likewise.
10000         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10001         (lrintf): Likewise.
10002         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10003         (lrintl): Likewise.
10004         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10005         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10006         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10007
10008 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10009
10010         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10011         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10012
10013         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10014         file.
10015         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10016         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10017
10018 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10019
10020         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10021         configure test.
10022         * sysdeps/i386/configure: Regenerated.
10023         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10024         configure test.
10025         * sysdeps/x86_64/configure: Regenerated.
10026         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10027         Make code unconditional.
10028
10029         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10030         test.
10031         * sysdeps/i386/configure: Regenerated.
10032         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10033         test.
10034         * sysdeps/x86_64/configure: Regenerated.
10035         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10036         Make code unconditional.
10037         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10038         Likewise.
10039         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10040         Likewise.
10041         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10042         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10043         code unconditional.
10044         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10045         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10046         code unconditional.
10047         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10048         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10049         code unconditional.
10050         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10051         code unconditional.
10052         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10053         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10054         code unconditional.
10055         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10056         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10057         code unconditional.
10058         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10059         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10060         code unconditional.
10061         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10062         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10063         code unconditional.
10064         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10065         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10066
10067         [BZ #19095]
10068         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10069         mantissa to long int before shifting left.
10070
10071 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10072
10073         [BZ #19094]
10074         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10075         <limits.h>.
10076         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10077         when result overflows but exception would not result from cast.
10078         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10079         <limits.h>.
10080         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10081         when result overflows but exception would not result from cast.
10082         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10083         <limits.h>.
10084         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10085         when result overflows but exception would not result from cast.
10086         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10087         <limits.h>.
10088         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10089         when result overflows but exception would not result from cast.
10090         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10091         <limits.h>.
10092         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10093         when result overflows but exception would not result from cast.
10094         * math/libm-test.inc (lrint_test_data): Add more tests.
10095         (llrint_test_data): Likewise.
10096
10097 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10098
10099         [BZ #18872]
10100         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10101         Move out from under [$(run-built-tests) = yes] conditional.
10102         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10103         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10104
10105 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10106
10107         [BZ #18589]
10108         * string/Makefile (tests): Add bug-strcoll2.
10109         (LOCALES): Add cs_CZ.UTF-8.
10110         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10111
10112         [BZ #18589]
10113         * string/bug-strcoll2.c: New file.
10114         * locale/categories.def: Revert commit
10115         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10116         * locale/langinfo.h: Likewise.
10117         * locale/localeinfo.h: Likewise.
10118         * locale/C-collate.c: Likewise.
10119         * locale/programs/ld-collate.c (collate_output): Likewise.
10120         * string/strcoll_l.c (STRDIFF): Likewise.
10121         (STRCOLL): Likewise.
10122         * wcsmbs/wcscoll_l.c: Likewise.
10123
10124 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10125
10126         * math/libm-test.inc (lround_test_data): Do not expect the absence
10127         of "inexact" for some tests with non-integer arguments.
10128         (llround_test_data): Likewise.
10129
10130         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10131         test.
10132         (libc_cv_cc_sse2avx): Likewise.
10133         * sysdeps/i386/configure: Regenerated.
10134         * sysdeps/i386/i686/multiarch/Makefile
10135         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10136         [$(subdir) = math].
10137         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10138         code unconditional.
10139         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10140         Likewise.
10141         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10142         Likewise.
10143         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10144         Likewise.
10145         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10146         test.
10147         (libc_cv_cc_sse2avx): Likewise.
10148         * sysdeps/x86_64/configure: Regenerated.
10149         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10150         unconditional.
10151         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10152         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10153         unconditional.
10154         (_dl_runtime_profile)
10155         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10156         conditional code.
10157         * sysdeps/x86_64/fpu/multiarch/Makefile
10158         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10159         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10160         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10161         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10162         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10163         * sysdeps/x86_64/fpu/multiarch/e_log.c
10164         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10165         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10166         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10167         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10168         Likewise.
10169         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10170         Likewise.
10171         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10172         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10173         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10174         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10175         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10176         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10177         (HAVE_SSE2AVX_SUPPORT): Likewise.
10178
10179 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10180
10181         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10182         instead of #pragma optimize.
10183
10184 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10185
10186         [BZ #17195]
10187         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10188         as is similarly done in systrim and _int_free already.
10189
10190 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10191
10192         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10193
10194 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10195
10196         [BZ #19088]
10197         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10198         <limits.h>.
10199         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10200         overflows but exception would not result from cast.
10201         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10202         and <limits.h>.
10203         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10204         overflows but exception would not result from cast.
10205         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10206         <limits.h>.
10207         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10208         overflows but exception would not result from cast.
10209         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10210         <limits.h>.
10211         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10212         overflows but exception would not result from cast.
10213         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10214         <limits.h>.
10215         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10216         overflows but exception would not result from cast.
10217         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10218         <limits.h>.
10219         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10220         overflows but exception would not result from cast.
10221         * math/libm-test.inc (lround_test_data): Add more tests.
10222         (llround_test_data): Likewise.
10223
10224 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10225
10226         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10227         (CFLAGS-ialloc.c): Ditto.
10228         (CFLAGS-scheck.c): Ditto.
10229
10230 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10231
10232         [BZ #19086]
10233         * manual/filesys.texi (Storage Allocation): Fix argument order for
10234         posix_fallocate64.
10235
10236 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10237
10238         [BZ #19085]
10239         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10240         exponent below 48 inside case for non-overflowing exponent.
10241         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10242
10243 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10244
10245         * iconvdata/cp737.h (from_idx): Add const.
10246         * iconvdata/cp775.h (from_idx): Likewise.
10247
10248 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10249
10250         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10251         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10252         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10253
10254         [BZ #19079]
10255         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10256         file, conditioned on [!_LP64].
10257         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10258         [!_LP64] (__lround): Do not define as function or alias.
10259         [!_LP64] (lround): Likewise.
10260         [!_LP64] (__lroundl): Likewise.
10261         [!_LP64] (lroundl): Likewise.
10262         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10263         macro.
10264         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10265         Likewise.
10266
10267 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10268
10269         * math/libm-test.inc (lrint_test_data): Add more tests.
10270         (llrint_test_data): Likewise.
10271         (lround_test_data): Likewise.
10272         (llround_test_data): Likewise.
10273
10274         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10275         (llrint_test_data): Add tests used for lrint.
10276
10277         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10278         test.
10279         * sysdeps/i386/configure: Regenerated.
10280         * sysdeps/i386/i686/multiarch/Makefile
10281         [$(config-cflags-sse4) = yes]: Make code unconditional.
10282         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10283         Likewise.
10284         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10285         Likewise.
10286         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10287         test.
10288         * sysdeps/x86_64/configure: Regenerated.
10289         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10290         Make code unconditional.
10291         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10292         Likewise.
10293         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10294         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10295
10296         * scripts/rpm2dynsym.sh: Remove file.
10297
10298 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10299
10300         * configure.ac (libc_cv_cxx_thread_local): Define.
10301         * configure: Regenerate.
10302         * config.make.in (have-cxx-thread_local): Define.
10303         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10304         (LDLIBS-tst-thread_local1): Define.
10305         (tests): Add tst-thread_local1.
10306         [have-cxx-thread_local != yes] (tests-unsupported): Add
10307         tst-thread_local1.
10308         * nptl/tst-thread_local1.cc: New file.
10309
10310 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10311
10312         [BZ #19078]
10313         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10314         (u_thres): Likewise.
10315         (__expl): Determine whether to call __kernel_standard_l based on
10316         value of result, not argument.
10317
10318         * math/libm-test.inc (scalb_test_data): Add more expectations for
10319         the "inexact" exception.
10320
10321         [BZ #19077]
10322         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10323         0.0L for argument 1.0L.
10324
10325         [BZ #19076]
10326         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10327         constant 0.0L when computing infinite result.
10328
10329 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10330
10331         [BZ #10432]
10332         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10333         malloc_usable_size.
10334
10335 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10336
10337         [BZ #19018]
10338         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10339         Mangle function pointer before storing it.
10340         (__call_tls_dtors): Demangle function pointer before calling it.
10341
10342 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10343
10344         [BZ #19012]
10345         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10346         Clean up on failure.
10347
10348 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10349
10350         [BZ #19071]
10351         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10352         long int variable to store possibly incremented high part of
10353         mantissa.
10354         * math/libm-test.inc (lround_test_data): Add tests used for
10355         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10356         for tests requiring 64-bit long.  Do not condition tests on
10357         [TEST_FLOAT] unnecessarily.
10358         (llround_test_data): Add tests used for lround.  Add another
10359         expectation for the "inexact" exception.  Do not condition tests
10360         on [TEST_FLOAT] unnecessarily.
10361
10362         [BZ #887]
10363         [BZ #19049]
10364         [BZ #19050]
10365         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10366         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10367         <fix-int-fp-convert-zero.h>.
10368         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10369         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10370         <fix-int-fp-convert-zero.h>.
10371         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10372         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10373         <fix-int-fp-convert-zero.h>.
10374         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10375         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10376         <fix-int-fp-convert-zero.h>.
10377         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10378         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10379         <fix-int-fp-convert-zero.h>.
10380         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10381         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10382         <fix-int-fp-convert-zero.h>.
10383         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10384         * sysdeps/ieee754/flt-32/s_erff.c: Include
10385         <fix-int-fp-convert-zero.h>.
10386         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10387         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10388         <fix-int-fp-convert-zero.h>.
10389         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10390         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10391         <fix-int-fp-convert-zero.h>.
10392         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10393         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10394         <fix-int-fp-convert-zero.h>.
10395         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10396         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10397         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10398         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10399         file.
10400         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10401
10402 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10403
10404         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10405
10406 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10407
10408         [BZ #19059]
10409         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10410         overflowing computation.
10411         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10412         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10413         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10414         Likewise.
10415         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10416         Likewise.
10417         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10418         Likewise.
10419         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10420         Likewise.
10421         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10422         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10423         Likewise.
10424         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10425         Likewise.
10426         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10427
10428         * nss/rewrite_field.c (__nss_rewrite_field): Use
10429         internal_function.
10430         * nss/valid_field.c (__nss_valid_field): Likewise.
10431         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10432
10433 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10434
10435         [BZ #18724]
10436         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10437         (__nss_invalid_field_characters, __nss_valid_field)
10438         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10439         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10440         tst-field.c: New file.
10441         * nss/Makefile (routines): Add valid_field, rewrite_field.
10442         (tests-static): Define unconditionally.
10443         (tests): Include tests-static.
10444         [build-static-nss] (tests-static): Use append.
10445         [build-static-nss] (tests): Remove modification.
10446         * nss/getent.c (print_group): Call putgrent.  Report error.
10447         (print_gshadow): Call putsgent.  Report error.
10448         (print_passwd): Call putpwent.  Report error.
10449         (print_shadow): Call putspent.  Report error.
10450         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10451         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10452         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10453         name, password, directory, shell fields for valid syntax.  Rewrite
10454         GECOS field to match syntax.
10455         * pwd/Makefile (tests): Add tst-putpwent.
10456         * pwd/tst-putpwent.c: New file.
10457         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10458         Check grName, grpasswd, gr_mem fields for valid syntax.
10459         Change loop variable i to size_t.
10460         * grp/Makefile (tests): Add tst-putgrent.
10461         * grp/tst-putgrent.c: New file.
10462         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10463         valid syntax.
10464         * shadow/Makefile (tests): Add tst-putspent.
10465         * shadow/tst-putspent.c: New file.
10466         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10467         sg_mem fields for valid syntax.
10468         * gshadow/Makefile (tests): Add tst-putsgent.
10469         * gshadow/tst-putsgent.c: New file.
10470
10471 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10472
10473         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10474         assembly instructions.
10475
10476 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10477
10478         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10479         prefix from operands.
10480
10481 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10482
10483         [BZ #16347]
10484         [BZ #19046]
10485         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10486         <libc-internal.h>.
10487         (MAXLGM): Do not use diagnostic control macros.
10488         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10489         threshold for ldbl-128ibm.
10490         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10491         instead of multiplying by log then subtracting.
10492         * math/auto-libm-test-in: Add more tests of lgamma.
10493         * math/auto-libm-test-out: Regenerated.
10494
10495         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10496         (TYPE_HEX_DIG): Likewise.
10497         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10498         precisions when printing floating-point numbers.
10499         (check_float_internal): Likewise.
10500
10501 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10502
10503         [BZ #16620]
10504         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10505         of log (10) rounded downward to 48 bits.
10506         (log10_low): Use corresponding low part of log (10).
10507
10508         [BZ #19032]
10509         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10510         compute result as (x - x) / (x - x) not as 0 / 0.
10511         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10512         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10513
10514         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10515         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10516         and expm1.
10517         * math/auto-libm-test-out: Regenerated.
10518         * math/libm-test.inc (acos_test_data): Add more tests.
10519         (asin_test_data): Likewise.
10520         (asinh_test_data): Likewise.
10521         (atan_test_data): Likewise.
10522         (atanh_test_data): Likewise.
10523         (atan2_test_data): Likewise.
10524         (cbrt_test_data): Likewise.
10525         (ceil_test_data): Likewise.
10526         (copysign_test_data): Likewise.
10527         (cos_test_data): Likewise.
10528         (cosh_test_data): Likewise.
10529         (erf_test_data): Likewise.
10530         (erfc_test_data): Likewise.
10531         (exp_test_data): Likewise.
10532         (exp10_test_data): Likewise.
10533         (exp2_test_data): Likewise.
10534         (expm1_test_data): Likewise.
10535         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10536
10537 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10538
10539         [BZ #19006]
10540         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10541         to ...
10542         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10543         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10544         to ...
10545         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10546         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10547         to ...
10548         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10549         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10550         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10551         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10552         to ...
10553         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10554         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10555         Moved to ...
10556         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10557         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10558         Moved to ...
10559         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10560         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10561         to ...
10562         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10563         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10564         Moved to ...
10565         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10566         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10567         to ...
10568         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10569         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10570         Removed.
10571         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10572         Likewise.
10573         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10574         Likewise.
10575         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10576         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10577         Likewise.
10578         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10579         Likewise.
10580         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10581         Likewise.
10582         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10583         Likewise.
10584         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10585         Likewise.
10586         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10587         Likewise.
10588         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10589         Likewise.
10590         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10591         Likewise.
10592         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10593         Likewise.
10594         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10595         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10596         Likewise.
10597         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10598         Likewise.
10599         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10600         Likewise.
10601         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10602         Likewise.
10603         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10604         Likewise.
10605         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10606         Replace ../i486/pthread_cond_timedwait.S with
10607         ../pthread_cond_timedwait.S.
10608
10609 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10610
10611         * math/libm-test.inc (acos_test_data): Refine expectations for
10612         errno and "inexact" exceptions.
10613         (acosh_test_data): Likewise.
10614         (asin_test_data): Likewise.
10615         (asinh_test_data): Likewise.
10616         (atan_test_data): Likewise.
10617         (atanh_test_data): Likewise.
10618         (atan2_test_data): Likewise.
10619         (cbrt_test_data): Likewise.
10620         (ceil_test_data): Likewise.
10621         (copysign_test_data): Likewise.
10622         (cosh_test_data): Likewise.
10623         (erf_test_data): Likewise.
10624         (erfc_test_data): Likewise.
10625         (exp_test_data): Likewise.
10626         (exp10_test_data): Likewise.
10627         (exp2_test_data): Likewise.
10628         (expm1_test_data): Likewise.
10629         (fabs_test_data): Likewise.
10630         (floor_test_data): Likewise.
10631         (fma_test_data): Likewise.
10632         (fmax_test_data): Likewise.
10633         (fmin_test_data): Likewise.
10634         (fmod_test_data): Likewise.
10635         (fpclassify_test_data): Likewise.
10636         (frexp_test_data): Likewise.
10637         (hypot_test_data): Likewise.
10638         (ilogb_test_data): Likewise.
10639         (isgreater_test_data): Likewise.
10640         (isgreaterequal_test_data): Likewise.
10641         (isinf_test_data): Likewise.
10642         (isless_test_data): Likewise.
10643         (islessequal_test_data): Likewise.
10644         (islessgreater_test_data): Likewise.
10645         (isnan_test_data): Likewise.
10646         (isnormal_test_data): Likewise.
10647         (issignaling_test_data): Likewise.
10648         (isunordered_test_data): Likewise.
10649         (j0_test_data): Likewise.
10650         (j1_test_data): Likewise.
10651         (jn_test_data): Likewise.
10652         (lgamma_test_data): Likewise.
10653         (lrint_test_data): Likewise.
10654         (llrint_test_data): Likewise.
10655         (log_test_data): Likewise.
10656         (log10_test_data): Likewise.
10657         (log1p_test_data): Likewise.
10658         (log2_test_data): Likewise.
10659         (logb_test_data): Likewise.
10660         (lround_test_data): Likewise.
10661         (llround_test_data): Likewise.
10662         (modf_test_data): Likewise.
10663         (nearbyint_test_data): Likewise.
10664         (nextafter_test_data): Likewise.
10665         (nexttoward_test_data): Likewise.
10666         (pow_test_data): Likewise.
10667         (remainder_test_data): Likewise.
10668         (remquo_test_data): Likewise.
10669         (rint_test_data): Likewise.
10670         (round_test_data): Likewise.
10671         (signbit_test_data): Likewise.
10672         (sinh_test_data): Likewise.
10673         (sqrt_test_data): Likewise.
10674         (tanh_test_data): Likewise.
10675         (tgamma_test_data): Likewise.
10676         (trunc_test_data): Likewise.
10677         (y0_test_data): Likewise.
10678         (y1_test_data): Likewise.
10679         (yn_test_data): Likewise.
10680         (significand_test_data): Likewise.
10681
10682 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10683
10684         * manual/filesys.texi (Storage Allocation): Document that
10685         posix_fallocate emulation fails when fd is open with O_WRONLY.
10686
10687 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10688
10689         [BZ #19016]
10690         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10691         allow more cases with X^2 + Y^2 >= 0.5.
10692         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10693         normal element in sum instead of special-casing based on values of
10694         arguments.
10695         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10696         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10697         -1 as normal element in sum instead of special-casing based on
10698         values of arguments.
10699         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10700         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10701         (__x2y2m1): Update comment.
10702         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10703         as normal element in sum instead of special-casing based on values
10704         of arguments.
10705         * math/s_clog.c (__clog): Handle more cases using log1p without
10706         hypot.
10707         * math/s_clog10.c (__clog10): Likewise.
10708         * math/s_clog10f.c (__clog10f): Likewise.
10709         * math/s_clog10l.c (__clog10l): Likewise.
10710         * math/s_clogf.c (__clogf): Likewise.
10711         * math/s_clogl.c (__clogl): Likewise.
10712         * math/auto-libm-test-in: Add more tests of clog and clog10.
10713         * math/auto-libm-test-out: Regenerated.
10714         * sysdeps/i386/fpu/libm-test-ulps: Update.
10715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10716
10717 2015-09-28  Martin Sebor  <msebor@redhat.com>
10718
10719         [BZ #18969]
10720         * string/Makefile (LOCALES): Define.
10721         (gen-locales.mk): Include.
10722         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10723         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10724         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10725         on setlocale failure.
10726
10727 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10728
10729         [BZ #18985]
10730         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10731         (__strftime_internal): Likewise.
10732         * time/tst-strftime.c (do_bz18985): New test.
10733         (do_test): Call it.
10734
10735 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10736
10737         [BZ #18956]
10738         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10739         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10740         extracting high part.
10741         * math/auto-libm-test-in: Add another test of pow.
10742         * math/auto-libm-test-out: Regenerated.
10743         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10744
10745 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10746
10747         [BZ #18825]
10748         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10749         New macro.
10750         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10751         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10752         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10753         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10754         DBL_NARROW_EVAL, reloading the PIC register as needed.
10755         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10756         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10757         FLT_NARROW_EVAL.  Use separate return path for case when first
10758         argument is NaN.
10759         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10760         DEFINE_LDBL_MIN.
10761         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10762         PIC register.
10763         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10764         math_check_force_underflow_nonneg.
10765         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10766         underflow for subnormal result.
10767         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10768         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10769         math_check_force_underflow_nonneg.
10770         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10771         math_check_force_underflow.
10772         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10773         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10774         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10775         DEFINE_LDBL_MIN.
10776         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
10777         * math/auto-libm-test-in: Add more tests of pow.
10778         * math/auto-libm-test-out: Regenerated.
10779
10780 2015-09-25  Florian Weimer  <fweimer@redhat.com>
10781
10782         * nss/bug17079.c (init_test_items): Add diagnostic for
10783         inconsistent entries.
10784         (test_buffer_size): Skip inconsistent entries.
10785
10786 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10787
10788         [BZ #13304]
10789         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
10790         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
10791         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
10792
10793         [BZ #13304]
10794         * sysdeps/microblaze/s_fma.c: New file.
10795         * sysdeps/microblaze/s_fmaf.c: Likewise.
10796         * sysdeps/microblaze/sfp-machine.h: Likewise.
10797
10798 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
10799
10800         [BZ #17250]
10801         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
10802         member.
10803
10804 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10805
10806         [BZ #18803]
10807         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
10808         (MO): New macro.
10809         (__ieee754_hypot) [PIC]: Load PIC register.
10810         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
10811         DBL_NARROW_EVAL.
10812         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
10813         math_check_force_underflow_nonneg in case where result might be
10814         tiny.
10815         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10816         Likewise.
10817         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10818         Likewise.
10819         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10820         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10821         * math/auto-libm-test-in: Add more tests of hypot.
10822         * math/auto-libm-test-out: Regenerated.
10823
10824 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
10825
10826         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
10827
10828 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10829
10830         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
10831         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
10832         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10833         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10834         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
10835         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10836         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10837
10838         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
10839         LOAD_PIC_REG.
10840
10841         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
10842         (FLT_CHECK_FORCE_UFLOW): Likewise.
10843         (DBL_CHECK_FORCE_UFLOW): Likewise.
10844         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
10845         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
10846         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
10847         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10848         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10849         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10850         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10851         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10852         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
10853         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10854         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
10855         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
10856         (flt_min): Replace with use of DEFINE_FLT_MIN.
10857         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
10858         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
10859         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10860         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
10861         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
10862         (flt_min): Replace with use of DEFINE_FLT_MIN.
10863         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
10864         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
10865         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10866         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
10867         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
10868         (flt_min): Replace with use of DEFINE_FLT_MIN.
10869         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
10870         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
10871         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10872         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10873         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
10874         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10875         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10876         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
10877         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10878         (__atan): Use DBL_CHECK_FORCE_UFLOW.
10879         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
10880         (flt_min): Replace with use of DEFINE_FLT_MIN.
10881         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
10882         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
10883         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10884         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
10885         main computation.
10886         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
10887         (flt_min): Replace with use of DEFINE_FLT_MIN.
10888         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
10889         main computation.
10890         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
10891         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10892         (MO): New macro.
10893         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
10894         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
10895         (flt_min): Replace with use of DEFINE_FLT_MIN.
10896         (MO): New macro.
10897         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
10898         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
10899         (__log1pl): Use MO.
10900
10901         [BZ #19003]
10902         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
10903         $(config-cflags-nofma).
10904
10905 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10906
10907         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10908
10909 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
10910
10911         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
10912         (TWO127): Likewise.
10913
10914         * sysdeps/generic/math_private.h (fabs_tg): New macro.
10915         (min_of_type): Likewise.
10916         (math_check_force_underflow): Likewise.
10917         (math_check_force_underflow_nonneg): Likewise.
10918         (math_check_force_underflow_complex): Likewise.
10919         * math/e_exp2l.c (__ieee754_exp2l): Use
10920         math_check_force_underflow_nonneg.
10921         * math/k_casinh.c (__kernel_casinh): Likewise.
10922         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10923         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10924         * math/s_catan.c (__catan): Use
10925         math_check_force_underflow_complex.
10926         * math/s_catanf.c (__catanf): Likewise.
10927         * math/s_catanh.c (__catanh): Likewise.
10928         * math/s_catanhf.c (__catanhf): Likewise.
10929         * math/s_catanhl.c (__catanhl): Likewise.
10930         * math/s_catanl.c (__catanl): Likewise.
10931         * math/s_ccosh.c (__ccosh): Likewise.
10932         * math/s_ccoshf.c (__ccoshf): Likewise.
10933         * math/s_ccoshl.c (__ccoshl): Likewise.
10934         * math/s_cexp.c (__cexp): Likewise.
10935         * math/s_cexpf.c (__cexpf): Likewise.
10936         * math/s_cexpl.c (__cexpl): Likewise.
10937         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
10938         * math/s_clog10.c (__clog10): Likewise.
10939         * math/s_clog10f.c (__clog10f): Likewise.
10940         * math/s_clog10l.c (__clog10l): Likewise.
10941         * math/s_clogf.c (__clogf): Likewise.
10942         * math/s_clogl.c (__clogl): Likewise.
10943         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
10944         * math/s_csinf.c (__csinf): Likewise.
10945         * math/s_csinh.c (__csinh): Likewise.
10946         * math/s_csinhf.c (__csinhf): Likewise.
10947         * math/s_csinhl.c (__csinhl): Likewise.
10948         * math/s_csinl.c (__csinl): Likewise.
10949         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
10950         * math/s_csqrtf.c (__csqrtf): Likewise.
10951         * math/s_csqrtl.c (__csqrtl): Likewise.
10952         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
10953         * math/s_ctanf.c (__ctanf): Likewise.
10954         * math/s_ctanh.c (__ctanh): Likewise.
10955         * math/s_ctanhf.c (__ctanhf): Likewise.
10956         * math/s_ctanhl.c (__ctanhl): Likewise.
10957         * math/s_ctanl.c (__ctanl): Likewise.
10958         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
10959         instead of volatile.
10960         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
10961         math_check_force_underflow.
10962         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
10963         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
10964         volatile when forcing underflow.
10965         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10966         math_check_force_underflow_nonneg.
10967         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10968         Likewise.
10969         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
10970         math_check_force_underflow.
10971         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10972         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10973         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10974         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
10975         math_check_force_underflow_nonneg.
10976         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
10977         math_check_force_underflow.
10978         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10979         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
10980         instead of volatile.
10981         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
10982         math_check_force_underflow.
10983         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10984         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10985         math_check_force_underflow_nonneg.
10986         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
10987         math_check_force_underflow.
10988         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10989         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
10990         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
10991         math_check_force_underflow_nonneg.
10992         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10993         Likewise.
10994         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
10995         math_check_force_underflow.
10996         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
10997         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
10998         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10999         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11000         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11001         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11002         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11003         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11004         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11005         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11006         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11007         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11008         Likewise.
11009         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11010         math_check_force_underflow_nonneg.
11011         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11012         Likewise.
11013         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11014         math_check_force_underflow.
11015         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11016         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11017         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11018         Likewise.
11019         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11020         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11021         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11022         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11023         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11024         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11025         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11026         instead of volatile.
11027         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11028         math_check_force_underflow.
11029         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11030         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11031         math_check_force_underflow.
11032         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11033         Likewise.
11034         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11035         Use math_check_force_underflow_nonneg.
11036         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11037         math_check_force_underflow.
11038         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11039         Likewise.
11040         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11041         Likewise.
11042         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11043         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11044         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11045         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11046         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11047         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11048         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11049         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11050         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11051         math_check_force_underflow_nonneg.
11052         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11053         math_check_force_underflow.
11054         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11055         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11056         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11057         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11058         math_check_force_underflow_nonneg.
11059         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11060         math_check_force_underflow.
11061         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11062         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11063         instead of volatile.
11064         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11065         math_check_force_underflow.
11066
11067         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11068         * stdlib/strtod_l.c: Include <math_private.h>.
11069         (overflow_value): Use math_narrow_eval.
11070         (underflow_value): Likewise.
11071         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11072         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11073         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11074         (__ieee754_gamma_r): Likewise.
11075         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11076         Likewise.
11077         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11078         Likewise.
11079         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11080         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11081         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11082         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11083         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11084         (__ieee754_gammaf_r): Likewise.
11085         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11086         Likewise.
11087         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11088         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11089         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11090         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11091         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11092         volatile.
11093         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11094         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11095         math_narrow_eval.
11096         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11097         Likewise.
11098         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11099         Likewise.
11100         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11101         Likewise.
11102         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11103         volatile.
11104         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11105         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11106         math_narrow_eval.
11107         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11108         Likewise.
11109         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11110         Likewise.
11111
11112 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11113
11114         * nptl/Versions: Remove ignored symbols.
11115
11116 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11117
11118         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11119         * nss/Makefile (tests): Update.
11120
11121 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11122
11123         * nss/bug18287.c: New file.
11124         * nss/Makefile (tests): Add bug18287.
11125
11126 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11127
11128         * mach/Versions (__mach_host_self_): Add symbol.
11129
11130 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11131
11132         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11133         vm_page_size.
11134
11135 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11136
11137         Really fix sysdeps/i386/fpu/s_scalbn.S build
11138
11139         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11140         (libc: GLIBC_2_22): Remove unused version set.
11141
11142 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11143
11144         * config.make.in (enable-timezone-tools): New variable.
11145         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11146         (enable_timezone_tools): Export to generated files.
11147         * configure: Regenerate.
11148         * INSTALL: Regenerate.
11149         * manual/install.texi (--disable-timezone-tools): Document new flag.
11150         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11151         ifeq ($(enable-timezone-tools),yes) check.
11152
11153 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11154
11155         * timezone/Makefile: Revert previous change.
11156
11157         [BZ #18980]
11158         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11159         (DEFINE_DBL_MIN): Likewise.
11160         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11161         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11162         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11163         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11164         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11165         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11166         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11167         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11168         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11169         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11170         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11171         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11172         (flt_min): Replace with use of DEFINE_FLT_MIN.
11173         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11174         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11175         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11176         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11177         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11178         (flt_min): Replace with use of DEFINE_FLT_MIN.
11179         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11180         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11181         (flt_min): Replace with use of DEFINE_FLT_MIN.
11182         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11183         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11184         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11185         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11186         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11187         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11188         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11189         (__ieee754_pow): Use DBL_NARROW_EVAL.
11190         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11191         (__ieee754_powf): Use FLT_NARROW_EVAL.
11192         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11193         (__ieee754_expf_sse2): Convert double-precision result to single
11194         precision.
11195         * sysdeps/i386/fpu/libm-test-ulps: Update.
11196
11197 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11198
11199         * timezone/Makefile: Ignore unused variable errors due to private.h
11200         (time_t_min) and (time_t_max).
11201         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11202         Likewise.
11203
11204 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11205
11206         [BZ #18981]
11207         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11208         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11209         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11210         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11211         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11212         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11213         (__scalbn): Use DBL_NARROW_EVAL.
11214         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11215         (__scalbnf): Use FLT_NARROW_EVAL.
11216
11217 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11218
11219         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11220         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11221         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11222         * stdio-common/printf_fp.c (___printf_fp):
11223         Use signbit to get the sign. Use isinf macro to allow inlining.
11224         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11225         * stdio-common/printf_size.c (__printf_size): Likewise.
11226
11227 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11228
11229         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11230
11231 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11232
11233         [BZ #18980]
11234         * sysdeps/generic/math_private.h: Include <float.h>.
11235         (math_narrow_eval): New macro.
11236         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11237         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11238         math_narrow_eval on overflowing return value.
11239         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11240         Likewise.
11241         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11242         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11243         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11244         Likewise.
11245         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11246
11247 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11248
11249         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11250         * math/Makefile: Remove isinf_ns.c.
11251         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11252         * math/multc3.c (__multc3): Likewise.
11253         * math/s_casin.c (__casin): Likewise.
11254         * math/s_casinf.c (__casinf): Likewise.
11255         * math/s_casinl.c (__casinl): Likewise.
11256         * math/s_cproj.c (__cproj): Likewise.
11257         * math/s_cprojf.c (__cprojf): Likewise.
11258         * math/s_cprojl.c (__cprofl): Likewise.
11259         * math/s_ctan.c (__ctan): Likewise.
11260         * math/s_ctanf.c (__ctanf): Likewise.
11261         * math/s_ctanh.c (__ctanh): Likewise.
11262         * math/s_ctanhf.c (__ctanhf): Likewise.
11263         * math/s_ctanhl.c (__ctanhl): Likewise.
11264         * math/s_ctanl.c (__ctanl): Likewise.
11265         * math/w_fmod.c (__fmod): Likewise.
11266         * math/w_fmodf.c (__fmodf): Likewise.
11267         * math/w_fmodl.c (_fmodl): Likewise.
11268         * math/w_remainder.c (__remainder): Likewise.
11269         * math/w_remainderf.c (__remainderf): Likewise.
11270         * math/w_remainderl.c (__remainderl): Likewise.
11271         * math/w_scalb.c (__scalb): Likewise.
11272         * math/w_scalbf.c (__scalbf): Likewise.
11273         * math/w_scalbl.c (__scalbl): Likewise.
11274         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11275         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11276         with isinf.
11277         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11278         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11279         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11280         __isinf_nsf with isinf.
11281         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11282         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11283         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11284         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11285         with isinf.
11286         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11287         __isinf_nsl with isinf.
11288         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11289         with isinf.
11290         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11291         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11292         __isinf_nsl with isinf.
11293         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11294         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11295         with isinf.
11296
11297 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11298
11299         * resolv/base64.c (rcsid): Remove unused static.
11300         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11301         static.  (tqpi1): Likewise.
11302         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11303         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11304         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11305         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11306         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11307         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11308         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11309         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11310         Likewise.
11311
11312 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11313
11314         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11315         <nptl/pthreadP.h>.
11316         (_longjmp_unwind): Use __libc_ptf_call.
11317         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11318
11319 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11320
11321         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11322         * sysdeps/arm/__longjmp.S: Likewise.
11323
11324 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11325
11326         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11327         Use __builtin_signbit.
11328         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11329         Use __builtin_signbitf.
11330         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11331         Use __builtin_signbitl.
11332         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11333         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11334
11335 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11336
11337         [BZ #15367]
11338         [BZ #17441]
11339
11340         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11341         * math/math.h (fpclassify): Use __builtin_fpclassify when
11342         available.  (signbit): Use __builtin_signbit(f/l).
11343         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11344         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11345         (isinf): Use __builtin_isinf_sign.
11346
11347 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11348
11349         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11350         * benchtests/bench-math-inlines.c: New benchmark.
11351         * benchtests/bench-util.h: New file.
11352         * benchtests/bench-util.c: New file.
11353         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11354
11355 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11356
11357         * elf/tst-dlmopen1.c: Define TEST_SO.
11358         (do_test): Use TEST_SO.
11359
11360         * elf/dl-load.c: Include libc-internal.h.
11361         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11362
11363 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11364
11365         [BZ #17887]
11366         * time/strptime_l.c (__strptime_internal): Make %z accept
11367         [+-]HH:MM time zones.
11368
11369 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11370
11371         [BZ #17886]
11372         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11373         valid time zone.
11374
11375 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11376
11377         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11378         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11379         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11380         (__ASSUME_FDATASYNC): Delete.
11381
11382 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11383
11384         * conform/linknamespace.pl: Require weak undefined symbols to be
11385         in the standard namespace.
11386         (%strong_syms): Rename to %seen_syms.
11387         (%strong_seen): Rename to %seen_where.
11388
11389 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11390
11391         [BZ #18970]
11392         * misc/error.c (error): Replace pthread_setcancelstate with
11393         __pthread_setcancelstate.
11394         (error_at_line): Likewise.
11395         * posix/wordexp.c (parse_comm): Likewise.
11396         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11397         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11398         (__pthread_setcancelstate): This.
11399         (pthread_setcancelstate): Add an alias.
11400         * nptl/nptl-init.c (pthread_functions): Replace
11401         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11402         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11403         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11404         hidden_proto.
11405         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11406         it with hidden_def.
11407         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11408         (pthread_setcancelstate): Renamed to ...
11409         (__pthread_setcancelstate): This.
11410         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11411         __libc_ptf_call with __pthread_setcancelstate.
11412
11413 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11414             Andreas Schwab  <schwab@suse.de>
11415
11416         [BZ #17118]
11417         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11418         result when imaginary part of argument is infinite using sine and
11419         cosine.
11420         * math/s_ctanf.c (__ctanf): Likewise.
11421         * math/s_ctanl.c (__ctanl): Likewise.
11422         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11423         of result when real part of argument is infinite using sine and
11424         cosine.
11425         * math/s_ctanhf.c (__ctanhf): Likewise.
11426         * math/s_ctanhl.c (__ctanhl): Likewise.
11427         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11428         (ctanh_test_data): Add more tests of ctanh.
11429
11430 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11431
11432         [BZ #15384]
11433         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11434         bit-mask as in subtraction.
11435         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11436         Likewise.
11437         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11438         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11439         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11440
11441         [BZ #18951]
11442         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11443         underflow exception for small results.
11444         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11445         Likewise.
11446         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11447         Likewise.
11448         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11449         Likewise.
11450         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11451         Likewise.
11452         * math/auto-libm-test-in: Add more tests of tgamma.
11453         * math/auto-libm-test-out: Regenerated.
11454
11455 2015-09-17  Andreas Schwab  <schwab@suse.de>
11456
11457         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11458
11459 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11460
11461         [BZ #18977]
11462         * math/bits/mathcalls.h
11463         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11464         not declare.
11465         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11466         Likewise.
11467         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11468         Likewise.
11469         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11470         Likewise.
11471         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11472         Likewise.
11473         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11474         Likewise.
11475         * conform/data/math.h-data
11476         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11477         function.
11478         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11479         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11480         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11481         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11482         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11483         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11484         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11485         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11486         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11487         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11488         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11489
11490         [BZ #6803]
11491         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11492         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11493         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11494         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11495         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11496         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11497         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11498         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11499         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11500         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11501         Likewise.
11502         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11503         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11504         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11505         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11506         long_double_symbol calls.
11507         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11508         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11509         strong alias of __ldexpl.
11510         (scalbnl): Define using long_double_symbol.
11511         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11512         Remove alias.
11513         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11514         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11515         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11516         (scalbln_test_data): Add more errno expectations.
11517
11518 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11519
11520         Cache the host port like we cache the task port.  This way we do not
11521         need to call the kernel just to get the port.  Furthermore, we no
11522         longer increase the reference count on every invocation of
11523         `mach_host_self'.
11524
11525         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11526         Protect declarations against the macro expansion.
11527         * mach/mach_init.c (__mach_host_self_): New variable.
11528         (mach_init): Initialize `__mach_host_self_'.
11529         * mach/mach_init.h (__mach_host_self_): New declaration.
11530         (__mach_host_self, mach_host_self): New macros.
11531         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11532         Release reference.
11533
11534 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11535
11536         [BZ #4404]
11537         * po/de.po: Update from Translation Project.
11538
11539         [BZ #16415]
11540         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11541         (__expm1l): Remove code to handle positive infinity and overflow.
11542         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11543         variable.
11544         (__expm1l): Remove code to handle positive infinity and overflow.
11545
11546 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11547             Paul Pluzhnikov  <ppluzhnikov@google.com>
11548
11549         [BZ #18872]
11550         * stdio-common/Makefile (tst-printf-bz18872): New test.
11551         (tst-printf-bz18872-mem.out): Likewise.
11552         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11553         * stdio-common/vfprintf.c: Fix memory leaks.
11554
11555 2015-09-16  Andreas Schwab  <schwab@suse.de>
11556
11557         [BZ #17244]
11558         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11559         Remove extra va_start/va_end calls.
11560
11561         [BZ #17243]
11562         * posix/execl.c (execl): Add missing va_end.
11563         * posix/execle.c (execle): Likewise.
11564         * posix/execlp.c (execlp): Likewise.
11565
11566 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11567
11568         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11569         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11570
11571 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11572
11573         [BZ #18967]
11574         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11575         undefine around includes of <bits/mathcalls.h>.
11576         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11577         not declare function.
11578         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11579         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11580         (scalb): Likewise.
11581         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11582         not define macro.
11583         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11584         variable.
11585         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11586         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11587         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11588
11589         [BZ #18857]
11590         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11591         return non-finite argument without doing ordered comparisons on
11592         it.
11593
11594         [BZ #16296]
11595         * math/fenv.h (fegetround): Use __attribute_pure__.
11596         * include/fenv.h (__fegetround): Likewise.
11597
11598         [BZ #18595]
11599         * math/s_ctan.c (__ctan): Force underflow exception for results
11600         whose real or imaginary part has small absolute value.
11601         * math/s_ctanf.c (__ctanf): Likewise.
11602         * math/s_ctanh.c (__ctanh): Likewise.
11603         * math/s_ctanhf.c (__ctanhf): Likewise.
11604         * math/s_ctanhl.c (__ctanhl): Likewise.
11605         * math/s_ctanl.c (__ctanl): Likewise.
11606         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11607         and ctanh.  Add more tests of ctan and ctanh.
11608
11609         [BZ #15918]
11610         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11611         handling of cases where one argument is an infinity.
11612
11613         [BZ #18875]
11614         [BZ #18966]
11615         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11616         (MO): New macro.
11617         (__ieee754_exp10): For small results, force underflow exception
11618         and remove excess range and precision from return value.
11619         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11620         (MO): New macro.
11621         (__ieee754_exp10f): For small results, force underflow exception
11622         and remove excess range and precision from return value.
11623         * math/auto-libm-test-in: Add more tests of exp10.
11624         * math/auto-libm-test-out: Regenerated.
11625
11626 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11627
11628         [BZ #18875]
11629         [BZ #18961]
11630         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11631         (MO): New macro.
11632         (__ieee754_exp): For small results, force underflow exception and
11633         remove excess range and precision from return value.
11634         (__exp_finite): Likewise.
11635         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11636         (MO): New macro.
11637         (__ieee754_expf): For small results, force underflow exception and
11638         remove excess range and precision from return value.
11639         (__expf_finite): Likewise.
11640         * math/auto-libm-test-in: Add more tests of exp.
11641         * math/auto-libm-test-out: Regenerated.
11642
11643         [BZ #16521]
11644         [BZ #18875]
11645         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11646         small results.
11647         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11648         (MO): New macro.
11649         (__ieee754_exp2): For small results, force underflow exception and
11650         remove excess range and precision from return value.
11651         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11652         (MO): New macro.
11653         (__ieee754_exp2f): For small results, force underflow exception
11654         and remove excess range and precision from return value.
11655         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11656         (MO): New macro.
11657         (__ieee754_exp2l): Force underflow exception for small results.
11658         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11659         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11660         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11661         (MO): New macro.
11662         (__ieee754_exp2l): Force underflow exception for small results.
11663         * math/auto-libm-test-in: Add more tests or exp2.
11664         * math/auto-libm-test-out: Regenerated.
11665
11666 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11667
11668         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11669
11670         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11671         /dev/null.
11672
11673 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11674
11675         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11676         io fs process)): Drop spurious backslash.
11677
11678 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11679
11680         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11681         Use sysinfo system call instead of parsing /proc/meminfo.
11682         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11683         Likewise.
11684
11685 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11686
11687         [BZ #16985]
11688         * programs/localedef.c (main): Display argv[remaining] when
11689         output_path is NULL.
11690
11691 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11692
11693         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11694         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11695         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11696         tanh.
11697         * math/auto-libm-test-out: Regenerated.
11698         * sysdeps/i386/fpu/libm-test-ulps: Update.
11699         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11700         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11702
11703 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11704
11705         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11706         Use 'override' keyword to freeze the value here, preventing
11707         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11708
11709 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11710
11711         [BZ #14912]
11712         * sysdeps/aarch64/bits/atomic.h: Move to ...
11713         * sysdeps/aarch64/atomic-machine.h: ...here.
11714         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11715         _AARCH64_ATOMIC_MACHINE_H.
11716         * sysdeps/alpha/bits/atomic.h: Move to ...
11717         * sysdeps/alpha/atomic-machine.h: ...here.
11718         * sysdeps/arm/bits/atomic.h: Move to ...
11719         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11720         * bits/atomic.h: Move to ...
11721         * sysdeps/generic/atomic-machine.h: ...here.
11722         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11723         * sysdeps/i386/bits/atomic.h: Move to ...
11724         * sysdeps/i386/atomic-machine.h: ...here.
11725         * sysdeps/ia64/bits/atomic.h: Move to ...
11726         * sysdeps/ia64/atomic-machine.h: ...here.
11727         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11728         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11729         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11730         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11731         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11732         * sysdeps/microblaze/bits/atomic.h: Move to ...
11733         * sysdeps/microblaze/atomic-machine.h: ...here.
11734         * sysdeps/mips/bits/atomic.h: Move to ...
11735         * sysdeps/mips/atomic-machine.h: ...here.
11736         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11737         * sysdeps/powerpc/bits/atomic.h: Move to ...
11738         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11739         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11740         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11741         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11742         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11743         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11744         <atomic-machine.h> instead of <bits/atomic.h>.
11745         * sysdeps/s390/bits/atomic.h: Move to ...
11746         * sysdeps/s390/atomic-machine.h: ...here.
11747         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11748         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11749         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11750         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11751         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11752         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11753         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11754         * sysdeps/tile/bits/atomic.h: Move to ...
11755         * sysdeps/tile/atomic-machine.h: ...here.
11756         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11757         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11758         <sysdeps/tile/atomic-machine.h> instead of
11759         <sysdeps/tile/bits/atomic.h>.
11760         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11761         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11762         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11763         <sysdeps/tile/atomic-machine.h> instead of
11764         <sysdeps/tile/bits/atomic.h>.
11765         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11766         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11767         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11768         <sysdeps/arm/atomic-machine.h> instead of
11769         <sysdeps/arm/bits/atomic.h>.
11770         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11771         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11772         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11773         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11774         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11775         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11776         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
11777         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
11778         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
11779         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
11780         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
11781         * sysdeps/x86_64/bits/atomic.h: Move to ...
11782         * sysdeps/x86_64/atomic-machine.h: ...here.
11783         * include/atomic.h: Include <atomic-machine.h> instead of
11784         <bits/atomic.h>.
11785
11786         * sysdeps/mips/mips32/libm-test-ulps: Update.
11787         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11788
11789         [BZ #18952]
11790         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
11791         not convert non-integer negative arguments to int to determine the
11792         value of signgam.
11793         * math/auto-libm-test-in: Add more tests of lgamma.
11794         * math/auto-libm-test-out: Regenerated.
11795
11796         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
11797         cosh, csqrt, erfc, expm1 and lgamma.
11798         * math/auto-libm-test-out: Regenerated.
11799         * sysdeps/i386/fpu/libm-test-ulps: Update.
11800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11801
11802 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
11803
11804         [BZ #2542]
11805         [BZ #2543]
11806         [BZ #2558]
11807         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
11808         __lgamma_neg for arguments from -28.0 to -2.0.
11809         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
11810         __lgamma_negf for arguments from -15.0 to -2.0.
11811         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11812         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
11813         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
11814         Call __lgamma_negl for arguments from -33.0 to -2.0.
11815         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
11816         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11817         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11818         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
11819         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11820         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11821         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11822         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
11823         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11824         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11825         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
11826         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
11827         (__lgamma_neg): Likewise.
11828         (__lgamma_negl): Likewise.
11829         (__lgamma_product): Likewise.
11830         (__lgamma_productl): Likewise.
11831         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
11832         * math/auto-libm-test-in: Add more tests of lgamma.
11833         * math/auto-libm-test-out: Regenerated.
11834         * sysdeps/i386/fpu/libm-test-ulps: Update.
11835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11836
11837 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
11838
11839         [BZ #18675]
11840         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
11841
11842 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11843
11844         [BZ #14912]
11845         * bits/libc-lock.h: Move to ...
11846         * sysdeps/generic/libc-lock.h: ...here.
11847         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11848         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
11849         * sysdeps/mach/hurd/libc-lock.h: ...here.
11850         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11851         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
11852         * sysdeps/mach/bits/libc-lock.h: Move to ...
11853         * sysdeps/mach/libc-lock.h: ...here.
11854         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11855         * sysdeps/nptl/bits/libc-lock.h: Move to ...
11856         * sysdeps/nptl/libc-lock.h: ...here.
11857         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11858         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
11859         * sysdeps/nptl/libc-lockP.h: ...here.
11860         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
11861         * crypt/crypt_util.c: Include <libc-lock.h> instead of
11862         <bits/libc-lock.h>.
11863         * dirent/scandir-tail.c: Likewise.
11864         * dlfcn/dlerror.c: Likewise.
11865         * elf/dl-close.c: Likewise.
11866         * elf/dl-iteratephdr.c: Likewise.
11867         * elf/dl-lookup.c: Likewise.
11868         * elf/dl-open.c: Likewise.
11869         * elf/dl-support.c: Likewise.
11870         * elf/dl-writev.h: Likewise.
11871         * elf/rtld.c: Likewise.
11872         * grp/fgetgrent.c: Likewise.
11873         * gshadow/fgetsgent.c: Likewise.
11874         * gshadow/sgetsgent.c: Likewise.
11875         * iconv/gconv_conf.c: Likewise.
11876         * iconv/gconv_db.c: Likewise.
11877         * iconv/gconv_dl.c: Likewise.
11878         * iconv/gconv_int.h: Likewise.
11879         * iconv/gconv_trans.c: Likewise.
11880         * include/link.h: Likewise.
11881         * inet/getnameinfo.c: Likewise.
11882         * inet/getnetgrent.c: Likewise.
11883         * inet/getnetgrent_r.c: Likewise.
11884         * intl/bindtextdom.c: Likewise.
11885         * intl/dcigettext.c: Likewise.
11886         * intl/finddomain.c: Likewise.
11887         * intl/gettextP.h: Likewise.
11888         * intl/loadmsgcat.c: Likewise.
11889         * intl/localealias.c: Likewise.
11890         * intl/textdomain.c: Likewise.
11891         * libidn/idn-stub.c: Likewise.
11892         * libio/libioP.h: Likewise.
11893         * locale/duplocale.c: Likewise.
11894         * locale/freelocale.c: Likewise.
11895         * locale/newlocale.c: Likewise.
11896         * locale/setlocale.c: Likewise.
11897         * login/getutent_r.c: Likewise.
11898         * login/getutid_r.c: Likewise.
11899         * login/getutline_r.c: Likewise.
11900         * login/utmp-private.h: Likewise.
11901         * login/utmpname.c: Likewise.
11902         * malloc/mtrace.c: Likewise.
11903         * misc/efgcvt.c: Likewise.
11904         * misc/error.c: Likewise.
11905         * misc/fstab.c: Likewise.
11906         * misc/getpass.c: Likewise.
11907         * misc/mntent.c: Likewise.
11908         * misc/syslog.c: Likewise.
11909         * nis/nis_call.c: Likewise.
11910         * nis/nis_callback.c: Likewise.
11911         * nis/nss-default.c: Likewise.
11912         * nis/nss_compat/compat-grp.c: Likewise.
11913         * nis/nss_compat/compat-initgroups.c: Likewise.
11914         * nis/nss_compat/compat-pwd.c: Likewise.
11915         * nis/nss_compat/compat-spwd.c: Likewise.
11916         * nis/nss_nis/nis-alias.c: Likewise.
11917         * nis/nss_nis/nis-ethers.c: Likewise.
11918         * nis/nss_nis/nis-grp.c: Likewise.
11919         * nis/nss_nis/nis-hosts.c: Likewise.
11920         * nis/nss_nis/nis-network.c: Likewise.
11921         * nis/nss_nis/nis-proto.c: Likewise.
11922         * nis/nss_nis/nis-pwd.c: Likewise.
11923         * nis/nss_nis/nis-rpc.c: Likewise.
11924         * nis/nss_nis/nis-service.c: Likewise.
11925         * nis/nss_nis/nis-spwd.c: Likewise.
11926         * nis/nss_nisplus/nisplus-alias.c: Likewise.
11927         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
11928         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11929         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
11930         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
11931         * nis/nss_nisplus/nisplus-network.c: Likewise.
11932         * nis/nss_nisplus/nisplus-proto.c: Likewise.
11933         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11934         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
11935         * nis/nss_nisplus/nisplus-service.c: Likewise.
11936         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
11937         * nis/ypclnt.c: Likewise.
11938         * nptl/libc_pthread_init.c: Likewise.
11939         * nss/getXXbyYY.c: Likewise.
11940         * nss/getXXent.c: Likewise.
11941         * nss/getXXent_r.c: Likewise.
11942         * nss/nss_db/db-XXX.c: Likewise.
11943         * nss/nss_db/db-netgrp.c: Likewise.
11944         * nss/nss_db/nss_db.h: Likewise.
11945         * nss/nss_files/files-XXX.c: Likewise.
11946         * nss/nss_files/files-alias.c: Likewise.
11947         * nss/nsswitch.c: Likewise.
11948         * posix/regex_internal.h: Likewise.
11949         * posix/wordexp.c: Likewise.
11950         * pwd/fgetpwent.c: Likewise.
11951         * resolv/res_hconf.c: Likewise.
11952         * resolv/res_libc.c: Likewise.
11953         * shadow/fgetspent.c: Likewise.
11954         * shadow/lckpwdf.c: Likewise.
11955         * shadow/sgetspent.c: Likewise.
11956         * socket/opensock.c: Likewise.
11957         * stdio-common/reg-modifier.c: Likewise.
11958         * stdio-common/reg-printf.c: Likewise.
11959         * stdio-common/reg-type.c: Likewise.
11960         * stdio-common/vfprintf.c: Likewise.
11961         * stdio-common/vfscanf.c: Likewise.
11962         * stdlib/abort.c: Likewise.
11963         * stdlib/cxa_atexit.c: Likewise.
11964         * stdlib/fmtmsg.c: Likewise.
11965         * stdlib/random.c: Likewise.
11966         * stdlib/setenv.c: Likewise.
11967         * string/strsignal.c: Likewise.
11968         * sunrpc/auth_none.c: Likewise.
11969         * sunrpc/bindrsvprt.c: Likewise.
11970         * sunrpc/create_xid.c: Likewise.
11971         * sunrpc/key_call.c: Likewise.
11972         * sunrpc/rpc_thread.c: Likewise.
11973         * sysdeps/arm/backtrace.c: Likewise.
11974         * sysdeps/generic/ldsodefs.h: Likewise.
11975         * sysdeps/generic/stdio-lock.h: Likewise.
11976         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
11977         * sysdeps/i386/backtrace.c: Likewise.
11978         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11979         * sysdeps/m68k/backtrace.c: Likewise.
11980         * sysdeps/mach/hurd/cthreads.c: Likewise.
11981         * sysdeps/mach/hurd/dirstream.h: Likewise.
11982         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11983         * sysdeps/nptl/malloc-machine.h: Likewise.
11984         * sysdeps/nptl/stdio-lock.h: Likewise.
11985         * sysdeps/posix/dirstream.h: Likewise.
11986         * sysdeps/posix/getaddrinfo.c: Likewise.
11987         * sysdeps/posix/system.c: Likewise.
11988         * sysdeps/pthread/aio_suspend.c: Likewise.
11989         * sysdeps/s390/s390-32/backtrace.c: Likewise.
11990         * sysdeps/s390/s390-64/backtrace.c: Likewise.
11991         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
11992         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
11993         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
11994         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
11995         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
11996         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
11997         * sysdeps/unix/sysv/linux/system.c: Likewise.
11998         * sysdeps/x86_64/backtrace.c: Likewise.
11999         * time/alt_digit.c: Likewise.
12000         * time/era.c: Likewise.
12001         * time/tzset.c: Likewise.
12002         * wcsmbs/wcsmbsload.c: Likewise.
12003         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12004         instead of <bits/libc-lock.h> in comment.
12005
12006 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12007
12008         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12009         Only use .set mips2 if the current ISA is below mips2.
12010         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12011         Likewise.
12012         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12013         mips32r2 if the current ISA is below mips32r2.
12014         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12015         (TLS_IE): Updated to use the TLD_RDHWR macro.
12016         (TLS_LE): Likewise.
12017         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12018         __ASSEMBLER__ condition.
12019
12020 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12021
12022         Fix parallel build of before-compile targets.
12023
12024         * sysdeps/mach/Makefile ($(patsubst
12025         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12026         mach-before-compile target.
12027         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12028         io fs process)): Move rule to dedicated hurd-before-compile target.
12029
12030 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12031
12032         Fix rules generating headers in hurd/ and mach/ when initial make call
12033         has subdir= explicitly set.
12034
12035         * sysdeps/mach/Makefile ($(patsubst
12036         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12037         calling $(MAKE).
12038         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12039         io fs process)): Force subdir to hurd when calling $(MAKE).
12040         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12041         subdir to mach when calling $(MAKE).
12042
12043 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12044
12045         Check sysheaders when looking for Mach and Hurd headers
12046
12047         * sysdeps/mach/configure.ac: Add sysheaders check.
12048         * sysdeps/mach/configure: Regenerate.
12049         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12050         * sysdeps/mach/hurd/configure: Regenerate.
12051
12052 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12053
12054         [BZ #18921]
12055         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12056         Fix inverted sense of test of 'o_directory_works' value.
12057         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12058         Bernhard Voelker <mail@bernhard-voelker.de>.
12059
12060 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12061
12062         [BZ #14912]
12063         * bits/linkmap.h: Move to ...
12064         * sysdeps/generic/linkmap.h: ...here.
12065         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12066         * sysdeps/aarch64/linkmap.h: ...here.
12067         * sysdeps/arm/bits/linkmap.h: Move to ...
12068         * sysdeps/arm/linkmap.h: ...here.
12069         * sysdeps/hppa/bits/linkmap.h: Move to ...
12070         * sysdeps/hppa/linkmap.h: ...here.
12071         * sysdeps/ia64/bits/linkmap.h: Move to ...
12072         * sysdeps/ia64/linkmap.h: ...here.
12073         * sysdeps/mips/bits/linkmap.h: Move to ...
12074         * sysdeps/mips/linkmap.h: ...here.
12075         * sysdeps/s390/bits/linkmap.h: Move to ...
12076         * sysdeps/s390/linkmap.h: ...here.
12077         * sysdeps/sh/bits/linkmap.h: Move to ...
12078         * sysdeps/sh/linkmap.h: ...here.
12079         * sysdeps/x86/bits/linkmap.h: Move to ...
12080         * sysdeps/x86/linkmap.h: ...here.
12081         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12082
12083 2015-09-04  Andreas Schwab  <schwab@suse.de>
12084
12085         [BZ #18635]
12086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12087         (__makecontext): Terminate FDE before return label.
12088         (__novec_makecontext): Likewise.
12089
12090 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12091
12092         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12093         first member of struct sv in syscall macro.
12094
12095 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12096
12097         [BZ #14912]
12098         * bits/stdio-lock.h: Move to ...
12099         * sysdeps/generic/stdio-lock.h: ...here.
12100         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12101         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12102         * sysdeps/nptl/stdio-lock.h: ...here.
12103         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12104         * include/libio.h: Include <stdio-lock.h> instead of
12105         <bits/stdio-lock.h>.
12106         * sysdeps/nptl/fork.c: Likewise.
12107         * sysdeps/pthread/flockfile.c: Likewise.
12108         * sysdeps/pthread/ftrylockfile.c: Likewise.
12109         * sysdeps/pthread/funlockfile.c: Likewise.
12110
12111         [BZ #14912]
12112         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12113         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12114         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12115         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12116         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12117         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12118         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12119
12120 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12121
12122         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12123         (test-xfail-tst-protected1b): New variable.
12124
12125 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12126
12127         [BZ #14912]
12128         * bits/libc-tsd.h: Move to ...
12129         * sysdeps/generic/libc-tsd.h: ...here.
12130         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12131         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12132         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12133         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12134         * include/ctype.h: Include <libc-tsd.h> instead of
12135         <bits/libc-tsd.h>.
12136         * include/rpc/rpc.h: Likewise.
12137         * locale/localeinfo.h: Likewise.
12138         * sunrpc/rpc_thread.c: Likewise.
12139         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12140         * sysdeps/nptl/malloc-machine.h: Likewise.
12141
12142         * Makefile (headers): Remove bits/libc-lock.h.
12143         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12144
12145         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12146         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12147         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12148         <bits/stdio-lock.h>.
12149         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12150         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12151
12152 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12153
12154         [BZ #18757]
12155         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12156         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12157         BZ #18757.
12158
12159 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12160
12161         * malloc/mtrace.pl: Filter out NULL entries.
12162
12163 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12164
12165         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12166         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12167         macro.
12168
12169         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12170         (TCP_CC_INFO): Likewise.
12171         (TCP_SAVE_SYN): Likewise.
12172         (TCP_SAVED_SYN): Likewise.
12173
12174 2015-08-31  Brett Neumeier <brett@neumeier.us>
12175
12176         [BZ #18870]
12177         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12178
12179 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12180
12181         [BZ #18873]
12182         Fix broken overflow check in posix_fallocate
12183         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12184         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12185         Fix parenthesization typo.
12186
12187 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12188
12189         [BZ #18887]
12190         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12191         tst-mntent-blank-passno.
12192         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12193         * misc/tst-mntent-blank-corrupt.c: New test.
12194         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12195         * misc/tst-mntent.c (do_test): ... here.
12196
12197 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12198
12199         [BZ #4404]
12200         * po/de.po: Fix SIGALRM typo.
12201
12202 2015-08-28  James Perkins  <james@loowit.net>
12203
12204         * time/tst-strptime2.c (tests): Replace short list of test
12205         strings for strptime %z specifier with code which exhaustively
12206         tests every combination of sign and 0 to 5 digits. Tests for
12207         rejection of invalid strings.
12208
12209 2015-08-28  James Perkins  <james@loowit.net>
12210
12211         [BZ #16141]
12212         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12213         calculation, removing incorrect decimal time rounding, so that
12214         all minute values result in a valid seconds value.
12215         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12216         offset range limits to UTC-99:59 through UTC+99:59 to parse
12217         current and historical use cases.
12218         * time/tst-strptime2.c (tests): Modify and add tests for the
12219         strptime %z input field descriptor, specifically conversion of
12220         minutes to seconds and validating an offset range of -9959 to
12221         +9959.
12222
12223 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12224             Dmitry V. Levin  <ldv@altlinux.org>
12225
12226         [BZ #18877]
12227         * posix/Makefile (tests): Add tst-mmap-offset.
12228         * posix/tst-mmap.c: New file.
12229         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12230         offset calculation for negative values.
12231
12232 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12233
12234         * sysdeps/i386/init-arch.h: New file.
12235         * sysdeps/i386/i586/init-arch.h: Likewise.
12236         * sysdeps/i386/i686/init-arch.h: Likewise.
12237         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12238         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12239         * sysdeps/x86/cpu-features.h (bit_I586): New.
12240         (bit_I686): Likewise.
12241         (bit_CX8): Likewise.
12242         (bit_CMOV): Likewise.
12243         (index_CX8): Likewise.
12244         (index_CMOV): Likewise.
12245         (index_I586): Likewise.
12246         (index_I686): Likewise.
12247         (reg_CX8): Likewise.
12248         (reg_CMOV): Likewise.
12249         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12250         available at compile-time.
12251         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12252         available at compile-time.
12253         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12254         (USE_I686): Likewise.
12255
12256 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12257
12258         * sysdeps/i386/bcopy.S: New file.
12259         * sysdeps/i386/bzero.S: Likewise.
12260         * sysdeps/i386/memcpy.S: Likewise.
12261         * sysdeps/i386/memmove.S: Likewise.
12262         * sysdeps/i386/mempcpy.S: Likewise.
12263         * sysdeps/i386/memset.S: Likewise.
12264         * sysdeps/i386/bzero.c: Removed.
12265         * sysdeps/i386/memset.c: Likewise.
12266         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12267         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12268         * sysdeps/i386/i586/memset_chk.S: Likewise.
12269         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12270         * sysdeps/i386/memcpy_chk.S: Here.
12271         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12272         * sysdeps/i386/memmove_chk.S: Here.
12273         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12274         * sysdeps/i386/mempcpy_chk.S: Likewise.
12275         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12276         * sysdeps/i386/memset_chk.S: Likewise.
12277
12278 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12279
12280         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12281         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12282         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12283         * soft-fp/fmadf4.c: Ditto.
12284         * soft-fp/fmatf4.c: Ditto.
12285
12286 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12287
12288         * sysdeps/i386/i586/Implies: Removed.
12289         * sysdeps/i386/i686/Implies: Likewise.
12290
12291 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12292
12293         * sysdeps/i386/i486/strlen.S: Moved to ...
12294         * sysdeps/i386/strlen.S: Here.
12295
12296 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12297
12298         * sysdeps/i386/i486/strcat.S: Moved to ...
12299         * sysdeps/i386/strcat.S: Here.
12300
12301 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12302
12303         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12304         * sysdeps/i386/pthread_spin_trylock.S: Here.
12305         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12306         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12307
12308 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12309
12310         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12311         * sysdeps/i386/string-inlines.c: Here.
12312
12313 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12314
12315         * sysdeps/i386/i486/htonl.S: Moved ...
12316         * sysdeps/i386/htonl.S: here.
12317
12318 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12319
12320         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12321         * sysdeps/i386/bits/atomic.h: Here.
12322
12323 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12324
12325         * sysdeps/i386/i486/Versions: Removed.
12326
12327 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12328
12329         [BZ #2898]
12330         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12331         Based on patch by Aurelien Jarno.
12332
12333 2015-08-26  Stan Shebs  <stanshebs@google.com>
12334
12335         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12336         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12337
12338 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12339
12340         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12341         * sysdeps/powerpc/dl-procinfo.c:
12342         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12343         feature so it shows when LD_SHOW_AUXV=1.
12344
12345 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12346
12347         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12348         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12349         definition.  ISA 2.07B no longer requires full sync.
12350
12351 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12352
12353         [BZ #18863]
12354         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12355         (si_call_addr): Define.
12356         (si_syscall): Define.
12357         (si_arch): Define.
12358
12359 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12360
12361         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12362         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12363         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12364         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12365         (__memset_zero_constant_len_parameter): New.
12366         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12367         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12368         (__memset_zero_constant_len_parameter): Don't define if
12369         __memset_chk or USE_AS_BZERO are defined.
12370
12371         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12372         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12373         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12374
12375         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12376         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12377         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12378         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12379         comments.
12380         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12381         -mno-mmx for $(all-rtld-routines).
12382         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12383         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12384         i386.
12385
12386 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12387
12388         * sysdeps/generic/unwind.h
12389         (_Unwind_Word): Use __mode__(__unwind_word__)
12390         instead of __mode__(__word__).
12391         (_Unwind_Sword): Likewise.
12392
12393         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12394         (MAX_NEEDED_INPUT): New define.
12395         (MAX_NEEDED_OUTPUT): New define.
12396
12397         * NEWS: New item for IBM z13 string optimizations.
12398
12399         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12400         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12401         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12402         * sysdeps/s390/multiarch/Makefile
12403         (sysdep_routines): Add memrchr functions.
12404         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12405         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12406
12407         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12408         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12409         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12410         * sysdeps/s390/multiarch/Makefile
12411         (sysdep_routines): Add wmemcmp functions.
12412         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12413         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12414         * benchtests/bench-wmemcmp.c: New File.
12415         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12416
12417         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12418         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12419         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12420         * sysdeps/s390/multiarch/Makefile
12421         (sysdep_routines): Add wmemset functions.
12422         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12423         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12424         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12425         * string/test-memset.c: Add wmemset support.
12426         * wcsmbs/test-wmemset.c: New File.
12427         * wcsmbs/Makefile (strop-tests): Add wmemset.
12428         * benchtests/bench-memset.c: Add wmemset support.
12429         * benchtests/bench-wmemset.c: New File.
12430         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12431
12432         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12433         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12434         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12435         * sysdeps/s390/multiarch/Makefile
12436         (sysdep_routines): Add memccpy functions.
12437         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12438         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12439         * string/memccpy.c: Use MEMCCPY if defined.
12440
12441         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12442         * sysdeps/s390/multiarch/memchr.c: Likewise.
12443         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12444         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12445         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12446         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12447         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12448         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12449         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12450         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12451         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12452         and rawmemchr functions.
12453         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12454         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12455         and wmemchr.
12456         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12457         * string/test-memchr.c: Add wmemchr support.
12458         * wcsmbs/test-wmemchr.c: New File.
12459         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12460         * benchtests/bench-memchr.c: Add wmemchr support.
12461         * benchtests/bench-wmemchr.c: New File.
12462         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12463
12464         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12465         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12466         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12467         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12468         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12469         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12470         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12471         wcscspn functions.
12472         * sysdeps/s390/multiarch/ifunc-impl-list.c
12473         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12474         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12475         * string/test-strcspn.c: Add wcscspn support.
12476         * wcsmbs/test-wcscspn.c: New File.
12477         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12478         * benchtests/bench-strcspn.c: Add wcscspn support.
12479         * benchtests/bench-wcscspn.c: New File.
12480         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12481
12482         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12483         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12484         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12485         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12486         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12487         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12488         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12489         wcspbrk functions.
12490         * sysdeps/s390/multiarch/ifunc-impl-list.c
12491         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12492         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12493         * string/test-strpbrk.c: Add wcspbrk support.
12494         * wcsmbs/test-wcspbrk.c: New File.
12495         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12496         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12497         * benchtests/bench-wcspbrk.c: New File.
12498         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12499
12500         * sysdeps/s390/multiarch/strspn-c.c: New File.
12501         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12502         * sysdeps/s390/multiarch/strspn.c: Likewise.
12503         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12504         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12505         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12506         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12507         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12508         wcsspn functions.
12509         * sysdeps/s390/multiarch/ifunc-impl-list.c
12510         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12511         * string/test-strspn.c: Add wcsspn support.
12512         * wcsmbs/test-wcsspn.c: New File.
12513         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12514         * benchtests/bench-strspn.c: Add wcsspn support.
12515         * benchtests/bench-wcsspn.c: New File.
12516         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12517
12518         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12519         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12520         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12521         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12522         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12523         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12524         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12525         wcsrchr functions.
12526         * sysdeps/s390/multiarch/ifunc-impl-list.c
12527         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12528         * benchtests/bench-wcsrchr.c: New File.
12529         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12530
12531         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12532         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12533         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12534         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12535         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12536         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12537         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12538         wcschrnul functions.
12539         * sysdeps/s390/multiarch/ifunc-impl-list.c
12540         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12541         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12542         * string/test-strchr.c: Add wcschrnul support.
12543         * wcsmbs/test-wcschrnul.c: New File.
12544         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12545         * benchtests/bench-strchr.c: Add wcschrnul support.
12546         * benchtests/bench-wcschrnul.c: New File.
12547         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12548
12549         * sysdeps/s390/multiarch/strchr-c.c: New File.
12550         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12551         * sysdeps/s390/multiarch/strchr.c: Likewise.
12552         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12553         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12554         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12555         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12556         wcschr functions.
12557         * sysdeps/s390/multiarch/ifunc-impl-list.c
12558         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12559         * string/strchr.c (STRCHR): Define and use macro.
12560         * benchtests/bench-wcschr.c: New File.
12561         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12562
12563         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12564         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12565         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12566         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12567         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12568         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12569         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12570         wcsncmp functions.
12571         * sysdeps/s390/multiarch/ifunc-impl-list.c
12572         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12573         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12574         * benchtests/bench-strncmp.c: Add wcsncmp support.
12575         * benchtests/bench-wcsncmp.c: New File.
12576         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12577
12578         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12579         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12580         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12581         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12582         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12583         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12584         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12585         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12586         wcscmp functions.
12587         * sysdeps/s390/multiarch/ifunc-impl-list.c
12588         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12589         * string/strcmp.c (STRCMP): Define and use macro.
12590         * benchtests/bench-wcscmp.c: New File.
12591         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12592         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12593         instead of _HAVE_STRING_ARCH_memchr.
12594
12595         * sysdeps/s390/multiarch/strncat-c.c: New File.
12596         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12597         * sysdeps/s390/multiarch/strncat.c: Likewise.
12598         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12599         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12600         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12601         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12602         wcsncat functions.
12603         * sysdeps/s390/multiarch/ifunc-impl-list.c
12604         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12605         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12606         * string/test-strncat.c: Add wcsncat support.
12607         * wcsmbs/test-wcsncat.c: New File.
12608         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12609         * benchtests/bench-strncat.c: Add wcsncat support.
12610         * benchtests/bench-wcsncat.c: New File.
12611         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12612
12613         * sysdeps/s390/multiarch/strcat-c.c: New File.
12614         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12615         * sysdeps/s390/multiarch/strcat.c: Likewise.
12616         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12617         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12618         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12619         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12620         wcscat functions.
12621         * sysdeps/s390/multiarch/ifunc-impl-list.c
12622         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12623         * string/strcat.c (STRCAT): Define and use macro.
12624         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12625         * string/test-strcat.c: Add wcscat support.
12626         * wcsmbs/test-wcscat.c: New File.
12627         * wcsmbs/Makefile (strop-tests): Add wcscat.
12628         * benchtests/bench-strcat.c: Add wcscat support.
12629         * benchtests/bench-wcscat.c: New File.
12630         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12631
12632         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12633         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12634         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12635         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12636         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12637         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12638         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12639         wcpncpy functions.
12640         * sysdeps/s390/multiarch/ifunc-impl-list.c
12641         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12642         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12643         * string/test-stpncpy.c: Add wcpncpy support.
12644         * wcsmbs/test-wcpncpy.c: New File.
12645         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12646         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12647         * benchtests/bench-wcpncpy.c: New File.
12648         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12649
12650         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12651         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12652         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12653         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12654         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12655         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12656         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12657         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12658         wcsncpy functions.
12659         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12660         * sysdeps/s390/multiarch/ifunc-impl-list.c
12661         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12662         * string/test-strncpy.c: Add wcsncpy support.
12663         * wcsmbs/test-wcsncpy.c: New File.
12664         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12665         * benchtests/bench-strncpy.c: Add wcsncpy support.
12666         * benchtests/bench-wcsncpy.c: New File.
12667         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12668
12669         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12670         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12671         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12672         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12673         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12674         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12675         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12676         wcpcpy functions.
12677         * string/stpcpy.c: Use STPCPY if defined.
12678         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12679         * sysdeps/s390/multiarch/ifunc-impl-list.c
12680         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12681         * string/test-stpcpy.c: Add wcpcpy support.
12682         * wcsmbs/test-wcpcpy.c: New File.
12683         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12684         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12685         * benchtests/bench-wcpcpy.c: New File.
12686         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12687
12688         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12689         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12690         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12691         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12692         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12693         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12694         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12695         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12696         wcscpy functions.
12697         * sysdeps/s390/multiarch/ifunc-impl-list.c
12698         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12699         * benchtests/bench-wcscpy.c: New File.
12700         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12701
12702         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12703         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12704         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12705         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12706         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12707         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12708         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12709         wcsnlen functions.
12710         * sysdeps/s390/multiarch/ifunc-impl-list.c
12711         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12712         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12713         * string/test-strnlen.c: Add wcsnlen support.
12714         * wcsmbs/test-wcsnlen.c: New File.
12715         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12716         * benchtests/bench-strnlen.c: Add wcsnlen support.
12717         * benchtests/bench-wcsnlen.c: New File.
12718         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12719
12720         * sysdeps/s390/multiarch/Makefile: New File.
12721         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12722         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12723         * sysdeps/s390/multiarch/strlen.c: Likewise.
12724         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12725         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12726         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12727         * string/strlen.c (STRLEN): Define and use macro.
12728         * sysdeps/s390/multiarch/ifunc-impl-list.c
12729         (IFUNC_VX_IMPL): New macro function.
12730         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12731         * benchtests/Makefile (wcsmbs-bench): New variable.
12732         (string-bench-all): Added wcsmbs-bench.
12733         * benchtests/bench-wcslen.c: New File.
12734
12735         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12736         s390_vx_libc_ifunc2): New macro function.
12737
12738         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12739         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12740         assembler support.
12741         * sysdeps/s390/configure: Regenerated.
12742
12743         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12744         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12745
12746         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12747         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12748         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12749
12750         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12751         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12752         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12753         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12754         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12755         (memcmp, bcmp): Use __memcmp_default as alias source.
12756         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12757         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12758         Rename to __memcmp_default.
12759         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12760         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12761         (memcpy): Use __memcpy_default as alias source.
12762         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12763         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12764         Rename to __memcpy_default.
12765         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12766         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12767         (memset): Use __memset_default as alias source.
12768         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12769         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12770         Rename to __memset_default.
12771         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12772         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12773         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12774         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12775         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
12776         (memcmp, bcmp): Use __memcmp_default as alias source.
12777         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
12778         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
12779         Rename to __memcmp_default.
12780         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
12781         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
12782         (memcpy): Use __memcpy_default as alias source.
12783         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
12784         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
12785         Rename to __memcpy_default.
12786         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
12787         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
12788         (memset): Use __memset_default as alias source.
12789         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
12790         * sysdeps/s390/s390-64/memset.S (__memset_z900):
12791         Rename to __memset_default.
12792         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
12793         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
12794
12795         [BZ #18610]
12796         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
12797         __ieee_instruction_pointer to __unused.
12798         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
12799         __ieee_instruction_pointer.
12800         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
12801         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
12802         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12803         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12804         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
12805         Mark dxc-field as reserved.
12806
12807 2015-08-25  Roland McGrath  <roland@hack.frob.com>
12808
12809         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
12810         if the weak reference is not null.
12811
12812 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12813
12814         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
12815
12816         [BZ #11214]
12817         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
12818
12819 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12820
12821         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
12822         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
12823         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
12824         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
12825         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
12826         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
12827         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
12828         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
12829         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
12830         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
12831         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
12832         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
12833         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
12834         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
12835         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
12836         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
12837         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
12838         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
12839
12840 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12841
12842         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
12843         register other than r0 for tabort, it has special meaning.
12844         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
12845         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
12846         transaction before starting syscall.
12847
12848 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12849
12850         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
12851
12852 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12853
12854         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
12855
12856         * sysdeps/x86_64/rtld-memcmp.c: Removed.
12857         * sysdeps/x86_64/rtld-memset.S: Likewise.
12858         * sysdeps/x86_64/rtld-strchr.S: Likewise.
12859         * sysdeps/x86_64/rtld-strlen.S: Likewise.
12860         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
12861         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
12862
12863         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
12864
12865 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
12866
12867         * debug/strcpy_chk.c: Improve performance.
12868         * debug/stpcpy_chk.c: Likewise.
12869         * sysdeps/x86_64/strcpy_chk.S: Remove.
12870         * sysdeps/x86_64/stpcpy_chk.S: Remove.
12871
12872         [BZ #18240]
12873         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
12874
12875 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12876
12877         [BZ #15128]
12878         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
12879         ifuncmain8.
12880         (modules-names): Add ifuncmod8.
12881         ($(objpfx)ifuncmain8): New rule.
12882         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
12883         <cpuid.h>.
12884         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
12885         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
12886         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
12887         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
12888         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
12889         * sysdeps/x86_64/dl-trampoline.h: Likewise.
12890         * sysdeps/x86_64/ifuncmain8.c: New file.
12891         * sysdeps/x86_64/ifuncmod8.c: Likewise.
12892         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
12893         Removed.
12894         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
12895         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
12896         Change rtld_savespace_sse to __glibc_unused2.
12897         (RTLD_CHECK_FOREIGN_CALL): Removed.
12898         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
12899         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
12900         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
12901
12902 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12903
12904         * sysdeps/aarch64/bzero.S (__bzero): Remove.
12905
12906 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12907
12908         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
12909         Unconditionally set __fpcr to avoid uninialized warning.
12910         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
12911
12912 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12913
12914         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
12915         is corrupt.
12916
12917         * malloc/arena.c (arena_get2): Drop unused argument.
12918         (arena_lock): Adjust.
12919         (arena_get_retry): Likewise.
12920
12921 2015-08-24  Andreas Schwab  <schwab@suse.de>
12922
12923         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
12924         Don't define.
12925         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
12926         (__ASSUME_IPC64): Don't undef.
12927         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
12928         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12929         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12930         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
12931         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
12932         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
12933         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
12934         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
12935         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
12936         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
12937         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
12938         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
12939         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
12940         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
12941         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
12942         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
12943         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
12944         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
12945         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
12946         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
12947         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
12948
12949 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
12950
12951         * manual/Makefile (install): Only build manual when perl is available.
12952
12953 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12954
12955         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
12956         '#undef memcpy' by '#undef memchr'.
12957
12958 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12959
12960         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
12961         memchr not point to the internal __GI_memchr implementation.
12962
12963 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12964
12965         * timezone/Makefile (CFLAGS-zdump.c): Remove
12966         -Wno-strict-prototypes.
12967         (CFLAGS-zic.c): Likewise.
12968         (CFLAGS-ialloc.c): Likewise.
12969         (CFLAGS-scheck.c): Likewise.
12970
12971         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
12972         -Wno-error=undef.
12973
12974 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12975
12976         * i386/i686/multiarch/strcasestr-c.c: Removed.
12977         * x86_64/multiarch/strcasestr.c: Likewise.
12978         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12979         Remove strcasestr.
12980
12981 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12982
12983         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
12984
12985         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
12986         variables for high and low parts before possibly modifying them.
12987
12988 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12989
12990         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
12991         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
12992         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
12993         of "multiarch/init-arch.h".
12994         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
12995         * sysdeps/x86/init-arch.h: This.
12996
12997 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12998
12999         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13000         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13001
13002 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13003
13004         [BZ #17787]
13005         * manual/macros.texi: Add twoexp macro.
13006         * manual/filesys.texi: Fix exponents.
13007         * manual/llio.texi: Likewise.
13008         * manual/stdio.texi: Likewise.
13009
13010 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13011
13012         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13013         incorrect use.
13014
13015 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13016
13017         [BZ #18370]
13018         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13019         whose real or imaginary part has small absolute value.
13020         * math/s_csqrtf.c (__csqrtf): Likewise.
13021         * math/s_csqrtl.c (__csqrtl): Likewise.
13022         * math/auto-libm-test-in: Add more tests of csqrt.
13023         * math/auto-libm-test-out: Regenerated.
13024         * sysdeps/i386/fpu/libm-test-ulps: Update.
13025
13026 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13027
13028         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13029         __ppc_set_ppr_very_low): New functions.
13030         * manual/platform.texi: Add documentation about
13031         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13032
13033 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13034
13035         * string/stpncpy.c (stpncpy): Improve performance using
13036         __strnlen/memcpy/memset.
13037
13038 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13039
13040         [BZ #18796]
13041         * scripts/test-installation.pl: Don't add -lmvec to build options if
13042         libmvec wasn't built.
13043
13044 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13045
13046         [BZ #14341]
13047         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13048         case when there is a gap between DT_REL and DT_JMPREL sections.
13049         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13050         (LDFLAGS-tst-split-dynreloc): New.
13051         (tst-split-dynreloc-ENV): Likewise.
13052         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13053         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13054
13055 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13056
13057         [BZ #18822]
13058         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13059         attribute_hidden.
13060         (__xstat64_conv): Likewise.
13061         (__xstat32_conv): Likewise.
13062
13063 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13064
13065         [BZ #18822]
13066         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13067         Don't load %ebx when calling __setcontext.  Call __setcontext
13068         with HIDDEN_JUMPTARGET.
13069         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13070         libc_hidden_def.
13071
13072 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13073
13074         * sysdeps/i386/i686/Makefile
13075         [$(subdir) == string] (sysdep_routines): Moved to ...
13076         * sysdeps/i386/Makefile: Here.
13077         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13078         * sysdeps/i386/cacheinfo.c: Here.
13079         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13080         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13081         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13082         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13083
13084 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13085
13086         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13087         __i586__ is defined.
13088         (HAS_I686): Defined to 1 if __i686__ is defined.
13089
13090 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13091
13092         * elf/Makefile [$(have-z-execstack) = yes]
13093         (CPPFLAGS-tst-execstack.c): New variable.
13094
13095         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13096         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13097         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13098         UTMPX || _HAVE_UT_TV].
13099         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13100         UTMPX || _HAVE_UT_TV - 0].
13101
13102 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13103
13104         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13105         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13106         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13107
13108 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13109
13110         * sysdeps/powerpc/dl-procinfo.c:
13111         (_dl_powerpc_cap_flags): Added missing strings for some
13112         hwcap features.
13113         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13114
13115 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13116
13117         Port the 0x7efe...feff pattern to GCC 6.
13118         See Steve Ellcey's bug report in:
13119         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13120         * string/memrchr.c (MEMRCHR):
13121         * string/rawmemchr.c (RAWMEMCHR):
13122         * string/strchr.c (strchr):
13123         * string/strchrnul.c (STRCHRNUL):
13124         Rewrite code to avoid issues with signed shift overflow.
13125
13126 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13127
13128         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13129         whether cpuid is available only if HAS_CPUID is 0.
13130         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13131         (HAS_I586): Likewise.
13132         (HAS_I686): Likewise.
13133
13134 2015-08-18  Zack Weinberg  <zackw@panix.com>
13135
13136         * misc/Versions (libc): Add GLIBC_2.23.
13137
13138 2015-08-18  Alan Modra  <amodra@gmail.com>
13139
13140         [BZ #18421]
13141         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13142         .Lp__global.
13143         (_start): Load %dp via .Lp__global.
13144         [!SHARED]: Use .section .rodata.
13145
13146 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13147
13148         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13149         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13150
13151 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13152
13153         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13154         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13155
13156 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13157
13158         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13159         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13160
13161 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13162
13163         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13164         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13165
13166 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13167
13168         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13169         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13170
13171 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13172
13173         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13174         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13175
13176 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13177
13178         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13179
13180 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13181
13182         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13183         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13184         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13185         (__ASSUME_LWS_CAS): Delete.
13186
13187 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13188
13189         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13190         * sysdeps/hppa/configure: Regenerated.
13191         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13192         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13193         * sysdeps/hppa/nptl/tls.h: Likewise.
13194
13195 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13196
13197         [BZ #18823]
13198         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13199         for scaling up small arguments.
13200         * math/s_csqrtf.c (__csqrtf): Likewise.
13201         * math/s_csqrtl.c (__csqrtl): Likewise.
13202         * math/auto-libm-test-in: Add more tests of csqrt.
13203         * math/auto-libm-test-out: Regenerated.
13204
13205 2015-08-17  Andreas Schwab  <schwab@suse.de>
13206
13207         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13208         version set GLIBC_2.19.
13209
13210 2015-08-16  Zack Weinberg  <zackw@panix.com>
13211
13212         [BZ #18681]
13213         * misc/regexp.h: This interface is no longer supported.
13214         Remove all contents, leaving only an #error directive.
13215         * misc/regexp.c (loc1, loc2, locs, step, advance):
13216         Demote to compatibility symbols.
13217
13218 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13219
13220         [BZ #18084]
13221         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13222         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13223         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13224         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13225         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13226         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13227         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13228         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13229         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13230
13231 2015-08-15  Zack Weinberg  <zackw@panix.com>
13232
13233         [BZ #18795]
13234         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13235         buffer length is known to be too large, not if it's known to be
13236         small enough.
13237         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13238         overflow at runtime, involving a length parameter, twice: once
13239         with a compile-time constant length parameter, once without.
13240
13241 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13242
13243         [BZ #18824]
13244         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13245         scaling x * y up instead of down.
13246         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13247         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13248         * math/auto-libm-test-in: Add more tests of fma.
13249         * math/auto-libm-test-out: Regenerated.
13250
13251 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13252
13253         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13254
13255 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13256
13257         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13258         unnecessary movq.
13259         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13260         Likewise.
13261
13262 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13263
13264         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13265         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13266         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13267         and tgamma.
13268         * math/auto-libm-test-out: Regenerated.
13269         * sysdeps/i386/fpu/libm-test-ulps: Update.
13270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13271
13272         [BZ #16520]
13273         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13274         (__tanh): Force underflow exception for arguments with small
13275         absolute value.
13276         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13277         (__tanhf): Force underflow exception for arguments with small
13278         absolute value.
13279         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13280         (__tanhl): Force underflow exception for arguments with small
13281         absolute value.
13282         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13283         (__tanhl): Force underflow exception for arguments with small
13284         absolute value.
13285         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13286         (__tanhl): Force underflow exception for arguments with small
13287         absolute value.
13288         * math/auto-libm-test-in: Add more tests of tanh.
13289         * math/auto-libm-test-out: Regenerated.
13290         * sysdeps/i386/fpu/libm-test-ulps: Update.
13291
13292 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13293
13294         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13295         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13296
13297 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13298
13299         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13300         <cpuid.h>.
13301
13302 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13303
13304         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13305         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13306
13307 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13308
13309         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13310         Remove $(objpfx)init-arch.o.
13311         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13312         init-arch.
13313         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13314         (INIT_ARCH_EXT): Defined as empty.
13315         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13316         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13317         __init_cpu_features call.  Replace HAS_XXX with
13318         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13319         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13320         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13321         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13322         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13323         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13324         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13325         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13326         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13327         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13328         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13329         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13330         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13331         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13332         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13333         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13334         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13335         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13336         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13337         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13338         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13339         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13340         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13341         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13342         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13343         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13344         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13345         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13346         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13347         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13348         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13349         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13350         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13351         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13352         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13353         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13354
13355 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13356
13357         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13358         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13359         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13360         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13361         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13362         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13363         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13364         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13365         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13366         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13367         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13368         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13369         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13370         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13371         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13372         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13373         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13374         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13375         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13376         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13377         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13378         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13379         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13380         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13381         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13382         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13383         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13384         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13385         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13386         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13387         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13388         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13389         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13390         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13391         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13392         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13393         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13394         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13395         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13396         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13397         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13398         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13399         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13400
13401 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13402
13403         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13404         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13405         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13406         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13407         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13408         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13409         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13410         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13411         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13412         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13413         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13414         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13415         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13416         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13417         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13418         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13419         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13420         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13421         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13422         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13423         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13424         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13425         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13426         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13427         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13428         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13429         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13430         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13431         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13432         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13433         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13434         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13435         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13436         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13437         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13438         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13439         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13440         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13441         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13442         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13443         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13444         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13445         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13446
13447 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13448
13449         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13450         (dl_platform_init): Call init_cpu_features.
13451         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13452         * sysdeps/i386/i686/cacheinfo.c
13453         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13454         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13455         * sysdeps/i386/i686/multiarch/Versions: Removed.
13456         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13457         Removed.
13458         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13459         * sysdeps/unix/sysv/linux/x86/Makefile
13460         (libpthread-sysdep_routines): Remove init-arch.
13461         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13462         <sysdeps/x86_64/dl-procinfo.c> instead of
13463         sysdeps/generic/dl-procinfo.c>.
13464         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13465         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13466         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13467         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13468         [$(subdir) == elf] (tests-static): Add
13469         tst-get-cpu-features-static.
13470         * sysdeps/x86/Versions: New file.
13471         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13472         * sysdeps/x86/cpu-features.c: Likewise.
13473         * sysdeps/x86/cpu-features.h: Likewise.
13474         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13475         * sysdeps/x86/libc-start.c: Likewise.
13476         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13477         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13478         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13479         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13480         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13481         Assume USE_MULTIARCH is defined and don't check it.
13482         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13483         (is_amd): Likewise.
13484         (max_cpuid): Likewise.
13485         (intel_check_word): Likewise.
13486         (__cache_sysconf): Don't call __init_cpu_features.
13487         (__x86_preferred_memory_instruction): Removed.
13488         (init_cacheinfo): Don't call __init_cpu_features. Replace
13489         __cpu_features with GLRO(dl_x86_cpu_features).
13490         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13491         (dl_platform_init): Call init_cpu_features.
13492         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13493         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13494         * sysdeps/x86_64/multiarch/Versions: Removed.
13495         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13496         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13497         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13498         Removed.
13499         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13500
13501 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13502
13503         [BZ #18820]
13504         * libio/Makefile (test-fmemopen-mem): New test.
13505         * libio/test-fmemopen.c (do_bz18820): New test.
13506         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13507         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13508
13509 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13510
13511         [BZ #16734]
13512         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13513         (FREE_BUF): Delete.
13514         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13515         * libio/genops.c (_IO_setb): Use malloc and free directly.
13516         (_IO_default_doallocate, _IO_default_finish): Likewise.
13517         ( _IO_unbuffer_all): Likewise.
13518         ( libc_freeres_fn): Likewise.
13519         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13520         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13521         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13522         (_IO_wdefault_doallocate): Likewise.
13523
13524 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13525
13526         [BZ #18086]
13527         * sysdeps/posix/nice.c (nice): Restore old errno.
13528         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13529
13530 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13531
13532         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13533
13534 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13535
13536         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13537         __bcopy and add a weak_alias to bcopy.
13538         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13539         for static build.
13540
13541         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13542         cleanup macro usage.
13543         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13544         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13545         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13546         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13547         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13548         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13549         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13550         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13551         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13552         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13553         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13554         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13555         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13556         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13557         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13558         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13559         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13560         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13561         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13562
13563         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13564         libc_hidden_def.
13565         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13566
13567         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13568         (sysdep_routines): Add strstr-ppc64.
13569         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13570
13571 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13572
13573         [BZ #18778]
13574         * elf/Makefile (tests): Add Add tst-nodelete2.
13575         (modules-names): Add tst-nodelete2mod.
13576         (tst-nodelete2mod.so-no-z-defs): New.
13577         ($(objpfx)tst-nodelete2): Likewise.
13578         ($(objpfx)tst-nodelete2.out): Likewise.
13579         (LDFLAGS-tst-nodelete2): Likewise.
13580         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13581         out of loop through all loaded libraries.
13582         * elf/tst-nodelete2.c: New file.
13583         * elf/tst-nodelete2mod.c: Likewise.
13584         * elf/tst-znodelete-zlib.cc: Delete.
13585
13586 2015-08-11  Andreas Schwab  <schwab@suse.de>
13587
13588         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13589         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13590         (__openat64_nocancel): Likewise.
13591
13592 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13593
13594         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13595         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13596         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13597         * math/auto-libm-test-out: Regenerated.
13598         * sysdeps/i386/fpu/libm-test-ulps: Update.
13599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13600
13601 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13602
13603         [BZ #18790]
13604         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13605         threshold for returning +/- 1.
13606         * math/auto-libm-test-in: Add more tests of tanh.
13607         * math/auto-libm-test-out: Regenerated.
13608         * sysdeps/i386/fpu/libm-test-ulps: Update.
13609
13610 2015-08-10  Andreas Schwab  <schwab@suse.de>
13611
13612         [BZ #18781]
13613         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13614         MORE_OFLAGS to oflag.
13615         * io/test-lfs.c (do_test): Test openat64.
13616
13617 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13618
13619         [BZ #18789]
13620         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13621         smaller threshold for returning the argument.
13622         * math/auto-libm-test-in: Add more tests of sinh.
13623         * math/auto-libm-test-out: Regenerated.
13624         * sysdeps/i386/fpu/libm-test-ulps: Update.
13625
13626 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13627
13628         [BZ #18674]
13629         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13630         break.
13631
13632 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13633
13634         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13635         (generated): Don't add $(addprefix z.,$(tzfiles)).
13636
13637 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13638
13639         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13640         * scripts/sysd-rules.awk: Likewise.
13641
13642 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13643
13644         * iconvdata/tst-tables.sh: Change echo -n to printf.
13645         * nss/db-Makefile: Likewise.
13646         * posix/tst-getconf.sh: Likewise.
13647         * stdio-common/tst-unbputc.sh: Likewise.
13648
13649 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13650
13651         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13652         MADV_*_PAGES defines behind this feature check.
13653
13654 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13655
13656         [BZ #18480]
13657         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13658         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13659         Define.
13660         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13661         LOAD_REGS_5, LOAD_REGS_6): Update.
13662         (INTERNAL_SYSCALL): Update using new LOAD defines.
13663         (INTERNAL_SYSCALL_NCS): Likewise.
13664         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13665
13666 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13667
13668         [BZ #16734]
13669         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13670
13671 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13672
13673         [BZ #17905]
13674         * catgets/Makefile (tst-catgets-mem): New test.
13675         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13676         * catgets/open_catalog.c (__open_catalog): Likewise.
13677         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13678
13679 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13680
13681         [BZ #18787]
13682         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13683         clobber registers.
13684         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13685         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13686         Cast return to __typeof (oldval).
13687
13688 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13689
13690         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13691         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13692         and delete sys/syscall.h include.
13693
13694 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13695
13696         [BZ #16517]
13697         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13698         (tan): Force underflow exception for arguments with small absolute
13699         value.
13700         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13701         (__kernel_tanf): Force underflow exception for arguments with
13702         small absolute value.
13703         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13704         (__kernel_tanl): Force underflow exception for arguments with
13705         small absolute value.
13706         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13707         (__kernel_tanl): Force underflow exception for arguments with
13708         small absolute value.
13709         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13710         (__kernel_tanl): Force underflow exception for arguments with
13711         small absolute value.
13712         * math/auto-libm-test-in: Add more tests of tan.
13713         * math/auto-libm-test-out: Regenerated.
13714
13715 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13716
13717         Fix sysdeps/i386/fpu/s_scalbn.S build
13718
13719         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13720
13721 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13722
13723         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13724
13725 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13726
13727         Fix gcrt0.o compilation
13728
13729         When static-start-installed-name is different from
13730         start-installed-name, we must not use the shared objects.
13731
13732         * csu/Makefile
13733         (extra-objs): Add gmon-start.o when building shared library and
13734         $(static-start-installed-name) is different from
13735         $(start-installed-name).
13736         $(objpfx)g$(static-start-installed-name): When building shared
13737         library and $(static-start-installed-name) is different from
13738         $(static-start-installed-name), revert to non-shared rule,
13739         i.e. using $(objpfx)% and gmon-start.o.
13740
13741 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13742
13743         [BZ #16519]
13744         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13745         (__ieee754_sinh): Force underflow exception for arguments with
13746         small absolute value.
13747         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13748         (__ieee754_sinhf): Force underflow exception for arguments with
13749         small absolute value.
13750         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13751         (__ieee754_sinhl): Force underflow exception for arguments with
13752         small absolute value.
13753         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13754         (__ieee754_sinhl): Force underflow exception for arguments with
13755         small absolute value.
13756         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13757         (__ieee754_sinhl): Force underflow exception for arguments with
13758         small absolute value.
13759         * math/auto-libm-test-in: Add more tests of sinh.
13760         * math/auto-libm-test-out: Regenerated.
13761         * sysdeps/i386/fpu/libm-test-ulps: Update.
13762
13763 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13764
13765         * libio/oldfileops.c: Include unistd.h.
13766
13767 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13768
13769         * stdlib/isomac.c: Include ctype.h.
13770
13771 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13772
13773         * dirent/tst-seekdir.c (main): Converted to ...
13774         (do_test): ... this.
13775         (TEST_FUNCTION): New macro.
13776         Include test-skeleton.c.
13777         * elf/tst-dlmodcount.c (main): Converted to ...
13778         (do_test): ... this.
13779         (TEST_FUNCTION): New macro.
13780         Include test-skeleton.c.
13781         * elf/tst-order-main.c (main): Converted to ...
13782         (do_test): ... this.
13783         (TEST_FUNCTION): New macro.
13784         Include test-skeleton.c.
13785         * elf/tst-pie2.c (main): Converted to ...
13786         (do_test): ... this.
13787         (TEST_FUNCTION): New macro.
13788         Include test-skeleton.c.
13789         * inet/tst-ether_aton.c (main): Converted to ...
13790         (do_test): ... this.
13791         (TEST_FUNCTION): New macro.
13792         Include test-skeleton.c.
13793         * misc/tst-mntent.c (main): Converted to ...
13794         (do_test): ... this.
13795         (TEST_FUNCTION): New macro.
13796         Include test-skeleton.c.
13797         * misc/tst-tsearch.c (main): Converted to ...
13798         (do_test): ... this.
13799         (TEST_FUNCTION): New macro.
13800         Include test-skeleton.c.
13801         * posix/tst-regexloc.c (main): Converted to ...
13802         (do_test): ... this.
13803         (TEST_FUNCTION): New macro.
13804         Include test-skeleton.c.
13805         * resolv/tst-aton.c (main): Converted to ...
13806         (do_test): ... this.
13807         (TEST_FUNCTION): New macro.
13808         Include test-skeleton.c.
13809         * stdio-common/test-fwrite.c (main): Converted to ...
13810         (do_test): ... this.
13811         (TEST_FUNCTION): New macro.
13812         Include test-skeleton.c.
13813         * stdio-common/tst-ferror.c (main): Converted to ...
13814         (do_test): ... this.
13815         (TEST_FUNCTION): New macro.
13816         Include test-skeleton.c.
13817         * stdio-common/tst-printf.c (main): Converted to ...
13818         (do_test): ... this.
13819         (TEST_FUNCTION): New macro.
13820         Include test-skeleton.c.
13821         * stdio-common/tst-printfsz.c (main): Converted to ...
13822         (do_test): ... this.
13823         (TEST_FUNCTION): New macro.
13824         Include test-skeleton.c.
13825         * stdlib/tst-strtod.c (main): Converted to ...
13826         (do_test): ... this.
13827         (TEST_FUNCTION): New macro.
13828         Include test-skeleton.c.
13829         * string/tst-strlen.c (main): Converted to ...
13830         (do_test): ... this.
13831         (TEST_FUNCTION): New macro.
13832         Include test-skeleton.c.
13833         * string/tst-svc.c (main): Converted to ...
13834         (do_test): ... this.
13835         (TEST_FUNCTION): New macro.
13836         Include test-skeleton.c.
13837         * time/tst-strptime.c (main): Converted to ...
13838         (do_test): ... this.
13839         (TEST_FUNCTION): New macro.
13840         Include test-skeleton.c.
13841         * timezone/tst-timezone.c (main): Converted to ...
13842         (do_test): ... this.
13843         (TEST_FUNCTION): New macro.
13844         Include test-skeleton.c.
13845
13846 2015-08-05  Zack Weinberg  <zackw@panix.com>
13847
13848         * misc/regexp.h: Update comments.
13849
13850 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
13851
13852         [BZ #18635]
13853         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
13854         before return label.
13855
13856 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13857
13858         [BZ #18661]
13859         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
13860         when calling __errno_location.
13861         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
13862         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
13863
13864 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13865
13866         [BZ #18661]
13867         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
13868         (__lll_timedwait_tid): Align stack to 16 bytes when calling
13869         __gettimeofday.
13870
13871 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13872
13873         [BZ #18661]
13874         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13875         (__start_context): Don't use pop to restore %rdi so that stack
13876         is aligned to 16 bytes when calling __setcontext.
13877
13878 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13879
13880         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
13881         only for libc.
13882         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13883
13884 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13885
13886         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
13887         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
13888         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
13889
13890 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13891
13892         * string/memccpy.c (memccpy):
13893         Improve performance by using memchr/memcpy/__mempcpy.
13894
13895 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13896
13897         * string/strncpy.c (strncpy):
13898         Improve performance by using __strnlen/memcpy.
13899
13900 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13901
13902         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
13903         Optimize to avoid an unnecessary FPCR read.
13904
13905 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13906
13907         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
13908         Optimize to reduce FPCR/FPSR accesses.
13909
13910 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13911
13912         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
13913         dead->data[category] != NULL.
13914
13915 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
13916
13917         [BZ #18647]
13918         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
13919         and |x| close to 1, use absolute value of x when computing log.
13920         * math/auto-libm-test-in: Add more tests of pow.
13921         * math/auto-libm-test-out: Regenerated.
13922
13923 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13924
13925         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
13926         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
13927         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
13928
13929 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
13930
13931         [BZ #18525]
13932         * locales/km_KH: Remove timezone definition.
13933         * locales/lo_LA: Likewise.
13934         * locales/my_MM: Likewise.
13935         * locales/nan_TW@latin: Likewise.
13936         * locales/th_TH: Likewise.
13937         * locales/uk_UA: Likewise.
13938
13939 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
13940
13941         [BZ #18265]
13942         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
13943         (wcsncat): Likewise.
13944         (wcscmp): Likewise.
13945         (wcsncmp): Likewise.
13946
13947 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13948
13949         * test-skeleton.c (usage): New function.
13950         (main): Call usage when opt is '?'.
13951
13952 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13953
13954         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
13955         before first use.
13956
13957 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13958
13959         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
13960         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
13961         in there too.
13962
13963 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
13964
13965         * version.h (RELEASE): Set to "development".
13966         (VERSION): Set to "2.22.90"
13967
13968         * version.h (RELEASE): Set to "stable".
13969         (VERSION): Set to "2.22"
13970         * include/features.h (__GLIBC_MINOR__): Set to 22.
13971
13972 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
13973
13974         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
13975         Restructure macro to avoid "value computed is not used" warning.
13976         (atomic_compare_and_exchange_val_acq): Likewise.
13977
13978 2015-08-04  Andreas Schwab  <schwab@suse.de>
13979
13980         [BZ #18635]
13981         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
13982         ret.
13983         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
13984
13985 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
13986
13987         * po/pl.po: Updated translation.
13988         * po/uk.po: Likewise.
13989         * po/fi.po: Likewise.
13990         * po/ko.po: Likewise.
13991         * po/ru.po: Likewise.
13992         * po/vi.po: Likewise.
13993
13994 2015-07-31  Zack Weinberg  <zackw@panix.com>
13995
13996         [BZ #18681]
13997         * regexp.h: Add unconditional #warning stating that this header
13998         will be removed soon.  Revise banner comment to match.
13999         (compile): Consistently use ERROR instead of RETURN to report
14000         errors (partial fix for bz#18681).
14001         * regexp.c: Don't include regexp.h. Remove some unnecessary
14002         declarations.
14003
14004 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14005
14006         * po/libc.pot: Regenerated.
14007
14008 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14009
14010         [BZ #18740]
14011         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14012         float-vlen4-arch-ext-cflags): Removed.
14013         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14014         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14015
14016 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14017
14018         [BZ #14113]
14019         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14020         aligned to __aligned__.
14021         (pthread_cond_t, pthread_rwlock_t): Likewise.
14022
14023 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14024
14025         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14026
14027 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14028
14029         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14030         (struct sigaction): Change sa_flags from a long to an int, and add
14031         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14032
14033 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14034
14035         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14036         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14037         sysdeps/generic/sysdep.h include.
14038         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14039         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14040         sysdeps/hppa/sysdep.h.
14041         (ENTRY, PSEUDO): Undefine before defining.
14042
14043 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14044
14045         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14046         from scratch to use INTERNAL_SYSCALL.
14047
14048 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14049
14050         [BZ #18078]
14051         * scripts/check-localplt.awk: Support alternate relocations.
14052         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14053         sections.
14054         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14055         malloc entries with + REL R_386_GLOB_DAT.
14056         * sysdeps/x86_64/localplt.data: New file.
14057
14058 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14059
14060         [BZ #18731]
14061         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14062         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14063         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14064
14065 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14066
14067         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14068
14069 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14070
14071         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14072         directly in terms of __sync_fetch_and_add and delete (int) cast.
14073
14074 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14075
14076         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14077         the -D_ASM_IA64_CURRENT_H flag.
14078
14079 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14080
14081         [BZ #18641]
14082         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14083
14084 2015-07-27  Andreas Schwab  <schwab@suse.de>
14085
14086         * conform/conformtest.pl (checknamespace): Filter out string
14087         literals while tokenizing.
14088
14089 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14090
14091         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14092         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14093         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14094
14095 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14096
14097         * nptl/tst-join7mod.c: Add #include <string.h>.
14098
14099 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14100
14101         * sysdeps/nios2/libm-test-ulps: Update.
14102
14103 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14104
14105         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14106         Fix order of arguments to the rt_sigprocmask syscall.
14107         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14108         Likewise.
14109
14110 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14111
14112         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14113
14114 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14115
14116         [BZ #18457]
14117         * nptl/Makefile (tests): New test case tst-join7.
14118         (modules-names): New test case module tst-join7mod.
14119         * nptl/tst-join7.c: New file.
14120         * nptl/tst-join7mod.c: New file.
14121         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14122         all translation units in libc.so, libpthread.so and rtld.
14123
14124 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14125
14126         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14127
14128 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14129
14130         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14131         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14132         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14133         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14134         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14135         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14136         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14137         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14138         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14139         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14140         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14141         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14142         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14143         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14144         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14145         implementation.
14146
14147 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14148
14149         [BZ #17711]
14150         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14151         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14152         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14153         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14154         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14155         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14156
14157 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14158
14159         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14160         instead of just saying load lock in the comments.
14161
14162 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14163
14164         * sysdeps/unix/Subdirs: Moved ...
14165         * sysdeps/posix/Subdirs: ... here.
14166         * login/pty.h (struct termios, struct winsize): Add forward decls.
14167         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14168         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14169         * sysdeps/arm/nacl/libc.abilist: Updated.
14170         * sysdeps/nacl/libutil.abilist: New file.
14171
14172         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14173         (SIGWINCH): New macro.
14174
14175         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14176         * sysdeps/arm/nacl/libc.abilist: Add it.
14177
14178 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14179
14180         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14181
14182 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14183
14184         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14185         Swap __glibc_reserved0 and sa_flags order.
14186
14187 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14188
14189         [BZ #18657]
14190         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14191         are pending TLS destructor calls.
14192         * include/link.h (struct link_map): Add concurrency note for
14193         L_TLS_DTOR_COUNT.
14194         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14195         Don't touch the link map flag.  Atomically increment
14196         l_tls_dtor_count.
14197         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14198         Avoid taking the load lock and don't touch the link map flag.
14199         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14200         * stdlib/Makefile (tests): Use it.
14201         * stdlib/tst-tls-atexit.c (do_test): dlopen
14202         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14203         to allow tst-tls-atexit-nodelete test case to use it.
14204
14205 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14206
14207         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14208         to bits/types.h.
14209         (msgqnum_t): New typedef.
14210         (msglen_t): Likewise.
14211         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14212         and msg_qbytes type to msglen_t.
14213
14214 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14215
14216         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14217         pad0 to __glibc_reserved0.
14218         (struct stat64): Likewise.
14219
14220 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14221
14222         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14223         Change sa_flags from a long to an int and add __glibc_reserved0 before
14224         it for padding.
14225
14226 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14227
14228         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14229         anonymous by deleting "siginfo" name.
14230
14231 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14232
14233         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14234         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14235         rather than __nacl_irt_filename.
14236         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14237
14238         * NEWS: New item for arm-nacl port.
14239         * sysdeps/arm/nacl/libc.abilist: New file.
14240         * sysdeps/nacl/ld.abilist: New file.
14241         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14242         * sysdeps/nacl/libanl.abilist: New file.
14243         * sysdeps/nacl/libcrypt.abilist: New file.
14244         * sysdeps/nacl/libdl.abilist: New file.
14245         * sysdeps/nacl/libm.abilist: New file.
14246         * sysdeps/nacl/libpthread.abilist: New file.
14247         * sysdeps/nacl/libresolv.abilist: New file.
14248         * sysdeps/nacl/librt.abilist: New file.
14249
14250 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14251
14252         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14253         __startcontext to initialize the new context.
14254         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14255         up CFI directive to forbid further backtracing.
14256
14257 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14258
14259         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14260         reference.
14261         * charmaps/ANSI_X3.4-1968: Likewise.
14262         * charmaps/BS_4730: Likewise.
14263         * charmaps/BS_VIEWDATA: Likewise.
14264         * charmaps/CP1250: Likewise.
14265         * charmaps/CP1251: Likewise.
14266         * charmaps/CP1252: Likewise.
14267         * charmaps/CP1253: Likewise.
14268         * charmaps/CP1254: Likewise.
14269         * charmaps/CP1255: Likewise.
14270         * charmaps/CP1256: Likewise.
14271         * charmaps/CSN_369103: Likewise.
14272         * charmaps/EBCDIC-DK-NO: Likewise.
14273         * charmaps/GB_1988-80: Likewise.
14274         * charmaps/GREEK-CCITT: Likewise.
14275         * charmaps/GREEK7: Likewise.
14276         * charmaps/INIS-8: Likewise.
14277         * charmaps/ISIRI-3342: Likewise.
14278         * charmaps/ISO_2033-1983: Likewise.
14279         * charmaps/ISO_5427-EXT: Likewise.
14280         * locales/POSIX: Likewise.
14281         * locales/ar_SA: Likewise.
14282         * locales/be_BY: Likewise.
14283         * locales/be_BY@latin: Likewise.
14284         * locales/ca_ES: Likewise.
14285         * locales/cs_CZ: Likewise.
14286         * locales/da_DK: Likewise.
14287         * locales/de_BE: Likewise.
14288         * locales/de_CH: Likewise.
14289         * locales/de_LU: Likewise.
14290         * locales/en_AU: Likewise.
14291         * locales/en_BW: Likewise.
14292         * locales/en_CA: Likewise.
14293         * locales/en_DK: Likewise.
14294         * locales/en_GB: Likewise.
14295         * locales/en_IE: Likewise.
14296         * locales/en_NZ: Likewise.
14297         * locales/en_ZA: Likewise.
14298         * locales/en_ZW: Likewise.
14299         * locales/es_AR: Likewise.
14300         * locales/es_BO: Likewise.
14301         * locales/es_CL: Likewise.
14302         * locales/es_CO: Likewise.
14303         * locales/es_DO: Likewise.
14304         * locales/es_EC: Likewise.
14305         * locales/es_ES: Likewise.
14306         * locales/es_HN: Likewise.
14307         * locales/es_MX: Likewise.
14308         * locales/es_PA: Likewise.
14309         * locales/es_PE: Likewise.
14310         * locales/es_PY: Likewise.
14311         * locales/es_SV: Likewise.
14312         * locales/es_US: Likewise.
14313         * locales/es_UY: Likewise.
14314         * locales/es_VE: Likewise.
14315         * locales/et_EE: Likewise.
14316         * locales/fa_IR: Likewise.
14317         * locales/fo_FO: Likewise.
14318         * locales/fr_CA: Likewise.
14319         * locales/fr_CH: Likewise.
14320         * locales/gv_GB: Likewise.
14321         * locales/he_IL: Likewise.
14322         * locales/hr_HR: Likewise.
14323         * locales/id_ID: Likewise.
14324         * locales/is_IS: Likewise.
14325         * locales/it_CH: Likewise.
14326         * locales/iw_IL: Likewise.
14327         * locales/kl_GL: Likewise.
14328         * locales/ko_KR: Likewise.
14329         * locales/kw_GB: Likewise.
14330         * locales/lg_UG: Likewise.
14331         * locales/lt_LT: Likewise.
14332         * locales/lv_LV: Likewise.
14333         * locales/mi_NZ: Likewise.
14334         * locales/nhn_MX: Likewise.
14335         * locales/nl_BE: Likewise.
14336         * locales/pl_PL: Likewise.
14337         * locales/sk_SK: Likewise.
14338         * locales/sl_SI: Likewise.
14339         * locales/sv_FI: Likewise.
14340         * locales/tl_PH: Likewise.
14341         * locales/tr_TR: Likewise.
14342         * locales/vi_VN: Likewise.
14343
14344 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14345
14346         [BZ #17475]
14347         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14348         of tu_IN and bh_IN.
14349
14350 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14351
14352         [BZ #18694]
14353         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14354         bits/wordsize.h.
14355         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14356
14357 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14358
14359         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14360         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14361         (spawn_thread): New function.
14362         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14363         (do_test): ... here.  Use IS_LOADED to test for its
14364         availability.
14365
14366 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14367
14368         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14369
14370 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14371
14372         [BZ #18696]
14373         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14374         si_addr_bnd.
14375         (si_lower): New.
14376         (si_upper): Likewise.
14377
14378 2015-07-16  David S. Miller  <davem@davemloft.net>
14379
14380         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14381
14382 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14383
14384         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14385         buffer.
14386         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14387         fail output information.
14388
14389 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14390
14391         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14392         and strstr-ppc64..
14393         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14394         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14395         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14396         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14397         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14398
14399 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14400
14401         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14402         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14403         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14404         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14405
14406 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14407
14408         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14409         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14410         rtld_hidden_proto.
14411         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14412
14413 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14414
14415         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14416         the test can fail.
14417
14418         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14419
14420         [BZ #18676]
14421         * elf/tst-nodelete-opened.c: New test case.
14422         * elf/tst-nodelete-opened-lib.c: New test case module.
14423         * elf/Makefile (tests, modules-names): Use them.
14424         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14425         early.
14426
14427 2015-07-15  David S. Miller  <davem@davemloft.net>
14428
14429         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14430         futex-intenal.h
14431         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14432         * sysdeps/sparc/sparc64/Makefile: Likewise.
14433         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14434         Remove space from macro define.
14435         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14436
14437 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14438
14439         [BZ #17475]
14440         * locale/iso-639.def: Update Bhili and Tulu language codes as
14441         per iso639-3.
14442
14443 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14444
14445         * elf/tst-leaks1.c (main): Converted to ...
14446         (do_test): ... this.
14447         (TEST_FUNCTION): New macro.
14448         Include test-skeleton.c.
14449         * localedata/tst-langinfo.c (main): Converted to ...
14450         (do_test): ... this.
14451         (TEST_FUNCTION): New macro.
14452         Include test-skeleton.c.
14453         * math/test-fpucw.c (main): Converted to ...
14454         (do_test): ... this.
14455         (TEST_FUNCTION): New macro.
14456         Include test-skeleton.c.
14457         * math/test-tgmath.c (main): Converted to ...
14458         (do_test): ... this.
14459         (TEST_FUNCTION): New macro.
14460         Include test-skeleton.c.
14461         * math/test-tgmath2.c (main): Converted to ...
14462         (do_test): ... this.
14463         (TEST_FUNCTION): New macro.
14464         Include test-skeleton.c.
14465         * setjmp/tst-setjmp.c (main): Converted to ...
14466         (do_test): ... this.
14467         (TEST_FUNCTION): New macro.
14468         Include test-skeleton.c.
14469         * stdio-common/tst-sscanf.c (main): Converted to ...
14470         (do_test): ... this.
14471         (TEST_FUNCTION): New macro.
14472         Include test-skeleton.c.
14473         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14474         (do_test): ... this.
14475         (TEST_FUNCTION): New macro.
14476         Include test-skeleton.c.
14477
14478         * elf/tst-audit9.c (main): Converted to ...
14479         (do_test): ... this.
14480         (TEST_FUNCTION): New macro.
14481         Include test-skeleton.c.
14482
14483 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14484
14485         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14486
14487 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14488
14489         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14490         New variable.
14491
14492 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14493
14494         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14495
14496 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14497
14498         * sysdeps/generic/dl-fileid.h: New file.
14499         * sysdeps/posix/dl-fileid.h: New file.
14500         * sysdeps/nacl/dl-fileid.h: New file.
14501         * include/link.h: Include <dl-fileid.h>.
14502         (struct link_map): Replace l_dev and l_ino with l_file_id.
14503         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14504         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14505         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14506
14507 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14508
14509         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14510
14511 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14512
14513         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14514         Add iff $CXX is set.
14515         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14516         Likewise.
14517         (tst-nodelete-zmodiff): Likewise.
14518         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14519
14520 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14521
14522         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14523
14524 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14525
14526         * sysdeps/aarch64/fpu/math_private.h
14527         (define math_opt_barrier): Add AArch64 version.
14528         (math_force_eval): Likewise.
14529
14530 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14531
14532         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14533
14534 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14535
14536         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14537         %ld with %jd and cast to intmax_t.
14538         (do_test_length_zero): Likewise.
14539
14540 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14541
14542         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14543
14544 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14545
14546         * sysdeps/tile/libm-test-ulps: Regenerated.
14547
14548         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14549         Comment out the whole function, not just its body.
14550
14551 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14552
14553         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14554         locks.
14555
14556         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14557
14558 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14559
14560         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14561         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14562
14563 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14564
14565         * sysdeps/nptl/futex-internal.h: New file.
14566         * sysdeps/nacl/futex-internal.h: New file.
14567         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14568         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14569         error checking.
14570         (setxid_unmark_thread): Likewise.
14571         (__nptl_setxid): Likewise.
14572         (__wait_lookup_done): Likewise.
14573         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14574         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14575         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14576         * nptl/pthread_once.c (clear_once_control): Likewise.
14577         (__pthread_once_slow): Likewise.
14578         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14579         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14580         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14581         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14582         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14583         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14584         Likewise.
14585         (__pthread_rwlock_rdlock): Likewise.
14586         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14587         Likewise.
14588         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14589         Likewise.
14590         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14591         Likewise.
14592         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14593         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14594         Likewise.
14595         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14596         __ASSUME_PRIVATE_FUTEX check.
14597         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14598         Check that shared futexes are supported.
14599         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14600         wrappers with error checking.
14601         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14602         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14603         * nptl/pthread_barrierattr_setpshared.c
14604         (pthread_barrierattr_setpshared): Check that shared futexes are
14605         supported.
14606         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14607         Likewise.
14608         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14609         Likewise.
14610         * nptl/sem_init.c (futex_private_if_supported): Remove.
14611         (__new_sem_init): Adapt and check that shared futexes are supported.
14612         * nptl/sem_open.c (sem_open): Likewise.
14613         * nptl/sem_post.c (futex_wake): Remove.
14614         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14615         (do_futex_wait): Use futex wrappers with error checking.
14616         * nptl/sem_wait.c: Include lowlevellock.h.
14617         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14618         Use futex_supports_pshared.
14619         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14620         Use futex wrappers with error checking.
14621         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14622         Likewise.
14623         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14624         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14625         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14626         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14627         (futex_wake): Likewise.
14628         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14629         (do_futex_wait): Use futex wrappers with error checking.
14630         (__new_sem_wait_slow): Update EINTR handling.
14631         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14632
14633 2015-07-09  Martin Sebor  <msebor@redhat.com>
14634
14635         [BZ #18435]
14636         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14637         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14638         * nptl/Makefile (test-xfail-tst-once5): Define.
14639
14640 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14641
14642         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14643         * elf/dl-minimal.c: For readability, reorder some definitions and
14644         introduce more page breaks.  Include <stdio.h>.
14645         (__libc_fatal): New function.
14646
14647         * include/unistd.h: Add rtld_hidden_proto for _exit.
14648         * posix/_exit.c: Add rtld_hidden_def.
14649         * sysdeps/mach/hurd/_exit.c: Likewise.
14650         * sysdeps/nacl/_exit.c: Likewise.
14651         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14652         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14653
14654 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14655
14656         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14657         bndmov encoding with zero displacement.
14658
14659 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14660             H.J. Lu  <hongjiu.lu@intel.com>
14661
14662         [BZ #18134]
14663         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14664         * sysdeps/i386/configure: Regenerated.
14665         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14666         (_dl_runtime_profile): Save and restore Intel MPX return bound
14667         registers when calling _dl_call_pltexit.  Add
14668         PRESERVE_BND_REGS_PREFIX before return.
14669         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14670         (LRV_BND1_OFFSET): Likewise.
14671         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14672         lrv_bnd1.
14673         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14674         typo in bndmov encoding.
14675         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14676         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14677         branch instructions to preserve bounds.
14678
14679 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14680
14681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14682         [GLIBC_2.22]: Add fmemopen.
14683
14684 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14685
14686         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14687         returns an error, also try to use host port from __mach_host_self for
14688         the __vm_wire call.
14689         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14690
14691 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14692
14693         [BZ #18400]
14694         [BZ #18648]
14695         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14696         Fix pr_uid and pr_gid members.
14697         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14698         definition to elf_greg_t.
14699
14700 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14701
14702         [BZ #18383]
14703         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14704         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14705         * sysdeps/arm/configure: Regenerated.
14706         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14707         (test-xfail-tst-tlsalign-static): Variable removed.
14708
14709         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14710         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14711         rather than explicit 'ln -s'.
14712
14713         * resolv/rpc/netdb.h: New file.
14714         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14715
14716 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14717
14718         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14719         length buffers.
14720         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14721         test-skeleton.c.
14722
14723         [BZ #6544]
14724         [BZ #11216]
14725         [BZ #12836]
14726         [BZ #13151]
14727         [BZ #13152]
14728         [BZ #14292]
14729         * include/stdio.h (fmemopen): Remove hidden prototype.
14730         (__fmemopen): Add new hidden prototype.
14731         * libio/Makefile: Add oldfmemopen object.
14732         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14733         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14734         compliance.
14735         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14736         symbol compatibility.
14737         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14738         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14739         fmemopen.
14740         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14741         on append and read mode.
14742         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14743         fmemopen.
14744         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14745         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14746         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14747         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14748         Likewise.
14749         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14750         [GLIBC_2.22]: Likewise.
14751         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14752         Likewise.
14753         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14754         Likewise.
14755         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14756         [GLIBC_2.22]: Likewise.
14757         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14758         [GLIBC_2.22]: Likewise.
14759         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14760         [GLIBC_2.22]: Likewise.
14761         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14762         [GLIBC_2.22]: Likewise.
14763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14764         [GLIBC_2.22]: Likewise.
14765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14766         [GLIBC_2.22]: Likewise.
14767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14768         [GLIBC_2.22]: Likewise.
14769         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14770         Likewise.
14771         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14772         Likewise.
14773         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14774         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14775         [GLIBC_2.22]: Likewise.
14776         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
14777         [GLIBC_2.22]: Likewise.
14778         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
14779         [GLIBC_2.22]: Likewise.
14780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
14781         [GLIBC_2.22]: Likewise.
14782         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
14783         Likewise.
14784         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
14785         Likewise.
14786         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
14787         Likewise.
14788         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
14789         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
14790
14791 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14792
14793         [BZ #18643]
14794         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
14795         IPV6_PATHMTU, and IPV6_DONTFRAG.
14796
14797 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
14798
14799         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
14800         and _IO_UNBUFFERED.
14801         * libio/oldfileops.c: Likewise.
14802         * libio/wfileops.c: Likewise.
14803
14804 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14805
14806         * nscd/selinux.c: Delete selinux/flask.h include.
14807
14808 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14809
14810         [BZ #18641]
14811         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
14812         (putpwent): Likewise.
14813         (getpwnam): Likewise.
14814         (getpwent_r): Likewise.
14815         (getpwuid_r): Likewise.
14816         (getpwnam_r): Likewise.
14817         (fgetpwent_r): Likewise.
14818
14819 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14820
14821         [BZ #18557]
14822         * inet/rcmd.c (__validuser2_sa): Check user first to
14823         short-circuit host check.
14824
14825 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
14826             Mikhail Ilin  <m.ilin@samsung.com>
14827
14828         [BZ #17833]
14829         * elf/Makefile (tests): Add tst-nodelete.
14830         (modules-names): Add tst-nodelete-uniquemod.
14831         (tst-nodelete-uniquemod.so-no-z-defs): New.
14832         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
14833         (tst-nodelete-zmod.so-no-z-defs): Likewise.
14834         ($(objpfx)tst-nodelete): Likewise.
14835         ($(objpfx)tst-nodelete.out): Likewise.
14836         (LDFLAGS-tst-nodelete): Likewise.
14837         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
14838         * elf/dl-close.c (_dl_close_worker): Add a parameter to
14839         implement forced object deletion.
14840         (_dl_close): Pass false to _dl_close_worker.
14841         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
14842         * elf/tst-nodelete.cc: New file.
14843         * elf/tst-nodeletelib.cc: Likewise.
14844         * elf/tst-znodeletelib.cc: Likewise.
14845         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
14846
14847 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14848
14849         [BZ #18508]
14850         * stdlib/Makefile ($(objpfx)tst-makecontext3):
14851         Depend on $(libdl).
14852         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
14853         is not called infinitely times.
14854         (backtrace_helper): New function.
14855         (trace_arg): New struct.
14856         (st1): Enlarge stack size.
14857         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
14858         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
14859         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
14860         Likewise.
14861
14862 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14863
14864         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14865
14866 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14867
14868         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
14869         Include sys/types.h instead of bits/types.h.
14870         Remove inclusion of bits/wordsize.h.
14871
14872 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14873
14874         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
14875         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
14876         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
14877         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
14878         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
14879         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
14880
14881 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14882
14883         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
14884         link-defines.sym.
14885         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
14886         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
14887         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
14888         and LR_SIZE.
14889         * sysdeps/i386/link-defines.sym: New file.
14890
14891 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14892
14893         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
14894         (modules-names): Add tst-auditmod3a tst-auditmod3b.
14895         ($(objpfx)tst-audit3): New rule.
14896         ($(objpfx)tst-audit3.out): Likewise.
14897         * sysdeps/i386/tst-audit3.c: New file.
14898         * sysdeps/i386/tst-audit3.h: Likewise.
14899         * sysdeps/i386/tst-auditmod3a.c: Likewise.
14900         * sysdeps/i386/tst-auditmod3b.c: Likewise.
14901
14902 2015-07-07  Torvald Riegel  <triegel@redhat.com>
14903
14904         [BZ #18633]
14905         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
14906         pointer in C code.
14907         (__strcat_c): Likewise.
14908         (__strcat_g): Likewise.
14909
14910 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
14911
14912         [BZ #18592]
14913         * misc/sbrk.c: Set errno to ENOMEM on overflow.
14914
14915 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14916
14917         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
14918         New function.  (__ieee754_sqrtf): New function.
14919         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
14920         New function.
14921         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
14922         New function.
14923
14924 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14925
14926         * sysdeps/ieee754/support.c: Remove unused file.
14927
14928 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14929
14930         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
14931         registers instead of d ones so the layout is kernel abi compatible.
14932         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
14933         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
14934         Likewise.
14935
14936 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14937
14938         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14939
14940 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14941
14942         [BZ #18619]
14943         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
14944         and return argument in case of subnormal argument.
14945
14946 2015-07-01  Martin Sebor  <msebor@redhat.com>
14947
14948         [BZ #18435]
14949         * nptl/Makefile: Add tst-once5.cc.
14950         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14951         Remove macro redefinitions.
14952         * nptl/tst-once5.cc: New test.
14953
14954 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14955
14956         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
14957
14958         * sysdeps/arm/libm-test-ulps: Regenerated.
14959
14960         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
14961         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14962
14963 2015-06-30  Torvald Riegel  <triegel@redhat.com>
14964
14965         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
14966         lll_lock_wait_private and lll_futex_wake probes.
14967
14968         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14969         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
14970         Likewise.
14971         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
14972         atomic_spin_nop.
14973         * sysdeps/x86_64/bits/atomic.h: Likewise.
14974         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
14975         to atomic_spin_nop and move ...
14976         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14977         ... here and ...
14978         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
14979         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
14980         atomic_spin_nop instead of BUSY_WAIT_NOP.
14981         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
14982         Likewise.
14983         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
14984         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14985         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
14986         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
14987         instead of atomic_delay.
14988
14989 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
14990
14991         [BZ #18613]
14992         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
14993         X_ADJ not X when adjusting exponent.
14994         (__ieee754_gamma_r): Do intermediate computations in
14995         round-to-nearest then adjust overflowing and underflowing results
14996         as needed.
14997         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
14998         of X_ADJ not X when adjusting exponent.
14999         (__ieee754_gammaf_r): Do intermediate computations in
15000         round-to-nearest then adjust overflowing and underflowing results
15001         as needed.
15002         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15003         log of X_ADJ not X when adjusting exponent.
15004         (__ieee754_gammal_r): Do intermediate computations in
15005         round-to-nearest then adjust overflowing and underflowing results
15006         as needed.  Use 1.0L not 1.0f as numerator of division.
15007         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15008         log of X_ADJ not X when adjusting exponent.
15009         (__ieee754_gammal_r): Do intermediate computations in
15010         round-to-nearest then adjust overflowing and underflowing results
15011         as needed.  Use 1.0L not 1.0f as numerator of division.
15012         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15013         of X_ADJ not X when adjusting exponent.
15014         (__ieee754_gammal_r): Do intermediate computations in
15015         round-to-nearest then adjust overflowing and underflowing results
15016         as needed.  Use 1.0L not 1.0f as numerator of division.
15017         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15018         to auto-libm-test-in.
15019         (tgamma_test): Use ALL_RM_TEST.
15020         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15021         tests of tgamma with spurious-overflow.
15022         * math/auto-libm-test-out: Regenerated.
15023         * math/gen-libm-have-vector-test.sh: Do not check for START.
15024         * sysdeps/i386/fpu/libm-test-ulps: Update.
15025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15026
15027         [BZ #18612]
15028         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15029         arguments, just return 0.5 times the argument, with underflow
15030         forced as needed.
15031         * math/auto-libm-test-in: Add more tests of j1.
15032         * math/auto-libm-test-out: Regenerated.
15033
15034         [BZ #16559]
15035         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15036         (__ieee754_j1): Force underflow exception for small results.
15037         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15038         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15039         (__ieee754_j1f): Force underflow exception for small results.
15040         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15041         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15042         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15043         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15044         (__ieee754_j1l): Force underflow exception for small results.
15045         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15046         * math/auto-libm-test-in: Add more tests of j1 and jn.
15047         * math/auto-libm-test-out: Regenerated.
15048
15049         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15050         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15051         (PF_MPLS): Likewise.
15052         (AF_IB): Likewise.
15053         (AF_MPLS): Likewise.
15054         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15055         value and macro.
15056         (MS_RMT_MASK): Include MS_LAZYTIME.
15057
15058 2015-06-26  Mel Gorman  <mgorman@suse.de>
15059
15060         [BZ #18502]
15061         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15062         already minimal.
15063
15064 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15065
15066         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15067         (DT_MIPS_NUM): Update.
15068         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15069         DT_MIPS_RLD_MAP_REL.
15070
15071 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15072
15073         [BZ #16559]
15074         [BZ #18602]
15075         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15076         round-to-nearest internally then recompute results that
15077         underflowed to zero in the original rounding mode.
15078         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15079         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15080         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15081         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15082         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15083         * sysdeps/i386/fpu/libm-test-ulps: Update.
15084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15085
15086 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15087
15088         * NEWS: Fixed description of link with vector math library.
15089
15090 2015-06-25  Andreas Schwab  <schwab@suse.de>
15091
15092         [BZ #18549]
15093         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15094         * libio/test-fmemopen.c (do_test): Add test for it.
15095
15096 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15097
15098         [BZ #17841]
15099         * Makeconfig (no-pie-ldflag): New.
15100         (+link): Set to $(+link-pie) if default to PIE.
15101         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15102         * config.make.in (build-pie-default): New.
15103         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15104         is default.  AC_SUBST.
15105         * configure: Regenerated.
15106         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15107
15108 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15109
15110         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15111         to 'unsigned int'.
15112
15113         * resolv/gai_misc.h (struct waitlist): Change type of field
15114         counterp to 'volatile unsigned int *'.
15115         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15116         FUTEXADDR and OLDVAL.
15117         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15118         Give local variable TOTAL type 'volatile unsigned int'.
15119         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15120         * resolv/gai_suspend.c (gai_suspend):
15121         Give local variable CNTR type 'unsigned int'.
15122
15123         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15124         counterp to 'volatile unsigned int *'.
15125         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15126         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15127         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15128         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15129         Give local variable TOTAL type 'volatile unsigned int'.
15130         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15131
15132 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15133
15134         [BZ #18383]
15135         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15136         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15137         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15138         comment for i386/x86-64.
15139         (test-xfail-tst-tlsalign-extern-static): Removed.
15140
15141 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15142
15143         * math/test-double.h: New file.
15144         * math/test-float.h: Likewise.
15145         * math/test-ldouble.h: Likewise.
15146         * math/test-math-inline.h: Likewise.
15147         * math/test-math-no-inline.h: Likewise.
15148         * math/test-math-scalar.h: Likewise.
15149         * math/test-math-vector.h: Likewise.
15150         * math/test-vec-loop.h: Remove file.  Contents moved into
15151         test-math-vector.h.
15152         * math/libm-test.inc (MATHCONST): Do not document macro.
15153         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15154         and test-math-scalar.h.
15155         (FUNC): Remove macro.
15156         (FUNC_TEST): Likewise.
15157         (FLOAT): Likewise.
15158         (MATHCONST): Likewise.
15159         (PRINTF_EXPR): Likewise.
15160         (PRINTF_XEXPR): Likewise.
15161         (PRINTF_NEXPR): Likewise.
15162         (TEST_DOUBLE): Likewise.
15163         (TEST_MATHVEC): Likewise.
15164         (__NO_MATH_INLINES): Likewise.
15165         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15166         and test-math-scalar.h.
15167         (FUNC): Remove macro.
15168         (FUNC_TEST): Likewise.
15169         (FLOAT): Likewise.
15170         (MATHCONST): Likewise.
15171         (PRINTF_EXPR): Likewise.
15172         (PRINTF_XEXPR): Likewise.
15173         (PRINTF_NEXPR): Likewise.
15174         (TEST_FLOAT): Likewise.
15175         (TEST_MATHVEC): Likewise.
15176         (__NO_MATH_INLINES): Likewise.
15177         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15178         and test-math-scalar.h.
15179         (FUNC): Remove macro.
15180         (FUNC_TEST): Likewise.
15181         (FLOAT): Likewise.
15182         (MATHCONST): Likewise.
15183         (PRINTF_EXPR): Likewise.
15184         (PRINTF_XEXPR): Likewise.
15185         (PRINTF_NEXPR): Likewise.
15186         (TEST_DOUBLE): Likewise.
15187         (TEST_MATHVEC): Likewise.
15188         (TEST_INLINE): Likewise.
15189         (__NO_MATH_INLINES): Likewise.
15190         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15191         test-math-scalar.h.
15192         (FUNC): Remove macro.
15193         (FUNC_TEST): Likewise.
15194         (FLOAT): Likewise.
15195         (MATHCONST): Likewise.
15196         (PRINTF_EXPR): Likewise.
15197         (PRINTF_XEXPR): Likewise.
15198         (PRINTF_NEXPR): Likewise.
15199         (TEST_FLOAT): Likewise.
15200         (TEST_MATHVEC): Likewise.
15201         (TEST_INLINE): Likewise.
15202         (__NO_MATH_INLINES): Likewise.
15203         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15204         and test-math-scalar.h.
15205         (FUNC): Remove macro.
15206         (FUNC_TEST): Likewise.
15207         (FLOAT): Likewise.
15208         (MATHCONST): Likewise.
15209         (PRINTF_EXPR): Likewise.
15210         (PRINTF_XEXPR): Likewise.
15211         (PRINTF_NEXPR): Likewise.
15212         (TEST_LDOUBLE): Likewise.
15213         (TEST_MATHVEC): Likewise.
15214         (TEST_INLINE): Likewise.
15215         (__NO_MATH_INLINES): Likewise.
15216         * math/test-ldouble.c: Include test-ldouble.h,
15217         test-math-no-inline.h and test-math-scalar.h.
15218         (FUNC): Remove macro.
15219         (FUNC_TEST): Likewise.
15220         (FLOAT): Likewise.
15221         (MATHCONST): Likewise.
15222         (PRINTF_EXPR): Likewise.
15223         (PRINTF_XEXPR): Likewise.
15224         (PRINTF_NEXPR): Likewise.
15225         (TEST_LDOUBLE): Likewise.
15226         (TEST_MATHVEC): Likewise.
15227         (__NO_MATH_INLINES): Likewise.
15228         * math/test-double-vlen2.h: Include test-double.h,
15229         test-math-no-inline.h and test-math-vector.h.
15230         (FLOAT): Remove macro.
15231         (FUNC): Likewise.
15232         (MATHCONST): Likewise.
15233         (PRINTF_EXPR): Likewise.
15234         (PRINTF_XEXPR): Likewise.
15235         (PRINTF_NEXPR): Likewise.
15236         (TEST_DOUBLE): Likewise.
15237         (TEST_MATHVEC): Likewise.
15238         (__NO_MATH_INLINES): Likewise.
15239         (CNCT): Likewise.
15240         (CONCAT): Likewise.
15241         (WRAPPER_NAME): Likewise.
15242         (WRAPPER_DECL): Likewise.
15243         (WRAPPER_DECL_ff): Likewise.
15244         (WRAPPER_DECL_fFF): Likewise.
15245         (VECTOR_WRAPPER): Likewise.
15246         (VECTOR_WRAPPER_ff): Likewise.
15247         (VECTOR_WRAPPER_fFF): Likewise.
15248         (VEC_LEN): New macro.
15249         * math/test-double-vlen4.h: Include test-double.h,
15250         test-math-no-inline.h and test-math-vector.h.
15251         (FLOAT): Remove macro.
15252         (FUNC): Likewise.
15253         (MATHCONST): Likewise.
15254         (PRINTF_EXPR): Likewise.
15255         (PRINTF_XEXPR): Likewise.
15256         (PRINTF_NEXPR): Likewise.
15257         (TEST_DOUBLE): Likewise.
15258         (TEST_MATHVEC): Likewise.
15259         (__NO_MATH_INLINES): Likewise.
15260         (CNCT): Likewise.
15261         (CONCAT): Likewise.
15262         (WRAPPER_NAME): Likewise.
15263         (WRAPPER_DECL): Likewise.
15264         (WRAPPER_DECL_ff): Likewise.
15265         (WRAPPER_DECL_fFF): Likewise.
15266         (VECTOR_WRAPPER): Likewise.
15267         (VECTOR_WRAPPER_ff): Likewise.
15268         (VECTOR_WRAPPER_fFF): Likewise.
15269         (VEC_LEN): New macro.
15270         * math/test-double-vlen8.h: Include test-double.h,
15271         test-math-no-inline.h and test-math-vector.h.
15272         (FLOAT): Remove macro.
15273         (FUNC): Likewise.
15274         (MATHCONST): Likewise.
15275         (PRINTF_EXPR): Likewise.
15276         (PRINTF_XEXPR): Likewise.
15277         (PRINTF_NEXPR): Likewise.
15278         (TEST_DOUBLE): Likewise.
15279         (TEST_MATHVEC): Likewise.
15280         (__NO_MATH_INLINES): Likewise.
15281         (CNCT): Likewise.
15282         (CONCAT): Likewise.
15283         (WRAPPER_NAME): Likewise.
15284         (WRAPPER_DECL): Likewise.
15285         (WRAPPER_DECL_ff): Likewise.
15286         (WRAPPER_DECL_fFF): Likewise.
15287         (VECTOR_WRAPPER): Likewise.
15288         (VECTOR_WRAPPER_ff): Likewise.
15289         (VECTOR_WRAPPER_fFF): Likewise.
15290         (VEC_LEN): New macro.
15291         * math/test-float-vlen4.h: Include test-float.h,
15292         test-math-no-inline.h and test-math-vector.h.
15293         (FLOAT): Remove macro.
15294         (FUNC): Likewise.
15295         (MATHCONST): Likewise.
15296         (PRINTF_EXPR): Likewise.
15297         (PRINTF_XEXPR): Likewise.
15298         (PRINTF_NEXPR): Likewise.
15299         (TEST_FLOAT): Likewise.
15300         (TEST_MATHVEC): Likewise.
15301         (__NO_MATH_INLINES): Likewise.
15302         (CNCT): Likewise.
15303         (CONCAT): Likewise.
15304         (WRAPPER_NAME): Likewise.
15305         (WRAPPER_DECL): Likewise.
15306         (WRAPPER_DECL_ff): Likewise.
15307         (WRAPPER_DECL_fFF): Likewise.
15308         (VECTOR_WRAPPER): Likewise.
15309         (VECTOR_WRAPPER_ff): Likewise.
15310         (VECTOR_WRAPPER_fFF): Likewise.
15311         (VEC_LEN): New macro.
15312         * math/test-float-vlen8.h: Include test-float.h,
15313         test-math-no-inline.h and test-math-vector.h.
15314         (FLOAT): Remove macro.
15315         (FUNC): Likewise.
15316         (MATHCONST): Likewise.
15317         (PRINTF_EXPR): Likewise.
15318         (PRINTF_XEXPR): Likewise.
15319         (PRINTF_NEXPR): Likewise.
15320         (TEST_FLOAT): Likewise.
15321         (TEST_MATHVEC): Likewise.
15322         (__NO_MATH_INLINES): Likewise.
15323         (CNCT): Likewise.
15324         (CONCAT): Likewise.
15325         (WRAPPER_NAME): Likewise.
15326         (WRAPPER_DECL): Likewise.
15327         (WRAPPER_DECL_ff): Likewise.
15328         (WRAPPER_DECL_fFF): Likewise.
15329         (VECTOR_WRAPPER): Likewise.
15330         (VECTOR_WRAPPER_ff): Likewise.
15331         (VECTOR_WRAPPER_fFF): Likewise.
15332         (VEC_LEN): New macro.
15333         * math/test-float-vlen16.h: Include test-float.h,
15334         test-math-no-inline.h and test-math-vector.h.
15335         (FLOAT): Remove macro.
15336         (FUNC): Likewise.
15337         (MATHCONST): Likewise.
15338         (PRINTF_EXPR): Likewise.
15339         (PRINTF_XEXPR): Likewise.
15340         (PRINTF_NEXPR): Likewise.
15341         (TEST_FLOAT): Likewise.
15342         (TEST_MATHVEC): Likewise.
15343         (__NO_MATH_INLINES): Likewise.
15344         (CNCT): Likewise.
15345         (CONCAT): Likewise.
15346         (WRAPPER_NAME): Likewise.
15347         (WRAPPER_DECL): Likewise.
15348         (WRAPPER_DECL_ff): Likewise.
15349         (WRAPPER_DECL_fFF): Likewise.
15350         (VECTOR_WRAPPER): Likewise.
15351         (VECTOR_WRAPPER_ff): Likewise.
15352         (VECTOR_WRAPPER_fFF): Likewise.
15353         (VEC_LEN): New macro.
15354         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15355         test-vec-loop.h.
15356         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15357         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15358         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15359         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15360         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15361         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15362         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15363
15364 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15365
15366         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15367         (__getlogin_r): ... this.
15368
15369 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15370
15371         [BZ #18594]
15372         * math/s_ccosh.c (__ccosh): Compare with least normal value
15373         instead of comparing class with FP_SUBNORMAL.
15374         * math/s_ccoshf.c (__ccoshf): Likewise.
15375         * math/s_ccoshl.c (__ccoshl): Likewise.
15376         * math/s_cexp.c (__cexp): Likewise.
15377         * math/s_cexpf.c (__cexpf): Likewise.
15378         * math/s_cexpl.c (__cexpl): Likewise.
15379         * math/s_csin.c (__csin): Likewise.
15380         * math/s_csinf.c (__csinf): Likewise.
15381         * math/s_csinh.c (__csinh): Likewise.
15382         * math/s_csinhf.c (__csinhf): Likewise.
15383         * math/s_csinhl.c (__csinhl): Likewise.
15384         * math/s_csinl.c (__csinl): Likewise.
15385         * math/s_ctan.c (__ctan): Likewise.
15386         * math/s_ctanf.c (__ctanf): Likewise.
15387         * math/s_ctanh.c (__ctanh): Likewise.
15388         * math/s_ctanhf.c (__ctanhf): Likewise.
15389         * math/s_ctanhl.c (__ctanhl): Likewise.
15390         * math/s_ctanl.c (__ctanl): Likewise.
15391         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15392         csin, csinh, ctan and ctanh.
15393         * math/auto-libm-test-out: Regenerated.
15394         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15395         * sysdeps/i386/fpu/libm-test-ulps: Update.
15396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15397
15398 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15399
15400         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15401         return value is wrong, print the expected value too.
15402
15403 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15404
15405         [BZ #18585]
15406         * elf/readlib.c (is_gdb_python_file): New.
15407         (process_file): Don't issue errors on filenames with -gdb.py
15408         suffix.
15409
15410 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15411
15412         * math/auto-libm-test-in: Add more tests of csin and csinh.
15413         * math/auto-libm-test-out: Regenerated.
15414         * math/libm-test.inc (csin_test_data): Remove tests moved to
15415         auto-libm-test-in.
15416         (csinh_test_data): Likewise.
15417
15418         [BZ #18593]
15419         * math/s_csin.c (__csin): Negate before rather than after possibly
15420         overflowing multiplication.
15421         * math/s_csinf.c (__csinf): Likewise.
15422         * math/s_csinh.c (__csinh): Likewise.
15423         * math/s_csinhf.c (__csinhf): Likewise.
15424         * math/s_csinhl.c (__csinhl): Likewise.
15425         * math/s_csinl.c (__csinl): Likewise.
15426         * math/auto-libm-test-in: Add some tests of csin and csinh.
15427         * math/auto-libm-test-out: Regenerated.
15428         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15429         (csinh_test_data): Likewise.
15430         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15431
15432         [BZ #18586]
15433         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15434         underflow exception for small results.
15435
15436 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15437
15438         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15439         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15440         variable and included header.
15441         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15442         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15443         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15444         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15445         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15446         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15447         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15448         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15449         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15450         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15451         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15452         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15453         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15454         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15455         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15456         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15457
15458 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15459
15460         [BZ #16526]
15461         [BZ #16538]
15462         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15463         (__sin): Force underflow exception for arguments with small
15464         absolute value.
15465         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15466         (__kernel_sinf): Force underflow exception for arguments with
15467         small absolute value.
15468         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15469         (__kernel_sincosl): Force underflow exception for arguments with
15470         small absolute value.
15471         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15472         (__kernel_sinl): Force underflow exception for arguments with
15473         small absolute value.
15474         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15475         (__kernel_sincosl): Force underflow exception for arguments with
15476         small absolute value.
15477         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15478         (__kernel_sinl): Force underflow exception for arguments with
15479         small absolute value.
15480         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15481         (__kernel_sinl): Force underflow exception for arguments with
15482         small absolute value.
15483         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15484         (__kernel_sinf): Force underflow exception for arguments with
15485         small absolute value.
15486         * math/auto-libm-test-in: Add more tests of sin and sincos.
15487         * math/auto-libm-test-out: Regenerated.
15488
15489         [BZ #18245]
15490         [BZ #18583]
15491         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15492         (__kernel_standard_l): Use feholdexcept and fesetenv around
15493         conversion to double instead of special-casing overflow and
15494         underflow.
15495         * math/libm-test.inc (fmod_test_data): Add more tests.
15496         (remainder_test_data): Likewise.
15497         (sqrt_test_data): Likewise.
15498
15499 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15500
15501         [BZ #17403]
15502         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15503         atomic_read_barrier, atomic_write_barrier): Define.
15504         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15505         atomic_read_barrier, atomic_write_barrier): Define.
15506
15507 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15508
15509         * math/Makefile [$(PERL) != no]
15510         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15511         dependency on libm-test.stmp below the inclusion of Rules.
15512
15513 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15514
15515         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15516         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15517         and included header.
15518         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15519         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15520         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15521         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15522         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15523         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15524         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15525         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15526         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15527         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15528         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15529         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15530         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15531         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15532         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15533         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15534         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15535         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15536         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15537
15538 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15539
15540         [BZ #18371]
15541         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15542         intermediate but not final result might underflow.
15543         * math/s_csqrtf.c (__csqrtf): Likewise.
15544         * math/s_csqrtl.c (__csqrtl): Likewise.
15545         * math/auto-libm-test-in: Add more tests of csqrt.
15546         * math/auto-libm-test-out: Regenerated.
15547         * sysdeps/i386/fpu/libm-test-ulps: Update.
15548
15549         [BZ #18219]
15550         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15551         threshold on absolute value of exponent for which scaling is used.
15552         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15553         * math/auto-libm-test-in: Add more tests of exp2.
15554         * math/auto-libm-test-out: Regenerated.
15555
15556 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15557
15558         [BZ #17977]
15559         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15560         when initializing interface list, based on the bug analysis
15561         and the patch proposed by Eric Newton.
15562         * resolv/tst-res_hconf_reorder.c: New test.
15563         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15564         tst-res_hconf_reorder.
15565         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15566         and $(shared-thread-library).
15567         (tst-res_hconf_reorder-ENV): New variable.
15568
15569         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15570         in comment.
15571
15572 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15573
15574         [BZ #16353]
15575         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15576         (__expm1): Force underflow exception for arguments with small
15577         absolute value.
15578         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15579         (__expm1f): Force underflow exception for arguments with small
15580         absolute value.
15581         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15582         (__expm1): Force underflow exception for arguments with small
15583         absolute value.
15584         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15585         (__expm1f): Force underflow exception for arguments with small
15586         absolute value.
15587         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15588         Check for small arguments before calling __expm1.
15589         * math/auto-libm-test-in: Do not mark underflow exceptions as
15590         possibly missing for bug 16353.
15591         * math/auto-libm-test-out: Regenerated.
15592
15593 2015-06-22  Andreas Schwab  <schwab@suse.de>
15594
15595         [BZ #18513]
15596         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15597         PTR queries.
15598
15599 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15600
15601         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15602
15603         * string/strcoll_l.c: Remove unused struct element idxnow.
15604
15605 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15606
15607         [BZ #18569]
15608         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15609         underflow and return argument in case of subnormal argument.
15610         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15611         Likewise.
15612         * math/auto-libm-test-in: Add more tests of expm1.
15613         * math/auto-libm-test-out: Regenerated.
15614
15615         [BZ #16361]
15616         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15617         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15618         tiny results.
15619         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15620         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15621         tiny results.
15622         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15623         mark underflow exceptions as possibly missing for bug 16361.
15624         * math/auto-libm-test-out: Regenerated.
15625
15626 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15627
15628         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15629         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15630         Remove variable.
15631         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15632         (test-xfail-XOPEN2K8/utmpx.h/conform).
15633
15634         * conform/conformtest.pl ($xerrors): New variable.
15635         (note_error): New function.
15636         (compiletest): New argument $xfail.  Use not_error.
15637         (runtest): Likewise.
15638         (top level): Handle xfail- lines.  Update calls to compiletest and
15639         runtest.  Handle xfail- and optional- in headers listed with
15640         allow-header.
15641         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15642         (O_EXEC): Likewise.
15643         (O_SEARCH): Likewise.
15644         * conform/data/stropts.h-data (ioctl): Likewise.
15645         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15646         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15647         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15648         (msghdr.msg_controllen): Likewise.
15649         (cmsghdr.cmsg_len): Likewise.
15650         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15651         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15652         variable.
15653         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15654         (test-xfail-XPG4/stropts.h/conform): Likewise.
15655         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15656         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15657         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15658         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15659         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15660         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15661         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15662         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15663         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15664         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15665         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15666         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15667         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15668         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15669         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15670         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15671         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15672         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15673         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15674
15675 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15676
15677         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15678         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15679         definitions for proper unfolding of __MATHDECL_VEC.
15680
15681 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15682
15683         * benchtests/bench-strcoll.c:
15684         Include string.h.
15685         (main): Remove unused variable res.
15686
15687 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15688
15689         * timezone/Makefile (%/UTC %/Universal):
15690         Generate test-result files for UTC and Universal.
15691
15692 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15693
15694         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15695
15696 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15697
15698         [BZ #16350]
15699         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15700         for arguments with small absolute value.
15701         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15702         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15703         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15704         (__asinh): Force underflow exception for arguments with small
15705         absolute value.
15706         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15707         (__asinhf): Force underflow exception for arguments with small
15708         absolute value.
15709         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15710         (__asinhl): Force underflow exception for arguments with small
15711         absolute value.
15712         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15713         (__asinhl): Force underflow exception for arguments with small
15714         absolute value.
15715         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15716         (__asinhl): Force underflow exception for arguments with small
15717         absolute value.
15718         * math/auto-libm-test-in: Do not mark underflow exceptions as
15719         possibly missing for bug 16350.
15720         * math/auto-libm-test-out: Regenerated.
15721
15722         * include/bits/ipc.h: Remove file.
15723         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15724         variable.
15725         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15726         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15727         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15728         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15729         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15730         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15731         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15732         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15733         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15734
15735         * math/auto-libm-test-in: Remove spurious underflow allowance for
15736         tests of cexp.
15737         * math/auto-libm-test-out: Regenerated.
15738
15739         [BZ #18558]
15740         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15741         unconditional definition.
15742         (MCAST_BLOCK_SOURCE): Likewise.
15743         (MCAST_UNBLOCK_SOURCE): Likewise.
15744         (MCAST_LEAVE_GROUP): Likewise.
15745         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15746         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15747         (MCAST_MSFILTER): Likewise.
15748         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15749         Remove variable.
15750         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15751         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15752         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15753         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15754         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15755
15756 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15757
15758         * NEWS: Mention addition of x86_64 vector sincosf.
15759         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15760         * math/test-float-vlen4.h: Likewise.
15761         * math/test-float-vlen8.h: Likewise.
15762         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15763         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15764         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15765         * sysdeps/x86_64/fpu/Versions: New versions added.
15766         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15767         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15768         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15769         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15770         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15771         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15772         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15773         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15774         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15775         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
15776         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
15777         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
15778         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
15779         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
15780         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
15781         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
15782         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
15783         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15784         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15785         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15786         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15787         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15788         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15789         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15790
15791         * NEWS: Mention addition of x86_64 vector sincos.
15792         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
15793         * math/math.h (__MATHDECL_VEC): New macro.
15794         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
15795         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
15796         declaration under condition.
15797         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
15798         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
15799         TEST_VEC_LOOP change.
15800         * math/test-double-vlen4.h: Likewise.
15801         * math/test-double-vlen8.h: Likewise.
15802         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
15803         * math/test-float-vlen4.h: Likewise.
15804         * math/test-float-vlen8.h: Likewise.
15805         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15806         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
15807         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15808         * sysdeps/x86_64/fpu/Versions: New versions added.
15809         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15810         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15811         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15812         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
15813         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
15814         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
15815         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
15816         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
15817         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
15818         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
15819         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
15820         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
15821         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
15822         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
15823         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
15824         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
15825         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
15826         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15827         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15828         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15829         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15830         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15831         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15832         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15833
15834         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15835         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15836         redirections for powf.
15837         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15838         * sysdeps/x86_64/fpu/Versions: New versions added.
15839         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15840         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15841         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15842         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
15843         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
15844         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
15845         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
15846         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
15847         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
15848         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
15849         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
15850         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
15851         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
15852         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
15853         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
15854         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
15855         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
15856         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15857         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15858         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15859         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15860         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15861         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15862         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15863         * math/test-float-vlen16.h: Fixed 2 argument macro.
15864         * math/test-float-vlen4.h: Likewise.
15865         * math/test-float-vlen8.h: Likewise.
15866         * NEWS: Mention addition of x86_64 vector powf.
15867
15868 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
15869
15870         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15871         and redefine.
15872         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15873         and redefine.
15874         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
15875         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15876         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15877
15878         [BZ #18553]
15879         * resource/getpriority.c (getpriority): Rename to __getpriority
15880         and define as weak alias of __getpriority.
15881         * resource/setpriority.c (setpriority): Rename to __setpriority
15882         and define as weak alias of __setpriority.
15883         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
15884         __getpriority and define as weak alias of __getpriority.
15885         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
15886         __setpriority and define as weak alias of __setpriority.
15887         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
15888         strong name.
15889         (setpriority): Use __setpriority as strong name.
15890         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
15891         __getpriority and define as weak alias of __getpriority.
15892         * include/sys/resource.h (__getpriority): Declare.  Use
15893         libc_hidden_proto.
15894         (__setpriority): Likewise.
15895         (getpriority): Don't use libc_hidden_proto.
15896         (setpriority): Likewise.
15897         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
15898         getpriority.  Call __setpriority instead of setpriority.
15899         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
15900         Remove variable.
15901
15902         [BZ #18547]
15903         * misc/getttyent.c (getttynam): Rename to __getttynam and define
15904         as weak alias of __getttynam.  Use prototype function definition.
15905         Call __setttyent, __getttyent and __endttyent instead of
15906         setttyent, getttyent and endttyent.
15907         (getttyent): Rename to __getttyent and define as weak alias of
15908         __getttyent.  Call __setttyent instead of setttyent.  Call
15909         __fgets_unlocked instead of fgets_unlocked.
15910         (setttyent): Rename to __setttyent and define as weak alias of
15911         __setttyent.
15912         (endttyent): Rename to __endttyent and define as weak alias of
15913         __endttyent.
15914         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
15915         (__setttyent): Likewise.
15916         (__endttyent): Likewise.
15917         (getttyent): Don't use libc_hidden_proto.
15918         (setttyent): Likewise.
15919         (endttyent): Likewise.
15920         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
15921         __endttyent instead of setttyent, getttyent and endttyent.
15922         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
15923         Remove variable.
15924
15925         [BZ #18546]
15926         * socket/recv.c (__recv): Use libc_hidden_def.
15927         * socket/socket.c (__socket): Likewise.
15928         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15929         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15930         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
15931         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
15932         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
15933         libc_hidden_def.
15934         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
15935         libc_hidden_weak.
15936         * include/sys/socket.h (__socket): Do not use attribute_hidden.
15937         Use libc_hidden_proto.
15938         (__recv): Likewise.
15939         * socket/Versions (libc): Export __recv and __socket at version
15940         GLIBC_PRIVATE.
15941         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
15942         instead of recv.
15943         (init_mq_netlink): Call __socket instead of socket.
15944         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
15945         Remove variable.
15946
15947         [BZ #18545]
15948         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
15949         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
15950         hidden_weak.
15951         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
15952         define as alias of __mq_timedsend.  Use hidden_weak.
15953         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
15954         __mq_timedsend as strong name.
15955         (mq_timedreceive): Use __mq_timedreceive as strong name.
15956         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
15957         (__mq_timedreceive): Likewise.
15958         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
15959         __mq_timedreceive instead of mq_timedreceive.
15960         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
15961         instead of mq_timedsend.
15962         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
15963         Remove variable.
15964
15965         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
15966         hidden_def and hidden_weak instead of libc_hidden_def and
15967         libc_hidden_weak.
15968         (top level): Refer to hidden_def in comment.
15969         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
15970         macro.  Use it instead of libc_hidden_def.
15971         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
15972         specify __GI_* name explicitly.
15973         (mq_timedreceive): Likewise.
15974         (mq_setattr): Likewise.
15975
15976         [BZ #18544]
15977         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
15978         __pthread_barrier_init and define as weak alias of
15979         __pthread_barrier_init.
15980         * sysdeps/sparc/nptl/pthread_barrier_init.c
15981         (pthread_barrier_init): Likewise.
15982         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
15983         __pthread_barrier_wait and define as weak alias of
15984         __pthread_barrier_wait.
15985         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15986         (pthread_barrier_wait): Likewise.
15987         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15988         (pthread_barrier_wait): Likewise.
15989         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
15990         (pthread_barrier_wait): Likewise.
15991         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
15992         (pthread_barrier_wait): Likewise.
15993         * nptl/Versions (libpthread): Export __pthread_barrier_init and
15994         __pthread_barrier_wait at version GLIBC_PRIVATE.
15995         * include/pthread.h (__pthread_barrier_init): Declare.
15996         (__pthread_barrier_wait): Likewise.
15997         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
15998         Call __pthread_barrier_wait instead of pthread_barrier_wait.
15999         (helper_thread): Likewise.
16000         (init_mq_netlink): Call __pthread_barrier_init instead of
16001         pthread_barrier_init.
16002
16003         [BZ #18542]
16004         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16005         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16006         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16007         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16008         vswscanf.
16009         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16010         Remove variable.
16011
16012         [BZ #18540]
16013         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16014         strong alias of _IO_fflush.  Use libc_hidden_def.
16015         * libio/iofflush_u.c (fflush_unlocked): Rename to
16016         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16017         Use libc_hidden_weak.
16018         * include/stdio.h (__fflush_unlocked): Declare.  Use
16019         libc_hidden_proto.
16020         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16021         fflush_unlocked.
16022         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16023         Remove variable.
16024
16025         [BZ #18539]
16026         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16027         define as weak alias of __addseverity.
16028         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16029         Remove variable.
16030         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16031         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16032         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16033
16034         [BZ #18536]
16035         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16036         (__tfind): Likewise.
16037         (__tdelete): Likewise.
16038         (__twalk): Likewise.
16039         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16040         __twalk to GLIBC_PRIVATE.
16041         * include/search.h (__tsearch): Use libc_hidden_proto.
16042         (__tfind): Likewise.
16043         (__tdelete): Likewise.
16044         (__twalk): Likewise.
16045         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16046         Call __tdelete instead of tdelete.
16047         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16048         tfind.  Call __tsearch instead of tsearch.
16049         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16050         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16051         Remove variable.
16052         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16053
16054         [BZ #18534]
16055         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16056         (dprintf): Define as a weak alias of __dprintf, not a strong
16057         alias.
16058         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16059         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16060         dprintf.
16061         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16062         Remove variable.
16063         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16064         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16065
16066         [BZ #18533]
16067         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16068         not a strong alias.
16069         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16070         Remove variable.
16071
16072         [BZ #18532]
16073         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16074         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16075         (in6addr_loopback): Rename to __in6addr_loopback and define as
16076         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16077         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16078         libc_hidden_proto.
16079         (__in6addr_any): Likewise.
16080         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16081         in6addr_any.
16082         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16083         variable.
16084         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16085
16086 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16087
16088         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16089         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16090         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16091         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16092         redirections for pow.
16093         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16094         * sysdeps/x86_64/fpu/Versions: New versions added.
16095         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16096         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16097         build of SSE, AVX2 and AVX512 IFUNC versions.
16098         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16099         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16100         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16101         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16102         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16103         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16104         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16105         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16106         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16107         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16108         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16109         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16110         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16111         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16112         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16113         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16114         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16115         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16116         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16117         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16118         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16119         * NEWS: Mention addition of x86_64 vector pow.
16120
16121         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16122         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16123         redirections for expf.
16124         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16125         * sysdeps/x86_64/fpu/Versions: New versions added.
16126         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16127         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16128         build of SSE, AVX2 and AVX512 IFUNC versions.
16129         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16130         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16131         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16132         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16133         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16134         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16135         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16136         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16137         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16138         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16139         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16140         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16141         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16142         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16143         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16144         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16145         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16146         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16147         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16148         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16149         * NEWS: Mention addition of x86_64 vector expf.
16150
16151         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16152         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16153         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16154         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16155         redirections for exp.
16156         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16157         * sysdeps/x86_64/fpu/Versions: New versions added.
16158         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16159         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16160         build of SSE, AVX2 and AVX512 IFUNC versions.
16161         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16162         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16163         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16164         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16165         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16166         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16167         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16168         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16169         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16170         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16171         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16172         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16173         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16174         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16175         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16176         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16177         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16178         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16179         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16180         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16181         * NEWS: Mention addition of x86_64 vector exp.
16182
16183         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16184         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16185         redirections for logf.
16186         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16187         * sysdeps/x86_64/fpu/Versions: New versions added.
16188         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16189         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16190         build of SSE, AVX2 and AVX512 IFUNC versions.
16191         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16192         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16193         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16194         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16195         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16196         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16197         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16198         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16199         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16200         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16201         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16202         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16203         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16204         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16205         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16206         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16207         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16208         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16209         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16210         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16211         * NEWS: Mention addition of x86_64 vector logf.
16212
16213         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16214         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16215         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16216         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16217         redirections for log.
16218         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16219         * sysdeps/x86_64/fpu/Versions: New versions added.
16220         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16221         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16222         build of SSE, AVX2 and AVX512 IFUNC versions.
16223         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16224         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16225         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16226         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16227         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16228         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16229         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16230         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16231         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16232         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16233         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16234         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16235         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16236         test.
16237         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16238         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16239         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16240         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16241         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16242         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16243         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16244         * NEWS: Mention addition of x86_64 vector log.
16245
16246 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16247
16248         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16249         cfi_adjust_cfa_offset argument.
16250         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16251         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16252
16253         [BZ #18034]
16254         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16255         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16256         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16257         ordering using ldar.
16258         (_dl_tlsdesc_dynamic): Likewise.
16259         (_dl_tlsdesc_return_lazy): Likewise.
16260         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16261         relaxed atomics instead of volatile and synchronize with release store.
16262         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16263         volatile.
16264         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16265
16266 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16267
16268         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16269         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16270         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16271         * sysdeps/x86_64/fpu/Versions: New versions added.
16272         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16273         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16274         build of SSE, AVX2 and AVX512 IFUNC versions.
16275         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16276         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16277         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16278         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16279         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16280         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16281         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16282         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16283         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16284         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16285         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16286         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16287         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16288         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16289         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16290         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16291         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16292         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16293         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16294         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16295         * NEWS: Mention addition of x86_64 vector sinf.
16296
16297 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16298
16299         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16300         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16301         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16302         Remove variable.
16303         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16304         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16305
16306 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16307
16308         [BZ #18530]
16309         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16310         strong alias of _IO_fputs.  Use libc_hidden_def.
16311         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16312         and define as weak alias of __fputs_unlocked.  Use
16313         libc_hidden_weak.
16314         * include/stdio.h (__fputs_unlocked): Declare.  Use
16315         libc_hidden_proto.
16316         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16317         fputs_unlocked.
16318
16319         [BZ #18529]
16320         * resolv/netdb.h [__USE_POSIX]: Change condition to
16321         [__USE_XOPEN2K].
16322         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16323         not expect.
16324         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16325         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16326         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16327         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16328         [XPG4 || UNIX98] (AI_ALL): Likewise.
16329         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16330         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16331         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16332         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16333         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16334         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16335         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16336         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16337         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16338         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16339         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16340         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16341         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16342         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16343         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16344         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16345         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16346         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16347         [XPG4 || UNIX98] (gai_strerror): Likewise.
16348         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16349         [XPG4 || UNIX98] (getnameinfo): Likewise.
16350
16351         [BZ #18528]
16352         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16353         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16354         __USE_XOPEN2K8].
16355         (getgrent): Likewise.
16356         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16357         expect.
16358         [XPG3 || POSIX2008] (endgrent): Likewise.
16359         [XPG3] (setgrent): Likewise.
16360         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16361         variable.
16362         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16363
16364         [BZ #18527]
16365         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16366         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16367         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16368         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16369         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16370         * include/unistd.h (__getlogin_r): Declare.  Use
16371         libc_hidden_proto.
16372         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16373         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16374         variable.
16375         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16376         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16377         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16378
16379 2015-06-12  Martin Sebor  <msebor@redhat.com>
16380
16381         [BZ #18512]
16382         * Makerules (check-install-supported): New target.
16383         (install): Add check-install-supported as a dependency.
16384         * manual/install.texi (Installing the C Library): Document
16385         that overriding prefix and exec_prefix is not supported.
16386         Mention DESTDIR.
16387         * INSTALL: Regenerate from the above.
16388
16389 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16390
16391         [BZ #18519]
16392         * posix/Versions (libc): Export __libc_pread at version
16393         GLIBC_PRIVATE.
16394         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16395         instead of pread.
16396         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16397         variable.
16398
16399         [BZ #18522]
16400         * misc/efgcvt_r.c
16401         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16402         (cvt_symbol): Use weak_alias instead of strong_alias.
16403         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16404         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16405         Remove variable.
16406         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16407         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16408
16409         [BZ #18520]
16410         * inet/herrno.c (h_errno): Rename to __h_errno.
16411         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16412         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16413         to __h_errno instead of h_errno.
16414         * nptl/herrno.c (h_errno): Rename to __h_errno.
16415         (__h_errno_location): Refer to __h_errno not h_errno.
16416         * resolv/Versions (h_errno): Rename to __h_errno.
16417         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16418         Remove variable.
16419         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16420
16421 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16422
16423         * configure.ac: More strict check for AVX512 assembler support.
16424         * configure: Regenerated.
16425
16426         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16427         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16428         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16429         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16430         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16431         * sysdeps/x86_64/fpu/Versions: New versions added.
16432         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16433         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16434         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16435         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16436         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16437         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16438         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16439         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16440         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16441         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16442         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16443         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16444         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16445         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16446         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16447         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16448         test.
16449         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16450         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16451         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16452         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16453         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16454         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16455         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16456         * NEWS: Mention addition of x86_64 vector sin.
16457
16458 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16459
16460         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16461         comment.
16462
16463 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16464
16465         [BZ #18479]
16466         * nptl/pt-interp.c: New file.
16467         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16468         Add pt-interp.
16469         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16470         $(common-objpfx)runtime-linker.h.
16471
16472 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16473
16474         * Makeconfig (+interp): Remove unused variable.
16475         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16476         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16477         $(elf-objpfx)runtime-linker.h.
16478         ($(elf-objpfx)runtime-linker.h): Rename to
16479         $(common-objpfx)runtime-linker.h and move ...
16480         * Makerules [$(build-shared) = yes]: ... here.
16481         * elf/interp.c: Include <runtime-linker.h> instead of
16482         <elf/runtime-linker.h>.
16483
16484 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16485
16486         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16487         (__gettimeofday_syscall): Remove vsyscall fallback.
16488         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16489         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16490         Add syscall fallback function.
16491         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16492         if vDSO is not present.
16493         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16494         fallback function.
16495         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16496         present.
16497         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16498         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16499
16500 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16501
16502         [BZ #18497]
16503         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16504         of wcscmp.
16505         (wcscmp): Define as weak alias of WCSCMP.
16506         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16507         wcscoll.
16508         (USE_HIDDEN_DEF): Define.
16509         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16510         __wcscoll.  Don't use libc_hidden_weak.
16511         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16512         wcscmp.
16513         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16514         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16515         __GI_wcscmp.
16516         (weak_alias): Undefine and redefine.
16517         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16518         __wcscmp and define as weak alias of __wcscmp.
16519         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16520         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16521         (__wcscoll): Likewise.
16522         (wcscmp): Don't use libc_hidden_proto.
16523         (wcscoll): Likewise.
16524         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16525         wcscoll.
16526         * posix/regexec.c (check_node_accept_bytes): Likewise.
16527         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16528         variable.
16529         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16530         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16531
16532         [BZ #18507]
16533         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16534         __fstatvfs and define as weak alias of __fstatvfs.  Use
16535         libc_hidden_weak.
16536         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16537         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16538         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16539         Define as alias of __fstatvfs, not fstatvfs.
16540         (fstatvfs64): Likewise.
16541         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16542         Define as alias of __statvfs, not statvfs.
16543         (statvfs64): Likewise.
16544         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16545         Remove variable.
16546
16547 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16548
16549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16550         (HAVE_GETCPU_VSYSCALL): Define.
16551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16552         (HAVE_GETCPU_VSYSCALL): Likewise.
16553         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16554         * sysdeps/unix/sysv/linux/sched_getcpu.c
16555         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16556         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16557         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16558         prototype.
16559         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16560         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16561         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16562         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16563         Define.
16564         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16565         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16566         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16567         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16568
16569 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16570
16571         * sysdeps/x86_64/fpu/Makefile: New file.
16572         * sysdeps/x86_64/fpu/Versions: New file.
16573         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16574         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16575         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16576         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16577         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16578         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16579         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16580         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16581         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16582         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16583         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16584         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16585         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16586         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16587         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16588         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16589         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16590         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16591         * sysdeps/x86_64/configure: Regenerated.
16592         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16593         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16594         * manual/install.texi (Configuring and compiling): Document
16595         --disable-mathvec.
16596         * INSTALL: Regenerated.
16597         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16598
16599         * math/Makefile: Added rules for vector tests.
16600         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16601         declaration under condition.
16602         * math/test-double-vlen2.h: New file.
16603         * math/test-double-vlen4.h: New file.
16604         * math/test-double-vlen8.h: New file.
16605         * math/test-vec-loop.h: Added initialization macro.
16606         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16607         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16608         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16609         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16610         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16611         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16612         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16613         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16614         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16615         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16616         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16617
16618         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16619         * sysdeps/x86_64/fpu/Versions: New versions added.
16620         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16621         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16622         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16623         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16624         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16625         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16626         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16627         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16628         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16629         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16630         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16631         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16632         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16633         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16634         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16635         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16636         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16637         * NEWS: Mention addition of x86_64 vector cosf.
16638
16639         * math/Makefile: Added CFLAGS for new tests.
16640         * math/test-float-vlen16.h: New file.
16641         * math/test-float-vlen4.h: New file.
16642         * math/test-float-vlen8.h: New file.
16643         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16644         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16645         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16646         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16647         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16648         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16649         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16650         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16651         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16652         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16653         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16654
16655 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16656
16657         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16658         * locale/programs/ld-ctype.c: Likewise.
16659
16660 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16661
16662         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16663         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16664         bit_ZMM16_31_state): New macro.
16665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16666         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16667
16668 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16669
16670         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16671
16672 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16673
16674         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16675
16676 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16677
16678         [BZ #18498]
16679         * libio/memstream.c (open_memstream): Rename to __open_memstream
16680         and define as weak alias of __open_memstream.
16681         * include/stdio.h (__open_memstream): Declare.  Use
16682         libc_hidden_proto.
16683         (open_memstream): Don't use libc_hidden_proto.
16684         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16685         open_memstream.
16686         * posix/getopt.c (_getopt_internal_r): Likewise.
16687         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16688         variable.
16689         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16690         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16691         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16692
16693         [BZ #18496]
16694         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16695         instead of wcrtomb.
16696
16697         [BZ #18483]
16698         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16699         [__USE_XOPEN2K8].  Remove redundant #endif.
16700         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16701         Remove redundant #if.
16702         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16703         Remove variable.
16704         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16705         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16706
16707         [BZ #18495]
16708         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16709         (__iswlower): Likewise.
16710         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16711         (__iswlower): Likewise.
16712         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16713         instead of towlower.
16714         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16715         instead of iswlower.  Call __towupper instead of towupper.
16716         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16717         instead of iswalnum.
16718
16719 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16720
16721         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16722         errors to stderr.
16723
16724 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16725
16726         [BZ #15661]
16727         [BZ #17322]
16728         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16729         Check for overflow properly.  Check for O_APPEND.  Ignore large
16730         file system block sizes.  Add comments about problems.
16731         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16732         * manual/filesys.texi (Storage Allocation): New node.
16733
16734 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16735
16736         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16737         cancellable syscalls.
16738         (SYS_ify): Add guard to no redefine it.
16739         (INLINE_SYSCALL): Likewise.
16740         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16741         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16742         SYSCALL_CANCEL instead.
16743         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16744         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16745         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16746         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16747         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16748         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16749         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16750         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16751         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16752         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16753         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16754         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16755         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16756         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16757         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16758         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16759         Likewise.
16760         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16761         (__libc_pread64): Likewise.
16762         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16763         (__libc_preadv): Likewise.
16764         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16765         (__libc_readv64): Likewise.
16766         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16767         (__libc_pwrite): Likewise.
16768         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16769         (__libc_pwrite64): Likewise.
16770         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16771         (__libc_pwritev): Likewise.
16772         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16773         (__libc_pwritev64): Likewise.
16774         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16775         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
16776         (sync_file_range): Likewise.
16777         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
16778         Likewise.
16779         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
16780         Likewise.
16781         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
16782         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
16783         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
16784         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
16785         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
16786         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
16787         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
16788         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
16789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
16790         Likewise.
16791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16792         (__libc_read64): Likewise.
16793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
16794         Likewise.
16795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
16796         Likewise.
16797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
16798         Likewise.
16799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
16800         Likewise.
16801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16802         (__libc_pread64): Likewise.
16803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
16804         Likewise.
16805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16806         (__libc_pwrite64): Likewise.
16807         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
16808         (sync_file_range): Likewise.
16809         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
16810         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
16811         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
16812         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
16813         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
16814         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
16815         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
16816         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
16817         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
16818         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
16819         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16820         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
16821         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
16822         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
16823         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
16824         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
16825         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
16826         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16827         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
16828         Likewise.
16829         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
16830         Likewise.
16831         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
16832         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
16833         Likewise.
16834         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
16835         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
16836         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
16837         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
16838         Likewise.
16839         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
16840         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
16841         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
16842         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
16843         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
16844
16845 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
16846
16847         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
16848         Include dl-vdso.
16849         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
16850         Use VDSO routines for gettimeofday, clock_gettime if
16851         available.
16852         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
16853         Declare VDSO symbols.
16854         * sysdeps/unix/sysv/linux/arm/sysdep.h:
16855         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
16856         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
16857         * sysdeps/unix/sysv/linux/arm/Versions: Add
16858         __vdso_clock_gettime.
16859
16860 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16861
16862         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
16863         be an inline implementation regardless of library is built within.
16864         (open_not_cancel_2): Likewise.
16865         (__read_nocancel): Likewise.
16866         (__write_nocancel): Likewise.
16867         (openat_not_cancel): Likewise.
16868         (openat_not_cancel_3): Likewise.
16869         (openat64_not_cancel): Likewise.
16870         (openat64_not_cancel_3): Likewise.
16871         (__close_nocancel): Likewise.
16872         (pause_not_cancel): Likewise.
16873         (nanosleep_not_cancel): Likewise.
16874         (sigsuspend_not_cancel): Likewise.
16875
16876 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16877
16878         [BZ #14958]
16879         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
16880         wake-up.
16881         (__pthread_rwlock_rdlock_slow): Likewise.
16882         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
16883         Likewise.
16884         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
16885         Likewise.
16886         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
16887         * nptl/tst-rwlock16.c: New file.
16888         * nptl/Makefile (tests): Add new test.
16889
16890 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16891
16892         [BZ #18324]
16893         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
16894         missing wake-up of readers.
16895         * nptl/tst-rwlock15.c: New file.
16896         * nptl/Makefile (tests): Add new test.
16897
16898 2015-06-03  Roland McGrath  <roland@hack.frob.com>
16899
16900         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
16901         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
16902         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
16903         and __nacl_supply_interface_rtld.
16904         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
16905         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
16906         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
16907         Add __nacl_supply_interface_rtld.
16908         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
16909
16910 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16911
16912         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
16913         isfinite.
16914         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16915         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
16916
16917 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16918
16919         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
16920         __signbit* with standard C99 macros.
16921         * math/e_exp10l.c: Likewise.
16922         * math/e_exp2l.c: Likewise.
16923         * math/e_scalb.c: Likewise.
16924         * math/e_scalbf.c: Likewise.
16925         * math/e_scalbl.c: Likewise.
16926         * math/s_ldexp.c: Likewise.
16927         * math/s_ldexpf.c: Likewise.
16928         * math/s_ldexpl.c: Likewise.
16929         * math/w_atan2.c: Likewise.
16930         * math/w_atan2f.c: Likewise.
16931         * math/w_atan2l.c: Likewise.
16932         * math/w_cosh.c: Likewise.
16933         * math/w_coshf.c: Likewise.
16934         * math/w_coshl.c: Likewise.
16935         * math/w_exp10.c: Likewise.
16936         * math/w_exp10f.c: Likewise.
16937         * math/w_exp10l.c: Likewise.
16938         * math/w_exp2.c: Likewise.
16939         * math/w_exp2f.c: Likewise.
16940         * math/w_exp2l.c: Likewise.
16941         * math/w_fmod.c: Likewise.
16942         * math/w_fmodf.c: Likewise.
16943         * math/w_fmodl.c: Likewise.
16944         * math/w_hypot.c: Likewise.
16945         * math/w_hypotf.c: Likewise.
16946         * math/w_hypotl.c: Likewise.
16947         * math/w_jnl.c: Likewise.
16948         * math/w_lgamma.c: Likewise.
16949         * math/w_lgamma_r.c: Likewise.
16950         * math/w_lgammaf.c: Likewise.
16951         * math/w_lgammaf_r.c: Likewise.
16952         * math/w_lgammal.c: Likewise.
16953         * math/w_lgammal_r.c: Likewise.
16954         * math/w_pow.c: Likewise.
16955         * math/w_powf.c: Likewise.
16956         * math/w_powl.c: Likewise.
16957         * math/w_remainder.c: Likewise.
16958         * math/w_remainderf.c: Likewise.
16959         * math/w_remainderl.c: Likewise.
16960         * math/w_scalb.c: Likewise.
16961         * math/w_scalbf.c: Likewise.
16962         * math/w_scalbl.c: Likewise.
16963         * math/w_scalbln.c: Likewise.
16964         * math/w_scalblnf.c: Likewise.
16965         * math/w_scalblnl.c: Likewise.
16966         * math/w_sinh.c: Likewise.
16967         * math/w_sinhf.c: Likewise.
16968         * math/w_sinhl.c: Likewise.
16969         * math/w_tgamma.c: Likewise.
16970         * math/w_tgammaf.c: Likewise.
16971         * math/w_tgammal.c: Likewise.
16972         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16973         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
16974         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16975         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16976         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16977         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16978         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16979         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16980         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16981         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16982         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16983         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16984         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16985         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16986         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16987         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16988         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16989         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16990         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16991         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16992         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16993         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16994         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16995         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16996         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16997         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16998         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
16999         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17000         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17001         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17002         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17003         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17004         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17005         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17006         * stdio-common/printf_fp.c: Likewise.
17007         * stdio-common/printf_fphex.c: Likewise.
17008         * stdio-common/printf_size.c: Likewise.
17009
17010 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17011
17012         [BZ #18470]
17013         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17014         strnlen.
17015         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17016         Remove variable.
17017         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17018         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17019         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17020         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17021         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17022         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17023         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17024         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17025         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17026         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17027
17028         [BZ #18468]
17029         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17030         weak alias of __wmemchr.  Use libc_hidden_weak.
17031         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17032         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17033         instead of wmemchr.
17034
17035 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17036
17037         [BZ #18383]
17038         * elf/tst-tlsalign-extern.c: New file.
17039         * elf/tst-tlsalign-extern-static.c: New file.
17040         * elf/tst-tlsalign-vars.c: New file.
17041         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17042         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17043         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17044         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17045         (test-xfail-tst-tlsalign-extern-static): New variable.
17046
17047 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17048
17049         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17050         Use variable name _sc_err instead of err.
17051         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17052         instead of ret.
17053         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17054         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17055         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17056         (INLINE_SYSCALL): Likewise.
17057
17058         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17059         * include/string.h (__strnlen): Use libc_hidden_proto.
17060         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17061         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17062         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17063         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17064         (libc_hidden_def): Undefine and redefine.
17065         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17066         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17067         __GI_strnlen.
17068         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17069         libc_hidden_def.
17070         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17071
17072         [BZ #18469]
17073         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17074         weak alias of __towlower.  Use libc_hidden_weak.
17075         (towupper): Rename to __towupper and define as weak alias of
17076         __towupper.  Use libc_hidden_weak.
17077         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17078         (__towupper): Likewise.
17079         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17080         __towlower instead of towlower.
17081
17082 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17083
17084         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17085         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17086
17087 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17088
17089         * sysdeps/aarch64/libm-test-ulps: Update.
17090
17091 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17092
17093         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17094         Define.
17095         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17096         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17097         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17098         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17099         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17100         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17101         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17102
17103 2015-06-01  Martin Sebor  <msebor@redhat.com>
17104
17105         [BZ #18116]
17106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17107         (__setcontext): Use extended four-operand version of mtsf whenever
17108         possible.
17109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17110         (__novec_swapcontext): Likewise.
17111
17112 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17113
17114         * benchtests/scripts/compare_bench.py: New file.
17115         * benchtests/scripts/import_bench.py (mean): New function.
17116         (split_list): Likewise.
17117         (do_for_all_timings): Likewise.
17118         (compress_timings): Likewise.
17119
17120         * benchtests/scripts/import_bench.py: New file.
17121         * benchtests/scripts/validate_benchout.py: Import import_bench
17122         instead of jsonschema.
17123         (validate_bench): Remove function.
17124         (main): Use import_bench.
17125
17126 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17127
17128         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17129         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17130
17131 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17132
17133         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17134
17135 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17136
17137         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17138         set THREAD_SELF->tid to a magic value and futex-wake it.
17139         Pass its address to the thread_exit system call.
17140         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17141         bit is clear.
17142         * sysdeps/nacl/lowlevellock.h: New file.
17143         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17144
17145         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17146         Add TIMEOUT to current time, don't subtract it.
17147
17148 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17149
17150         [BZ #2981]
17151         [BZ #18422]
17152         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17153         ($(objpfx)tst-audit2.out): Also depend on
17154         $(objpfx)tst-auditmod9b.so.
17155         * elf/tst-audit2.c: Include <dlfcn.h>.
17156         (calloc_called): New.
17157         (calloc): Allow to be called more than once.
17158         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17159
17160 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17161
17162         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17163         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17164
17165 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17166
17167         * stdlib/monetary.h: Fix comment.
17168
17169 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17170
17171         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17172         Avoid using variables in #defines that might cause shadowing.
17173         (INTERNAL_VSYSCALL_CALL): Likewise.
17174
17175 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17176
17177         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17178
17179         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17180         * nptl/lll_timedlock_wait.c: ... to this new file.
17181         * nptl/Makefile (libpthread-routines): Add it.
17182         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17183         * nptl/lll_timedwait_tid.c: ... to this new file.
17184         * nptl/Makefile (libpthread-routines): Add it.
17185         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17186         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17187         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17188         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17189         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17190         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17191         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17192         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17193         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17194         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17195
17196 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17197
17198         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17199         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17200         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17201         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17202         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17203         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17204         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17205         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17206         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17207         * sysdeps/unix/sysv/linux/tile/sysdep.h
17208         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17209         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17210         using vDSO syscall macro.
17211
17212 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17213
17214         [BZ #17293]
17215         * uk_UA: Fix sorting order for Ukrainian locale
17216
17217 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17218
17219         * stdlib/monetary.h: Fix comment.
17220
17221 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17222
17223         [BZ #18234]
17224         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17225         st_mtim and st_ctim members.
17226         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17227         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17228         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17229         (struct stat64): Likewise.
17230         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17231         (struct stat64): Likewise.
17232         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17233         (struct stat64): Likewise.
17234
17235 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17236
17237         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17238         Define and include sysdep-vdso.h.
17239         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17240         Likewise.
17241         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17242         Likewise.
17243         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17244         Define with VDSO_SYMBOL and use PTR_MANGLE.
17245         (__vdso_clock_gettime): Likewise.
17246         (__vdso_clock_getres): Likewise.
17247         (_libc_vdso_platform_setup): Likewise.
17248         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17249         Likewise.
17250         (_libc_vdso_platform_setup): Likewise.
17251         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17252         Likewise.
17253         (__vdso_clock_gettime): Likewise.
17254         (__vdso_clock_getres): Likewise.
17255         (__vdso_get_tbfreq): Likewise.
17256         (__vdso_getcpu): Likewise.
17257         (__vdso_time): Likewise.
17258         (__vdso_sigtramp_rt64): Likewise.
17259         (__vdso_signtramp32): Likewise.
17260         (__vdso_sigtramp_rt32): Likewise.
17261         (_libc_vdso_platform_setup): Likewise.
17262         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17263         Likewise.
17264         (__vdso_clock_gettime): Likewise.
17265         (__vdso_clock_getres): Likewise.
17266         (_libc_vdso_platform_setup): Likewise.
17267         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17268         Likewise.
17269         (__vdso_clock_gettime): Likewise.
17270         (_libc_vdso_platform_setup): Likewise.
17271         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17272         Likewise.
17273         (__vdso_getcpu): Likewise.
17274         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17275         Use VDSO_SYMBOL macro to define.
17276         (__vdso_clock_gettime): Likewise.
17277         (__vdso_clock_getres): Likewise.
17278         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17279         Likewise.
17280         (__vdso_clock_gettime): Likewise.
17281         (__vdso_clock_getres): Likewise.
17282         (__vdso_get_tbfreq): Likewise.
17283         (__vdso_getcpu): Likewise.
17284         (__vdso_time): Likewise.
17285         (__vdso_sigtramp_rt64): Likewise.
17286         (__vdso_signtramp32): Likewise.
17287         (__vdso_sigtramp_rt32): Likewise.
17288         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17289         Likewise.
17290         (__vdso_clock_gettime): Likewise.
17291         (__vdso_clock_getres): Likewise.
17292         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17293         Likewise.
17294         (__vdso_clock_gettime): Likewise.
17295         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17296         Likewise.
17297         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17298         macro.
17299         (INTERNAL_VSYSCALL): Likewise.
17300         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17301         Remove macro.
17302         (INTERNAL_VSYSCALL): Likewise.
17303         (INTERNAL_VSYSCALL_NCS): Likewise.
17304         (INTERNAL_VSYSCALL_CALL): New macro.
17305         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17306         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17307         Likewise.
17308         (INTERNAL_VSYSCALL): Likewise.
17309         (INTERNAL_VSYSCALL_NCS): Likewise.
17310         (INTERNAL_VSYSCALL_CALL): New macro.
17311         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17313         (INLINE_VSYSCALL): Remove macro.
17314         (INTERNAL_VSYSCALL): Remove macro.
17315         (INTERNAL_VSYSCALL_NCS): Remove macro.
17316         (INTERNAL_VSYSCALL_CALL): New macro.
17317         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17318         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17319         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17320         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17321         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17323         (INLINE_VSYSCALL): Remove macro.
17324         (INTERNAL_VSYSCALL): Likewise.
17325         (INTERNAL_VSYSCALL_NCS): Likewise.
17326         (INTERNAL_VSYSCALL_CALL): New macro.
17327         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17328         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17329         PTR_DEMANGLE on vDSO pointer.
17330         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17331         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17332         macro.
17333         (INTERNAL_SYSCALL): Likewise.
17334         (INTERNAL_VSYSCALL_NCS): Remove macro.
17335         (INTERNAL_VSYSCALL_CALL): New macro.
17336         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17337         Remove macro.
17338         (INTERNAL_VSYSCALL): Likewise.
17339         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17340         sysdep-vdso.h instead of libc-vdso.h.
17341         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17342         definition.
17343         (INLINE_VSYSCALL): Likewise.
17344         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17345         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17346         definition.
17347         (INLINE_VSYSCALL): Likewise.
17348         (INTERNAL_VSYSCALL): Likewise.
17349         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17350         * sysdeps/unix/sysv/linux/timespec_get.c
17351         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17352         (timespec_get): Use ANSI prototype.
17353         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17354         and definition for Linux.
17355
17356 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17357
17358         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17359         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17360
17361 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17362
17363         [BZ #2981]
17364         [BZ #18410]
17365         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17366         for missing DT_PLTRELSZ.
17367
17368 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17369
17370         Remove obsolete aliases that broke 'locale -a'
17371         [BZ #18412]
17372         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17373         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17374         breaking some applications that use 'locale -a' output.
17375         Change the encoding of this file from Latin-1 to ASCII to avoid
17376         other potential problems with people grepping this file.
17377
17378 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17379
17380         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17381         -fasynchronous-unwind-tables.
17382         (CFLAGS-sendto.c): Likewise.
17383         (CFLAGS-sendmsg.c): Likewise.
17384         (CFLAGS-connect.c): Likewise.
17385         (CFLAGS-recvmsg.c): Likewise.
17386         (CFLAGS-recvfrom.c): Likewise.
17387         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17388         (SOCKETCALL): New macro: non-cancellable socketcall.
17389         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17390         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17391         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17392         * sysdeps/unix/sysv/linux/accept.c: New file.
17393         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17394         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17395         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17396         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17397         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17398         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17399         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17400         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17401         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17402         * sysdeps/unix/sysv/linux/send.c: Likewise.
17403         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17404         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17405         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17406         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17407         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17408         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17409         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17410         prototype.
17411         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17412         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17413         instead of __internal_xxx function.
17414         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17415         prototype.
17416         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17417         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17418         instead of __internal_xxx function.
17419         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17420         prototype.
17421         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17422         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17423         instead of __internal_xxx function.
17424         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17425         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17426         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17427         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17428         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17429         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17430         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17431         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17432         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17433         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17434         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17435         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17436         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17437         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17438         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17439         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17440         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17441         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17442         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17443         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17446         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17447         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17448         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17449         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17450         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17451         * sysdeps/unix/sysv/linux/send.S: Likewise.
17452         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17453         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17454         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17455         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17456         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17457         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17458         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17459         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17460         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17461         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17462         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17463         socketcall is implemented in GLIBC.
17464
17465 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17466
17467         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17468         (__fma): Ignore uninitialized warnings around packing.
17469         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17470         (__fmaf): Ignore uninitialized warnings around packing.
17471         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17472         (__fmal): Ignore uninitialized warnings around packing.
17473
17474         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17475         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17476         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17477         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17478
17479         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17480         switch statement into default case.
17481         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17482
17483         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17484         a conditional in forcing "inexact".
17485         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17486         Likewise.
17487
17488 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17489
17490         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17491         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17492         for each INTERNAL_SYSCALL use.
17493
17494 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17495
17496         [BZ #438]
17497         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17498         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17499         variable.
17500
17501         [BZ #18444]
17502         * string/basename.c (basename): Rename to __basename and define as
17503         weak alias of __basename.  Use libc_hidden_weak.
17504         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17505         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17506         __basename instead of basename.
17507         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17508         Remove variable.
17509         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17510
17511 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17512
17513         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17514         (_IO_JUMPS_FILE_plus): New.
17515         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17516         _IO_CAST_FIELD_ACCESS.
17517         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17518         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17519         * libio/freopen.c (freopen): Likewise.
17520         * libio/freopen64.c (freopen64): Likewise.
17521         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17522         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17523         * libio/iofwide.c (_IO_fwide): Likewise.
17524         * libio/memstream.c (open_memstream): Likewise.
17525         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17526         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17527         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17528
17529 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17530
17531         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17532         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17533         NADJ.
17534         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17535         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17536         NADJ.
17537         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17538         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17539         NADJ.
17540
17541         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17542         (p == 4) case.
17543
17544         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17545         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17546         Remove variable.
17547         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17548         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17549         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17550
17551 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17552
17553         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17554         Adjust jump table label generation macros.
17555
17556 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17557
17558         * stdio-common/vfprintf.c (vfprintf): Move local variables
17559         args_malloced, specs, specs_malloced, and the code after
17560         do_positional to the printf_positional function.
17561         (printf_positional): New function.
17562
17563 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17564
17565         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17566         function.
17567         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17568         STEP4_TABLE, process_arg): Move macro definitions
17569         out of the vfprintf function.  (Cosmetic change only.)
17570
17571 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17572
17573         * benchtests/Makefile (stdio-common-bench): Define.
17574         (benchset): Add stdio-common-bench.
17575         * sprintf-inputs: New file.
17576         * sprintf-source.c: New file.
17577
17578 2015-05-21  Andreas Schwab  <schwab@suse.de>
17579
17580         [BZ #13028]
17581         [BZ #17053]
17582         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17583         of struct __res_state.
17584         * resolv/res_send.c (__libc_res_nsend): Likewise.
17585         (get_nsaddr): New function.
17586         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17587         statp directly.
17588
17589 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17590
17591         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17592         -D_POSIX_C_SOURCE=199506L.
17593
17594         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17595
17596         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17597         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17598         Do not mention otherwise.
17599         [POSIX] (_XOPEN_VERSION): Do not expect.
17600         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17601         [POSIX] (_POSIX2_C_BIND): Likewise.
17602         [POSIX] (_POSIX2_VERSION): Likewise.
17603         [POSIX] (_XOPEN_XPG2): Likewise.
17604         [POSIX] (_XOPEN_XPG3): Likewise.
17605         [POSIX] (_XOPEN_XPG4): Likewise.
17606         [POSIX] (_XOPEN_UNIX): Likewise.
17607         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17608         [POSIX] (_POSIX_BARRIERS): Likewise.
17609         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17610         [POSIX] (_POSIX_CPUTIME): Likewise.
17611         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17612         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17613         [POSIX] (_POSIX_SHELL): Likewise.
17614         [POSIX] (_POSIX_SPAWN): Likewise.
17615         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17616         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17617         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17618         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17619         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17620         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17621         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17622         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17623         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17624         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17625         [POSIX] (_POSIX2_PBS): Likewise.
17626         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17627         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17628         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17629         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17630         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17631         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17632         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17633         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17634         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17635         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17636         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17637         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17638         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17639         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17640         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17641         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17642         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17643         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17644         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17645         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17646         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17647         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17648         [POSIX] (_SC_2_C_BIND): Likewise.
17649         [POSIX] (_SC_2_C_VERSION): Likewise.
17650         [POSIX] (_SC_2_PBS): Likewise.
17651         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17652         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17653         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17654         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17655         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17656         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17657         [POSIX] (_SC_BARRIERS): Likewise.
17658         [POSIX] (_SC_BASE): Likewise.
17659         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17660         [POSIX] (_SC_DEVICE_IO): Likewise.
17661         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17662         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17663         [POSIX] (_SC_FD_MGMT): Likewise.
17664         [POSIX] (_SC_FIFO): Likewise.
17665         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17666         [POSIX] (_SC_FILE_LOCKING): Likewise.
17667         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17668         [POSIX] (_SC_IOV_MAX): Likewise.
17669         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17670         [POSIX] (_SC_NETWORKING): Likewise.
17671         [POSIX] (_SC_PAGE_SIZE): Likewise.
17672         [POSIX] (_SC_PASS_MAX): Likewise.
17673         [POSIX] (_SC_PIPE): Likewise.
17674         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17675         [POSIX] (_SC_REGEXP): Likewise.
17676         [POSIX] (_SC_SHELL): Likewise.
17677         [POSIX] (_SC_SIGNALS): Likewise.
17678         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17679         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17680         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17681         [POSIX] (_SC_USER_GROUPS): Likewise.
17682         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17683         [POSIX] (_SC_STREAMS): Likewise.
17684         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17685         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17686         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17687         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17688         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17689         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17690         [POSIX] (_PC_FILESIZEBITS): Likewise.
17691         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17692         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17693         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17694         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17695         [POSIX] (uid_t): Likewise.
17696         [POSIX] (gid_t): Likewise.
17697         [POSIX] (off_t): Likewise.
17698         [POSIX] (pid_t): Likewise.
17699         [POSIX] (cuserid): Allow.
17700         (_SC_2_CHAR_TERM): Require constant.
17701         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17702         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17703         variable.
17704
17705 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17706
17707         * sysdeps/nacl/pthread-pids.h: New file.
17708         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17709         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17710
17711         * nptl/pthread-pids.h: New file.
17712         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17713         * nptl/nptl-init.c: Include <pthread-pids.h>.
17714         (__pthread_initialize_minimal_internal):
17715         Call __pthread_initialize_pids instead of set_tid_address syscall.
17716
17717         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17718         * sysdeps/posix/usleep.c: ... here.
17719
17720 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17721
17722         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17723         call_pselect6 object.
17724         [$(subdir) = io]: Remove call_sync_file_range object.
17725         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17726         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17727         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17728         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17729
17730 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17731
17732         * math/s_cproj.c: Add include "math_private.h".
17733         * math/s_cprojf.c: Likewise.
17734         * math/s_cprojl.c: Likewise.
17735
17736 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17737
17738         [BZ #18244]
17739         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17740         high mantissa bit when testing whether P is a NaN.
17741         * math/libm-test.inc (remainder_test_data): Add more tests.
17742         (remquo_test_data): Likewise.
17743
17744         [BZ #18049]
17745         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17746         below -32, return the argument, with underflow if subnormal.
17747         * math/auto-libm-test-in: Add more tests of atanh.
17748         * math/auto-libm-test-out: Regenerated.
17749
17750 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17751
17752         [BZ #18434]
17753         * nptl/tst-sem15.c: New file.
17754         * nptl/Makefile (tests): Add it.
17755         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17756         s/<</>>/ to fix typo in EOVERFLOW check.
17757         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17758
17759 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17760
17761         * manual/strings.texi (envz_remove): Fix typo in safety
17762         annotations.
17763
17764 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17765             Steve Ellcey  <sellcey@imgtec.com>
17766
17767         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17768         in order to avoid strict alias warnings.
17769         (iruserok_af): Ditto for ra.
17770
17771 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17772
17773         [BZ #17581]
17774         * malloc/hooks.c
17775         (magicbyte): Convert to a function and avoid returning 0x01.
17776         (mem2mem_check): Avoid using a length byte equal to the magic byte.
17777         (mem2chunk_check): Fix unsigned comparisons to zero.
17778         Hoist defs of sz and magic.
17779
17780 2015-05-19  Richard Henderson  <rth@redhat.com>
17781
17782         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
17783
17784         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17785
17786 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17787
17788         [BZ #16159]
17789         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
17790         * malloc/arena.c (arena_lock): Check if arena is corrupt.
17791         (reused_arena): Find a non-corrupt arena.
17792         (heap_trim): Pass arena to unlink.
17793         * malloc/hooks.c (malloc_check_get_size): Pass arena to
17794         malloc_printerr.
17795         (top_check): Likewise.
17796         (free_check): Likewise.
17797         (realloc_check): Likewise.
17798         * malloc/malloc.c (malloc_printerr): Add arena argument.
17799         (unlink): Likewise.
17800         (munmap_chunk): Adjust.
17801         (ARENA_CORRUPTION_BIT): New macro.
17802         (arena_is_corrupt): Likewise.
17803         (set_arena_corrupt): Likewise.
17804         (sysmalloc): Use mmap if there are no usable arenas.
17805         (_int_malloc): Likewise.
17806         (__libc_malloc): Don't fail if arena_get returns NULL.
17807         (_mid_memalign): Likewise.
17808         (__libc_calloc): Likewise.
17809         (__libc_realloc): Adjust for additional argument to
17810         malloc_printerr.
17811         (_int_free): Likewise.
17812         (malloc_consolidate): Likewise.
17813         (_int_realloc): Likewise.
17814         (_int_memalign): Don't touch corrupt arenas.
17815         * malloc/tst-malloc-backtrace.c: New test case.
17816
17817         * Makefile (summarize-tests): Fix return value on success.
17818
17819         * manual/string.texi (Envz Functions): Add envz_remove.
17820
17821 2015-05-18  Roland McGrath  <roland@hack.frob.com>
17822
17823         * sysdeps/posix/opendir.c: Include <stdbool.h>.
17824         (invalid_name): New function, broken out of ...
17825         (__opendirat): ... here.  Call it.
17826         (need_isdir_precheck): New function, broken out of ...
17827         (__opendirat): ... here.  Call it.
17828         Use __fxstatat64, not __xstatat64.
17829         (opendir_oflags): New function, broken out of ...
17830         (__opendirat): ... here.  Call it.
17831         (opendir_tail): New function, broken out of ...
17832         (__opendirat): ... here.  Call it.
17833         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
17834         opendir_tail, rather than punting to __opendirat.
17835         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
17836
17837 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17838
17839         * .gitignore: Ignore generated *.pyc.
17840
17841 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
17842
17843         * include/stdio.h: Define __need_wint_t.
17844         * test-skeleton.c: Avoid `for' loop initial declaration.
17845         * nptl/tst-initializers1.c: Use test-skeleton.c.
17846
17847 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17848
17849         [BZ #18418]
17850         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
17851
17852 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17853
17854         [BZ #16352]
17855         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
17856         (__ieee754_atanh): Force underflow exception for results with
17857         small absolute value.
17858         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
17859         (__ieee754_atanhf): Force underflow exception for results with
17860         small absolute value.
17861         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
17862         (__ieee754_atanh): Force underflow exception for results with
17863         small absolute value.
17864         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
17865         (__ieee754_atanhf): Force underflow exception for results with
17866         small absolute value.
17867         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
17868         (__ieee754_atanhl): Force underflow exception for results with
17869         small absolute value.
17870         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
17871         (__ieee754_atanhl): Force underflow exception for results with
17872         small absolute value.
17873         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
17874         (__ieee754_atanhl): Force underflow exception for results with
17875         small absolute value.
17876         * math/auto-libm-test-in: Do not allow missing underflow
17877         exceptions from atanh.
17878         * math/auto-libm-test-out: Regenerated.
17879
17880         [BZ #18221]
17881         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
17882         2**-28 as threshold for returning x or +/- 1/x.
17883         * math/auto-libm-test-in: Add more tests of tan.
17884         * math/auto-libm-test-out: Regenerated.
17885
17886         [BZ #18220]
17887         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
17888         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
17889         * math/auto-libm-test-in: Add another test of lgamma.
17890         * math/auto-libm-test-out: Regenerated.
17891
17892 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
17893
17894         * stdio-common/printf_fp.c (___printf_fp): Use abs.
17895         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
17896         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
17897         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
17898         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
17899         (ADD2A): Use fabs.  (SUB2A): Use fabs.
17900         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
17901         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
17902         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
17903         (log1): Use fabs.  (my_log2): Use fabs.
17904         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
17905         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
17906         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
17907         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
17908         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
17909         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
17910         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
17911         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
17912         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
17913         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
17914         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
17915
17916 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17917
17918         [BZ #18217]
17919         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
17920         as threshold for returning 1 - x.
17921         * math/auto-libm-test-in: Add more tests of erfc.
17922         * math/auto-libm-test-out: Regenerated.
17923
17924 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
17925
17926         [BZ #18196]
17927         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
17928         threshold for large arguments.
17929         * math/auto-libm-test-in: Add another test of atan.
17930         * math/auto-libm-test-out: Regenerated.
17931
17932         [BZ #16339]
17933         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
17934         (__log1p): Force underflow exception for results with small
17935         absolute value.
17936         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
17937         (__log1pf): Force underflow exception for results with small
17938         absolute value.
17939         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
17940         (__log1p): Force underflow exception for results with small
17941         absolute value.
17942         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
17943         (__log1pf): Force underflow exception for results with small
17944         absolute value.
17945         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
17946         (__log1pl): Force underflow exception for results with small
17947         absolute value.
17948         * math/auto-libm-test-in: Do not allow missing underflow
17949         exceptions from log1p.
17950         * math/auto-libm-test-out: Regenerated.
17951
17952 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
17953             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17954
17955         [BZ #16704]
17956         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
17957
17958 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
17959
17960         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
17961         (libmvec): New variable.
17962         * configure.ac: Added option for mathvec build.
17963         * configure: Regenerated.
17964         * mathvec/Depend: New file.
17965         * mathvec/Makefile: New file.
17966         * shlib-versions: Added libmvec.
17967         * math/Makefile: Added rule for libm.so installation.
17968
17969         * bits/math-vector.h: New file.
17970         * bits/libm-simd-decl-stubs.h: New header.
17971         * math/Makefile (headers): Added new header
17972         libm-simd-decl-stubs.h.
17973         * math/math.h (__MATHCALL_VEC): New macro.
17974
17975         * math/gen-libm-have-vector-test.sh: Script generates series of macros
17976         for conditions in testing functions.
17977         * math/Makefile: Added call of libm-have-vector-test.sh.
17978         * math/libm-test.inc (HAVE_VECTOR): New macros.
17979
17980         * math/libm-test.inc: START refactored.
17981         * math/test-double.c (TEST_MATHVEC): Add define.
17982         * math/test-float.c: Likewise.
17983         * math/test-idouble.c: Likewise.
17984         * math/test-ifloat.c: Likewise.
17985         * math/test-ildoubl.c: Likewise.
17986         * math/test-ldouble.c: Likewise.
17987         * sysdeps/generic/math-tests-arch.h
17988         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
17989         architecture check.
17990
17991         * math/test-double.c (FUNC_TEST): New macro.
17992         * math/test-float.c: Likewise.
17993         * math/test-idouble.c: Likewise.
17994         * math/test-ifloat.c: Likewise.
17995         * math/test-ildoubl.c: Likewise.
17996         * math/test-ldouble.c: Likewise.
17997         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
17998
17999 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18000
18001         * sysdeps/nacl/fdopendir.c: New file.
18002
18003         * dirent/scandir-tail.c: New file.
18004         * dirent/scandir64-tail.c: New file.
18005         * dirent/Makefile (routines): Add them.
18006         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18007         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18008         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18009         [!SCANDIR] (SCANDIR_TAIL): New macro.
18010         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18011         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18012         (SCANDIRAT): Macro removed.
18013         (SCANDIR_TAIL): New macro.
18014         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18015         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18016         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18017         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18018         (READDIR): Macro removed.
18019         (SCANDIR_TAIL): New macro.
18020         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18021         (SCANDIR_TAIL): New macro.
18022
18023         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18024         * dirent/scandir-cancel.c: ... to this new file.
18025         * dirent/Makefile (routines): Add it.
18026         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18027         * sysdeps/unix/sysv/linux/i386/scandir64.c
18028         (SKIP_SCANDIR_CANCEL): Macro removed.
18029         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18030
18031         * dirent/tst-scandir.c: New file.
18032         * dirent/tst-scandir64.c: New file.
18033         * dirent/Makefile (tests): Add them.
18034
18035 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18036
18037         [BZ #18409]
18038         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18039
18040 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18041
18042         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18043         list.
18044
18045 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18046
18047         * benchtests/bench-strcoll.c: New benchmark.
18048         * benchtests/Makefile: Generate locales and run benchmark.
18049         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18050         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18051         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18052         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18053         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18054         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18055         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18056         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18057         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18058         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18059         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18060         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18061         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18062         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18063         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18064         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18065         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18066         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18067         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18068         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18069         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18070         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18071         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18072         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18073
18074 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18075
18076         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18077         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18078
18079 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18080
18081         * posix/uname-values.h: New file.
18082         * posix/uname.c: Include that instead of <config-name.h>.
18083         * sysdeps/nacl/uname-values.h: New file.
18084         * sysdeps/arm/nacl/uname-values.h: New file.
18085
18086 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18087
18088         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18089         splitting into fields.
18090
18091 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18092
18093         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18094         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18095         * locale/localeinfo.h: Add enum collation_encoding_type.
18096         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18097         * programs/ld-collate.c (collate_output): Add encoding type info.
18098         * string/strcoll_l.c (STRDIFF): New function.
18099         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18100         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18101
18102 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18103
18104         [BZ #18397]
18105         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18106         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18107         <fpu_control.h> instead of <math/fpu_control.c>.
18108         * sysdeps/mips/mips32/fpu/Makefile: New file.
18109
18110 2015-05-11  Andreas Schwab  <schwab@suse.de>
18111
18112         [BZ #18007]
18113         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18114         nss_endgrent.
18115         (_nss_compat_endgrent): Call nss_endgrent.
18116         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18117         nss_endpwent.
18118         (_nss_compat_endpwent): Call nss_endpwent.
18119         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18120         needent, call nss_setspent only if non-zero.
18121         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18122         (internal_endspent): Don't call nss_endspent.
18123         (_nss_compat_endspent): Call nss_endspent.
18124         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18125         Remove.  All uses removed.
18126         (internal_setent): Remove parameter stayopen, add parameter
18127         stream.  Use it instead of global variable.
18128         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18129         (internal_endent, internal_getent): Add parameter stream.  Use it
18130         instead of global variable.
18131         (CONCAT(_nss_files_end,ENTNAME))
18132         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18133         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18134         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18135         uses removed.
18136         (internal_setent, internal_endent): Add parameter stream.  Use it
18137         instead of global variable.
18138         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18139         stream.
18140         (get_next_alias): Add parameter stream.
18141         (_nss_files_getaliasent_r): Pass global stream.
18142         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18143         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18144         (_nss_files_gethostbyname4_r): Pass local stream to
18145         internal_setent, internal_getent and internal_endent.  Remove
18146         locking.
18147
18148 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18149
18150         * tst-strfmon1.c (tests): Update expected currency symbol.
18151
18152 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18153
18154         * sysdeps/nacl/gethostname.c: New file.
18155
18156 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18157
18158         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18159         and sinh.
18160         * math/auto-libm-test-out: Regenerated.
18161         * sysdeps/i386/fpu/libm-test-ulps: Update.
18162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18163
18164 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18165
18166         [BZ #18125]
18167         * stdlib/tst-setcontext3.c: New file.
18168         * stdlib/tst-setcontext3.sh: New file.
18169         * stdlib/Makefile (tests): Add tst-setcontext3.
18170         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18171         to verify test program created output file.
18172         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18173         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18174         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18175         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18176
18177 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18178
18179         [BZ #18383]
18180         * elf/tst-tlsalign.c: New file.
18181         * elf/tst-tlsalign-static.c: New file.
18182         * elf/tst-tlsalign-lib.c: New file.
18183         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18184         (tests-static): Add tst-tlsalign-static.
18185         (modules-names): Add tst-tlsalign-lib.
18186         (test-xfail-tst-tlsalign): New variable.
18187         (test-xfail-tst-tlsalign-static): New variable.
18188
18189         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18190         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18191
18192 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18193
18194         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18195         csqrt, erfc, sin and sincos.
18196         * math/auto-libm-test-out: Regenerated.
18197         * sysdeps/i386/fpu/libm-test-ulps: Update.
18198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18199
18200 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18201
18202         * sysdeps/aarch64/libm-test-ulps: Update.
18203
18204 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18205
18206         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18207         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18208         * math/auto-libm-test-out: Regenerated.
18209         * sysdeps/i386/fpu/libm-test-ulps: Update.
18210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18211
18212 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18213
18214         [BZ #18265]
18215         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18216         (wcsncpy): Likewise.
18217
18218 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18219
18220         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18221         Assume __ASSUME_FALLOCATE is always true.
18222         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18223         (__posix_fallocate64_l64): Likweise.
18224         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18225         (posix_fallocate): Likewise.
18226         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18227         (__posix_fallocate64_l64): Likewise.
18228         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18229         [!__ASSUME_FALLOCATE]: Add comment.
18230
18231 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18232
18233         * sysdeps/unix/sysv/linux/i386/Makefile
18234         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18235         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18236         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18237         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18238         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18239         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18240         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18241
18242 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18243
18244         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18245         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18246         tgamma.
18247         * math/auto-libm-test-out: Regenerated.
18248         * sysdeps/i386/fpu/libm-test-ulps: Update.
18249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18250
18251 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18252
18253         * math/auto-libm-test-in: Add more tests of tgamma.
18254         * math/auto-libm-test-out: Regenerated.
18255         * sysdeps/i386/fpu/libm-test-ulps: Update.
18256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18257
18258         * math/auto-libm-test-in: Add more tests of tanh.
18259         * math/auto-libm-test-out: Regenerated.
18260         * sysdeps/i386/fpu/libm-test-ulps: Update.
18261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18262
18263         * math/auto-libm-test-in: Add more tests of tan.
18264         * math/auto-libm-test-out: Regenerated.
18265         * sysdeps/i386/fpu/libm-test-ulps: Update.
18266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18267
18268         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18269         * math/auto-libm-test-out: Regenerated.
18270         * sysdeps/i386/fpu/libm-test-ulps: Update.
18271         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18272
18273         * math/auto-libm-test-in: Add another test of pow.
18274         * math/auto-libm-test-out: Regenerated.
18275         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18276
18277         * math/auto-libm-test-in: Add more tests of lgamma.
18278         * math/auto-libm-test-out: Regenerated.
18279         * sysdeps/i386/fpu/libm-test-ulps: Update.
18280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18281
18282         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18283         log1p.
18284         * math/auto-libm-test-out: Regenerated.
18285         * sysdeps/i386/fpu/libm-test-ulps: Update.
18286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18287
18288 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18289
18290         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18291         Elf64_Chdr structs and ELFCOMPRESS constants.
18292
18293 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18294
18295         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18296         expm1.
18297         * math/auto-libm-test-out: Regenerated.
18298         * sysdeps/i386/fpu/libm-test-ulps: Update.
18299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18300
18301         * math/auto-libm-test-in: Add more tests of erf and erfc.
18302         * math/auto-libm-test-out: Regenerated.
18303         * sysdeps/i386/fpu/libm-test-ulps: Update.
18304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18305
18306 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18307
18308         * config.h.in (HAVE_AARCH64_BE): Add.
18309
18310 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18311
18312         * math/auto-libm-test-in: Add more tests of csqrt.
18313         * math/auto-libm-test-out: Regenerated.
18314         * sysdeps/i386/fpu/libm-test-ulps: Update.
18315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18316
18317         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18318         * math/auto-libm-test-out: Regenerated.
18319         * sysdeps/i386/fpu/libm-test-ulps: Update.
18320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18321
18322         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18323
18324 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18325
18326         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18327         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18328
18329         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18330         (euidaccess, eaccess): Define as weak aliases.
18331
18332         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18333         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18334         but __suseconds_t is often 'long int' so some sources assume that
18335         type is being used (e.g. they use %ld to print tv_usec).
18336
18337 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18338
18339         [BZ #18007]
18340         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18341         (CVE-2014-8121)
18342         * nss/tst-nss-getpwent.c: New file.
18343         * nss/Makefile (tests): Add new test.
18344
18345 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18346
18347         [BZ #18346]
18348         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18349         exponents less than 48 as cases where high part of mantissa needs
18350         examining to determine whether argument is integral.
18351         * math/libm-test.inc (round_test_data): Add more tests.
18352
18353 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18354
18355         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18356
18357 2015-04-27  David S. Miller  <davem@davemloft.net>
18358
18359         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18360         __tls_get_addr.
18361         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18362
18363 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18364
18365         [BZ#18333]
18366         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18367
18368 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18369
18370         [BZ#18333]
18371         * time/tzset.c (parse_tzname): Return error on memory allocation
18372         failure.
18373         * test-skeleton.c (struct temp_name_list): Change type of name
18374         member to non-const.
18375         (add_temp_file): Create a copy of the file name.
18376         (delete_temp_files): Deallocate memory.
18377         (create_temp_file): Add comment.
18378
18379 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18380
18381         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18382         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18383
18384 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18385
18386         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18387         * sysdeps/arm/configure: Regenerated.
18388
18389 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18390
18391         [BZ #17715]
18392         * time/tzfile.c (__tzfile_read): Check for large values of
18393         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18394         * time/tzset.c (__tzstring_len): New function, based on the old
18395         __tzstring function.
18396         (__tzstring): Call __tzstring_len.
18397         (parse_tzname): New helper function extracted from
18398         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18399         the input string.
18400         (parse_offset): New helper function extracted from
18401         __tzset_parse_tz.  Replace switch with fallthrough with
18402         initialization before sscanf.
18403         (parse_rule): Likewise.
18404         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18405         new-style function definition.
18406         * timezone/Makefile (tests): Add tst-tzset.
18407         (tst-tzset.out): Dependencies on time zone files.
18408         (tst-tzset-ENV): Set TZDIR.
18409         (testdata/XT%): Copy crafted time zone files.
18410         * timezone/README: Mention crafted time zone files.
18411         * timezone/testdata/XT1, timezone/testdata/XT2,
18412         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18413         files.
18414         * timezone/tst-tzset.c: New test.
18415
18416 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18417
18418         * Makeconfig (+gccwarn): Remove -Winline.
18419
18420 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18421
18422         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18423
18424 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18425
18426         * NEWS: Mention sysconf() cache information support for s390.
18427         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18428
18429 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18430
18431         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18432         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18433         (__nearbyint): Likewise.
18434         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18435         (copysignl): Likewise.
18436
18437 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18438
18439         [BZ #18287]
18440         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18441         based on padding.  (CVE-2015-1781)
18442
18443 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18444
18445         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18446         libc-vdso.h.
18447         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18448         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18449         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18450         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18451         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18452         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18453         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18454         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18455         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18456         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18457         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18458         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18459         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18460         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18461         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18462         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18463         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18464         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18465         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18466         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18467         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18468         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18469         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18470
18471 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18472
18473         * stdlib/setenv.c (__add_to_environ):
18474         Dump core quickly if setenv (..., NULL, ...) is called.
18475         This time, do it the right way, and pacify GCC with a pragma.
18476
18477 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18478
18479         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18480         IMAP->l_prev cannot be null, and #if out the code for the contrary
18481         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18482         believe that NS (&_dl_ns[NSID]) could point outside the array.
18483
18484         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18485         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18486         before using NSID as an index.
18487
18488 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18489
18490         [BZ #17825]
18491         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18492         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18493         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18494
18495 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18496
18497         Add preliminary port to Google Native Client on ARM.
18498         * abi-tags (.*-.*-nacl.*): New entry.
18499         * sysdeps/arm/nacl: New directory.
18500         * sysdeps/nacl: New directory.
18501
18502 2015-04-16  David S. Miller  <davem@davemloft.net>
18503
18504         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18505         lowlevellock-futex.h
18506
18507 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18508
18509         * sysdeps/tile/configure.ac: New file.
18510         * sysdeps/tile/configure: Regenerated.
18511
18512 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18513
18514         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18515         conditionals for weak_alias and libc_hidden_weak.
18516         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18517         libc_hidden_weak and weak_alias.
18518         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18519         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18520         and weak_alias for static one.
18521
18522 2015-04-15  David S. Miller  <davem@davemloft.net>
18523
18524         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18525
18526 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18527
18528         [BZ #18206]
18529         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18530           Use signed comparision instead of substraction to avoid
18531           overflow bug.
18532         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18533           Take the sign of ret.
18534         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18535           Do not expect precise return values. Only the sign matters.
18536         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18537         * wcsmbs/test-wcsncmp.c: New File.
18538         * string/test-strncmp.c: Add wcsncmp support.
18539
18540 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18541
18542         [BZ #6792]
18543         * math/w_log1p.c: New file.
18544         * math/w_log1pf.c: Likewise.
18545         * math/w_log1pl.c: Likewise.
18546         * math/Makefile (libm-calls): Add w_log1p.
18547         * math/s_log1pl.c (log1pl): Remove weak_alias.
18548         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18549         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18550         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18551         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18552         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18553         [NO_LONG_DOUBLE] (log1pl): Likewise.
18554         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18555         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18556         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18557         (log1p): Remove long_double_symbol.
18558         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18559         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18560         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18561         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18562         remove weak_alias for corresponding log1p function.
18563         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18564         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18565         * sysdeps/ia64/fpu/w_log1p.c: New file.
18566         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18567         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18568         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18569
18570 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18571
18572         [BZ #18247]
18573         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18574         decimal exponent by 1.
18575         * stdlib/tst-strtod-round-data: Add more tests.
18576         * stdlib/tst-strtod-round.c (tests): Regenerated.
18577
18578 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18579
18580         * math/auto-libm-test-in: Add more tests of clog and clog10.
18581         * math/auto-libm-test-out: Regenerated.
18582         * sysdeps/i386/fpu/libm-test-ulps: Update.
18583         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18584
18585 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18586
18587         * Makeconfig (module-cppflags): Exclude all .v.i files.
18588         (skip-module-cppflags): Variable removed.
18589
18590         * configure.ac (libc_config_ok): Initialize before reading
18591         preconfigure scripts, not after.
18592         * configure: Regenerated.
18593
18594         * test-skeleton.c (TIMEOUT): Move #define to top level.
18595         (main): Grok environment variable TEST_DIRECT.  If set, print
18596         test expectation details into that file and then behave as if
18597         given --direct.
18598
18599 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18600
18601         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18602         warning on 32-bit.
18603
18604 2015-04-08  David S. Miller  <davem@davemloft.net>
18605
18606         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18607
18608 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18609
18610         * math/auto-libm-test-in: Add more tests of atanh.
18611         * math/auto-libm-test-out: Regenerated.
18612         * sysdeps/i386/fpu/libm-test-ulps: Update.
18613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18614
18615         * math/auto-libm-test-in: Add more tests of atan.
18616         * math/auto-libm-test-out: Regenerated.
18617         * sysdeps/i386/fpu/libm-test-ulps: Update.
18618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18619
18620 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18621
18622         * elf/pldd.c (main): Rewrite to use struct
18623         scratch_buffer instead of extend_alloca.
18624         * elf/pldd-xx.c (find_maps): Likewise.
18625         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18626         <alloca.h>.
18627         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18628         scratch_buffer instead of extend_alloca.
18629         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18630         grp/compat-initgroups.c.
18631         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18632         Rewrite to use struct scratch_buffer instead of extend_alloca.
18633         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18634         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18635
18636 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18637
18638         * math/auto-libm-test-in: Add more tests of cbrt.
18639         * math/auto-libm-test-out: Regenerated.
18640         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18641
18642         * math/auto-libm-test-in: Add more tests of cabs.
18643         * math/auto-libm-test-out: Regenerated.
18644         * sysdeps/i386/fpu/libm-test-ulps: Update.
18645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18646
18647         [BZ #18210]
18648         [BZ #18211]
18649         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18650         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18651         computations.
18652         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18653         clog10.
18654         * math/auto-libm-test-out: Regenerated.
18655         * sysdeps/i386/fpu/libm-test-ulps: Update.
18656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18657
18658         [BZ #18197]
18659         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18660         (atan): Set FE_TONEAREST mode for internal computations.
18661         * math/auto-libm-test-in: Add more tests of atan.
18662         * math/auto-libm-test-out: Regenerated.
18663
18664 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18665
18666         [BZ #17930]
18667         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18668
18669 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18670
18671         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18672
18673 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18674
18675         * include/scratch_buffer.h: New file.
18676         * malloc/scratch_buffer_grow.c: Likewise.
18677         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18678         * malloc/scratch_buffer_set_array_size.c: Likewise.
18679         * malloc/tst-scratch_buffer.c: Likewise.
18680         * malloc/Makefile (routines): Add scratch_buffer_grow.
18681         (tests): Add test case.
18682         * malloc/Versions (GLIBC_PRIVATE): Export
18683         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18684         __libc_scratch_buffer_set_array_size.
18685
18686 2015-04-06  Richard Henderson  <rth@redhat.com>
18687
18688         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18689         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18690
18691         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18692         unsigned int before printing.
18693
18694 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18695
18696         [BZ #17596]
18697         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18698         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18699
18700 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18701
18702         * include/libc-internal.h (libc_max_align_t): Define.
18703
18704 2015-04-02  Andreas Schwab  <schwab@suse.de>
18705
18706         [BZ #16850]
18707         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18708
18709 2015-04-02  Mel Gorman  <mgorman@suse.de>
18710
18711         [BZ #17195]
18712         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18713         as well as the main arena.
18714
18715 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18716
18717         [BZ #18185]
18718         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18719         sharing L2 cache to 2 for Silvermont/Knights Landing.
18720
18721 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18722
18723         [BZ #17711]
18724         * config.make.in (have-protected-data): New.
18725         * configure.ac: Check linker support for protected data symbol.
18726         * configure: Regenerated.
18727         * elf/Makefile (modules-names): Add tst-protected1moda and
18728         tst-protected1modb if $(have-protected-data) is yes.
18729         (tests): Add tst-protected1a and tst-protected1b if
18730         $(have-protected-data) is yes.
18731         ($(objpfx)tst-protected1a): New.
18732         ($(objpfx)tst-protected1b): Likewise.
18733         (tst-protected1modb.so-no-z-defs): Likewise.
18734         * elf/tst-protected1a.c: New file.
18735         * elf/tst-protected1b.c: Likewise.
18736         * elf/tst-protected1mod.h: Likewise.
18737         * elf/tst-protected1moda.c: Likewise.
18738         * elf/tst-protected1modb.c: Likewise.
18739
18740 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18741
18742         [BZ #17711]
18743         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18744         indicates it is called from do_lookup_x on relocation against
18745         protected data, skip the data definion in the executable from
18746         copy reloc.
18747         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18748         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18749         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18750         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18751         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18752         otherwise to 0.
18753         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18754         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18755         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18756         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18757         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18758         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18759
18760 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18761
18762         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18763         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18764
18765 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18766
18767         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18768         THREAD_SETMEM_NC.
18769         * sysdeps/x86_64/nptl/tls.h: Ditto.
18770
18771 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18772
18773         * dlfcn/tststatic.c (main): Converted to ...
18774         (do_test): ... this.
18775         (TEST_FUNCTION): New macro.
18776         Include test-skeleton.c.
18777
18778 2015-03-26  Alan Modra  <amodra@gmail.com>
18779
18780         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
18781         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
18782         zero for undefined weak.
18783         (elf_machine_plt_conflict): Similarly.
18784
18785 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18786
18787         * math/auto-libm-test-in: Add more tests of acosh, asinh and
18788         atanh.
18789         * math/auto-libm-test-out: Regenerated.
18790         * sysdeps/i386/fpu/libm-test-ulps: Update.
18791         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18792
18793         * math/auto-libm-test-in: Add another test of asin.
18794         * math/auto-libm-test-out: Regenerated.
18795         * sysdeps/i386/fpu/libm-test-ulps: Update.
18796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18797
18798         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
18799         Remove macro.
18800         (LLL_EBX_REG): Likewise.
18801         (LLL_ENTER_KERNEL): Likewise.
18802
18803         * math/auto-libm-test-in: Add more tests of asin.
18804         * math/auto-libm-test-out: Regenerated.
18805         * sysdeps/i386/fpu/libm-test-ulps: Update.
18806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18807
18808         [BZ #18138]
18809         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
18810         libc_do_syscall_args): New structure.
18811         (INTERNAL_SYSCALL_MAIN_0): New macro.
18812         (INTERNAL_SYSCALL_MAIN_1): Likewise.
18813         (INTERNAL_SYSCALL_MAIN_2): Likewise.
18814         (INTERNAL_SYSCALL_MAIN_3): Likewise.
18815         (INTERNAL_SYSCALL_MAIN_4): Likewise.
18816         (INTERNAL_SYSCALL_MAIN_5): Likewise.
18817         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
18818         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
18819         Replace conditional definitions by conditional definitions of ....
18820         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
18821         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
18822         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
18823         (libpthread-sysdep_routines): Add libc-do-syscall.
18824         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
18825         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
18826         to __NR_futex not 240.
18827
18828 2015-03-25  Alan Modra  <amodra@gmail.com>
18829
18830         * NEWS: Advertise TLS optimization.
18831         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
18832         (DT_PPC_NUM): Increment.
18833         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
18834         (CHECK_STATIC_TLS): Use here.
18835         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
18836         TLS descriptors.
18837         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
18838         * sysdeps/powerpc/dl-tls.c: New file.
18839         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
18840         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
18841         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
18842         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
18843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
18844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18846
18847 2015-03-25  Alan Modra  <amodra@gmail.com>
18848
18849         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
18850         for overlapping .opd entries" to "support...".
18851         * sysdeps/powerpc/powerpc64/configure: Regenerate
18852
18853 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18854
18855         * math/auto-libm-test-in: Add more tests of acos.
18856         * math/auto-libm-test-out: Regenerated.
18857         * sysdeps/i386/fpu/libm-test-ulps: Update.
18858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18859
18860         * math/auto-libm-test-in: Add more tests of expm1.
18861         * math/auto-libm-test-out: Regenerated.
18862         * sysdeps/i386/fpu/libm-test-ulps: Update.
18863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18864
18865 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
18866
18867         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18868         * math/auto-libm-test-out: Regenerated.
18869         * sysdeps/i386/fpu/libm-test-ulps: Update.
18870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18871
18872         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
18873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18874
18875         * math/auto-libm-test-in: Add more tests of log2.
18876         * math/auto-libm-test-out: Regenerated.
18877         * sysdeps/i386/fpu/libm-test-ulps: Update.
18878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18879
18880 2015-03-23  Roland McGrath  <roland@hack.frob.com>
18881
18882         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
18883         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
18884         _IO_IS_APPENDING bit in READ_WRITE instead.
18885
18886 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18887
18888         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
18889         (__determine_cpumask_size): Replace extend_alloca with a
18890         variable-length array.  Do not treat res == 0 as an error.
18891
18892 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18893
18894         [BZ #18100]
18895         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
18896         and integer overflow.
18897         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
18898         (main): Add integer overflow tests.
18899         * manual/pattern.texi (Calling Wordexp): Document additional use
18900         for WRDE_SYNTAX.
18901
18902 2015-03-23  Alan Modra  <amodra@gmail.com>
18903
18904         * config.h.in: Remove HAVE_ASM_PPC_REL16.
18905         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
18906         and false branch of conditional.
18907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
18908         Likewise.
18909
18910 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
18911
18912         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
18913         libc-modules.h
18914         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
18915         unused declaration of _hurd_intr_rpc_msg_in_trap.
18916         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
18917         defined instead of whether it is non-zero.
18918         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
18919         input constraint instead of both input and output constraint.  Use ecx
18920         clobber instead of %ecx.
18921         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
18922         mutex_unlock): Use a statement expression instead of an expression list.
18923         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
18924         type to vm_size_t instead of vm_address_t.
18925         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
18926         defined instead of whether it is non-zero.
18927         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
18928         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
18929         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
18930         comparisons with mapaddr.
18931         * nscd/nscd-client.h: Include <time.h>.
18932         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
18933         9th parameter to __vm_region instead of int.
18934         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
18935         * scripts/check-local-headers.sh (exclude): Add device/,
18936         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
18937         cthreads.h.
18938
18939 2015-03-19  Roland McGrath  <roland@hack.frob.com>
18940
18941         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
18942         to account for alignment padding.
18943         * sysdeps/arm/memmove.S: Likewise.
18944
18945 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
18946
18947         * sysdeps/unix/sysv/linux/generic/README: New file.
18948
18949 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
18950
18951         [BZ #18138]
18952         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
18953         (futex_abstimed_wait)
18954         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
18955         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
18956         of lll_futex_timed_wait.
18957
18958 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
18959
18960         [BZ #17542]
18961         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
18962
18963 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
18964
18965         [BZ #17090]
18966         [BZ #17620]
18967         [BZ #17621]
18968         [BZ #17628]
18969         * NEWS: Update.
18970         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
18971         entries with Static TLS too.  Skip entries past the end of the
18972         allocated DTV, from Alan Modra.
18973         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
18974         Static TLS DTV entry set up from...
18975         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
18976         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
18977         * nptl/allocatestack.c (init_one_static_tls): ... and here...
18978         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
18979         for Static TLS.
18980         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
18981         that the slot we find is associated with the given map before
18982         using its generation count.
18983         * nptl_db/db_info.c: Include ldsodefs.h.
18984         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
18985         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
18986         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
18987         (link_map::l_tls_offset): New struct field.
18988         (dtv_t::counter): Likewise.
18989         (rtld_global): New struct.
18990         (_rtld_global): New rtld variable.
18991         (dl_tls_dtv_slotinfo_list): New rtld global field.
18992         (dtv_slotinfo_list): New struct.
18993         (dtv_slotinfo): Likewise.
18994         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
18995         (td_lookup): Rename to...
18996         (td_mod_lookup): ... this.  Use new mod parameter instead of
18997         LIBPTHREAD_SO.
18998         * nptl_db/td_thr_tlsbase.c: Include link.h.
18999         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19000         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19001         addresses even if the DTV is out of date or missing them.
19002         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19003         index zero-length arrays.
19004         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19005         (td_lookup): Make it a macro implemented in terms of...
19006         (td_mod_lookup): ... this declaration.
19007         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19008         (DB_MAIN_VARIABLE): Likewise.
19009
19010 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19011
19012         [BZ #18134]
19013         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19014
19015 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19016
19017         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19018
19019 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19020
19021         [BZ #18128]
19022         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19023         (atomic_add, atomic_increment_and_test)
19024         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19025
19026 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19027
19028         * stdlib/setenv.c (__add_to_environ):
19029         Dump core quickly if setenv (..., NULL, ...) is called.
19030
19031 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19032
19033         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19034         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19035         all the necessary asm magic in one place.
19036         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19037         using those.
19038
19039 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19040
19041         [BZ #14906]
19042         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19043         traced file mtime. Use consistent log message.
19044         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19045         (register_traced_file): Call install_watches. Always set mtime.
19046         (invalidate_cache): Iterate over all trace files. Call install_watches.
19047         (inotify_check_files): Don't inline. Handle watching parent
19048         directories and configuration file movement in and out.
19049         (handle_inotify_events): New function.
19050         (main_loop_poll): Call handle_inotify_events.
19051         (main_loop_epoll): Likewise.
19052         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19053         (struct traced_file): Use array of inotify fds. Add parent directory,
19054         and basename.
19055         (struct database_dyn): Remove unused file_mtime.
19056         (init_traced_file): New inline function.
19057         (define_traced_file): New macro.
19058         * nss/nss_db/db-init.c: Use define_traced_file.
19059         (_nss_db_init): Use init_traced_file.
19060         * nss/nss_files/files-init.c: Use define_traced_file.
19061         (_nss_files_init): Use init_traced_file.
19062
19063 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19064
19065         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19066         [_LIBC]: Do not include <stdlib.h>.
19067         [!_LIBC] (abort): Remove declaration.
19068         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19069         _FP_STATIC_ASSERT instead of conditionally calling abort.
19070         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19071         (_FP_EXTEND_CNAN): Likewise.
19072         (FP_TRUNC): Likewise.
19073         (__FP_CLZ): Likewise.
19074         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19075
19076 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19077
19078         * manual/string.texi (XPG basename): Fix prototype.
19079
19080 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19081
19082         [BZ #18080]
19083         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19084         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19085         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19086         (__setcontext): Likewise.
19087         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19088         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19089         Call rt_sigprocmask syscall one time to set new signal mask
19090         and retrieve the current signal mask instead of two calls.
19091         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19092         (__swapcontext): Likewise.
19093         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19094         * stdlib/tst-setcontext2.c: New file.
19095
19096 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19097
19098         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19099
19100 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19101
19102         [BZ #18093]
19103         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19104         the wrong size.
19105
19106 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19107
19108         [BZ #18043]
19109         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19110
19111 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19112
19113         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19114         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19115         Remove define.
19116         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19117         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19118         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19119         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19120         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19121         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19122         define.
19123         * nptl_db/td_symbol_list.c (td_lookup): Remove
19124         HAVE_ASM_GLOBAL_DOT_NAME code.
19125         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19126         HAVE_ASM_GLOBAL_DOT_NAME check.
19127         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19128         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19129         (DOT_LABEL): Remove define.
19130         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19131         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19132         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19133         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19134         (__TLS_GET_ADDR): Likewise.
19135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19136         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19137
19138 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19139
19140         [BZ #18111]
19141         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19142         (_FPU_SETCW): Initialize cw from fpsr before storing.
19143         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19144         (fesetexceptflag): Rewrite using fpu_control.h.
19145         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19146
19147 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19148
19149         [BZ #18110]
19150         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19151         asms.
19152         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19153
19154 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19155
19156         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19157         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19158         abort.
19159         (_FP_FMA): Likewise.
19160         (_FP_DIV): Likewise.
19161
19162 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19163
19164         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19165         with 0 in that case.
19166         * Makefile (summarize-tests): New canned sequence, factored out of
19167         commands for targets tests and xtests.  Display summary lines that
19168         don't start with PASS: or XFAIL: rather than ones that do start with
19169         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19170         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19171         do start with ERROR: or FAIL:.
19172         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19173         (except for [$(build-shared) = yes]).
19174         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19175         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19176         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19177         * nptl/Makefile: Revert 2015-03-04 changes.
19178         [$(CXX) empty] (tests-unsupported): New variable.
19179         * debug/Makefile: Likewise.
19180
19181         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19182         gnulib file.  Replace __attribute with __attribute__ throughout.
19183
19184 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19185
19186         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19187
19188 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19189
19190         [BZ #18104]
19191         * math/auto-libm-test-in: Add another test of pow.
19192         * math/auto-libm-test-out: Regenerated.
19193
19194 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19195
19196         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19197         $(config-cflags-nofma).
19198
19199 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19200
19201         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19202         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19203         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19204         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19205         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19206         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19207         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19208         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19209         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19210         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19211         Add comment on closing #endif.
19212
19213 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19214
19215         * posix/wordexp.c (CHAR_IN_SET): New macro.
19216         (parse_param): Use it.
19217
19218 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19219
19220         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19221
19222 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19223
19224         [BZ #18043]
19225         * posix/wordexp.c (parse_param): Fix buffer overflow.
19226         * posix/wordexp-test.c (test_case): Add test case.
19227
19228 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19229
19230         [BZ #18042]
19231         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19232         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19233
19234 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19235
19236         [BZ #18043]
19237         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19238         (do_bz18043): Delete.
19239         (at_page_end): New.
19240         (testit): Refactor to have words at the edge of unreadable page.
19241
19242 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19243
19244         [BZ #16734]
19245         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19246         Cleanup read-only streams as well.
19247         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19248
19249 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19250
19251         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19252         <bits/libc-lockP.h>
19253
19254 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19255
19256         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19257         on [__KERNEL__].
19258         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19259         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19260         * soft-fp/op-common.h (_FP_DECL): Likewise.
19261
19262 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19263
19264         * elf/ifuncdep2.c (global): Replace
19265         __attribute__((visibility("protected"))) with
19266         asm (".protected global").
19267         * elf/ifuncmod1.c (global): Likewise.
19268         * elf/ifuncmod5.c (global): Likewise.
19269
19270 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19271
19272         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19273         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19274
19275 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19276
19277         * manual/install.texi (Configuring and compiling):
19278         Document test-wrapper-env-only.
19279         * INSTALL: Regenerated.
19280
19281 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19282
19283         [BZ #18043]
19284         * posix/wordexp.c (parse_param): Fix buffer overflow.
19285         * posix/wordexp-test.c (do_bz18043): Add test case.
19286
19287 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19288
19289         * time/tst-strptime2.c (do_test): Ensure failing tests are
19290         reported correctly.
19291         * time/tst-strptime3.c (do_test): Likewise.
19292
19293 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19294
19295         Fix aio_error thread-safety.
19296         * sysdeps/pthread/aio_error.c: New file
19297         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19298         synchronization.
19299
19300 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19301
19302         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19303         (group_number, vfprintf): Use it.
19304         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19305         (JUMP, REF): Use it.
19306         (WORK_BUFFER_SIZE): New enum constant.
19307         (process_arg, vfprintf): Use it.
19308
19309 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19310
19311         * manual/errno.texi (Error Messages): Complete example function
19312         by adding missing #define.
19313         (program_invocation_name): Add statement indicating GNU
19314         extension and reference which header file declares the variable.
19315         (program_invocation_short_name): Likewise.
19316
19317 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19318
19319         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19320         compatibility note.
19321
19322 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19323
19324         * Makeconfig (test-wrapper-env-only): New variable.
19325         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19326         then use that with $(test-wrapper-env-only) rather than using
19327         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19328
19329 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19330
19331         [BZ #18082]
19332         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19333         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19334         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19335         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19336         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19337         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19338         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19339         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19340         Likewise.
19341         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19342         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19343         Likewise.
19344         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19345         Likewise.
19346         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19347         Likewise.
19348         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19349         Likewise.
19350         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19351         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19352         Likewise.
19353         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19354         Likewise.
19355         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19356         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19357
19358 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19359
19360         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19361         (ETH_ALEN): New macro.
19362         (struct ether_addr): Use it for length of ether_addr_octet.
19363
19364         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19365         (setdb): Don't call __nss_configure_lookup for "rpc".
19366         (do_test): Don't call test_rpc.
19367         (output_rpcent, test_rpc): Functions moved ...
19368         * sunrpc/test-rpcent.c: ... to this new file.
19369         * sunrpc/Makefile (tests): Add it.
19370
19371         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19372         __xpg_sigpause.
19373         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19374         * nptl/tst-signal6.c: Likewise.
19375         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19376         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19377
19378         * configure.ac (libc_cv_cxx_link_ok): New check.
19379         Reset CXX to empty if it fails to link.
19380         * configure: Regenerated.
19381         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19382         bug-atexit3-lib only if $(CXX) is nonempty.
19383         * nptl/Makefile (tests): Likewise for tst-cancel24.
19384         (tests, tests-static): Likewise for tst-cancel24-static.
19385         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19386         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19387         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19388         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19389
19390 2015-03-04  Andreas Schwab  <schwab@suse.de>
19391
19392         [BZ #17631]
19393         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19394         for non-GCC compilers.
19395         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19396         Likewise.
19397
19398 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19399
19400         [BZ #17776]
19401         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19402         integer before bitwise and assembly operations.
19403         (feclearexcept): Likewise.
19404         * math/test-fenvinline.c: New file.
19405         * math/Makefile: Add test-fenvinline test.
19406
19407 2015-03-03  Alan Modra  <amodra@gmail.com>
19408
19409         [BZ #16512]
19410         * scripts/localplt.awk: Strip off symbol version.
19411         * NEWS: Mention bug fix.
19412
19413 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19414
19415         * sysdeps/pthread/timer_routines.c
19416         (timer_free_list, thread_free_list, thread_active_list): Make static.
19417
19418 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19419
19420         [BZ #17779]
19421         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19422         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19423         Undefine.
19424         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19425         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19426         Likewise.
19427         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19428         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19429         Likewise.
19430
19431 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19432
19433         [BZ #18036]
19434         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19435         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19436
19437 2015-03-02  Andreas Schwab  <schwab@suse.de>
19438
19439         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19440         variable name.
19441
19442 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19443
19444         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19445         Return error status.
19446
19447 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19448
19449         [BZ #15969]
19450         * locale/findlocale.c (_nl_find_locale): Introduce const
19451         version of loc_name and drop unsafe type casts.
19452
19453 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19454
19455         * dlfcn/tststatic2.c (main): Converted to ...
19456         (do_test): ... this.
19457         (TEST_FUNCTION): New macro.
19458         Include test-skeleton.c.
19459
19460 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19461
19462         [BZ #17711]
19463         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19464         (tests-pie): Add vismain.
19465         (CFLAGS-vismain.c): New.
19466         * elf/vismain.c: Add comments for PIE requirement.
19467
19468 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19469
19470         [BZ #18046]
19471         [BZ #18047]
19472         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19473         0x1p-56L as threshold for just returning the argument.
19474         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19475         0x1p-32L as threshold for just returning the argument.
19476         * math/auto-libm-test-in: Add more tests of atanh.
19477         * math/auto-libm-test-out: Regenerated.
19478         * sysdeps/i386/fpu/libm-test-ulps: Update.
19479         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19480
19481 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19482
19483         * string/bcopy.c (bcopy): Call memmove for performance.
19484
19485 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19486
19487         * string/bzero.c (__bzero): Call memset for performance.
19488
19489 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19490
19491         [BZ #18068]
19492         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19493         to 00100000.
19494
19495 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19496
19497         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19498
19499 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19500
19501         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19502         (__kernel_standard): Use CSTR macro when setting exc.name.
19503         * sysdeps/ieee754/Makefile [$(subdir) = math]
19504         (CFLAGS-k_standard.c): Remove variable.
19505
19506         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19507         setting p and q from "else if" to "else".
19508         (qzero): Likewise.
19509         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19510         (qone): Likewise.
19511         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19512         (qzerof): Likewise.
19513         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19514         (qonef): Likewise.
19515         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19516         (qzero): Likewise.
19517         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19518         (qone): Likewise.
19519
19520         [BZ #18038]
19521         [BZ #18039]
19522         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19523         return pi/2 for arguments below 0x1p-113L.
19524         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19525         return pi/2 for arguments below 0x1p-106L.
19526         * math/auto-libm-test-in: Add more tests of acos.
19527         * math/auto-libm-test-out: Regenerated.
19528
19529         [BZ #16351]
19530         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19531         (MO): New macro.
19532         (__ieee754_asin): Force underflow exception for results with small
19533         absolute value.
19534         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19535         (MO): New macro.
19536         (__ieee754_asinf): Force underflow exception for results with
19537         small absolute value.
19538         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19539         (__ieee754_asin): Force underflow exception for results with small
19540         absolute value.
19541         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19542         (__ieee754_asinf): Force underflow exception for results with
19543         small absolute value.
19544         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19545         (__ieee754_asinl): Force underflow exception for results with
19546         small absolute value.
19547         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19548         (__ieee754_asinl): Force underflow exception for results with
19549         small absolute value.
19550         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19551         (__ieee754_asinl): Force underflow exception for results with
19552         small absolute value.
19553         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19554         Include <math.h>.
19555         * math/auto-libm-test-in: Do not mark underflow exceptions as
19556         possibly missing for bug 16351.
19557         * math/auto-libm-test-out: Regenerated.
19558
19559         [BZ #18030]
19560         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19561         of power of 2 down when low part has opposite sign.
19562         * math/libm-test.inc (logb_test_data): Add more tests.
19563
19564 2015-02-26  Andreas Schwab  <schwab@suse.de>
19565
19566         [BZ #18032]
19567         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19568         over collating symbol inside a bracket expression.  Minor cleanup.
19569         * posix/tst-fnmatch3.c (do_test): Add test case.
19570
19571 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19572
19573         [BZ #18029]
19574         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19575         Adjust exponent of power of 2 down when low part has opposite
19576         sign.
19577         * math/libm-test.inc (ilogb_test_data): Add more tests.
19578
19579 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19580
19581         [BZ #15969]
19582         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19583         the previous change.
19584
19585         [BZ #15969]
19586         * locale/findlocale.c (_nl_find_locale): Retry archive search
19587         after alias expansion.
19588
19589 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19590
19591         * iconv/tst-iconv3.c (main): Converted to ...
19592         (do_test): ... this.
19593         (TEST_FUNCTION): New macro.
19594         Include test-skeleton.c.
19595
19596         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19597         (convert): Make function static.
19598         (test_unalign): Likewise.  Add const to argument pointee types.
19599         (main): Replace with static function do_test.
19600         Print "Succeeded." only if RET is zero.
19601         (TEST_FUNCTION): New macro.
19602         Include test-skeleton.c.
19603
19604         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19605         returns a null pointer.
19606
19607 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19608
19609         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19610         to __memcpy_ppc only for static builds.
19611
19612 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19613
19614         [BZ #18020]
19615         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19616         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19617         * math/auto-libm-test-in: Add more tests of asinh.
19618         * math/auto-libm-test-out: Regenerated.
19619         * sysdeps/i386/fpu/libm-test-ulps: Update.
19620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19621
19622 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19623
19624         [BZ #15850]
19625         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19626         and ip6_mtuinfo definitions here.
19627         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19628         in this define too.  Update comment.
19629
19630 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19631
19632         * elf/sprof.c (load_shobj): Tweak error message to match others.
19633
19634 2015-02-24  Kevin Easton  <kevin@guarana.org>
19635
19636         [BZ #16145] (partial fix)
19637         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19638         to reduce lock contention.
19639
19640 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19641
19642         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19643         (struct timex): Update time comment.
19644         (ADJ_SETOFFSET): Define.
19645
19646 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19647
19648         [BZ #18019]
19649         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19650         2**56 not 2**28 as threshold for log (2x) formula.
19651         * math/auto-libm-test-in: Add more tests of acosh.
19652         * math/auto-libm-test-out: Regenerated.
19653         * sysdeps/i386/fpu/libm-test-ulps: Update.
19654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19655
19656 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19657
19658         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19659         parenthesis around the buf assignment.
19660         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19661
19662 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19663
19664         [BZ #16783]
19665         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19666         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19667         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19668         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19669         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19670         * math/libm-test.inc (scalb_test_data): Add more tests.
19671
19672 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19673
19674         [BZ #17916]
19675         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19676         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19677
19678 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19679
19680         [BZ #17523]
19681         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19682         * io/bits/fcntl2.h (open): Use it.
19683         (openat): Likewise.
19684         * io/open.c (__libc_open): Likewise.
19685         * io/open64.c (__libc_open64): Likewise.
19686         * io/open64_2.c (__open64_2): Likewise.
19687         * io/open_2.c (__open_2): Likewise.
19688         * io/openat.c (__openat): Likewise.
19689         * io/openat64.c (__openat64): Likewise.
19690         * io/openat64_2.c (__openat64_2): Likewise.
19691         * io/openat_2.c (__openat_2): Likewise.
19692         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19693         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19694         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19695         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19696         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19697         (__open_nocancel): Likewise.
19698         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19699         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19700         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19701
19702 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19703
19704         [BZ #14841]
19705         * resolv/gethnamaddr.c (getanswer): Skip logging if
19706         RES_USE_DNSSEC is set.
19707         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19708
19709 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19710
19711         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19712
19713 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19714
19715         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19716         201304L, for Unicode 7.
19717
19718 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19719
19720         [BZ #17836]
19721         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19722         shared library.  Add gmon-start.os otherwise.
19723         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19724         $(objpfx)gmon-start.os if builing shared library.
19725         ($(objpfx)g$(static-start-installed-name)): Likewise.
19726
19727 2015-02-23  Andreas Schwab  <schwab@suse.de>
19728
19729         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19730
19731 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19732
19733         [BZ #17269]
19734         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19735         (enlarge_userbuf): Likewise.
19736
19737 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19738
19739         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19740         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19741         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19742         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19743
19744 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19745
19746         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19747         expression inside statement expression.
19748
19749 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19750
19751         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19752         <sysdeps/nptl/lowlevellock.h> and remove macros and
19753         functions that are now defined there.
19754         (SYS_futex): Remove.
19755         (lll_compare_and_swap): Remove.
19756         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19757
19758 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19759
19760         [BZ #17999]
19761         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19762         instead of scandirat.
19763         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19764         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19765         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19766         __scandirat.
19767         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19768         (__scandirat): Declare.  Use libc_hidden_proto.
19769         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19770         Remove variable.
19771         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19772
19773 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19774
19775         [BZ #15319]
19776         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
19777         (MO): New macro.
19778         (__ieee754_atan2): For results with small absolute value, force
19779         underflow exception and remove excess range and precision from
19780         return value.
19781         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
19782         (MO): New macro.
19783         (__ieee754_atan2f): For results with small absolute value, force
19784         underflow exception and remove excess range and precision from
19785         return value.
19786         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
19787         (MO): New macro.
19788         (__atan): For results with small absolute value, force underflow
19789         exception and remove excess range and precision from return value.
19790         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
19791         (MO): New macro.
19792         (__atanf): For results with small absolute value, force underflow
19793         exception and remove excess range and precision from return value.
19794         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
19795         <math.h>.
19796         (__ieee754_atan2): Force underflow exception for results with
19797         small absolute value.
19798         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
19799         <math_private.h>.
19800         (atan): Force underflow exception for results with small absolute
19801         value.
19802         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
19803         (__atanf): Force underflow exception for results with small
19804         absolute value.
19805         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
19806         <math.h>.
19807         (__atanl): Force underflow exception for results with small
19808         absolute value.
19809         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
19810         (__atanl): Force underflow exception for results with small
19811         absolute value.
19812         * sysdeps/x86/fpu/bits/mathinline.h
19813         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
19814         (__ieee754_atan2): Only define inline for long double.
19815         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
19816         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
19817         * math/auto-libm-test-in: Do not mark underflow exceptions as
19818         possibly missing for bug 15319.  Add more tests of atan2.
19819         * math/auto-libm-test-out: Regenerated.
19820         * math/libm-test.inc (casin_test_data): Do not mark underflow
19821         exceptions as possibly missing for bug 15319.
19822         (casinh_test_data): Likewise.
19823         * sysdeps/i386/fpu/libm-test-ulps: Update.
19824
19825 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
19826
19827         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
19828         * sysdeps/mips/bits/endian.h: Fix comments.
19829
19830 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19831
19832         [BZ #17996]
19833         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
19834         (hdestroy_r): Likewise.
19835         (hsearch_r): Likewise.
19836         (__hcreate_r): Declare and use libc_hidden_proto.
19837         (__hdestroy_r): Likewise.
19838         (__hsearch_r): Likewise.
19839         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
19840         (hcreate): Call __hcreate_r instead of hcreate_r.
19841         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
19842         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
19843         as weak alias of __hcreate_r.
19844         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
19845         __hdestroy_r.
19846         (hsearch_r): Rename to __hsearch_r and define as weak alias of
19847         __hsearch_r.
19848         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
19849         Remove variable.
19850         (test-xfail-XPG4/search.h/linknamespace): Likewise.
19851         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
19852         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
19853         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
19854
19855 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19856
19857         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
19858         arena_lock into a single arena_get.
19859
19860 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
19861
19862         * dl-reloc.c: Inlucde libc-internal.h.
19863         (_dl_try_allocate_static_tls): Call ALIGN_UP.
19864         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
19865         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
19866         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
19867         (grow_heap): Likewise.
19868         * malloc/malloc.c: Include libc-internal.h.
19869         (do_check_malloc): Call powerof2.
19870         (sysmalloc): Use pagesize. Call ALIGN_UP.
19871         (systrim): Use pagesize.
19872         (mremap_chunk): Use pagesize. Call ALIGN_UP.
19873         (__libc_valloc): Use pagesize.
19874         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
19875
19876 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19877
19878         [BZ #17991]
19879         * include/sys/resource.h (__getrlimit64): Declare.  Use
19880         libc_hidden_proto.
19881         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
19882         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
19883         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
19884         getrlimit64.
19885         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
19886         __getrlimit64.
19887         [!getrlimit64] (getrlimit64): Define as weak alias of
19888         __getrlimit64.  Use libc_hidden_weak.
19889         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
19890         using __getrlimit64 not __new_getrlimit64.
19891         (__GI_getrlimit64): Likewise.
19892         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
19893         Likewise.
19894         (__GI_getrlimit64): Likewise.
19895         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
19896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
19897         (getrlimit): Add __getrlimit64 alias.
19898         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
19899         Likewise.
19900         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
19901         Remove variable.
19902         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
19903         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
19904
19905 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
19906
19907         * libio/fileops.c: Add missing sys/mman.h
19908         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
19909
19910 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19911
19912         * manual/math.texi (Errors in Math Functions): Clarify goals
19913         regarding inexact and underflow exceptions.
19914
19915 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19916
19917         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
19918         * sysdeps/mips/memset.S: Ditto.
19919
19920 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19921
19922         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
19923
19924 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
19925
19926         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
19927         (__v1longjmp): Remove versioned symbol.
19928         (__v1siglongjmp): Remove alias and versioned symbol.
19929         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
19930         (__v2siglongjmp): Likewise.
19931
19932 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19933
19934         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
19935
19936 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
19937
19938         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
19939
19940 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19941
19942         [BZ #17987]
19943         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
19944         zero result does not depend on the sign resulting from
19945         subtraction.
19946         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19947         Likewise.
19948         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19949         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19950         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19951         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19952         * math/libm-test.inc (remquo_test_data): Add more tests.
19953
19954 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19955
19956         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
19957         Problem reported by J William Piggott.
19958
19959 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19960
19961         [BZ #17978]
19962         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
19963         products 4 * y and 2 * y where those would overflow.
19964         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19965         Likewise.
19966         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19967         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19968         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19969         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19970         * math/libm-test.inc (remquo_test_data): Add more tests.
19971
19972         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
19973
19974         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
19975         [defined _COMPILING_NEWLIB].
19976         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
19977         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
19978
19979         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
19980         [!defined __mips_isa_rev || __mips_isa_rev < 6].
19981
19982 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19983
19984         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
19985         acquired.
19986
19987 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
19988
19989         [BZ #17792]
19990         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
19991         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
19992         HOST_STACK_END_ADDR): Likewise.
19993
19994 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
19995
19996         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
19997         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
19998         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
19999
20000 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20001
20002         * sysdeps/generic/c++-types.data: New file.
20003         * sysdeps/generic/ld.abilist: New file.
20004         * sysdeps/generic/libBrokenLocale.abilist: New file.
20005         * sysdeps/generic/libanl.abilist: New file.
20006         * sysdeps/generic/libc.abilist: New file.
20007         * sysdeps/generic/libcrypt.abilist: New file.
20008         * sysdeps/generic/libdl.abilist: New file.
20009         * sysdeps/generic/libm.abilist: New file.
20010         * sysdeps/generic/libpthread.abilist: New file.
20011         * sysdeps/generic/libresolv.abilist: New file.
20012         * sysdeps/generic/librt.abilist: New file.
20013
20014 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20015
20016         [BZ #17569]
20017         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20018         Compute absolute value of x as modified by fmod, not original
20019         value of x.
20020         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20021         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20022         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20023         RUN_TEST_ffI_f1_mod8.
20024         (remquo_test_data): Add more tests.
20025
20026 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20027
20028         * sysdeps/init_array/pt-crti.S: New file.
20029
20030 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20031
20032         [BZ #17967]
20033         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20034         __builtin_fmaf instead of relying on contraction of a * b + c.
20035
20036 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20037
20038         [BZ #17969]
20039         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20040         node.
20041
20042 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20043
20044         [BZ #17964]
20045         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20046         __builtin_fma instead of relying on contraction of a * b + c.
20047
20048 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20049
20050         * Makeconfig (ASFLAGS): Add -Werror=undef.
20051         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20052         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20053         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20054
20055         * Makeconfig (after-link): New variable.
20056         (+link-pie, +link-pie-tests): Use it.
20057         (+link-static, +link-static-tests): Likewise.
20058         (+link, +link-tests): Likewise.
20059         * Makerules (build-module, build-module-asneeded): Likewise.
20060         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20061         Likewise.
20062         * elf/Makefile ($(objpfx)ld.so): Likewise.
20063
20064 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20065
20066         [BZ #17965]
20067         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20068         both struct timeval and struct timespec.
20069
20070 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20071
20072         [BZ #16560]
20073         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20074         and redefine.
20075         (__ieee754_exp2l): Do not multiply small fractional parts by
20076         M_LN2l.
20077         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20078         small argument.
20079         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20080         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20081         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20082         * math/auto-libm-test-in: Add more tests of exp2.
20083         * math/auto-libm-test-out: Regenerated.
20084
20085 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20086
20087         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20088         unaligned path.
20089
20090 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20091
20092         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20093         little endian.
20094
20095 2015-02-12  Andreas Schwab  <schwab@suse.de>
20096
20097         [BZ #15790]
20098         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20099         Filter out elision flags from value returned in kind.
20100         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20101         * nptl/tst-pthread-mutexattr.c: New file.
20102
20103 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20104
20105         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20106         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20107         into gnu-gnu, and update comment to refer to abi-tags.
20108
20109 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20110
20111         [BZ #15467]
20112         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20113         (__sincos): Set errno to EDOM for infinite argument.
20114         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20115         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20116         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20117         (__sincosl): Set errno to EDOM for infinite argument.
20118         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20119         (__sincosl): Set errno to EDOM for infinite argument.
20120         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20121         (__sincosl): Set errno to EDOM for infinite argument.
20122         * math/libm-test.inc (sincos_test_data): Test errno setting.
20123
20124 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20125
20126         * string/strxfrm_l.c: Remove #define STRCMP.
20127         * string/strcoll_l.c: Remove #define STRLEN.
20128         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20129         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20130
20131 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20132
20133         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20134         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20135         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20136         * sysdeps/mips/mips64/Makefile: ... here.
20137         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20138         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20139         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20140         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20141         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20142         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20143         * sysdeps/mips/mips64/n64/Implies: Likewise.
20144
20145 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20146
20147         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20148         <sys/time.h>, <string.h>, and <errno.h>.
20149         (dest_offset, dest_address, value, zero): Remove unused variables.
20150         (ldouble): Remove typedef.
20151         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20152         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20153         1).  Fix code style.
20154         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20155         (check): Function removed.
20156         (CHECK): New macro.
20157         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20158         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20159         Don't call set_sigaction_FP and remove_sigaction_FP here.
20160         (ldouble_test): Just use 'long double' as macro argument, no need for
20161         the 'ldouble' typedef.
20162         (do_test): Set up SIGFPE handler at start, using plain signal rather
20163         than sigaction.  Fix code style.
20164
20165 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20166
20167         [BZ #17949]
20168         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20169         jump label.
20170
20171 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20172
20173         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20174         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20175
20176         * sysdeps/powerpc/configure.ac: Remove file.
20177         * sysdeps/powerpc/configure: Likewise.
20178
20179         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20180         [sysdep_routines]: Remove wordcopy-power6 object.
20181         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20182         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20183         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20184         (__memmove_ppc32): Likewise.
20185         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20186         file.
20187         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20188         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20189         Remove preprocessor.
20190
20191         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20192         [sysdep_routines]: Remove wide chars objects.
20193         [wcsmbs]: New rule for wide char objects.
20194
20195         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20196         Remove wordcopy-power6 obejct.
20197         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20198         Use local call for wordcopy and memcpy symbols.
20199         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20200         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20201         implementation for loader.
20202         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20203
20204         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20205         Remove wordcopy-power7 object.
20206         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20207         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20208         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20209         (_wordcopy_fwd_dest_aligned): Likewise.
20210         (_wordcopy_bwd_aligned): Likewise.
20211         (_wordcopy_bwd_dest_aligned): Likewise.
20212
20213         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20214         Rewrite to call __memmove_ppc instead of include default
20215         implementation.
20216
20217         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20218         Remove wide chars objects.
20219         [wcsmbs]: New rule for wide char objects.
20220
20221 2015-02-09  Andreas Schwab  <schwab@suse.de>
20222
20223         [BZ #17912]
20224         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20225         in terms of __O_DIRECTORY.
20226
20227 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20228
20229         * time/getdate.c: Include <stdbool.h>.
20230         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20231         call PTR_MANGLE.
20232         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20233         PTR_DEMANGLE.
20234
20235 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20236
20237         Add ersatz _Static_assert on older C hosts
20238         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20239         pre-C11 C platform that is not known to support _Static_assert.
20240
20241 2015-02-07  Richard Braun  <rbraun@sceen.net>
20242
20243         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20244         sigstate.
20245         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20246
20247 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20248
20249         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20250         priority against unexistent AIO_PRIO_DELTA_MAX.
20251         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20252         instead of int.
20253         * misc/fchflags.c (fchflags): Likewise.
20254         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20255         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20256         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20257         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20258         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20259         Declare macros.
20260         [__USE_MISC] (chflags, fchflags): Declare functions.
20261         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20262         EINVAL when nfds is greater than FD_SETSIZE.
20263         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20264         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20265         45.
20266         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20267         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20268         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20269         MACH_RCV_TIMED_OUT.
20270         * hurd/hurd/signal.h (_hurd_self_sigstate,
20271         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20272         Explicit casts from void *.
20273         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20274         * abi-tags: Rename gnu-gnu os into gnu.
20275
20276         [BZ #4719]
20277         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20278         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20279         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20280         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20281         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20282         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20283
20284         [BZ #17944]
20285         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20286         duplicates ADDR->sun_path with sockaddr LEN limitation.
20287         * sysdeps/mach/hurd/connect.c: Include <string.h>
20288         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20289         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20290         * sysdeps/mach/hurd/sendto.c: Likewise.
20291         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20292         implementing it by hand.
20293
20294 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20295
20296         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20297         Use sfi_breg on ldr.
20298         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20299         Likewise.
20300
20301         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20302         it's defined.
20303         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20304         Test SIGSETXID only if it's defined.
20305
20306         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20307
20308         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20309         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20310
20311         * nptl/tst-align2.c: Moved ...
20312         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20313         * nptl/Makefile (tests): Remove tst-align2.
20314         * sysdeps/unix/sysv/linux/Makefile
20315         [$(subdir) = nptl] (tests): Add tst-align-clone.
20316         * nptl/tst-getpid1.c: Moved ...
20317         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20318         * nptl/tst-getpid2.c: Moved ...
20319         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20320         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20321         * sysdeps/unix/sysv/linux/Makefile
20322         [$(subdir) = nptl] (tests): ... here.
20323         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20324         * sysdeps/unix/sysv/linux/Makefile
20325         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20326
20327         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20328         Drop trailing \n from perror argument.  Use return rather than exit.
20329
20330         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20331         on [SA_SIGINFO].
20332         * nptl/tst-cancel21.c (do_test): Likewise.
20333         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20334         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20335         [!SA_SIGINFO]: Make it a stub test.
20336
20337         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20338         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20339
20340         * posix/tst-getlogin.c: Move to ...
20341         * login/tst-getlogin.c: ... here.
20342         * posix/Makefile (tests): Move tst-getlogin to ...
20343         * login/Makefile (tests): ... here.
20344
20345         * libio/tst-atime.c (do_test): Move local variables SV and E
20346         inside [ST_NOATIME] conditional.
20347
20348         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20349
20350         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20351
20352         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20353         (wait_code): New function replaces macro.
20354         Call nanosleep rather than syscall.
20355
20356         * nptl/pt-system.c: Rewritten.  Put everything under
20357         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20358         Use IFUNC to redirect when possible.
20359
20360         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20361         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20362         Use IFUNC to redirect when possible.
20363
20364         * nptl/pt-fork.c: Rewritten.  Put everything under
20365         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20366         Use IFUNC to redirect when possible.
20367         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20368
20369         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20370         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20371         unconditionally nowadays.  This included the only reference to
20372         __vdso_clock_gettime that appears outside libc proper.
20373         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20374         Remove version set (containing only __vdso_clock_gettime).
20375         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20376         Add attribute_hidden.
20377         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20378         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20379         libc_hidden_data_def.
20380         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20381         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20382
20383         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20384         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20385         setrpcent, and getrpcport to ...
20386         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20387         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20388         getrpcbynumber_r, and getrpcent_r to ...
20389         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20390         * inet/getrpcbyname.c: Moved ...
20391         * sunrpc/getrpcbyname.c: ... here.
20392         * inet/getrpcbyname_r.c: Moved ...
20393         * sunrpc/getrpcbyname_r.c: ... here.
20394         * inet/getrpcbynumber.c: Moved ...
20395         * sunrpc/getrpcbynumber.c: ... here.
20396         * inet/getrpcbynumber_r.c: Moved ...
20397         * sunrpc/getrpcbynumber_r.c: ... here.
20398         * inet/getrpcent.c: Moved ...
20399         * sunrpc/getrpcent.c: ... here.
20400         * inet/getrpcent_r.c: Moved ...
20401         * sunrpc/getrpcent_r.c: ... here.
20402         * inet/Makefile (routines): Move those to ...
20403         * sunrpc/Makefile (routines): ... here.
20404         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20405         the $(subdirs) list.
20406         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20407         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20408         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20409         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20410
20411         * elf/Makefile (routines): Include $(all-dl-routines), not just
20412         $(dl-routines).
20413         (rtld-routines): Likewise.  Use = rather than :=.
20414         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20415         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20416         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20417         * sysdeps/arm/Makefile: Likewise.
20418         * sysdeps/i386/Makefile: Likewise.
20419         * sysdeps/x86_64/Makefile: Likewise.
20420         * sysdeps/hppa/Makefile [$(subdir) = elf]
20421         (sysdep_routines, sysdep-rtld-routines): Don't add
20422         $(sysdep-dl-routines) to these.
20423         * sysdeps/ia64/Makefile: Likewise.
20424         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20425         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20426         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20427         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20428         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20429         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20430         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20431         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20432         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20433         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20434         these; sysdep-dl-routines alone is enough.
20435
20436 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20437
20438         [BZ #17932]
20439         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20440         where multiplication results in zero and third argument is finite
20441         and nonzero.
20442         * math/auto-libm-test-in: Add more tests of fma.
20443         * math/auto-libm-test-out: Regenerated.
20444
20445         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20446         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20447         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20448         (_FP_CMP_EQ): Likewise.
20449         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20450
20451         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20452         extra argument CHECK_NAN.  Redefine as wrapper around
20453         _FP_EXTEND_CNAN.
20454
20455 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20456
20457         * version.h (RELEASE): Set to "stable".
20458         (VERSION): Set to "2.21"
20459         * include/features.h (__GLIBC_MINOR__): Set to 21.
20460
20461         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20462
20463 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20464             Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         [BZ #16618]
20467         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20468         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20469         size in bytes. Store needed elements in wpmax. Use needed size
20470         in bytes for extend_alloca.
20471
20472 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20473
20474         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20475         binutls 2.25, and texinfo 5.2.
20476         * INSTALL: Regenerate.
20477         * sysdeps/nios2/configure: Regenerate.
20478         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20479         * manual/contrib.texi: Update.
20480         * po/be.po: Update.
20481         * po/bg.po: Update.
20482         * po/ca.po: Update.
20483         * po/cs.po: Update.
20484         * po/da.po: Update.
20485         * po/de.po: Update.
20486         * po/el.po: Update.
20487         * po/eo.po: Update.
20488         * po/es.po: Update.
20489         * po/fi.po: Update.
20490         * po/fr.po: Update.
20491         * po/gl.po: Update.
20492         * po/hr.po: Update.
20493         * po/hu.po: Update.
20494         * po/ia.po: Update.
20495         * po/id.po: Update.
20496         * po/it.po: Update.
20497         * po/ja.po: Update.
20498         * po/ko.po: Update.
20499         * po/lt.po: Update.
20500         * po/nb.po: Update.
20501         * po/nl.po: Update.
20502         * po/pl.po: Update.
20503         * po/pt_BR.po: Update.
20504         * po/ru.po: Update.
20505         * po/rw.po: Update.
20506         * po/sk.po: Update.
20507         * po/sl.po: Update.
20508         * po/sv.po: Update.
20509         * po/tr.po: Update.
20510         * po/uk.po: Update.
20511         * po/vi.po: Update.
20512         * po/zh_CN.po: Update.
20513         * po/zh_TW.po: Update.
20514
20515         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20516         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20517         * sysdeps/hppa/dl-irel.h: Remove #warning.
20518         * sysdeps/hppa/entry.h: Provide prototype for
20519         __canonicalize_funcptr_for_compare and cast argument.
20520         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20521         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20522         * sysdeps/hppa/sotruss-lib.c: New file.
20523         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20524         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20525         (atomic_compare_and_exchange_bool_acq): Likewise.
20526         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20527         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20528
20529         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20530         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20531         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20532
20533 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20534
20535         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20536         called function in non-PIC case.
20537
20538 2015-01-31  David S. Miller  <davem@davemloft.net>
20539
20540         * sysdeps/sparc/sparc32/bits/atomic.h
20541         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20542         unlock not after it.
20543         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20544         volatile register usage warnings from the compiler.
20545
20546         * sysdeps/sparc/nptl/sem_init.c: Delete.
20547         * sysdeps/sparc/nptl/sem_post.c: Delete.
20548         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20549         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20550         * sysdeps/sparc/sparc32/sem_init.c: New file.
20551         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20552         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20553         padding explicitly initialized.
20554         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20555         padding for in-semaphore spinlock.
20556         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20557         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20558         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20559         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20560         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20561         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20562         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20563         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20564         version.
20565         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20566         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20567
20568 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20569
20570         [BZ #17801]
20571         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20572         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20573         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20574         New.
20575         (index_AVX_Fast_Unaligned_Load): Likewise.
20576         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20577         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20578         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20579         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20580         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20581         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20582         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20583         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20584         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20585
20586 2015-01-29  Andreas Schwab  <schwab@suse.de>
20587
20588         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20589
20590 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20591
20592         [BZ #17892]
20593         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20594
20595 2015-01-28  Martin Sebor  <msebor@redhat.com>
20596
20597         * math/README.libm-test: Clarify. Add "How to read the test output."
20598
20599 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20600
20601         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20602         Define to 0.
20603
20604 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20605
20606         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20607         (__HAVE_64B_ATOMICS): Define to 0.
20608
20609 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20610
20611         [BZ #17885]
20612         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20613         value to set as new flag.
20614
20615         [BZ #16576]
20616         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20617         and use _ARCH_PPCSQ instead.
20618         (__ieee754_sqrt): Likewise.
20619         (__ieee754_sqrtf): Likewise.
20620         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20621         _ARCH_PPCSQ is defined.
20622         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20623         fsqrt instruction.
20624         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20625         _ARCH_PPCSQ is defined.
20626         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20627         fsqrts instruction.
20628         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20629
20630 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20631
20632         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20633         bug (GCC BZ #64739).
20634
20635 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20636
20637         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20638         Mark _retval as used.
20639         (lll_futex_wake_unlock): Likewise.
20640         (lll_futex_timed_wait_requeue_pi): Likewise.
20641
20642         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20643         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20644         register variables.
20645
20646         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20647         libm_hidden_def.
20648
20649         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20650         (__bswap_64): Mark as __always_inline.
20651
20652 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20653
20654         [BZ #15378]
20655         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20656         when none of the search directories exist.
20657
20658 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20659
20660         [BZ #17869]
20661         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20662         power8 in .machine directive.
20663
20664         [BZ #17868]
20665         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20666         set dependency from opd value.
20667
20668 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20669
20670         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20671         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20672         architecture.
20673
20674 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20675
20676         [BZ #17870]
20677         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20678         with uint64_t.
20679         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20680         (uint64_t) 1.
20681         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20682         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20683         Replace 1UL with (uint64_t) 1.
20684         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20685         int with uint64_t.
20686
20687 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20688
20689         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20690         (if_freenameindex): Likewise.
20691
20692         * resource/getrlimit64.c: Add missing libc_hidden_def.
20693
20694 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20695
20696         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20697         __label__.
20698         (_FP_FMA): Likewise.
20699         (_FP_TO_INT_ROUND): Likewise.
20700         (_FP_FROM_INT): Likewise.
20701
20702 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20703
20704         [BZ #16418]
20705         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20706         Make code racy and cancel safe.
20707
20708 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20709
20710         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20711         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20712         attribution.
20713
20714         * pwd/tst-getpw.c: Rewrite.
20715
20716         [BZ #17702]
20717         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20718         (modules-names): Add moddummy1 and moddummy2.
20719         ($(objpfx)tst-rec-dlopen): Define.
20720         * dlfcn/moddummy1.c: New file.
20721         * dlfcn/moddummy2.c: New file.
20722         * dlfcn/tst-rec-dlopen.c: New file.
20723         * elf/dl-cache.c (_dl_load_cache_lookup):
20724         Return char*. Copy result with alloca/strcpy/strdup.
20725         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20726         returns char*. Free cached. If not saving realname
20727         free cached.
20728         * elf/dl-open.c (dl_open_worker): Do not assert that
20729         _r_debug->r_state is RT_CONSISTENT.
20730         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20731         returns char*.
20732
20733 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20734             Carlos O'Donell  <carlos@redhat.com>
20735
20736         [BZ #12674]
20737         * nptl/sem_waitcommon.c: New file.
20738         * nptl/sem_wait.c: Include sem_waitcommon.c.
20739         (__sem_wait_cleanup, do_futex_wait): Remove.
20740         (__new_sem_wait): Adapt.
20741         (__new_sem_trywait): New function.
20742         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20743         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20744         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20745         (sem_timedwait): Adapt.
20746         * nptl/sem_post.c (__new_sem_post): Adapt.
20747         (futex_wake): New function.
20748         (__old_sem_post): Add release MO fence.
20749         * nptl/sem_open.c (sem_open): Adapt.
20750         * nptl/sem_init.c (__new_sem_init): Adapt.
20751         (futex_private_if_supported): New function.
20752         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20753         (__old_sem_getvalue): Add using previous code.
20754         * sysdeps/nptl/internaltypes.h: Adapt.
20755         * nptl/tst-sem13.c (do_test): Adapt.
20756         * nptl/tst-sem11.c (main): Adapt.
20757         * nptl/sem_trywait.c: Remove.
20758         * nptl/DESIGN-sem.txt: Remove.
20759         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20760         (gen-as-const-headers): Remove structsem.sym.
20761         * nptl/structsem.sym: Remove.
20762         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20763         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20764         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20765         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20766         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20767         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20768         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20769         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20770         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20771         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20772         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20773         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20774         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20775         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
20776         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
20777         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
20778         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
20779         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
20780         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
20781         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
20782         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
20783         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
20784
20785 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
20786
20787         * INSTALL: Regenerated.
20788
20789         * po/libc.pot: Regenerated.
20790
20791 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
20792             Sandra Loosemore  <sandra@codesourcery.com>
20793             Andrew Jenner  <andrew@codesourcery.com>
20794             Joseph Myers  <joseph@codesourcery.com>
20795             Nathan Sidwell  <nathan@codesourcery.com>
20796
20797         * NEWS: Mention new Nios II port.
20798         * sysdeps/nios2/Implies: New file.
20799         * sysdeps/nios2/Makefile: New file.
20800         * sysdeps/nios2/Subdirs: New file.
20801         * sysdeps/nios2/Versions: New file.
20802         * sysdeps/nios2/__longjmp.S: New file.
20803         * sysdeps/nios2/abort-instr.h: New file.
20804         * sysdeps/nios2/backtrace.c: New file.
20805         * sysdeps/nios2/bits/endian.h: New file.
20806         * sysdeps/nios2/bits/fenv.h: New file.
20807         * sysdeps/nios2/bits/link.h: New file.
20808         * sysdeps/nios2/bits/setjmp.h: New file.
20809         * sysdeps/nios2/bsd-_setjmp.S: New file.
20810         * sysdeps/nios2/bsd-setjmp.S: New file.
20811         * sysdeps/nios2/configure: New generated file.
20812         * sysdeps/nios2/configure.ac: New file.
20813         * sysdeps/nios2/crti.S: New file.
20814         * sysdeps/nios2/crtn.S: New file.
20815         * sysdeps/nios2/dl-init.c: New file.
20816         * sysdeps/nios2/dl-machine.h: New file.
20817         * sysdeps/nios2/dl-sysdep.h: New file.
20818         * sysdeps/nios2/dl-tls.h: New file.
20819         * sysdeps/nios2/dl-trampoline.S: New file.
20820         * sysdeps/nios2/gccframe.h: New file.
20821         * sysdeps/nios2/gmp-mparam.h: New file.
20822         * sysdeps/nios2/jmpbuf-offsets.h: New file.
20823         * sysdeps/nios2/jmpbuf-unwind.h: New file.
20824         * sysdeps/nios2/ldsodefs.h: New file.
20825         * sysdeps/nios2/libc-tls.c: New file.
20826         * sysdeps/nios2/libm-test-ulps: New file.
20827         * sysdeps/nios2/machine-gmon.h: New file.
20828         * sysdeps/nios2/math-tests.h: New file.
20829         * sysdeps/nios2/math_private.h: New file.
20830         * sysdeps/nios2/memusage.h: New file.
20831         * sysdeps/nios2/nptl/Makefile: New file.
20832         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
20833         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
20834         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
20835         * sysdeps/nios2/nptl/pthreaddef.h: New file.
20836         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
20837         * sysdeps/nios2/nptl/tls.h: New file.
20838         * sysdeps/nios2/preconfigure: New file.
20839         * sysdeps/nios2/s_fma.c: New file.
20840         * sysdeps/nios2/s_fmaf.c: New file.
20841         * sysdeps/nios2/setjmp.S: New file.
20842         * sysdeps/nios2/sfp-machine.h: New file.
20843         * sysdeps/nios2/sotruss-lib.c: New file.
20844         * sysdeps/nios2/stackguard-macros.h: New file.
20845         * sysdeps/nios2/stackinfo.h: New file.
20846         * sysdeps/nios2/start.S: New file.
20847         * sysdeps/nios2/sysdep.h: New file.
20848         * sysdeps/nios2/tls-macros.h: New file.
20849         * sysdeps/nios2/tst-audit.h: New file.
20850         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
20851         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
20852         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
20853         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
20854         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
20855         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
20856         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
20857         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
20858         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
20859         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
20860         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
20861         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
20862         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
20863         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
20864         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
20865         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
20866         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
20867         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
20868         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
20869         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
20870         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
20871         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
20872         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
20873         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
20874         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
20875         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
20876         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
20877         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
20878         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
20879         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
20880         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
20881         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
20882         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
20883         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
20884         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
20885         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
20886         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
20887         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
20888         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
20889         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
20890         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
20891         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
20892         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
20893         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
20894
20895 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20896
20897         [BZ #17844]
20898         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
20899         (getutent): Use weak_alias in non SHARED case
20900         and default_symbol_version in SHARED case.
20901         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
20902         (getutent_r, pututline): Likewise.
20903         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
20904         (getutid): Likewise.
20905         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
20906         (getutid_r): Likewise.
20907         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
20908         (getutline): Likewise.
20909         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
20910         (getutline_r): Likewise.
20911         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
20912         (updwtmp): Likewise.
20913
20914 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20915
20916         [BZ #17848]
20917         * sysdeps/s390/s390-32/memcmp.S
20918         (memcmp_g5): Rename to __memcmp_g5.
20919         * sysdeps/s390/s390-32/memcpy.S
20920         (memcpy_g5): Rename to __memcpy_g5.
20921         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20922         (memcpy_mvcle) Rename to __memcpy_mvcle.
20923         * sysdeps/s390/s390-32/memset.S
20924         (memset_g5): Rename to __memset_g5.
20925         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
20926         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20927         and use prefixed functions.
20928         * sysdeps/s390/s390-32/multiarch/memcmp.S
20929         (memcmp_z196): Rename to __memcmp_z196.
20930         (memcmp_z10): Rename to __memcmp_z10.
20931         (memcmp): Set alias to __memcmp_g5.
20932         (bcmp): Set alias to __memcmp_g5.
20933         * sysdeps/s390/s390-32/multiarch/memcpy.S
20934         (memcpy_z196): Rename to __memcpy_z196.
20935         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20936         (memcpy_z10): Rename to __memcpy_z10.
20937         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20938         (memcpy): Set alias to __memcpy_g5.
20939         * sysdeps/s390/s390-32/multiarch/memset.S
20940         (memset_z196): Rename to __memset_z196.
20941         Jump to __memset_mvcle instead of memset_mvcle.
20942         (memset_z10): Rename to __memset_z10.
20943         Jump to __memset_mvcle instead of memset_mvcle.
20944         (memset_mvcle) Rename to __memset_mvcle.
20945         (memset): Set alias to __memset_g5.
20946         * sysdeps/s390/s390-64/memcmp.S
20947         (memcmp_z900): Rename to __memcmp_z900.
20948         * sysdeps/s390/s390-64/memcpy.S
20949         (memcpy_z900): Rename to __memcpy_z900.
20950         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20951         (memcpy_mvcle) Rename to __memcpy_mvcle.
20952         * sysdeps/s390/s390-64/memset.S
20953         (memset_z900): Rename to __memset_z900.
20954         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
20955         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20956         and use prefixed functions.
20957         * sysdeps/s390/s390-64/multiarch/memcmp.S
20958         (memcmp_z196): Rename to __memcmp_z196.
20959         (memcmp_z10): Rename to __memcmp_z10.
20960         (memcmp): Set alias to __memcmp_z900.
20961         (bcmp): Set alias to __memcmp_z900.
20962         * sysdeps/s390/s390-64/multiarch/memcpy.S
20963         (memcpy_z196): Rename to __memcpy_z196.
20964         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20965         (memcpy_z10): Rename to __memcpy_z10.
20966         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20967         (memcpy): Set alias to __memcpy_z900.
20968         * sysdeps/s390/s390-64/multiarch/memset.S
20969         (memset_z196): Rename to __memset_z196.
20970         Jump to __memset_mvcle instead of memset_mvcle.
20971         (memset_z10): Rename to __memset_z10.
20972         Jump to __memset_mvcle instead of memset_mvcle.
20973         (memset_mvcle) Rename to __memset_mvcle.
20974         (memset): Set alias to __memset_z900.
20975
20976 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
20977
20978         [BZ #17748]
20979         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
20980         __fesetenv instead of fesetenv.
20981
20982 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20983
20984         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
20985         macro.
20986
20987 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20988
20989         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
20990         regression on LE.
20991
20992         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
20993         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
20994         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20995         strncmp-power8 object.
20996         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20997         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
20998         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
20999         * NEWS: Update.
21000
21001 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21002             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21003
21004         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21005         trailing byte check.
21006
21007 2015-01-13  David S. Miller  <davem@davemloft.net>
21008
21009         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21010
21011 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21012
21013         * login/logout.c (logout): Use memset rather than bzero.
21014         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21015         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21016         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21017         (_gethtbyaddr): Likewise.
21018         * locale/programs/simple-hash.c (bcopy): Macro removed.
21019
21020 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21021
21022         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21023         Add strcmp-power8 object.
21024         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21025         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21026         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21027         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21028         __strcmp_power8 implementation.
21029         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21030         * NEWS: Update.
21031
21032         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21033         Add strncpy-power8 and stpncpy-power8 objects.
21034         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21035         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21036         implementations.
21037         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21038         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21039         __stpncpy_power8 implementation.
21040         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21041         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21042         __strncpy_power8 implementation.
21043         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21044         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21045         * NEWS: Update.
21046
21047         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21048         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21049         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21050
21051         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21052         strncat-power8 object.
21053         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21054         __strcat_power8 implementation.
21055         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21056         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21057         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21058         optimized strcat for power8.
21059
21060         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21061         strcpy-power8 and stpcpy-power8 objects.
21062         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21063         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21064         implementations.
21065         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21066         multiarch stpcpy implementation for POWER8.
21067         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21068         multiarch strcpy implementation for POWER8.
21069         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21070         __strcpy_power8 function.
21071         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21072         stpcpy for POWER8.
21073         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21074         strcpy for POWER8.
21075         * NEWS: Update.
21076
21077 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21078
21079         [BZ #16009]
21080         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21081         weights and rules. Use do_xfrm_cached if data fits in cache,
21082         do_xfrm otherwise.  Moved former main loop to...
21083         * (do_xfrm_cached): New function.
21084         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21085         find_idx, find_position and stack_push.
21086         * (find_idx): New function.
21087         * (find_position): Likewise.
21088         * localedata/sort-test.sh: Added test run for do_xfrm.
21089         * localedata/xfrm-test.c (main): Added command line option
21090         -nocache to run the test with strings that are too large for
21091         the STRXFRM cache.
21092
21093 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21094
21095         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21096         variable to lll_futex_wake call, not the value itself.
21097
21098 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21099
21100         [BZ #17803]
21101         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21102         twom64.  Adjust value to 0x1p-64L.
21103         (__scalblnl): Only return standard underflowing result for K <=
21104         -64 not K <= -63; adjust exponent for underflowing result by 64
21105         not 63.
21106         * math/libm-test.inc (scalbn_test_data): Add more tests.
21107         (scalbln_test_data): Likewise.
21108
21109         [BZ #17834]
21110         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21111         0x1p63L.
21112         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21113         not HX.
21114         * math/libm-test.inc (scalbn_test_data): Add more tests.
21115         (scalbln_test_data): Likewise.
21116
21117 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21118             Stefani Seibold  <stefani@seibold.net>
21119
21120         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21121         (sysdep_routines): Add dl-vdso here, ...
21122         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21123         (sysdep_routines): ... not here.
21124         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21125         fallback when vDSO is not presented.
21126         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21127         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21128         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21129         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21130         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21131         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21132         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21133         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21134         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21135         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21136         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21137         fallback configurable symbol when vDSO is not available.
21138         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21139         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21140         be able to redefine fallback symbol when vDSO is not available.
21141         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21142         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21143
21144 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21145
21146         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21147         (TLS_INIT_TP): Add tm_capable initialization.
21148         (TLS_DEFINE_INIT_TP): Likewise.
21149         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21150         TCB.
21151         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21152         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21153         calculation.
21154         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21155         transactoion is lock elision is built and TCB tm_capable is set.
21156         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21158         (INTERNAL_SYSCALL_NCS): Likewise.
21159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21160         (INTERNAL_SYSCALL_NCS): Likewise.
21161         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21162
21163         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21164         for powerpc.
21165         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21166         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21167         and remove it for 32 bits case.
21168         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21169         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21170         initialization.
21171         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21172         Disable lock elision with rdlocks if elision is not available.
21173
21174         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21175         (sysdep_routines): Add lock elision objects.
21176         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21177         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21178         [pthread_mutex_t] (__elision): Add field.
21179         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21180         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21181         elision definitions for powerpc.
21182         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21183         implementation of lock elision for powerpc.
21184         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21185         implementation of timed lock elision for powerpc.
21186         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21187         implementation of trylock with lock elision for powerpc.
21188         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21189         implementaion of unlock for lock elision for powerpc.
21190         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21191         automatic enable lock elision for mutexes.
21192         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21193         transaction execution definitions for powerpc.
21194         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21195         definitions.
21196         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21197         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21198         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21199         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21200         * NEWS: Update.
21201
21202 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21203
21204         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21205         for #include of <shm-directory.h>.
21206
21207 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21208
21209         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21210         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21211
21212 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21213
21214         [BZ #17791]
21215         * NEWS: Mention bug fix.
21216         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21217         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21218         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21219
21220 2015-01-09  Torvald Riegel <triegel@redhat.com>
21221
21222         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21223
21224 2015-01-09  Torvald Riegel <triegel@redhat.com>
21225
21226         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21227
21228 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21229
21230         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21231         pointer and cast to uintptr_t.
21232
21233 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21234
21235         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21236         removed.
21237         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21238
21239 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21240
21241         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21242         of 0.
21243
21244 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21245
21246         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21247         <nptl/pthreadP.h> instead.
21248         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21249
21250         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21251         already defined.
21252         [__SIGRTMIN] (init): Function removed.
21253         [__SIGRTMIN] (initialized): Variable removed.
21254         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21255         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21256         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21257         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21258         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21259         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21260         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21261         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21262         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21263         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21264         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21265         * sysdeps/nptl/allocrtsig.c: New file.
21266         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21267         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21268         * sysdeps/generic/testrtsig.h: File removed.
21269
21270         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21271         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21272
21273         * nptl/nptl-init.c (pthread_functions): Conditionalize
21274         .ptr__nptl_setxid initialization on [SIGSETXID].
21275
21276         * sysdeps/nptl/sys/procfs.h: New file.
21277         * nptl_db/Makefile (headers): Add it.
21278         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21279
21280         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21281         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21282         * nptl/pthread_attr_setaffinity.c: Include it.
21283         * nptl/pthread_setattr_default_np.c: Likewise.
21284         * nptl/check-cpuset.h: New file.
21285
21286 2015-01-08  Richard Henderson  <rth@redhat.com>
21287
21288         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21289         (CFLAGS-tst-execstack-prog.c): Likewise.
21290         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21291
21292 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21293             Sandra Loosemore  <sandra@codesourcery.com>
21294             Andrew Jenner  <andrew@codesourcery.com>
21295             Joseph Myers  <joseph@codesourcery.com>
21296             Nathan Sidwell  <nathan@codesourcery.com>
21297
21298         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21299         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21300         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21301         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21302         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21303         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21304         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21305         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21306         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21307         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21308         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21309         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21310         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21311         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21312         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21313         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21314         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21315
21316 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21317
21318         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21319         timespec struct member in syscall macro.
21320         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21321         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21322         first timeval struct member in syscall macro.
21323         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21324
21325 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21326
21327         [BZ #17748]
21328         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21329         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21330         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21331         __feupdateenv and define as weak alias of __feupdateenv.  Use
21332         libm_hidden_weak.
21333         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21334         libm_hidden_def.
21335         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21336         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21337         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21338         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21339         libm_hidden_def.
21340         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21341         __feupdateenv and define as weak alias of __feupdateenv.  Use
21342         libm_hidden_weak.
21343         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21344         libm_hidden_def.
21345         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21346         __feupdateenv and define as weak alias of __feupdateenv.  Use
21347         libm_hidden_weak.
21348         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21349         libm_hidden_def.
21350         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21351         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21352         (__feupdateenv): Likewise.
21353         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21354         __feupdateenv and define as weak alias of __feupdateenv.  Use
21355         libm_hidden_weak.
21356         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21357         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21358         libm_hidden_def.
21359         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21360         function.
21361         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21362         libm_hidden_def.
21363         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21364         __feupdateenv instead of feupdateenv.
21365         (default_libc_feupdateenv_test): Likewise.
21366         (libc_feresetround_ctx): Likewise.
21367
21368 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21369
21370         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21371         prototype.
21372
21373 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21374
21375         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21376         COLL_SYM in a couple of places to avoid uninitialized variable
21377         wanings on tilegx gcc 4.8.2.
21378
21379 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21380
21381         * sysdeps/aarch64/strcpy.S: New file.
21382         * sysdeps/aarch64/stpcpy.S: New file.
21383         * NEWS: Updated.
21384
21385 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21386
21387         * sysdeps/aarch64/strrchr.S: New file.
21388         * NEWS: Updated.
21389
21390 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21391
21392         [BZ #17658]
21393         * stdlib/setenv.c: Fix memory leak when setting large,
21394         duplicate string.
21395
21396 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21397
21398         [BZ #17273]
21399         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21400         and tabs from buffer before parsing fstab entry.
21401         * misc/tst-mntent.c (main): Add test for mount entry with
21402         trailing spaces and tabs.
21403
21404 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21405
21406         [BZ #17748]
21407         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21408         * math/fesetround.c (fesetround): Rename to __fesetround and
21409         define as weak alias of __fesetround.  Use libm_hidden_weak.
21410         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21411         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21412         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21413         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21414         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21415         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21416         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21417         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21418         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21419         __fesetround_inline.
21420         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21421         __fesetround_inline instead of __fesetround.
21422         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21423         __fesetround and define as weak alias of __fesetround.  Use
21424         libm_hidden_weak.  Call __fesetround_inline instead of
21425         __fesetround.
21426         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21427         __fesetround and define as weak alias of __fesetround.  Use
21428         libm_hidden_weak.
21429         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21430         Likewise.
21431         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21432         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21433         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21434         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21435         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21436         __fesetround and define as weak alias of __fesetround.  Use
21437         libm_hidden_weak.
21438         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21439         __fesetround instead of fesetround.
21440         (default_libc_feholdexcept_setround): Likewise.
21441         (libc_feholdsetround_ctx): Likewise.
21442         (libc_feholdsetround_noex_ctx): Likewise.
21443
21444         [BZ #17748]
21445         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21446         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21447         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21448         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21449         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21450         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21451         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21452         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21453         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21454         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21455         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21456         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21457         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21458         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21459         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21460         libm_hidden_def.
21461         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21462         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21463         Likewise.
21464         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21465         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21466         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21467         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21468         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21469         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21470         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21471         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21472         __fesetenv instead of fesetenv.
21473         (libc_feresetround_noex_ctx): Likewise.
21474         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21475         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21476         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21477         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21478         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21479         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21480         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21481         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21482         (__feupdateenv): Likewise.
21483         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21484         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21485         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21486         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21487
21488 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21489
21490         [BZ #17806]
21491         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21492         addresses have been freed.
21493
21494 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21495
21496         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21497         and nservall.
21498
21499 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21500
21501         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21502         Clean up check_pf allocation pattern. addresses
21503
21504 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21505
21506         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21507         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21508         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21509         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21510         * nptl/pthread_join.c (pthread_join): Likewise.
21511         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21512         * sysdeps/posix/waitid.c (__waitid): Likewise.
21513         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21514         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21515         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21516         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21517         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21518         Likewise.
21519         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21520         (__libc_pread64): Likewise.
21521         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21522         (__libc_pwrite): Likewise.
21523         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21524         (__libc_pwrite64): Likewsie.
21525         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21526         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21527         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21528         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21529         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21530         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21531         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21533         Likewise.
21534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21535         (__libc_pread64): Likewise.
21536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21537         Likewise.
21538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21539         (__libc_pwrite64): Likewise.
21540         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21541         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21542         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21543         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21544         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21545         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21546         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21547         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21548         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21549         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21550         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21551         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21552         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21553         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21554         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21555         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21556         Likewise.
21557
21558 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21559
21560         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21561         (CFLAGS-test-double.c): Likewise.
21562         (CFLAGS-test-ldouble.c): Likewise.
21563         (CPPFLAGS-test-ifloat.c): Likewise.
21564         (CPPFLAGS-test-idouble.c): Likewise.
21565         (CPPFLAGS-test-ildoubl.c): Likewise.
21566         (CFLAGS-test-test-fenv.c): Remove variable.
21567         (CFLAGS-test-misc.c): Likewise.
21568
21569 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21570
21571         [BZ #17797]
21572         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21573         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21574         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21575         CLOCKS_PER_SEC == 1000000.
21576         * time/clocktest.c (main): Replace %ld with %jd and cast to
21577         intmax_t.
21578
21579 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21580
21581         * sysdeps/generic/unwind-resume.h: New file.
21582         * sysdeps/gnu/unwind-resume.c: Include it.
21583         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21584         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21585         argument list.
21586         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21587         global rather than static.
21588         (_Unwind_Resume): Update user.
21589         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21590         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21591         rather than static.  Add __attribute__ ((cold)).
21592         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21593         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21594         * sysdeps/arm/arm-unwind-resume.S: New file.
21595         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21596         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21597         * sysdeps/arm/Makefile [$(subdir) = csu]
21598         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21599         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21600         Add rt-arm-unwind-resume.
21601         [$(subdir) = nptl]
21602         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21603         Add pt-arm-unwind-resume.
21604         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21605         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21606
21607 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21608
21609         [BZ #17748]
21610         * include/fenv.h (__feholdexcept): Declare.  Use
21611         libm_hidden_proto.
21612         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21613         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21614         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21615         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21616         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21617         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21618         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21619         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21620         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21621         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21622         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21623         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21624         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21625         (feholdexcept): Likewise.
21626         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21627         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21628         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21629         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21630         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21631         __feholdexcept instead of feholdexcept.
21632         (default_libc_feholdexcept_setround): Likewise.
21633
21634 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21635
21636         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21637         to avoid using stl/str to align destination.
21638
21639 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21640
21641         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21642
21643 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21644
21645         [BZ #17796]
21646         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21647         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21648         Define as weak alias not strong alias.
21649
21650 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21651
21652         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21653         bltzal with addiupc.
21654         (RTLD_START): Ditto.
21655
21656 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21657
21658         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21659         for __vdso_* functions in declarations.
21660         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21661         definitions.
21662         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21663         INTERNAL_VSYSCALL): Use struct return types to check for error.
21664
21665         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21666         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21667         function with cast from llround().
21668         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21669         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21670         Define.
21671
21672 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21673
21674         [BZ #17793]
21675         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21676         Define as weak alias not strong alias.
21677
21678         [BZ #17635]
21679         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21680         ...
21681         * ctype/ctype-extn.c: ... here.
21682         (__isblank_l): Move to ...
21683         * ctype/ctype-c99_l.c: ... here.  New file.
21684         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21685         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21686         Remove variable.
21687         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21688         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21689         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21690         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21691         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21692
21693         [BZ #17777]
21694         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21695         (posix_fadvise64): Define as weak alias not strong alias.
21696         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21697         (posix_fallocate64): Likewise.
21698         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21699         Remove variable.
21700         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21701         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21702         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21703         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21704         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21705
21706 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21707
21708         [BZ #16191]
21709         * NEWS: Mention bug fix.
21710         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21711         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21712         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21713         (HOST_STACK_END_ADDR): Likewise.
21714
21715 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21716
21717         [BZ #17748]
21718         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21719         * math/fegetround.c (fegetround): Rename to __fegetround and
21720         define as weak alias of __fegetround.  Use libm_hidden_weak.
21721         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21722         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21723         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21724         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21725         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21726         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21727         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21728         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21729         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21730         Undefine after rather than before function definition; use
21731         parentheses around function name in definition.
21732         (__fegetround): Also undefine macro after function definition.
21733         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21734         __fegetround and define as weak alias of __fegetround.  Use
21735         libm_hidden_weak.  Do not undefine as macro.
21736         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21737         Likewise.
21738         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21739         __fegetround and define as weak alias of __fegetround.  Use
21740         libm_hidden_weak.
21741         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21742         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21743         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21744         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21745         __fegetround and define as weak alias of __fegetround.  Use
21746         libm_hidden_weak.
21747         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21748         __fegetround instead of fegetround.
21749
21750         [BZ #17782]
21751         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21752         Condition macro definition on [__USE_MISC].
21753
21754         [BZ #17781]
21755         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21756         (struct sigaction): Change type of sa_flags field to int.
21757
21758         [BZ #17780]
21759         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21760         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21761         __glibc_reserved0.
21762
21763         * nptl/version.c (banner): Use single year in copyright notice.
21764
21765         * NEWS: Update copyright dates.
21766         * catgets/gencat.c (print_version): Likewise.
21767         * csu/version.c (banner): Likewise.
21768         * debug/catchsegv.sh: Likewise.
21769         * debug/pcprofiledump.c (print_version): Likewise.
21770         * debug/xtrace.sh (do_version): Likewise.
21771         * elf/ldconfig.c (print_version): Likewise.
21772         * elf/ldd.bash.in: Likewise.
21773         * elf/pldd.c (print_version): Likewise.
21774         * elf/sotruss.sh: Likewise.
21775         * elf/sprof.c (print_version): Likewise.
21776         * iconv/iconv_prog.c (print_version): Likewise.
21777         * iconv/iconvconfig.c (print_version): Likewise.
21778         * locale/programs/locale.c (print_version): Likewise.
21779         * locale/programs/localedef.c (print_version): Likewise.
21780         * login/programs/pt_chown.c (print_version): Likewise.
21781         * malloc/memusage.sh (do_version): Likewise.
21782         * malloc/memusagestat.c (print_version): Likewise.
21783         * malloc/mtrace.pl: Likewise.
21784         * manual/libc.texinfo: Likewise.
21785         * nptl/version.c (banner): Likewise.
21786         * nscd/nscd.c (print_version): Likewise.
21787         * nss/getent.c (print_version): Likewise.
21788         * nss/makedb.c (print_version): Likewise.
21789         * posix/getconf.c (main): Likewise.
21790         * scripts/test-installation.pl: Likewise.
21791         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21792
21793 2015-01-02  Will Newton  <will.newton@linaro.org>
21794
21795         * sysdeps/arm/armv7/configure: Removed.
21796         * sysdeps/arm/armv7/configure.ac: Likewise.
21797
21798 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21799
21800         * All files with FSF copyright notices: Update copyright dates
21801         using scripts/update-copyrights.
21802         * intl/plural.c: Regenerated.
21803         * locale/programs/charmap-kw.h: Likewise.
21804         * locale/programs/locfile-kw.h: Likewise.
21805
21806 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21807
21808         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
21809
21810 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21811
21812         [BZ #17748]
21813         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
21814         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
21815         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21816         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21817         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21818         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
21819         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21820         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
21821         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21822         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21823         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21824         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21825         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21826         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21827         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
21828         libm_hidden_def.
21829         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
21830         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
21831         Likewise.
21832         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21833         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21834         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21835         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21836         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
21837         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21838         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21839         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
21840         __fegetenv instead of fegetenv.
21841         (libc_feholdsetround_noex_ctx): Likewise.
21842
21843 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
21844
21845         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
21846         (Elf_MIPS_ABIFlags_v0): New structure.
21847         (EF_MIPS_FP64): Define.
21848         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
21849         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
21850         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
21851         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
21852         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
21853         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
21854         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
21855         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
21856         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
21857         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
21858         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
21859         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
21860         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
21861         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
21862         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
21863         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
21864         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
21865         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
21866         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
21867         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
21868         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
21869         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
21870         field.
21871         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
21872         EF_MIPS_FP64.
21873         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
21874         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
21875         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
21876         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
21877         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
21878         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
21879         * sysdeps/mips/tst-abi-interlink.c: Likewise.
21880         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
21881         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
21882         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
21883         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
21884         record the current FP ABI extension.
21885         (mips-mode-switch): Define to show if kernel headers support mode
21886         switching.
21887         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21888         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
21889         supported SYSV ABI version to 3.
21890         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
21891         feature.
21892
21893 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21894             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21895
21896         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
21897         path.
21898         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
21899
21900 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21901
21902         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
21903         __fegetround and redefine to call __fegetround.  Remove condition
21904         on [!__NO_MATH_INLINES].
21905         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
21906         function.
21907         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
21908         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
21909         Remove macro.
21910         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
21911         instead of <fenv_libc.h>.
21912         (__llrintl): Call fegetround instead of __fegetround.
21913         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
21914         instead of <fenv_libc.h>.
21915         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21916         (__lrintl): Call fegetround instead of __fegetround.
21917         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
21918         instead of <fenv_libc.h>.
21919         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21920         (__rintl): Call fegetround instead of __fegetround.
21921
21922 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21923
21924         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
21925         arrays.
21926
21927 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21928
21929         [BZ #17775]
21930         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
21931         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
21932         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
21933
21934 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21935
21936         * sysdeps/i386/tls-macros.h: Include <features.h>.
21937         (TLS_LE): Use non-PIC version for GCC >= 5.0.
21938         (TLS_IE): Likewise.
21939         (TLS_LD): Likewise.
21940         (TLS_GD): Likewise.
21941         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
21942         define for GCC >= 5.0.
21943
21944 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
21945
21946         * math/test-fenv.c (test_single_exception, set_single_exc,
21947         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
21948         feexcp_mask_test, feenable_test, fe_single_test): Add
21949         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
21950         case where they are not used.
21951         * math/libm-test.inc: Likewise.
21952         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
21953         unused in the absence of FP rounding/exception support.
21954         * stdio-common/tst-printf-round.c: Likewise.
21955         * stdlib/tst-strtod-round.c: Likewise.
21956         * stdlib/tst-strtod-underflow.c: Likewise.
21957
21958 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
21959
21960         [BZ #17723]
21961         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
21962         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
21963         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21964         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21965         libm_hidden_weak.
21966         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
21967         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21968         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
21969         libm_hidden_def.
21970         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21971         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21972         libm_hidden_weak.
21973         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
21974         Likewise.
21975         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
21976         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21977         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21978         libm_hidden_weak.
21979         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21980         libm_hidden_def.
21981         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
21982         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
21983         (__feraiseexcept): Likewise.
21984         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21985         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21986         libm_hidden_weak.
21987         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21988         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21989         libm_hidden_def.
21990         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
21991         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
21992         Use libm_hidden_def.
21993         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
21994         libm_hidden_def.
21995         (feraiseexcept): Define as weak not strong alias.  Use
21996         libm_hidden_weak.
21997         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
21998         New inline function.  Factored out of ...
21999         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22000         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22001         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22002         feraiseexcept.
22003         * math/w_acos.c (__acos): Likewise.
22004         * math/w_asin.c (__asin): Likewise.
22005         * math/w_ilogb.c (__ilogb): Likewise.
22006         * math/w_j0.c (y0): Likewise.
22007         * math/w_j1.c (y1): Likewise.
22008         * math/w_jn.c (yn): Likewise.
22009         * math/w_log.c (__log): Likewise.
22010         * math/w_log10.c (__log10): Likewise.
22011         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22012         * sysdeps/aarch64/fpu/math_private.h
22013         (libc_feupdateenv_test_aarch64): Likewise.
22014         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22015         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22016         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22017         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22018         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22019         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22020         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22021         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22022         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22023         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22024
22025 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22026
22027         [BZ #17732]
22028         * io/test-utime.c (main): Replace %ld with %jd and cast to
22029         intmax_t.
22030         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22031         * nptl/tst-mutex5.c: Include <stdint.h>.
22032         (do_test): Replace %ld with %jd and cast to intmax_t.
22033         * posix/tst-regex.c (run_test): Likewise.
22034         (run_test_backwards): Likewise.
22035         * rt/tst-clock.c: Include <stdint.h>.
22036         (clock_test): Replace %ld with %jd and cast to intmax_t.
22037         * rt/tst-cpuclock1.c: Include <stdint.h>.
22038         (do_test): Replace %lu with %ju and cast to uintmax_t.
22039         * rt/tst-cpuclock2.c: Include <stdint.h>.
22040         (do_test): Replace %lu with %ju and cast to uintmax_t.
22041         * rt/tst-mqueue1.c: Include <stdint.h>.
22042         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22043         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22044         intmax_t.
22045         * rt/tst-mqueue4.c (do_test): Likewise.
22046         * rt/tst-timer4.c: Include <stdint.h>.
22047         (check_ts): Replace %ld with %jd and cast to intmax_t.
22048         (do_test): Likewise.
22049         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22050         and cast to intmax_t.
22051         * sysdeps/pthread/tst-timer.c (main): Likewise.
22052         * time/clocktest.c (main): Likewise.
22053         * time/tst-posixtz.c (do_test): Likewise.
22054         * timezone/tst-timezone.c (main): Likewise.
22055
22056 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22057             H.J. Lu  <hongjiu.lu@intel.com>
22058
22059         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22060         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22061         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22062         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22063         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22064         version if bit_Fast_Unaligned_Load is set.
22065         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22066         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22067         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22068         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22069         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22070         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22071         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22072         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22073         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22074         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22075         to 4.
22076         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22077         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22078         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22079         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22080
22081 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22082
22083         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22084         instead of #if to avoid a Wundef warning.
22085         * stdlib/tst-limits.c (do_test): Likewise.
22086
22087         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22088         parallel other exception macros.
22089         (fegetenv): Convert from macro to extern inline so that it applies
22090         retroactively to inline functions already seen by the compiler.
22091         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22092
22093         * posix/Makefile (before-compile): Use $(objpfx) for
22094         posix-conf-vars-def.h.
22095
22096 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22097
22098         * posix/getconf.c (main): Use size_t for type of I.
22099         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22100         NSPEC.
22101
22102         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22103         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22104         * posix/posix-envs.def: Likewise.
22105         * sysdeps/posix/sysconf.c: Likewise.
22106         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22107         (specs): Remove array.
22108         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22109         array.
22110
22111         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22112         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22113         (__sysconf): Use CONF_IS_* macros.
22114
22115         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22116         ($(objpfx)posix-conf-vars-def.h): New target.
22117         * posix/posix-conf-vars.list: New file.
22118         * posix/posix-conf-vars.h: New file.
22119         * posix/confstr.c: Include posix-conf-vars.h.
22120         (confstr): Use CONF_IS_* macros.
22121         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22122         CONF_IS_* macros.
22123         * scripts/gen-posix-conf-vars.awk: New file.
22124
22125 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22126
22127         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22128         fegetround): Add no-op macros to avoid linknamespace issues.
22129
22130         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22131         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22132
22133         * sysdeps/unix/sysv/linux/tile/sysdep.h
22134         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22135         assembly-specific section to avoid a redefinition warning.
22136
22137         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22138         long before casting to pointer to avoid a cast warning.
22139
22140 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22141
22142         * sysdeps/tile/tilegx/Implies: New file.
22143
22144 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22145
22146         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22147
22148 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22149
22150         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22151
22152 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22153
22154         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22155         not define.
22156         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22157         <kernel-features.h>.
22158         (__utimes) [__NR_utimes]: Make code unconditional.
22159         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22160         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22161         (__ASSUME_UTIMES): Do not undefine.
22162         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22163         (__ASSUME_UTIMES): Likewise.
22164         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22165         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22166         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22167         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22168
22169 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22170
22171         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22172
22173 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22174
22175         [BZ #17747]
22176         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22177         alias to weak alias for j0l, y0l.
22178         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22179         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22180
22181         [BZ #17746]
22182         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22183         conversion.
22184
22185 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22186
22187         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22188         to zero if not already defined.
22189
22190 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22191
22192         [BZ #17724]
22193         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22194         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22195         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22196         (char *) casts added.
22197         * sysdeps/ieee754/k_standardf.c: New file.
22198         * sysdeps/ieee754/k_standardl.c: Likewise.
22199         * math/Makefile (libm-support): Remove k_standard.
22200         (libm-calls): Add k_standard.
22201
22202 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22203
22204         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22205         Optimize to avoid an unnecessary FPCR read.
22206
22207 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22208
22209         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22210         Optimize to reduce FPCR/FPSR accesses.
22211
22212 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22213
22214         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22215         Call libc_fetestexcept_aarch64.
22216
22217 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22218
22219         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22220         Call libc_fesetround_aarch64.
22221
22222 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22223
22224         [BZ #17733]
22225         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22226         (__bind): Do not define as weak alias.
22227         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22228         define.
22229         (__getsockname): Do not define as weak alias.
22230
22231 2014-12-22  Will Newton  <will.newton@linaro.org>
22232
22233         * manual/install.texi: Document that we require bison 2.7
22234         or above.
22235         * INSTALL: Regenerate.
22236         * configure.ac: Use AC_CHECK_PROG_VER instead of
22237         AC_PATH_PROG when checking for bison and check for
22238         version 2.7 or above.
22239         * configure: Regenerate.
22240
22241 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22242
22243         [BZ #17745]
22244         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22245         * sysdeps/tile/ffsll.c (ffsll): To here.
22246
22247         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22248
22249 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22250
22251         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22252         if not defined.
22253         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22254         definition.
22255         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22256         hidden ___tls_get_addr.
22257         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22258         hidden __tls_get_addr.
22259         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22260         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22261         Likewise.
22262
22263 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22264
22265         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22266         _dl_init call.
22267
22268 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22269
22270         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22271         from "call _dl_init@PLT".
22272         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22273
22274 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22275
22276         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22277         guarantees.
22278
22279 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22280
22281         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22282
22283 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22284
22285         [BZ #17744]
22286         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22287         strnlen.
22288
22289 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22290
22291         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22292         of multu on MIPSr6.
22293         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22294         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22295         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22296         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22297         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22298
22299 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22300
22301         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22302         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22303         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22304         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22305         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22306         mips32r6/mips64r6.
22307         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22308
22309 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22310
22311         * string/strncat.c (STRNCAT): Simplify implementation.
22312
22313 2014-12-19  David S. Miller  <davem@davemloft.net>
22314
22315         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22316         access the quad as both a long double and as a series of 4 words.
22317
22318         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22319         link_map->l_info array access.
22320
22321 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22322
22323         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22324
22325         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22326         * math/atest-exp2.c (TIMEOUT): Likewise.
22327         * math/atest-sincos.c (TIMEOUT): Likewise.
22328
22329 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22330
22331         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22332         -Wno-error with -fno-builtin-lround.
22333
22334 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22335
22336         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22337         Contains futex constants and functions moved over from ...
22338         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22339         <lowlevellock-futex.h>.
22340         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22341         (lll_timedwait_tid): Add comments and parentheses around macro
22342         arguments.
22343
22344 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22345
22346         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22347         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22348         (__lll_private_flag): Remove.
22349         (lll_futex_wait): Likewise.
22350         (lll_futex_timed_wait): Likewise.
22351         (lll_futex_wake): Likewise.
22352         (lll_futex_requeue): Likewise.
22353         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22354         (__lll_timedwait_tid): Spell out argument names.
22355         (lll_timedwait_tid): Add comments and parentheses around macro
22356         arguments.
22357         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22358         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22359
22360 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22361
22362         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22363         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22364         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22365         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22366         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22367         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22368         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22369         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22370         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22371         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22372         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22373         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22374         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22375         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22376         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22377         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22378         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22379         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22380         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22381
22382 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22383
22384         * sysdeps/x86_64/x32/Makefile: New file.
22385
22386 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22387
22388         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22389         1L with (mp_limb_t) 1.
22390
22391 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22392
22393         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22394         * nptl/libc_pthread_init.c: ... here.
22395         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22396         * nptl/register-atfork.c: ... here.
22397
22398         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22399         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22400         Use assert_perror to check its return value.
22401         (__gai_create_helper_thread): Likewise.
22402
22403         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22404
22405         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22406
22407 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22408
22409         [BZ #17725]
22410         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22411         __profil_counter.
22412         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22413         Likewise.
22414         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22415         Likewise.
22416         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22417         Likewise.
22418         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22419         (profil_counter): Likewise.
22420         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22421         (profil_counter): Likewise.
22422         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22423         Likewise.
22424         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22425         Likewise.
22426         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22427         (profil_counter): Likewise.
22428         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22429         Likewise.
22430         [!__profil_counter] (profil_counter): Define as weak alias of
22431         __profil_counter.
22432         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22433         (profil_counter): Rename to __profil_counter.
22434         [!__profil_counter] (profil_counter): Define as weak alias of
22435         __profil_counter.
22436         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22437         (profil_counter): Rename to __profil_counter.
22438         [!__profil_counter] (profil_counter): Define as weak alias of
22439         __profil_counter.
22440         * sysdeps/posix/profil.c: Update comment referring to
22441         profil_counter.
22442         (__profil): Use __profil_counter instead of profil_counter.
22443         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22444         __profil_counter.  Use __profil_counter_ushort and
22445         __profil_counter_uint in definitions.
22446         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22447         instead of profil_counter_uint and profil_counter_ushort.
22448
22449         [BZ #17722]
22450         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22451         define as weak alias of __inet_makeaddr.
22452         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22453         as weak alias of __inet_addr.
22454         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22455         as weak alias of __inet_pton.  Use libc_hidden_weak.
22456         * include/arpa/inet.h (__inet_pton): Declare.  Use
22457         libc_hidden_proto.
22458         (inet_makeaddr): Don't use libc_hidden_proto.
22459         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22460         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22461         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22462         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22463         Remove variable.
22464         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22465         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22466
22467 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22468
22469         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22470
22471 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22472
22473         * stdio-common/bug-vfprintf-nargs.c (do_test):
22474         Cast value to intptr_t to avoid format warning
22475         for usage with PRIdPTR printing macro.
22476
22477 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22478
22479         * libio/tst-widetext.c (do_test):
22480         Use format type %td instead of %Zd for ptrdiff_t
22481         in order to avoid format warning.
22482
22483 2014-12-17  Andreas Schwab  <schwab@suse.de>
22484
22485         * nscd/mem.c (gc): Add size_t cast to match printf format.
22486
22487 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22488
22489         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22490         (init): Apply PTR_MANGLE to pointers before storing them.
22491         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22492         before using them.
22493
22494 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22495
22496         [BZ #17719]
22497         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22498         define as weak alias of __memrchr.
22499         (__memrchr): Do not define as strong alias of memrchr.
22500         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22501         Remove variable.
22502         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22503         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22504         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22505
22506         [BZ #17717]
22507         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22508         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22509         (if_indextoname): Rename to __if_indextoname and define as weak
22510         alias of __if_indextoname.  Use libc_hidden_weak.
22511         (if_freenameindex): Rename to __if_freenameindex and define as
22512         weak alias of __if_freenameindex.
22513         (if_nameindex): Rename to __if_nameindex and define as weak alias
22514         of __if_nameindex.
22515         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22516         __if_nametoindex and define as weak alias of __if_nametoindex.
22517         Use libc_hidden_weak.
22518         (if_freenameindex): Rename to __if_freenameindex and define as
22519         weak alias of __if_freenameindex.
22520         (if_nameindex): Rename to __if_nameindex and define as weak alias
22521         of __if_nameindex.
22522         (if_indextoname): Rename to __if_indextoname and define as weak
22523         alias of __if_indextoname.  Use libc_hidden_weak.
22524         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22525         __if_nametoindex and define as weak alias of __if_nametoindex.
22526         Use libc_hidden_weak.
22527         (if_freenameindex): Rename to __if_freenameindex and define as
22528         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22529         (if_nameindex_netlink): Use __if_freenameindex instead of
22530         if_freenameindex.
22531         (if_nameindex): Rename to __if_nameindex and define as weak alias
22532         of __if_nameindex.  Use libc_hidden_weak.
22533         (if_indextoname): Rename to __if_indextoname and define as weak
22534         alias of __if_indextoname.  Use libc_hidden_weak.
22535         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22536         libc_hidden_proto.
22537         [!_ISOMAC] (__if_freenameindex): Likewise.
22538         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22539         if_nametoindex.
22540         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22541         variable.
22542         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22543         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22544         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22545         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22546         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22547         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22548         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22549
22550         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22551         Remove variable.
22552         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22553         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22554
22555 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22556
22557         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22558         subscript above bounds'
22559
22560         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22561         bounds.
22562
22563 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22564
22565         * libio/tst-fopenloc.c: Use test-skeleton.c.
22566
22567         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22568         (entry): Rename to ITEM.
22569         (do_test, comp): Adjust.
22570
22571         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22572
22573 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22574
22575         * string/tester.c: Include <libc-internal.h>.
22576         (test_memset): Ignore -Wmemset-transposed-args.
22577
22578 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22579
22580         * misc/tst-mntent2.c (do_test): Fix warning.
22581
22582 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22583
22584         * elf/tst-unique4lib.cc(a): Mark as used.
22585
22586 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22587
22588         [BZ #17630]
22589         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22590         names.
22591
22592 2014-12-16  Allan McRae  <allan@archlinux.org>
22593
22594         * stdio-common/Makefile (tests): Re-add bug26.
22595
22596 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22597
22598         [BZ #17657]
22599         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22600         static array.
22601
22602 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22603
22604         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22605         (__lll_lock_wait): Likewise.
22606         (__lll_timedlock_wait): Likewise.
22607         (__lll_timedwait_tid): Likewise.
22608         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22609         (__lll_robust_timedlock_wait): Likewise.
22610         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22611         (lll_cond_trylock): Likewise.
22612         (__lll_lock): Likewise.
22613         (__lll_robust_lock): Likewise.
22614         (__lll_cond_lock): Likewise.
22615         (lll_robust_cond_lock): Likewise.
22616         (__lll_timedlock): Likewise.
22617         (__lll_robust_timedlock): Likewise.
22618         (__lll_unlock): Likewise.
22619         (__lll_robust_unlock): Likewise.
22620         (lll_wait_tid): Likewise.
22621         (lll_timedwait_tid): Likewise.
22622
22623 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22624
22625         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22626
22627 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22628
22629         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22630
22631 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22632
22633         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22634         * stdio-common/tst-sprintf.c: Likewise.
22635
22636 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22637
22638         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22639
22640 2014-12-15  Jeff Law  <law@redhat.com>
22641
22642         [BZ #16617]
22643         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22644         on the heap.  (CVE-2012-3406)
22645         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22646         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22647         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22648
22649 2014-12-15  Will Newton  <will.newton@linaro.org>
22650
22651         * manual/install.texi: Bump required version of texinfo
22652         to 4.7 from 4.5.
22653         * INSTALL: Regenerated.
22654         * configure.ac: Check for makeinfo version 4.7 and above.
22655         * configure: Regenerated.
22656
22657 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22658
22659         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22660         PREFIX, string constant to insert between directory and name.
22661         * sysdeps/posix/shm_open.c: Update caller.
22662         * sysdeps/posix/shm_unlink.c: Likewise.
22663         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22664         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22665         (SEM_SHM_PREFIX): New macro.
22666         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22667         [$(have-thread-library) = no].
22668         * nptl/Makefile (libpthread-routines): Add shm-directory.
22669         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22670         * sysdeps/nptl/shm-directory.h: New file.
22671         * sysdeps/posix/shm-directory.c
22672         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22673         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22674         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22675         INTERNAL_SYSCALL.
22676         (__where_is_shmfs): Function removed.
22677         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22678         Variables removed.
22679         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22680         Use SHM_GET_NAME.
22681         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22682
22683         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22684         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22685         unconditional for use inside libpthread.
22686         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22687
22688 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22689
22690         * nptl/pthread_getaffinity.c: New file.
22691         * nptl/pthread_setaffinity.c: New file.
22692         * nptl/pthread_getname.c: New file.
22693         * nptl/pthread_setname.c: New file.
22694
22695         * nptl/pthread_create.c (START_THREAD_DEFN)
22696         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22697
22698 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22699             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22700
22701         * resolv/res_send.c (send_vc): Disable warning resplen may
22702         be used uninitialized.
22703
22704 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22705
22706         * nptl/tst-mutex6.c
22707         (ATTR_NULL): New define checks ATTR against NULL.
22708         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22709         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22710
22711 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22712
22713         [BZ #17581]
22714         * malloc/hooks.c
22715         (mem2mem_check): Revert my previous change.
22716         (malloc_check_get_size): Revert my previous change.
22717         (mem2chunk_check): Revert my previous change.
22718
22719 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22720
22721         * sysdeps/posix/shm-directory.c: New file.
22722         * sysdeps/posix/shm-directory.h: New file.
22723         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22724         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22725         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22726         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22727         Transmute EPERM to EACCES.
22728         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22729         from ...
22730         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22731         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22732
22733 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22734
22735         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22736         pointer and cast to uintptr_t.
22737         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22738         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22739         Add cast to avoid warning.
22740         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22741
22742 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22743
22744         * nptl/semaphore.h: Move to ...
22745         * sysdeps/pthread/semaphore.h: ... here.
22746         * Makefile (installed-headers): Change nptl/semaphore.h to
22747         sysdeps/pthread/semaphore.h.
22748
22749 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22750
22751         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22752         generated error format strings.
22753
22754         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22755         -Wformat-extra-args warnings for scanf formats.
22756         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22757         test of zero-length format (duh).
22758         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22759         corner-case scanf format test.
22760         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22761         generated fprintf format string.
22762         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22763         corner-case sprintf format tests.
22764         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22765         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22766         -Wformat-extra-args warnings throughout.
22767         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22768         (CFLAGS-scanf4.c): Likewise.
22769         (CFLAGS-scanf7.c): Likewise.
22770         (CFLAGS-tst-sprintf.c): Likewise.
22771         (CFLAGS-tst-printf.c): Likewise.
22772         (CFLAGS-tst-printfsz.c): Likewise.
22773
22774 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22775
22776         * include/cpio.h: New file.
22777         * include/fmtmsg.h: Likewise.
22778
22779         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
22780         corresponding format argument to size_t.
22781         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
22782         arguments.
22783         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
22784         corresponding format argument to size_t.
22785         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
22786         arguments.
22787         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
22788         corresponding format argument to size_t.
22789         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
22790         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
22791         (CFLAGS-tst-mbswcs2.c): Likewise.
22792         (CFLAGS-tst-mbswcs3.c): Likewise.
22793         (CFLAGS-tst-mbswcs4.c): Likewise.
22794         (CFLAGS-tst-mbswcs5.c): Likewise.
22795         (CFLAGS-tst-trans.c): Likewise.
22796
22797 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22798
22799         * posix/regexbug1.c (main): Use "%s" format with regerror results,
22800         rather than assuming they won't contain any '%'s.
22801
22802 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
22803
22804         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
22805         inhibit_loop_to_libcall to avoid recursive calls.
22806         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
22807         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
22808
22809 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22810
22811         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
22812         prototype.
22813
22814 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22815
22816         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
22817         integer value instead of boolean.
22818
22819 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22820
22821         * malloc/malloc.c: Fix powerof2 check.
22822
22823 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22824
22825         * locale/programs/locfile.h (maybe_swap_uint32):
22826         Remove inline and add unused attribute.
22827
22828 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22829
22830         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
22831         Truncating assembler expression to a .long expression.
22832
22833 2014-12-11  Andreas Schwab  <schwab@suse.de>
22834
22835         * elf/rtld.c (struct map_args): Constify str member.
22836         (do_preload): Constify fname argument.
22837
22838 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22839
22840         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
22841         constants definition.
22842
22843 2014-12-11  Andreas Schwab  <schwab@suse.de>
22844
22845         [BZ #16657]
22846         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
22847         FORCE_ELISION instead of DO_ELISION.
22848         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
22849         Remove.
22850         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
22851         Likewise.
22852
22853         * iconvdata/gconv-modules: Remove duplicate entry.
22854
22855 2014-12-11  Will Newton  <will.newton@linaro.org>
22856
22857         Merge gettext 0.19.3 into intl/.
22858
22859         This involves a number of cosmetic changes to comments
22860         and ANSI function definitions and prototypes throughout
22861         all the files. The gettext copyright header is used but
22862         with the date ranges taken from the glibc copy.
22863
22864         * NEWS: Add gettext merge to 2.21.
22865         * intl/bindtextdom.c: Switch to gettext copyright.
22866         Use ANSI definitions and prototypes.
22867         Use gl_* locking primitives rather than __libc_* ones.
22868         Use __builtin_expect rather than __glibc_likely/unlikely.
22869         * intl/dcgettext.c: Switch to gettext copyright.
22870         Use ANSI definitions and prototypes.
22871         * intl/dcigettext.c: Switch to gettext copyright.
22872         Use ANSI definitions and prototypes.
22873         (INTDIV0_RAISES_SIGFPE): New define.
22874         Use gl_* locking primitives rather than __libc_* ones.
22875         Include eval-plural.h instead of plural-eval.c.
22876         Use __builtin_expect rather than __glibc_likely/unlikely.
22877         * intl/dcngettext.c: Switch to gettext copyright.
22878         Use ANSI definitions and prototypes.
22879         * intl/dgettext.c: Likewise.
22880         * intl/dngettext.c: Likewise.
22881         * intl/plural-eval.c: Renamed to...
22882         * intl/eval-plural.h: ...this.
22883         * intl/explodename.c: Switch to gettext copyright.
22884         Use ANSI definitions and prototypes.
22885         (_nl_explode_name): Use strchr instead of __rawmemchr.
22886         * intl/finddomain.c: Switch to gettext copyright.
22887         Use ANSI definitions and prototypes.
22888         Use gl_* locking primitives rather than __libc_* ones.
22889         (_nl_find_domain): Use malloc rather than alloca for
22890         allocation of temporary locale name.
22891         * intl/gettext.c: Switch to gettext copyright.
22892         Use ANSI definitions and prototypes.
22893         * intl/gettextP.h: Switch to gettext copyright.
22894         Use ANSI definitions and prototypes.
22895         Use gl_* locking primitives rather than __libc_* ones.
22896         * intl/gmo.h: Switch to gettext copyright.
22897         (struct sysdep_string): Move struct segment_pair outside of
22898         struct definition.
22899         * intl/hash-string.c: Use ANSI definitions and prototypes.
22900         * intl/hash-string.h: Switch to gettext copyright.
22901         Use ANSI definitions and prototypes.
22902         * intl/l10nflist.c: Switch to gettext copyright.
22903         Use ANSI definitions and prototypes.
22904         (_nl_normalize_codeset): Avoid integer overflow.
22905         * intl/loadinfo.h: Switch to gettext copyright.
22906         Use ANSI definitions and prototypes.
22907         (LIBINTL_DLL_EXPORTED): New define.
22908         (PATH_SEPARATOR): New define.
22909         * intl/loadmsgcat.c: Switch to gettext copyright.
22910         * intl/localealias.c: Switch to gettext copyright.
22911         Use ANSI definitions and prototypes.
22912         (_nl_expand_alias): Use PATH_SEPARATOR.
22913         * intl/ngettext.c: Switch to gettext copyright.
22914         Use ANSI definitions and prototypes.
22915         * intl/plural-exp.c: Likewise.
22916         * intl/plural-exp.h: Switch to gettext copyright.
22917         Use ANSI definitions and prototypes.
22918         (struct expression): Move definition of enum operator outside
22919         of struct definition.
22920         * intl/plural.c: Regenerate.
22921         * intl/plural.y: Switch to gettext copyright.
22922         Use ANSI definitions and prototypes.
22923         Port to bison 3.0.
22924         * intl/textdomain.c: Switch to gettext copyright.
22925         Use ANSI definitions and prototypes.
22926         Use gl_* locking primitives rather than __libc_* ones.
22927
22928 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
22929
22930         * debug/warning-nop.c: Add used atrribute.
22931
22932 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22933
22934         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
22935
22936         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
22937         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
22938         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
22939
22940 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22941             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22942
22943         [BZ #17634]
22944         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
22945         Undefine after defining function.  Define as weak alias of
22946         __wcschr.  Use libc_hidden_weak.
22947         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
22948         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
22949         (libc_hidden_def): Also define __GI___wcschr alias.
22950         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
22951         __wcschr and define as weak alias of __wcschr.
22952         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
22953         __wcschr.
22954         [!WCSCHR] (DEFAULT_WCSCHR): Define.
22955         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
22956         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
22957         libc_hidden_weak.  Do not use libc_hidden_def.
22958         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
22959         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
22960         __GI___wcschr alias.
22961         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
22962         [IS_IN (libc)] (wcschr): Define as macro expanding to
22963         __redirect_wcschr.
22964         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
22965         [IS_IN (libc)] (__wcschr_power6): Likewise.
22966         [IS_IN (libc)] (__wcschr_power7): Likewise.
22967         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
22968         instead of wcschr.
22969         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
22970         __libc_wcschr.
22971         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
22972         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
22973         __wcschr and define as weak alias of __wcschr.  Use
22974         libc_hidden_builtin_def.
22975         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
22976         as weak alias of __wcschr.  Use libc_hidden_weak.
22977         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
22978         wcschr.
22979         * time/era.c (_nl_init_era_entries): Likewise.
22980         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
22981         variable.
22982         (test-xfail-XPG3/time.h/linknamespace): Likewise.
22983         (test-xfail-XPG4/time.h/linknamespace): Likewise.
22984
22985 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22986
22987         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
22988         format for long int variable.
22989
22990 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
22991
22992         [BZ #10672]
22993         * manual/search.texi: (Array Sort Function): Remove claim how to make
22994         qsort stable.
22995
22996 2014-12-10  Andreas Schwab  <schwab@suse.de>
22997
22998         [BZ #12847]
22999         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23000         user-controlled locks.
23001
23002 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23003
23004         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23005         register.
23006
23007 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23008
23009         * configure.ac (--disable-werror): New configure option.
23010         (enable_werror): New AC_SUBST.
23011         * configure: Regenerated.
23012         * config.make.in (enable-werror): New variable.
23013         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23014         -Wno-error=undef.
23015         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23016         * manual/install.texi (Configuring and compiling): Document
23017         --disable-werror.
23018         * INSTALL: Regenerated.
23019         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23020         (CFLAGS-tst-chk2.c): Likewise.
23021         (CFLAGS-tst-chk3.c): Likewise.
23022         (CFLAGS-tst-chk4.cc): Likewise.
23023         (CFLAGS-tst-chk5.cc): Likewise.
23024         (CFLAGS-tst-chk6.cc): Likewise.
23025         (CFLAGS-tst-lfschk1.c): Likewise.
23026         (CFLAGS-tst-lfschk2.c): Likewise.
23027         (CFLAGS-tst-lfschk3.c): Likewise.
23028         (CFLAGS-tst-lfschk4.cc): Likewise.
23029         (CFLAGS-tst-lfschk5.cc): Likewise.
23030         (CFLAGS-tst-lfschk6.cc): Likewise.
23031
23032         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23033         (main): Disable -Wdeprecated-declarations around calls to
23034         register_printf_function.
23035
23036         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23037         (do_test): Disable -Wdiv-by-zero around some calls to
23038         fwrite_unlocked and fread_unlocked.
23039
23040         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23041         (DIAG_POP_NEEDS_COMMENT): Likewise.
23042         (_DIAG_STR1): Likewise.
23043         (_DIAG_STR): Likewise.
23044         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23045         * stdio-common/bug21.c: Include <libc-internal.h>.
23046         (do_test): Disable -Wformat around call to sscanf.
23047         * stdio-common/scanf14.c: Include <libc-internal.h>.
23048         (main): Disable -Wformat around some calls to scanf functions.
23049
23050 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23051
23052         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23053
23054 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23055
23056         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23057         stack variable alignment.
23058
23059 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23060
23061         [BZ #17682]
23062         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23063         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23064         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23065         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23066         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23067         __getrlimit instead of getrlimit.
23068         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23069         __gettimeofday instead of gettimeofday.
23070         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23071         Likewise.
23072         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23073         Likewise.
23074         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23075         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23076         Remove variable.
23077         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23078         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23079
23080 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23081
23082         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23083         for wide-character tests.
23084
23085 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23086
23087         * io/openat64.c: #include <libc-internal.h>
23088         (__openat64): Prototypify.  Use ignore_value on MODE.
23089         * io/openat.c: Likewise.
23090         * misc/reboot.c: #include <libc-internal.h>
23091         (reboot): Prototypify.  Use ignore_value on HOWTO.
23092         * misc/ptrace.c: #include <libc-internal.h>
23093         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23094
23095 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23096
23097         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23098         XPG4, UNIX98 and XOPEN2K.
23099         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23100         Remove variable.
23101         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23102
23103 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23104
23105         * libio/fileops.c: Use ISO C style for function definitions.
23106         * libio/iofopen.c: Likewise.
23107         * libio/wfileops.c: Likewise.
23108
23109         [BZ #17653]
23110         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23111         offset on EOF.
23112         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23113         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23114         (fgets_func): Function pointer to fgets and fgetws.
23115         (do_ftell_test): Add test to verify ftell value after read
23116         EOF.
23117         (do_test): Set fgets_func.
23118
23119         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23120         O_TRUNC flag for w and w+ modes.
23121         (do_rewind_test): Likewise.
23122         (do_ftell_test): Likewise.
23123         (do_write_test): Likewise.
23124
23125         [BZ #17647]
23126         * libio/fileops.c (do_ftell): Seek only when there are
23127         unflushed writes.
23128         * libio/wfileops.c (do_ftell_wide): Likewise.
23129         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23130         test case.
23131         (do_one_test): Call it.
23132
23133 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23134
23135         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23136         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23137         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23138         Remove variable.
23139         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23140         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23141         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23142
23143 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23144
23145         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23146         Remove variable.
23147         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23148
23149         [BZ #17668]
23150         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23151         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23152         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23153         __freeifaddrs.  Use libc_hidden_weak.
23154         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23155         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23156         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23157         __freeifaddrs.  Use libc_hidden_weak.
23158         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23159         __getifaddrs and define as weak alias of __getifaddrs.  Use
23160         libc_hidden_weak.
23161         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23162         __freeifaddrs.  Use libc_hidden_weak.
23163         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23164         Remove variable.
23165         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23166         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23167
23168 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23169
23170         [BZ #17601]
23171         * sysdeps/mips/start.S (__start): Use indirect jump to call
23172         __libc_start_main.
23173
23174 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23175
23176         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23177
23178         * nptl/tst-mutex1.c: Include <stdbool.h>.
23179         [!ATTR] (ATTR_NULL): New macro.
23180         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23181         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23182         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23183
23184         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23185         to char *.
23186
23187         [BZ #17665]
23188         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23189         Change conditional to [__USE_MISC].
23190
23191         [BZ #17664]
23192         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23193         fgets_unlocked.
23194         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23195         __fgets_unlocked.
23196         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23197         fgets_unlocked.
23198         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23199         Remove variable.
23200         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23201         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23202         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23203         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23204         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23205         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23206         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23207         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23208         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23209
23210         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23211
23212 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23213
23214         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23215         Remove strpbrk objects.
23216         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23217         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23218         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23219         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23220         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23221         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23222
23223         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23224         Remove strcspn objects.
23225         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23226         (__libc_ifunc_impl_list): Remove strcspn implementation.
23227         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23228         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23229         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23230         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23231
23232         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23233         Remove strspn objetcs.
23234         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23235         (__libc_ifunc_impl_list): Remove strspn implementation.
23236         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23237         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23238         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23239         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23240
23241 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23242
23243         [BZ #17581]
23244         * malloc/hooks.c
23245         (mem2mem_check): Add a terminator to the chain of checking blocks.
23246         (malloc_check_get_size): Use it here.
23247         (mem2chunk_check): Ditto.
23248
23249 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23250
23251         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23252         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23253
23254 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23255
23256         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23257
23258         * nptl/nptl-init.c: Include libc-internal.h.
23259         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23260
23261         * elf/ldconfig.c (search_dir): Expand comment.
23262
23263 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23264
23265         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23266         variable.
23267         (linknamespace-symlist-stdlibs-tests): Likewise.
23268         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23269         instead of $(objpfx)symlist-stdlibs.
23270         (linknamespace-libs-isoc): New variable.
23271         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23272         (linknamespace-libs-ISO): New variable.
23273         (linknamespace-libs-ISO99): Likewise.
23274         (linknamespace-libs-ISO11): Likewise.
23275         (linknamespace-libs-XPG3): Likewise.
23276         (linknamespace-libs-XPG4): Likewise.
23277         (linknamespace-libs-POSIX): Likewise.
23278         (linknamespace-libs-UNIX98): Likewise.
23279         (linknamespace-libs-XOPEN2K): Likewise.
23280         (linknamespace-libs-POSIX2008): Likewise.
23281         (linknamespace-libs-XOPEN2K8): Likewise.
23282         ($(objpfx)symlist-stdlibs): Replace by
23283         $(linknamespace-symlist-stdlibs-tests).  Use
23284         $(linknamespace-libs-$*) as set of libraries.
23285         ($(linknamespace-header-tests)): Update dependencies.  Use
23286         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23287         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23288         * conform/linknamespace.pl: Remove comment about considering
23289         definitions of symbols from irrelevant libraries.
23290
23291 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23292
23293         [BZ #13862]
23294         * elf/dl-tls.c: Include <atomic.h>.
23295         (oom): Remove #ifdef SHARED/#endif.
23296         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23297         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23298         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23299         big enough.
23300         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23301         * nptl/Makefile (tests): Add tst-stack4.
23302         (modules-names): Add tst-stack4mod.
23303         ($(objpfx)tst-stack4): New.
23304         (tst-stack4mod.sos): Likewise.
23305         ($(objpfx)tst-stack4.out): Likewise.
23306         ($(tst-stack4mod.sos)): Likewise.
23307         (clean): Likewise.
23308         * nptl/tst-stack4.c: New file.
23309         * nptl/tst-stack4mod.c: Likewise.
23310
23311 2014-11-27  J. Brown  <jb999@gmx.de>
23312
23313         * sysdeps/x86/bits/string.h: Add recent CPUs.
23314
23315 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23316
23317         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23318         sigblock.
23319
23320         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23321         feof.
23322
23323         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23324         variable.
23325
23326 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23327
23328         * nscd/connections.c: Include libc-internal.h because of macro
23329         usage ignore_value.
23330
23331 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23332
23333         * string/bits/string3.h (__warn_memset_zero_len): Don't
23334         declare for gcc newer than 5.0.
23335         (memset): Don't test for zero-length __LEN for gcc newer than
23336         5.0.
23337
23338 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23339
23340         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23341         size_t for %zu format.
23342
23343         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23344         difference, not %ju.
23345
23346 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23347
23348         * include/libc-internal.h (ignore_value): New macro.
23349         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23350         with ignore_value.
23351
23352         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23353         definition.
23354
23355         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23356         pthread_cleanup_push to void *.
23357
23358         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23359         Undefine.
23360
23361         [BZ #16619]
23362         [BZ #16740]
23363         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23364         instead of 1L << 52.
23365
23366         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23367         * libio/bug-rewind2.c (do_test): Likewise.
23368
23369         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23370         * debug/test-strcpy_chk-ifunc.c: Likewise.
23371         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23372         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23373         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23374         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23375         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23376         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23377         * Rules [$(multi-arch) = no] (tests): Do not filter out
23378         $(tests-ifunc).
23379         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23380         * debug/Makefile (tests-ifunc): Remove variable.
23381         (tests): Do not add $(tests-ifunc).
23382         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23383         (tests): Do not add $(tests-ifunc).
23384         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23385         [TEST_IFUNC]: Remove conditionals.
23386         * string/test-string.h (TEST_IFUNC): Remove macro.
23387         [TEST_IFUNC]: Remove conditionals.
23388
23389         * string/test-strchr.c [!WIDE] (L): New macro.
23390         [WIDE] (L): Likewise.
23391         (check1): Use CHAR instead of char.  Use L on string and character
23392         constants.
23393
23394 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23395
23396         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23397         tests.
23398         * sysdeps/powerpc/bits/atomic.h
23399         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23400         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23401         (atomic_exchange_and_add_acq): Likewise.
23402         (atomic_exchange_and_add_rel): Likewise.
23403         * sysdeps/powerpc/powerpc32/bits/atomic.h
23404         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23405         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23406         * sysdeps/powerpc/powerpc64/bits/atomic.h
23407         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23408         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23409
23410 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23411
23412         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23413         Change synchronization of __sched_fifo_min_prio and
23414         __sched_fifo_max_prio.
23415         * nptl/pthread_mutexattr_getprioceiling.c
23416         (pthread_mutexattr_getprioceiling): Likewise.
23417         * nptl/pthread_mutexattr_setprioceiling.c
23418         (pthread_mutexattr_setprioceiling): Likewise.
23419         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23420         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23421         Likewise.
23422
23423 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23424
23425         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23426         void.
23427
23428 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23429
23430         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23431         third argument const.
23432
23433 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23434
23435         fnmatch: work around GCC compiler warning bug with uninit var
23436         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23437         This works around a bug with x86-64 GCC 4.9.2 and earlier
23438         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23439         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23440         used uninitialized in this function [-Wmaybe-uninitialized]".
23441
23442 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23443
23444         * posix/bug-regex31.c (main): Return RES not 0.
23445
23446 2014-11-25  Anton Blanchard <anton@samba.org>
23447
23448         * sysdeps/powerpc/bits/atomic.h
23449         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23450
23451 2014-11-24  Sterling Augustine  <saugustine@google.com>
23452
23453         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23454
23455 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23456
23457         [BZ #17608]
23458         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23459
23460 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23461
23462         [BZ #17633]
23463         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23464         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23465         variable.
23466         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23467         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23468
23469 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23470
23471         * string/strncpy.c (strncpy): Improve performance by using memset.
23472
23473 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23474
23475         * string/strcpy.c (strcpy):
23476         Improve performance by using strlen and memcpy.
23477
23478 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23479
23480         * string/strcoll_l.c (get_next_seq): __always_inline.
23481         * string/strcoll_l.c (do_compare): __always_inline.
23482
23483 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23484
23485         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23486         defined.
23487         * include/mqueue.h: Likewise.
23488         * include/stdlib.h: Likewise.
23489
23490         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23491         (get_null_defines): Adjust.
23492         * sunrpc/Makefile: Adjust comment.
23493         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23494         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23495         (CFLAGS-interp.c): Likewise.
23496         (CFLAGS-ldconfig.c): Likewise.
23497         (CPPFLAGS-.os): Likewise.
23498         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23499         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23500         * extra-modules.mk (extra-modules.mk): Likewise.
23501         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23502         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23503         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23504         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23505         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23506         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23507         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23508         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23509         * iconvdata/Makefile (CPPFLAGS): Likewise.
23510         (cpp-srcs-left): Add libof for all iconvdata routines.
23511         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23512         * include/assert.h: Likewise.
23513         * include/ctype.h: Likewise.
23514         * include/errno.h: Likewise.
23515         * include/libc-symbols.h: Likewise.
23516         * include/math.h: Likewise.
23517         * include/netdb.h: Likewise.
23518         * include/resolv.h: Likewise.
23519         * include/stdio.h: Likewise.
23520         * include/stdlib.h: Likewise.
23521         * include/string.h: Likewise.
23522         * include/sys/stat.h: Likewise.
23523         * include/wctype.h: Likewise.
23524         * intl/l10nflist.c: Likewise.
23525         * libidn/idn-stub.c: Likewise.
23526         * libio/libioP.h: Likewise.
23527         * nptl/libc_multiple_threads.c: Likewise.
23528         * nptl/pthreadP.h: Likewise.
23529         * posix/regex_internal.h: Likewise.
23530         * resolv/res_hconf.c: Likewise.
23531         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23532         * sysdeps/arm/memmove.S: Likewise.
23533         * sysdeps/arm/sysdep.h: Likewise.
23534         * sysdeps/generic/_itoa.h: Likewise.
23535         * sysdeps/generic/symbol-hacks.h: Likewise.
23536         * sysdeps/gnu/errlist.awk: Likewise.
23537         * sysdeps/gnu/errlist.c: Likewise.
23538         * sysdeps/i386/i586/memcpy.S: Likewise.
23539         * sysdeps/i386/i586/memset.S: Likewise.
23540         * sysdeps/i386/i686/memcpy.S: Likewise.
23541         * sysdeps/i386/i686/memmove.S: Likewise.
23542         * sysdeps/i386/i686/mempcpy.S: Likewise.
23543         * sysdeps/i386/i686/memset.S: Likewise.
23544         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23545         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23546         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23547         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23548         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23549         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23550         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23551         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23552         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23553         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23554         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23555         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23556         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23557         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23558         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23559         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23560         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23561         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23562         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23563         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23564         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23565         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23566         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23567         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23568         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23569         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23570         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23571         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23572         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23573         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23574         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23575         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23576         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23577         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23578         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23579         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23580         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23581         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23582         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23583         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23584         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23585         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23586         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23587         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23588         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23589         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23590         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23591         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23592         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23593         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23594         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23595         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23596         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23597         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23598         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23599         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23600         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23601         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23602         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23603         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23604         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23605         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23606         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23607         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23608         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23609         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23610         * sysdeps/posix/closedir.c: Likewise.
23611         * sysdeps/posix/opendir.c: Likewise.
23612         * sysdeps/posix/readdir.c: Likewise.
23613         * sysdeps/posix/rewinddir.c: Likewise.
23614         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23615         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23616         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23617         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23618         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23619         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23620         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23621         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23622         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23623         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23624         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23625         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23626         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23627         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23628         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23629         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23630         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23631         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23632         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23633         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23634         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23635         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23636         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23637         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23638         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23639         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23640         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23641         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23642         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23643         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23644         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23645         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23646         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23647         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23648         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23649         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23650         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23651         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23652         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23653         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23654         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23655         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23656         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23657         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23658         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23659         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23660         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23661         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23662         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23663         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23664         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23665         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23666         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23667         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23668         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23669         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23670         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23671         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23672         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23673         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23674         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23675         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23676         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23677         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23678         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23679         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23680         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23681         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23682         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23683         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23684         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23685         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23686         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23687         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23688         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23689         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23690         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23691         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23692         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23693         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23694         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23695         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23696         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23697         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23698         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23699         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23700         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23701         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23702         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23703         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23704         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23705         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23706         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23707         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23708         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23709         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23710         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23711         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23712         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23713         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23714         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23715         * sysdeps/unix/alpha/sysdep.S: Likewise.
23716         * sysdeps/unix/alpha/sysdep.h: Likewise.
23717         * sysdeps/unix/make-syscalls.sh: Likewise.
23718         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23719         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23720         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23721         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23722         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23723         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23724         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23725         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23726         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23727         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23728         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23729         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23730         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23731         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23732         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23733         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23734         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23735         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23736         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23737         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23738         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23739         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23740         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23741         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23742         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23743         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23744         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23747         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23748         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23749         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23750         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23751         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23752         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23753         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23754         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23755         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23756         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23757         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23758         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23759         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23760         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23761         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23762         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23763         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23764         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23765         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23766         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23767         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23768         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23769         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23770         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23771         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23772         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23773         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23774         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23775         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23776         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
23777         * sysdeps/x86_64/memcpy.S: Likewise.
23778         * sysdeps/x86_64/memmove.c: Likewise.
23779         * sysdeps/x86_64/memset.S: Likewise.
23780         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
23781         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23782         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
23783         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
23784         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
23785         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23786         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23787         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
23788         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
23789         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
23790         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
23791         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
23792         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
23793         * sysdeps/x86_64/multiarch/memset.S: Likewise.
23794         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23795         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
23796         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
23797         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
23798         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23799         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23800         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
23801         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
23802         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23803         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23804         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
23805         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
23806         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
23807         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
23808         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23809         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
23810         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
23811         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
23812         * sysdeps/x86_64/strcmp.S: Likewise.
23813
23814         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
23815
23816         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
23817         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
23818         * elf/rtld-Rules: Likewise.
23819         * elf/setup-vdso.h: Likewise.
23820         * include/assert.h: Likewise.
23821         * include/bits/stdlib-float.h: Likewise.
23822         * include/errno.h: Likewise.
23823         * include/sys/stat.h: Likewise.
23824         * include/unistd.h: Likewise.
23825         * sysdeps/aarch64/setjmp.S: Likewise.
23826         * sysdeps/alpha/setjmp.S: Likewise.
23827         * sysdeps/arm/__longjmp.S: Likewise.
23828         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
23829         * sysdeps/arm/setjmp.S: Likewise.
23830         * sysdeps/arm/sysdep.h: Likewise.
23831         * sysdeps/generic/_itoa.h: Likewise.
23832         * sysdeps/generic/dl-sysdep.h: Likewise.
23833         * sysdeps/generic/ldsodefs.h: Likewise.
23834         * sysdeps/i386/dl-tls.h: Likewise.
23835         * sysdeps/i386/setjmp.S: Likewise.
23836         * sysdeps/m68k/setjmp.c: Likewise.
23837         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
23838         * sysdeps/mach/hurd/opendir.c: Likewise.
23839         * sysdeps/posix/getcwd.c: Likewise.
23840         * sysdeps/posix/opendir.c: Likewise.
23841         * sysdeps/posix/profil.c: Likewise.
23842         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23843         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23844         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23845         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
23846         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
23847         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
23848         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
23849         * sysdeps/s390/dl-tls.h: Likewise.
23850         * sysdeps/s390/s390-32/setjmp.S: Likewise.
23851         * sysdeps/s390/s390-64/setjmp.S: Likewise.
23852         * sysdeps/sh/sh3/setjmp.S: Likewise.
23853         * sysdeps/sh/sh4/setjmp.S: Likewise.
23854         * sysdeps/unix/alpha/sysdep.h: Likewise.
23855         * sysdeps/unix/arm/sysdep.S: Likewise.
23856         * sysdeps/unix/i386/sysdep.S: Likewise.
23857         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23858         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
23859         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23860         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23861         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23862         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23863         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
23864         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23865         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23866         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23867         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
23868         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23869         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23872         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23873         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23874         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23875         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23876         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23877         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23878         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23879         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23880         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23881         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23882         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23883         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23884         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23885         * sysdeps/x86_64/setjmp.S: Likewise.
23886
23887         * include/math.h: Use IS_IN instead of IS_IN_libm.
23888         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
23889         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23890         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23891         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
23892         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23893         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23894         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23895         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23896         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23897         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23898         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
23899         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
23900         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
23901         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
23902         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
23903         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
23904         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
23905         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
23906         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
23907         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
23908         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
23909         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
23910         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
23911         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
23912         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
23913         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
23914         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
23915         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23916         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
23917         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
23918         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
23919         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
23920         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
23921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23922         Likewise.
23923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
23924         Likewise.
23925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
23926         Likewise.
23927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
23928         Likewise.
23929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
23930         Likewise.
23931         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
23932         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
23933         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
23934         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23935         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23936         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
23938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
23939         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
23940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
23941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
23942         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
23943         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
23944         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
23945         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
23946         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23947         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
23948         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
23949         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23950         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
23951         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
23952         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
23953         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
23954         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
23955         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
23956         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
23957         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
23958
23959         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
23960         * nptl/pthreadP.h: Likewise.
23961         * nptl_db/structs.def: Likewise.
23962         * sysdeps/arm/sysdep.h: Likewise.
23963         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23964         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23965         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
23966         * sysdeps/unix/alpha/sysdep.h: Likewise.
23967         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23968         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23969         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23970         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23971         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23972         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23973         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23974         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23975         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23976         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23977         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23978         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23979         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23980         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23983         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23984         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23985         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23986         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23987         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23988         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23989         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23990         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23991         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
23992         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23993
23994         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
23995         * nptl/pthreadP.h: Likewise.
23996         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23997         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23998         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23999         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24000         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24001         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24002         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24003         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24004         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24005         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24006         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24007         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24009         Likewise.
24010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24011         Likewise.
24012         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24013         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24014         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24015         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24016         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24017         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24018         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24019         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24020
24021         * dlfcn/dladdr.c: Use IS_IN.
24022         * dlfcn/dladdr1.c: Likewise.
24023         * dlfcn/dlclose.c: Likewise.
24024         * dlfcn/dlerror.c: Likewise.
24025         * dlfcn/dlinfo.c: Likewise.
24026         * dlfcn/dlmopen.c: Likewise.
24027         * dlfcn/dlopen.c: Likewise.
24028         * dlfcn/dlsym.c: Likewise.
24029         * dlfcn/dlvsym.c: Likewise.
24030
24031         * include/ifaddrs.h: Use IS_IN.
24032         * inet/check_pf.c: Likewise.
24033         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24034         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24035
24036         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24037         IS_IN_ldconfig.
24038         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24039         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24040
24041         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24042         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24043         IS_IN (libc).
24044
24045         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24046
24047         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24048         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24049         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24050         * include/libc-symbols.h (IS_IN_LIB): New macro.
24051         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24052         * include/netdb.h: Likewise.
24053         * include/stap-probe.h: Remove all uses of IN_LIB.
24054
24055         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24056         instead of IN_MODULE.
24057         * include/libc-symbols.h (IN_MODULE): Define using
24058         MODULE_NAME.
24059         (PASTE_NAME, PASTE_NAME1): New macros.
24060         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24061         of IN_LIB.
24062         (STAP_PROBE_ASM): Likewise.
24063
24064 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24065
24066         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24067         __mach_init in dlopened libc.
24068
24069 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24070
24071         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24072         * sysdeps/arm/preconfigure: Regenerate.
24073
24074 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24075
24076         * nptl/pthread_create.c (__pthread_create_2_1): Set
24077         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24078         when copying values from IATTR into PD.
24079
24080 2014-11-21  Will Newton  <will.newton@linaro.org>
24081             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24082
24083         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24084         Refactor inline-asm.  Also add comment.
24085
24086         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24087         ElfW macro instead of hardcoded Elf64 types.
24088         (la_aarch64_gnu_pltenter): Likewise.
24089         * sysdeps/aarch64/dl-machine.h
24090         (elf_machine_runtime_setup): Use ElfW(Addr).
24091
24092         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24093         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24094         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24095         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24096         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24097         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24098         (R_AARCH64_TLS_DTPMOD): This.
24099         (R_AARCH64_TLS_DTPREL64): Rename to ...
24100         (R_AARCH64_TLS_DTPREL): This.
24101         (R_AARCH64_TLS_TPREL64): Rename to ...
24102         (R_AARCH64_TLS_TPREL): This.
24103         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24104         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24105         R_AARCH64_TLS_TPREL64.
24106         (elf_machine_rela): Likewise.
24107
24108 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24109
24110         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24111         by setting it to 0.  64b atomics are not supported currently.
24112
24113 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24114
24115         [BZ #16469]
24116         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24117         search domain names.
24118
24119 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24120
24121         [BZ #16469]
24122         * NEWS: Update.
24123         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24124         trailing dot.
24125         * posix/tst-getaddrinfo5.c: New.
24126         * posix/Makefile (tests): Add it.
24127
24128 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24129
24130         [BZ #14498]
24131         * NEWS: Fixed.
24132         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24133         after parsing line but before break_if_match.
24134         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24135         if there is a protocol mismatch.
24136
24137 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24138
24139         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24140         because the potential race is on the user-supplied stream.
24141
24142 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24143
24144         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24145         string literal if not passed a buffer.
24146         * manual/job.texi (ctermid): Update reasoning, note deviation
24147         from posix, suggest mtasurace when not passed a buffer, for
24148         future non-preliminary safety notes.
24149
24150 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24151
24152         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24153         of not passing it a buffer.
24154         Reported by Peng Haitao.
24155
24156 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24157
24158         * manual/Makefile ($(objpfx)stamp-summary): Require
24159         check-safety.sh to pass.
24160         * manual/check-safety.sh: Wish for verification that every
24161         @deftypefn and @deftypefun is followed by a @safety remark.
24162
24163 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24164
24165         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24166
24167         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24168         PTHREAD_CANCEL_ASYNCHRONOUS.
24169         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24170         send SIGCANCEL.
24171
24172         * nptl/default-sched.h: New file.
24173         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24174         * nptl/pthread_create.c: Include it.
24175         (__pthread_create_2_1): Use collect_default_sched instead of making
24176         Linux syscalls here directly.
24177
24178 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24179
24180         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24181         __pthread_once): Use C11 atomics.
24182
24183 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24184
24185         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24186
24187 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24188
24189         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24190         atomic_thread_fence_acquire, atomic_thread_fence_release,
24191         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24192         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24193         atomic_compare_exchange_weak_relaxed,
24194         atomic_compare_exchange_weak_acquire,
24195         atomic_compare_exchange_weak_release,
24196         atomic_exchange_acquire, atomic_exchange_release,
24197         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24198         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24199         atomic_fetch_and_acquire,
24200         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24201
24202 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24203
24204         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24205         USE_ATOMIC_COMPILER_BUILTINS): Define.
24206         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24207         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24208         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24209         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24210         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24211         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24212         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24213         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24214         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24215         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24216         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24217         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24218         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24219         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24220         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24221         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24222         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24223         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24224         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24225         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24226         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24227         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24228         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24229         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24230         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24231         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24232         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24233         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24234         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24235         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24236         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24237         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24238         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24239         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24240         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24241         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24242         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24243         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24244         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24245         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24246
24247 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24248
24249         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24250         the sched_priority value here.  It was already checked when the user
24251         called pthread_attr_setschedparam.
24252
24253         * nptl/tst-bad-schedattr.c: New file.
24254         * nptl/Makefile (tests): Add it.
24255
24256 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24257             Florian Weimer  <fweimer@redhat.com>
24258             Joseph Myers  <joseph@codesourcery.com>
24259             Adam Conrad  <adconrad@0c3.net>
24260             Andreas Schwab  <schwab@suse.de>
24261             Brooks  <bmoses@google.com>
24262
24263         [BZ #17625]
24264         * wordexp-test.c (__dso_handle): Add prototype.
24265         (__register_atfork): Likewise.
24266         (__app_register_atfork): New function.
24267         (registered_forks): New global.
24268         (register_fork): New function.
24269         (test_case): Add 3 new tests for WRDE_CMDSUB.
24270         (main): Call __app_register_atfork.
24271         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24272         fork count is non-zero fail the test.
24273         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24274         is set.
24275         (parse_dollars): Remove check for WRDE_NOCMD.
24276         (parse_dquote): Likewise.
24277
24278 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24279
24280         * Makeconfig (built-modules): List non-library modules to be
24281         built.
24282         (module-cppflags): Include libc-modules.h for
24283         everything except shlib-versions.v.i.
24284         (CPPFLAGS): Use it.
24285         (before-compile): Add libc-modules.h.
24286         ($(common-objpfx)libc-modules.h,
24287         $(common-objpfx)libc-modules.stmp): New targets.
24288         (common-generated): Add libc-modules.h and libc-modules.stmp.
24289         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24290         * include/libc-symbols.h: Don't include libc-modules.h.
24291         * include/libc-modules.h: Remove file.
24292         * scripts/gen-libc-modules.awk: New script to generate
24293         libc-modules.h.
24294         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24295         Depend on libc-modules.stmp.
24296
24297         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24298
24299         * Makeconfig (in-module): Get value of libof set for the
24300         translation unit.
24301         (CPPFLAGS): Use $(in-module).
24302         * Makerules: Don't suffix routine names for nonlib.
24303         * include/libc-modules.h: New file.
24304         * include/libc-symbols.h: Include libc-modules.h
24305         (IS_IN): New macro to replace IS_IN_* macros.
24306         * elf/Makefile: Set libof-* for each routine.
24307         * elf/rtld-Rules: Likewise.
24308         * extra-modules.mk: Likewise.
24309         * iconv/Makefile: Likewise.
24310         * iconvdata/Makefile: Likewise.
24311         * locale/Makefile: Likewise.
24312         * malloc/Makefile: Likewise.
24313         * nss/Makefile: Likewise.
24314         * sysdeps/gnu/Makefile: Likewise.
24315         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24316         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24317         * sysdeps/s390/s390-64/Makefile: Likewise.
24318         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24319         CPPFLAGS for nscd instead of nonlib.
24320
24321 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24322
24323         * nptl/createthread.c: New file.
24324
24325         * nptl/createthread.c: Moved ...
24326         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24327
24328         * nptl/createthread.c: Add proper top-line comment.
24329         (do_clone): Folded into ...
24330         (create_thread): ... here.  Take new arguments STOPPED_START and
24331         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24332         increment __nptl_threads, do event-reporting logic, do
24333         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24334         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24335         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24336         just send SIGCANCEL.
24337         * nptl/pthread_create.c: Forward-declare create_thread before
24338         including createthread.c.
24339         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24340         declaration, and new macro START_THREAD_SELF to replace argument.
24341         Remove return statement.
24342         (report_thread_creation): New function.
24343         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24344         synchronization logic, and __nptl_nthreads increment here, around
24345         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24346         PD->parent_cancelhandling here, before create_thread.  When
24347         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24348         __deallocate_stack, and ENOMEM translation here.
24349
24350 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24351
24352         [BZ #17616]
24353         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24354         (mptwo): Rename to __mptwo.
24355         (__inv): Use __mptwo instead of mptwo.
24356         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24357         (mptwo): Rename to __mptwo.
24358         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24359         of mpone and __mptwo instead of mptwo.
24360         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24361         instead of mpone.
24362         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24363         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24364         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24365         of mpone and __mptwo instead of mptwo.
24366         (__mpranred): Use __mpone instead of mpone.
24367         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24368         variable.
24369         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24370         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24371         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24372         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24373         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24374         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24375         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24376         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24377         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24378         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24379         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24380         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24381         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24382         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24383         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24384         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24385         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24386         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24387         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24388
24389 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24390
24391         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24392         replace BSD Handler xref with BSD Signal Handling.
24393
24394 2014-11-17  Richard Henderson  <rth@redhat.com>
24395
24396         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24397         (_FP_PACK_RAW_2): Remove.
24398         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24399         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24400         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24401         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24402         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24403         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24404         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24405         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24406         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24407         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24408         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24409         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24410         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24411         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24412         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24413         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24414
24415 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24416
24417         * signal/signal.h [__USE_MISC]
24418         (struct sigvec): Remove type.
24419         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24420         (sigvec): Remove declaration.
24421         * sysdeps/posix/sigvec.c: Moved ...
24422         * signal/sigvec.c: ... here, replacing old file.
24423         (struct sigvec): New type, copied from old signal.h definition.
24424         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24425         (__sigvec): Convert definition to prototype.
24426         (sigvec): Replace weak_alias with compat_symbol.
24427         * signal/Versions (libc: GLIBC_2.21): New version set.
24428         * include/signal.h: Remove __sigvec declaration.
24429         * sysdeps/unix/bsd/sigvec.c: Remove file.
24430         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24431         * manual/signal.texi (BSD Handler): Remove subsection.
24432         Move siginterrupt up to ...
24433         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24434         (Blocking in BSD): Fold subsection into its parent.
24435         * NEWS: Mention sigvec removal.
24436
24437 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24438
24439         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24440         (DLA_FMS): Make definition conditional only on [__FMA4__].
24441         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24442         definition.
24443
24444         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24445         Make definition conditional only on [PROF].
24446         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24447         definition.
24448         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24449         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24450
24451         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24452         !__GNUC__].
24453         * include/signal.h (__sigpause): Move declaration above call to
24454         libc_hidden_proto.
24455         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24456         variable.
24457         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24458         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24459
24460 2014-11-14  David S. Miller  <davem@davemloft.net>
24461
24462         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24463         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24464
24465 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24466
24467         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24468         * configure: Regenerated.
24469         * manual/install.texi (Tools for Compilation): Document a
24470         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24471         compiler verified to work.
24472         * INSTALL: Regenerated.
24473
24474         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24475         redeclare with asm name.
24476         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24477         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24478         including <string.h>.
24479         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24480         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24481         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24482         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24483         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24484         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24485         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24486
24487 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24488
24489         * stdlib/strtol.c (__strtol): Use prototype definition.
24490
24491         [BZ #17594]
24492         * stdlib/strtol.c (SYM__): New macro.
24493         (SYM__1): Likewise.
24494         (__strtol): Likewise.
24495         (strtol): Rename to __strtol and define as weak alias of
24496         __strtol.  Use libc_hidden_weak.
24497
24498 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24499
24500         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24501         Use numbered labels in inline assembly.
24502
24503 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24504
24505         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24506         Add setjmp LIBC_PROBE.
24507         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24508         Likewise.
24509         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24510         Add longjmp, longjmp_target LIBC_PROBE.
24511         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24512         Likewise.
24513
24514 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24515
24516         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24517         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24518         to get rid of unused variable warning.
24519
24520 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24521
24522         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24523         Check for unwind_backtrace ==  NULL only in SHARED case.
24524         (__backchain_backtrace): Compile only in SHARED case.
24525         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24526         Likewise.
24527         (__backchain_backtrace): Declare as static.
24528
24529 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24530
24531         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24532         (__libc_multiple_threads_ptr): Variable moved ...
24533         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24534
24535 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24536
24537         * conform/GlibcConform.pm: New file.
24538         * conform/conformtest.pl: Use GlibcConform module.
24539         * conform/linknamespace.pl: New file.
24540         * conform/list-header-symbols.pl: Likewise.
24541         * conform/Makefile (linknamespace-symlists-base): New variable.
24542         (linknamespace-symlists-tests): Likewise.
24543         (linknamespace-header-base): Likewise.
24544         (linknamespace-header-tests): Likewise.
24545         (tests-special): Add new tests.
24546         ($(linknamespace-symlists-tests)): New rule.
24547         (linknamespace-libs): New variable.
24548         ($(objpfx)symlist-stdlibs): New rule.
24549         ($(linknamespace-header-tests)): Likewise.
24550         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24551         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24552         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24553         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24554         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24555         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24556         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24557         (test-xfail-ISO/math.h/linknamespace): Likewise.
24558         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24559         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24560         (test-xfail-ISO/time.h/linknamespace): Likewise.
24561         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24562         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24563         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24564         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24565         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24566         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24567         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24568         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24569         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24570         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24571         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24572         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24573         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24574         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24575         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24576         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24577         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24578         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24579         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24580         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24581         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24582         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24583         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24584         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24585         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24586         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24587         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24588         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24589         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24590         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24591         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24592         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24593         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24594         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24595         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24596         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24597         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24598         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24599         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24600         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24601         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24602         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24603         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24604         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24605         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24606         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24607         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24608         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24609         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24610         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24611         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24612         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24613         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24614         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24615         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24616         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24617         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24618         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24619         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24620         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24621         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24622         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24623         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24624         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24625         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24626         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24627         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24628         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24629         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24630         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24631         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24632         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24633         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24634         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24635         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24636         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24637         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24638         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24639         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24640         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24641         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24642         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24643         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24644         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24645         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24646         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24647         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24648         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24649         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24650         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24651         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24652         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24653         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24654         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24655         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24656         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24657         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24658         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24659         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24660         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24661         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24662         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24663         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24664         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24665         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24666         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24667         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24668         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24669         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24670         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24671         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24672         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24673         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24674         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24675         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24676         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24677         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24678         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24679         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24680         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24681         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24682         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24683         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24684         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24685         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24686         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24687         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24688         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24689         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24690         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24691         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24692         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24693         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24694         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24695         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24696         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24697         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24698         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24699         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24700         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24701         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24702         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24703         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24704         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24705         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24706         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24707         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24708         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24709         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24710         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24711
24712         [BZ #17589]
24713         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24714         of fgets_unlocked.
24715
24716         [BZ #17585]
24717         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24718         (memmem): Rename to __memmem and define as weak alias of
24719         __memmem.  Use libc_hidden_weak.
24720         (__memmem): Use libc_hidden_def.
24721         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24722         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24723         memmem.
24724
24725         [BZ #17582]
24726         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24727         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24728         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24729         and define as weak alias of __fgets_unlocked.  Use
24730         libc_hidden_weak.
24731         (__fgets_unlocked): Use libc_hidden_def.
24732         * include/stdio.h (__fgets_unlocked): Declare.  Use
24733         libc_hidden_proto.
24734         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24735         __fgets_unlocked instead of fgets_unlocked.
24736         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24737         (GET_NPROCS_CONF_PARSER): Likewise.
24738         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24739         (GET_NPROCS_CONF_PARSER): Likewise.
24740
24741         [BZ #17574]
24742         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24743         weak alias of __wmemset.  Use libc_hidden_weak.
24744         (__wmemset): Use libc_hidden_def.
24745         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24746         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24747         of wmemset.
24748
24749         [BZ #17573]
24750         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24751         with asm name __mempcpy.
24752         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24753
24754         [BZ #17572]
24755         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24756         and define as weak alias of __rawmemchr.
24757         (__rawmemchr): Do not define as strong alias of rawmemchr.
24758
24759         [BZ #17571]
24760         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24761         alias of __qsort_r.
24762         (qsort): Call __qsort_r instead of qsort_r.
24763         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24764         (__qsort_r): Declare.  Call libc_hidden_proto.
24765         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24766         instead of qsort_r.
24767         * nscd/gai.c (__qsort_r): Define to qsort_r.
24768         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24769         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24770         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24771
24772         [BZ #17570]
24773         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24774         define as weak alias of __malloc_info.
24775
24776         [BZ #17584]
24777         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
24778         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24779         (__rewinddir): Use libc_hidden_def.
24780         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
24781         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24782         (__rewinddir): Use libc_hidden_def.
24783         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
24784         weak alias of __rewinddir.  Don't use libc_hidden_def.
24785         (__rewinddir): Use libc_hidden_def.
24786         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
24787         (__rewinddir): Use libc_hidden_proto.
24788         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
24789         rewinddir.
24790         (__getcwd): Use __rewinddir instead of rewinddir.
24791
24792         [BZ #17583]
24793         * libio/fileno.c (fileno): Rename to __fileno and define as weak
24794         alias of __fileno.  Use libc_hidden_weak.
24795         (__fileno): Use libc_hidden_def.
24796         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
24797         * libio/ftello.c (ftello): Rename to __ftello and define as weak
24798         alias of __ftello.
24799         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
24800         __ftello.
24801         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
24802         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
24803         libc_hidden_def.
24804         (fread_unlocked): Don't use libc_hidden_ver.
24805         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
24806         and define as weak alias of __fread_unlocked.  Don't use
24807         libc_hidden_def.
24808         (__fread_unlocked): Use libc_hidden_def.
24809         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
24810         (ftello): Don't use libc_hidden_proto.
24811         (__ftello): Declare.  Use libc_hidden_proto.
24812         (fread_unlocked): Don't use libc_hidden_proto.
24813         (__fread_unlocked): Declare.  Use libc_hidden_proto.
24814         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
24815         and __ftello instead of fileno, fread_unlocked and ftello.
24816
24817 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
24818
24819         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
24820         GOT12.
24821         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
24822         Likewise.
24823         (_dl_start_user): Likewise.
24824         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
24825
24826 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
24827             Siddhesh Poyarekar  <siddhesh@redhat.com>
24828
24829         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
24830         Move argv and envp down instead of moving argc up.
24831         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
24832
24833 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
24834
24835         [BZ #17506]
24836         * test-skeleton.c (main): Return successful if one of
24837         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
24838         * string/tst-strcoll-overflow.c: Define expected status.
24839
24840 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
24841
24842         [BZ #17475]
24843         * locale/iso-639.def: Define Bhili and Tulu language codes.
24844
24845 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
24846
24847         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
24848
24849 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
24850
24851         [BZ #17555]
24852         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
24853
24854 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
24855
24856         * configure.ac: Updated check of minimal required version to
24857         2.22.
24858         * manual/install.texi (Tools for Compilation): Updated version
24859         number.
24860         * configure: Regenerated.
24861         * INSTALL: Likewise.
24862
24863 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
24864
24865         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
24866         __tls_get_addr.
24867
24868 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
24869
24870         * include/sys/wait.h (__libc_waitpid): Remove declaration.
24871         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
24872         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24873         libc_hidden_weak.
24874         (waitpid): Define as alias of __waitpid.
24875         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
24876         __waitpid.
24877         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24878         libc_hidden_weak.
24879         (waitpid): Define as alias of __waitpid.
24880         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
24881         __libc_waitpid alias.
24882         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
24883         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
24884         Likewise.
24885         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
24886         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
24887         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
24888         alias.
24889         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
24890         __waitpid.
24891         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24892         libc_hidden_weak.
24893         (waitpid): Define as alias of __waitpid.
24894
24895 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
24896
24897         * manual/llio.texi: Add comment that write safety has been
24898         fixed in Linux.
24899
24900         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
24901         (localplt-build-dso): Add elf/ld.so.
24902         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
24903         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
24904         and free for ld.so.
24905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
24906         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
24907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
24908         Likewise.
24909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
24910         Likewise.
24911         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
24912         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
24913         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
24914         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
24915         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24916         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
24917         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
24918         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
24919         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
24920         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
24921         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24922
24923 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
24924
24925         [BZ #14132]
24926         * include/libc-symbols.h (INTUSE): Remove macro.
24927         (INTDEF): Likewise.
24928         (INTVARDEF): Likewise.
24929         (_INTVARDEF): Likewise.
24930         (INTDEF2): Likewise.
24931         (INTVARDEF2): Likewise.
24932         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
24933         rtld_hidden_def instead of INTVARDEF.
24934         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
24935         (_dl_starting_up_internal): Remove declaration.
24936         (_dl_starting_up): Use rtld_hidden_proto.
24937         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
24938         declaration.
24939         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
24940         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
24941         _dl_starting_up.
24942         * elf/dl-writev.h (_dl_writev): Likewise.
24943         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
24944         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
24945         _dl_starting_up_internal.
24946
24947 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24948
24949         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
24950         test-skeleton.c.
24951
24952 2014-11-05  Will Newton  <will.newton@linaro.org>
24953
24954         * benchtests/Makefile: (bench-malloc): Add malloc thread
24955         scalability benchmark.
24956         * benchtests/bench-malloc-threads.c: New file.
24957
24958 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
24959
24960         * sysdeps/aarch64/strchrnul.S: New file.
24961
24962 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24963
24964         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
24965         definition.
24966         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
24967         Likwise.
24968         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
24969         Likewise.
24970         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
24971         Likewise.
24972         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
24973         Likewise.
24974         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
24975         Likewise.
24976
24977 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
24978
24979         * catgets/test-gencat.c: Use test-skeleton.c.
24980         * catgets/tst-catgets.c: Likewise.
24981         * csu/tst-empty.c: Likewise.
24982         * elf/tst-audit2.c: Likewise.
24983         * elf/tst-global1.c: Likewise.
24984         * elf/tst-pathopt.c: Likewise.
24985         * elf/tst-piemod1.c: Likewise.
24986         * elf/tst-tls10.c: Likewise.
24987         * elf/tst-tls11.c: Likewise.
24988         * elf/tst-tls12.c: Likewise.
24989         * gnulib/tst-gcc.c: Likewise.
24990         * iconvdata/tst-e2big.c: Likewise.
24991         * iconvdata/tst-loading.c: Likewise.
24992         * iconv/tst-iconv1.c: Likewise.
24993         * iconv/tst-iconv2.c: Likewise.
24994         * inet/test-inet6_opt.c: Likewise.
24995         * inet/tst-gethnm.c: Likewise.
24996         * inet/tst-network.c: Likewise.
24997         * inet/tst-ntoa.c: Likewise.
24998         * intl/tst-codeset.c: Likewise.
24999         * intl/tst-gettext2.c: Likewise.
25000         * intl/tst-gettext3.c: Likewise.
25001         * intl/tst-ngettext.c: Likewise.
25002         * intl/tst-translit.c: Likewise.
25003         * io/test-stat.c: Likewise.
25004         * libio/test-fmemopen.c: Likewise.
25005         * libio/tst-freopen.c: Likewise.
25006         * libio/tst-sscanf.c: Likewise.
25007         * libio/tst-ungetwc1.c: Likewise.
25008         * libio/tst-ungetwc2.c: Likewise.
25009         * libio/tst-widetext.c: Likewise.
25010         * localedata/tst-ctype.c: Likewise.
25011         * localedata/tst-digits.c: Likewise.
25012         * localedata/tst-leaks.c: Likewise.
25013         * localedata/tst-mbswcs1.c: Likewise.
25014         * localedata/tst-mbswcs2.c: Likewise.
25015         * localedata/tst-mbswcs3.c: Likewise.
25016         * localedata/tst-mbswcs4.c: Likewise.
25017         * localedata/tst-mbswcs5.c: Likewise.
25018         * localedata/tst-setlocale.c: Likewise.
25019         * localedata/tst-trans.c: Likewise.
25020         * localedata/tst-wctype.c: Likewise.
25021         * localedata/tst-xlocale1.c: Likewise.
25022         * login/tst-grantpt.c: Likewise.
25023         * malloc/tst-calloc.c: Likewise.
25024         * malloc/tst-malloc.c: Likewise.
25025         * malloc/tst-mallocstate.c: Likewise.
25026         * malloc/tst-mcheck.c: Likewise.
25027         * malloc/tst-mtrace.c: Likewise.
25028         * malloc/tst-obstack.c: Likewise.
25029         * math/atest-exp2.c: Likewise.
25030         * math/atest-exp.c: Likewise.
25031         * math/atest-sincos.c: Likewise.
25032         * math/test-matherr.c: Likewise.
25033         * math/test-misc.c: Likewise.
25034         * math/test-powl.c: Likewise.
25035         * math/tst-definitions.c: Likewise.
25036         * misc/tst-dirname.c: Likewise.
25037         * misc/tst-efgcvt.c: Likewise.
25038         * misc/tst-fdset.c: Likewise.
25039         * misc/tst-hsearch.c: Likewise.
25040         * misc/tst-mntent2.c: Likewise.
25041         * nptl/tst-sem7.c: Likewise.
25042         * nptl/tst-sem8.c: Likewise.
25043         * nptl/tst-sem9.c: Likewise.
25044         * nss/test-netdb.c: Likewise.
25045         * posix/tst-fnmatch.c: Likewise.
25046         * posix/tst-getlogin.c: Likewise.
25047         * posix/tst-gnuglob.c: Likewise.
25048         * posix/tst-mmap.c: Likewise.
25049         * pwd/tst-getpw.c: Likewise.
25050         * resolv/tst-inet_ntop.c: Likewise.
25051         * rt/tst-timer.c: Likewise.
25052         * stdio-common/test-fseek.c: Likewise.
25053         * stdio-common/test-popen.c: Likewise.
25054         * stdio-common/test-vfprintf.c: Likewise.
25055         * stdio-common/tst-cookie.c: Likewise.
25056         * stdio-common/tst-fileno.c: Likewise.
25057         * stdio-common/tst-gets.c: Likewise.
25058         * stdio-common/tst-obprintf.c: Likewise.
25059         * stdio-common/tst-perror.c: Likewise.
25060         * stdio-common/tst-sprintf2.c: Likewise.
25061         * stdio-common/tst-sprintf3.c: Likewise.
25062         * stdio-common/tst-sprintf.c: Likewise.
25063         * stdio-common/tst-swprintf.c: Likewise.
25064         * stdio-common/tst-tmpnam.c: Likewise.
25065         * stdio-common/tst-unbputc.c: Likewise.
25066         * stdio-common/tst-wc-printf.c: Likewise.
25067         * stdlib/tst-environ.c: Likewise.
25068         * stdlib/tst-fmtmsg.c: Likewise.
25069         * stdlib/tst-limits.c: Likewise.
25070         * stdlib/tst-rand48-2.c: Likewise.
25071         * stdlib/tst-rand48.c: Likewise.
25072         * stdlib/tst-random2.c: Likewise.
25073         * stdlib/tst-random.c: Likewise.
25074         * stdlib/tst-strtol.c: Likewise.
25075         * stdlib/tst-strtoll.c: Likewise.
25076         * stdlib/tst-tls-atexit.c: Likewise.
25077         * stdlib/tst-xpg-basename.c: Likewise.
25078         * string/test-ffs.c: Likewise.
25079         * string/tst-bswap.c: Likewise.
25080         * string/tst-inlcall.c: Likewise.
25081         * string/tst-strtok.c: Likewise.
25082         * string/tst-strxfrm.c: Likewise.
25083         * sysdeps/x86_64/tst-audit10.c: Likewise.
25084         * sysdeps/x86_64/tst-audit3.c: Likewise.
25085         * sysdeps/x86_64/tst-audit4.c: Likewise.
25086         * sysdeps/x86_64/tst-audit5.c: Likewise.
25087         * time/tst-ftime_l.c: Likewise.
25088         * time/tst-getdate.c: Likewise.
25089         * time/tst-mktime3.c: Likewise.
25090         * time/tst-mktime.c: Likewise.
25091         * time/tst-posixtz.c: Likewise.
25092         * time/tst-strptime2.c: Likewise.
25093         * time/tst-strptime3.c: Likewise.
25094         * wcsmbs/tst-btowc.c: Likewise.
25095         * wcsmbs/tst-mbrtowc.c: Likewise.
25096         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25097         * wcsmbs/tst-wchar-h.c: Likewise.
25098         * wcsmbs/tst-wcpncpy.c: Likewise.
25099         * wcsmbs/tst-wcrtomb.c: Likewise.
25100         * wcsmbs/tst-wcsnlen.c: Likewise.
25101         * wcsmbs/tst-wcstof.c: Likewise.
25102
25103 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25104
25105         [BZ #14132]
25106         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25107         INTDEF.
25108         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25109         declaration.
25110         (_dl_mcount): Use rtld_hidden_proto.
25111         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25112         _dl_mcount.
25113         * elf/rtld.c (_rtld_global_ro): Likewise.
25114
25115         [BZ #14132]
25116         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25117         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25118         of _dl_init_internal.
25119         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25120         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25121         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25122         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25123         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25124         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25125         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25126         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25127         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25128         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25129         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25130         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25131         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25132         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25133         * sysdeps/tile/dl-start.S (_start): Likewise.
25134         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25135         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25136
25137         [BZ #14132]
25138         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25139         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25140         (rtld_progname): Make macro definition unconditional.
25141         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25142         INTDEF.
25143         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25144         (dl_main): Likewise.
25145         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25146         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25147         instead of _dl_argv_internal.
25148         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25149         __GI__dl_argv instead of INTUSE(_dl_argv).
25150         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25151         __GI__dl_argv instead of _dl_argv_internal.
25152
25153         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25154         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25155         macro.
25156         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25157         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25158         New macro.
25159         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25160         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25161         macro.
25162         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25163         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25164
25165 2014-11-04  Andreas Schwab  <schwab@suse.de>
25166
25167         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25168
25169 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25170
25171         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25172         mtvsrd instruction in binary form.
25173
25174 2014-11-03  Andreas Schwab  <schwab@suse.de>
25175
25176         [BZ #17522]
25177         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25178         for less than MB_LEN_MAX use a local buffer of that size.
25179         * libio/tst-fputws.c: New file.
25180         * libio/Makefile (tests): Add tst-fputws.
25181
25182 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25183
25184         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25185         the size of the fpu_fr.fpu_dregs[] array.
25186
25187 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25188
25189         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25190         (__nanosleep): Do not define as alias.
25191         (nanosleep): Define as alias of __nanosleep.
25192         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25193         __libc_nanosleep name.
25194
25195 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25196
25197         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25198         install.texi in comment.
25199
25200 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25201
25202         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25203         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25204         ... add here and use lwsync or sync ...
25205         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25206         ... and add here using lwsync.
25207
25208 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25209
25210         * elf/dl-machine-reject-phdr.h: New file.
25211         * elf/dl-load.c: #include that.
25212         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25213         if that returned true.
25214
25215 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25216
25217         [BZ #17496]
25218         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25219         gen-as-const-headers chunk.  Add a big scare comment after the last
25220         safe place to touch before-compile.
25221
25222 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25223
25224         * manual/install.texi (Tools for Compilation): Update autoconf
25225         version requirements.
25226         * INSTALL: Regenerated.
25227
25228         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25229         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25230         (__libc_pselect): Likewise.
25231
25232         [BZ #14138]
25233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25237
25238 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25239
25240         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25241         correct barrier instruction.
25242         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25243         Likewise.
25244         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25245         Likewise.
25246
25247 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25248
25249         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25250         after defining inlines.  Instead, just use parens to defeat macro
25251         expansion of __isctype in its declaration.
25252
25253 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25254
25255         * include/sys/uio.h (__libc_readv): Remove declaration.
25256         (__libc_writev): Likewise.
25257         * misc/readv.c (__libc_readv): Rename to __readv.
25258         (__readv): Do not define as alias.
25259         (readv): Define as alias of __readv.
25260         * misc/writev.c (__libc_writev): Rename to __writev.
25261         (__writev): Do not define as alias.
25262         (writev): Define as alias of __writev.
25263         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25264         (__readv): Do not define as alias.
25265         (readv): Define unconditionally as alias of __readv.
25266         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25267         (__writev): Do not define as alias.
25268         (writev): Define unconditionally as alias of __writev.
25269         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25270         name.
25271         (writev): Do not define __libc_writev name.
25272
25273 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25274
25275         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25276         (convert_charseq): New function, broken out of ...
25277         (use_from_charmap): ... here.  Call it.
25278         (use_to_charmap): Use convert_charseq and free instead of duplicating
25279         its code with a variable-length stack struct.
25280
25281 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25282
25283         * include/fcntl.h (__libc_creat): Remove declaration.
25284         * io/creat.c (__libc_creat): Rename to creat.
25285         (creat): Do not define as alias.
25286         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25287         of creat instead of __libc_creat.
25288         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25289         to creat.
25290         (creat): Do not define as alias.
25291         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25292         __libc_creat.
25293         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25294         __libc_creat name.
25295         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25296         Likewise.
25297
25298 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25299
25300         * manual/llio.texi: Add comments discussing why write() may be
25301         considered MT-unsafe on Linux.
25302
25303 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25304
25305         * dl-load.c (local_strdup): Remove.
25306         (expand_dynamic_string_token): Use __strdup.
25307         (decompose_rpath): Likewise.
25308         (_dl_map_object): Likewise.
25309
25310 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25311
25312         [BZ #14132]
25313         * sysdeps/generic/unwind-dw2-fde.c
25314         (__register_frame_info_bases_internal): Do not declare.
25315         (__register_frame_info_table_bases_internal): Likewise.
25316         (__deregister_frame_info_bases_internal): Likewise.
25317         (__register_frame_info_bases): Declare and use hidden_proto before
25318         definition.  Use hidden_def instead of INTDEF.
25319         (__register_frame_info_table_bases): Likewise.
25320         (__deregister_frame_info_bases): Likewise.
25321         (__register_frame_info): Do not use INTUSE.
25322         (__register_frame): Likewise.
25323         (__register_frame_info_table): Likewise.
25324         (__register_frame_table): Likewise.
25325         (__deregister_frame_info): Likewise.
25326         (__deregister_frame): Likewise.
25327
25328 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25329
25330         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25331         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25332         not undefine.
25333         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25334         Likewise.
25335         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25336         Likewise.
25337
25338 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25339
25340         [BZ #14138]
25341         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25342         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25343         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25344         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25345         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25346         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25347         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25348         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25349         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25350         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25351         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25352         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25353         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25354         syscall.
25355         (setfsuid): Likewise.
25356         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25357         (setfsuid): Likewise.
25358         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25359         (setfsuid): Likewise.
25360         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25361         Likewise.
25362         (setfsuid): Likewise.
25363         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25364         (setfsuid): Likewise.
25365         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25366         Likewise.
25367         (setfsuid): Likewise.
25368
25369 2014-10-27  Andreas Schwab  <schwab@suse.de>
25370
25371         [BZ #17501]
25372         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25373         check for Slow_SSE4_2 feature bit.
25374         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25375         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25376         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25377         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25378
25379 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25380
25381         * configure.ac: Validate compiler version with a empirical test of
25382         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25383         $CC -v output.
25384         * configure: Regenerated.
25385
25386         * inet/htons.c (htons): Prototypify.
25387         * inet/htonl.c (htonl): Likewise.
25388
25389 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25390
25391         * string/strncat.c (strncat): Improve performance by using strlen.
25392
25393 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25394
25395         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25396
25397 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25398
25399         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25400         Call libc_fetestexcept_aarch64.
25401
25402 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25403
25404         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25405         Call libc_feholdexcept_aarch64.
25406
25407 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25408
25409         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25410         Call get_rounding_mode.
25411
25412 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25413
25414         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25415         Simplify logic.
25416
25417 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25418
25419         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25420         Simplify logic.
25421
25422 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25423
25424         [BZ #14138]
25425         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25426         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25427         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25428         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25429         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25430         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25431         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25432         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25433         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25434         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25435         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25436         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25437         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25438         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25439         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25440         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25441         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25442         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25443         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25444         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25445         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25446         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25447         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25448         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25449         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25450         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25451         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25452         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25453         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25454         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25455         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25456         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25457         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25458         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25459         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25460         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25461         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25462         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25463         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25464         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25465         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25466         syscall.
25467         (geteuid): Likewise.
25468         (getgid): Likewise.
25469         (getuid): Likewise.
25470         (getresgid): Likewise.
25471         (getresuid): Likewise.
25472         (getgroups): Likewise.
25473         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25474         (geteuid): Likewise.
25475         (getgid): Likewise.
25476         (getuid): Likewise.
25477         (getresgid): Likewise.
25478         (getresuid): Likewise.
25479         (getgroups): Likewise.
25480         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25481         (geteuid): Likewise.
25482         (getgid): Likewise.
25483         (getuid): Likewise.
25484         (getresgid): Likewise.
25485         (getresuid): Likewise.
25486         (getgroups): Likewise.
25487         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25488         Likewise.
25489         (geteuid): Likewise.
25490         (getgid): Likewise.
25491         (getuid): Likewise.
25492         (getresgid): Likewise.
25493         (getresuid): Likewise.
25494         (getgroups): Likewise.
25495         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25496         (geteuid): Likewise.
25497         (getgid): Likewise.
25498         (getuid): Likewise.
25499         (getresgid): Likewise.
25500         (getresuid): Likewise.
25501         (getgroups): Likewise.
25502         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25503         Likewise.
25504         (geteuid): Likewise.
25505         (getgid): Likewise.
25506         (getuid): Likewise.
25507         (getgroups): Likewise.
25508
25509         [BZ #14138]
25510         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25511         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25512         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25513         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25514         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25515         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25516         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25517         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25518         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25519         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25520         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25521         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25522         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25523         __chown.
25524         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25525         (lchown): Likewise.
25526         (fchown): Likewise.
25527         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25528         Likewise.
25529         (lchown): Likewise.
25530         (fchown): Likewise.
25531         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25532         (lchown): Likewise.
25533         (fchown): Likewise.
25534         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25535         Likewise.
25536         (lchown): Likewise.
25537         (fchown): Likewise.
25538
25539 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25540
25541         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25542         Simplify logic.
25543
25544 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25545
25546         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25547         Cleanup logic.
25548
25549 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25550
25551         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25552         Remove unused include.
25553
25554 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25555
25556         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25557         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25558         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25559         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25560
25561 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25562             Helge Deller <deller@gmx.de>
25563
25564         [BZ #17508]
25565         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25566         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25567         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25568
25569 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25570
25571         [BZ #14132]
25572         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25573         Remove macro definition.
25574         (__ashrdi3_v_glibc20): Likewise.
25575         (__lshrdi3_v_glibc20): Likewise.
25576         (__cmpdi2_v_glibc20): Likewise.
25577         (__ucmpdi2_v_glibc20): Likewise.
25578         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25579         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25580         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25581         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25582         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25583         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25584
25585 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25586
25587         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25588         old GNU extension [0] syntax.
25589         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25590         alloca rather than an array member with variable length.
25591         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25592         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25593         (parse_opt): ... here.  Likewise use alloca there.
25594         Validate the -i argument before checking for rootness.
25595         (send_shutdown): New function, broken out of ...
25596         (parse_opt): ... here.
25597
25598 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25599
25600         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25601         macro to get at the _rt_local_ro field.
25602         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25603         ([PIC] case) or _dl_hwcap ([!PIC] case).
25604         * sysdeps/arm/setjmp.S: Likewise.
25605
25606         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25607         * sysdeps/arm/configure.ac: New check to define it.
25608         * sysdeps/arm/configure: Regenerated.
25609         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25610         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25611         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25612         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25613         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25614         Use move/movt pair instead of a load.
25615         (LDST_GLOBAL): Macro removed.
25616         (LDR_GLOBAL): New macro replaces it.
25617         (LDR_HIDDEN): New macro.
25618         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25619         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25620
25621         * setjmp/tst-setjmp-static.c: New file.
25622         * setjmp/Makefile (tests): Add it.
25623         (tests-static): New variable.
25624
25625 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25626
25627         [BZ #17485]
25628         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25629
25630 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25631
25632         [BZ #14132]
25633         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25634
25635 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25636
25637         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25638
25639 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25640
25641         * io/fts.c (dirent_not_directory): New function.
25642         (fts_build): Call it.
25643
25644 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25645
25646         * nptl/version.c (__nptl_main): Use normal __write rather than
25647         INTERNAL_SYSCALL.
25648         (banner): Update copyright years.
25649
25650         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25651         gettimeofday.
25652         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25653         * nptl/pthread_cond_timedwait.c: Likewise.
25654         * nptl/pthread_mutex_timedlock.c: Likewise.
25655         * nptl/sem_timedwait.c: Likewise.
25656
25657         * sysdeps/nptl/bits/libc-lock.h
25658         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25659         (__libc_lock_init_recursive): Return void, not 0.
25660         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25661         (__libc_rwlock_init): Likewise.
25662         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25663
25664 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25665
25666         [BZ #15215]
25667         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25668         (__pthread_once_slow): ... here.
25669         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25670         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25671
25672 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25673
25674         [BZ #15215]
25675         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25676         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25677         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25678         * nptl/pthread_once.c (__pthread_once): Likewise.
25679         Update comments.
25680
25681 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25682
25683         [BZ #14138]
25684         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25685         name.
25686         (writev): Use __libc_writev as strong name.
25687         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25688         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25689
25690 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25691
25692         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25693
25694         * sysdeps/i386/nptl/tls.h
25695         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25696         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25697         New macros.
25698         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25699         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25700         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25701         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25702         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25703         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25704
25705         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25706         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25707         on [__NR_futex].
25708         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25709         broken out of ...
25710         (__pthread_mutex_init): ... here.  Call it.
25711         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25712         Conditionalize PI cases on [__NR_futex].
25713         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25714         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25715         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25716
25717         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25718         conditional on [SIGSETXID].
25719         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25720         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25721         is defined.  Likewise for SIGSETXID.
25722         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25723         Conditionalize definitions on [SIGSETXID].
25724         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25725         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25726         unblocking on [SIGCANCEL].
25727
25728         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25729         [__NR_set_robust_list].
25730
25731 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25732
25733         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25734         (do_compare): Likewise.
25735
25736 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25737
25738         [BZ #15884]
25739         * string/strcoll_l.c: Don't include stdio.h.
25740         (coll_seq): Remove members idxarr and rulearr.
25741         (get_next_seq_cached): Remove function.
25742         (get_next_seq): Likewise.
25743         (get_next_seq_nocache): Rename to get_next_seq.
25744         (do_compare): Remove function.
25745         (do_compare_nocache): Rename to do_compare.
25746         (STRCOLL): Remove weight and rules cache.
25747
25748 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25749
25750         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25751         * sysdeps/arm/sfp-machine.h: ... to here.
25752         * sysdeps/arm/Implies: Remove arm/soft-fp.
25753
25754 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25755
25756         * conform/data/sys/utsname.h-data (*_t): Allow.
25757         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25758         [POSIX] (WEXITED): Do not expect constant.
25759         [POSIX] (WSTOPPED): Likewise.
25760         [POSIX] (WNOHANG): Likewise.
25761         [POSIX] (WNOWAIT): Likewise.
25762         [POSIX] (siginfo_t): Do not expect type or elements.
25763         [POSIX] (pid_t): Do not expect type.
25764         [POSIX] (signal.h): Do not allow header.
25765         [POSIX] (sys/resource.h): Likewise.
25766         [POSIX] (si_*): Do not allow pattern.
25767         [POSIX] (W*): Likewise.
25768         [POSIX] (P_*): Likewise.
25769         [POSIX] (BUS_*): Likewise.
25770         [POSIX] (CLD_*): Likewise.
25771         [POSIX] (FPE_*): Likewise.
25772         [POSIX] (ILL_*): Likewise.
25773         [POSIX] (POLL_*): Likewise.
25774         [POSIX] (SEGV_*): Likewise.
25775         [POSIX] (SI_*): Likewise.
25776         [POSIX] (TRAP_*): Likewise.
25777         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
25778         variable.
25779
25780 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
25781
25782         [BZ #12926]
25783         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
25784         infinite loop when __recvmsg returns 0.
25785
25786 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
25787
25788         * CANCEL-FCT-WAIVE: Remove file.
25789         * CANCEL-FILE-WAIVE: Likewise.
25790
25791         [BZ #14132]
25792         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
25793         instead of INTVARDEF.
25794         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25795         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
25796         rtld_hidden_data_def instead of INTVARDEF.
25797         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25798         * elf/dl-deps.c (expand_dst): Likewise.
25799         * elf/dl-load.c (_dl_dst_count): Likewise.
25800         (_dl_dst_substitute): Likewise.
25801         (decompose_rpath): Likewise.
25802         (_dl_init_paths): Likewise.
25803         (open_path): Likewise.
25804         (_dl_map_object): Likewise.
25805         * elf/rtld.c (dl_main): Likewise.
25806         (process_dl_audit): Likewise.
25807         (process_envvars): Likewise.
25808         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
25809         Remove declaration.
25810         (__libc_enable_secure): Use rtld_hidden_proto.
25811
25812 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25813
25814         * elf/dl-load.c
25815         (add_path): New function broken out of _dl_rtld_di_serinfo.
25816         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
25817
25818 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25819
25820         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
25821         parentheses around macro arguments.
25822         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
25823         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
25824         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
25825         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
25826         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
25827         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25828         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25829         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
25830         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
25831         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
25832         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
25833         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
25834         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
25835         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
25836         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
25837         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
25838         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
25839         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
25840         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
25841         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
25842         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
25843         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
25844         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
25845         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25846         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25847         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
25848         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
25849         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
25850         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
25851         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
25852         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
25853         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
25854         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
25855         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
25856         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
25857         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
25858         Likewise.
25859         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
25860         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25861         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25862         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
25863         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
25864         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
25865         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
25866         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
25867         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
25868         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
25869         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
25870         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
25871         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
25872         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
25873         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
25874         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25875         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25876         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
25877         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
25878         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
25879         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
25880         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
25881         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
25882         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
25883         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
25884         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
25885         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
25886         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
25887         (_FP_FRAC_SRS_1): Likewise.
25888         (_FP_FRAC_CLZ_1): Likewise.
25889         (_FP_MUL_MEAT_1_imm): Likewise.
25890         (_FP_MUL_MEAT_1_wide): Likewise.
25891         (_FP_MUL_MEAT_1_hard): Likewise.
25892         (_FP_SQRT_MEAT_1): Likewise.
25893         (_FP_FRAC_ASSEMBLE_1): Likewise.
25894         (_FP_FRAC_DISASSEMBLE_1): Likewise.
25895         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
25896         (__FP_CLZ_2): Likewise.
25897         (_FP_MUL_MEAT_2_wide): Likewise.
25898         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
25899         (_FP_MUL_MEAT_2_gmp): Likewise.
25900         (_FP_MUL_MEAT_2_120_240_double): Likewise.
25901         (_FP_SQRT_MEAT_2): Likewise.
25902         (_FP_FRAC_ASSEMBLE_2): Likewise.
25903         (_FP_FRAC_DISASSEMBLE_2): Likewise.
25904         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
25905         (_FP_FRAC_CLZ_4): Likewise.
25906         (_FP_MUL_MEAT_4_wide): Likewise.
25907         (_FP_MUL_MEAT_4_gmp): Likewise.
25908         (_FP_SQRT_MEAT_4): Likewise.
25909         (_FP_FRAC_ASSEMBLE_4): Likewise.
25910         (_FP_FRAC_DISASSEMBLE_4): Likewise.
25911         * soft-fp/op-common.h (_FP_CMP): Likewise.
25912         (_FP_CMP_EQ): Likewise.
25913         (_FP_CMP_UNORD): Likewise.
25914         (_FP_TO_INT): Likewise.
25915         (_FP_FROM_INT): Likewise.
25916         [!__FP_CLZ] (__FP_CLZ): Likewise.
25917         (_FP_DIV_HELP_imm): Likewise.
25918         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
25919         Likewise.
25920         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
25921         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
25922         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
25923         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
25924         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
25925         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25926         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25927         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
25928         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
25929         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
25930         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
25931         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
25932         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
25933         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
25934         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
25935         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
25936         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
25937         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
25938         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
25939         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
25940         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
25941         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
25942         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
25943         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25944         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25945         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
25946         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
25947         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
25948         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
25949         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
25950         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
25951         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
25952         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
25953         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
25954         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
25955         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
25956         (FP_UNPACK_RAW_SP): Likewise.
25957         (FP_PACK_RAW_S): Likewise.
25958         (FP_PACK_RAW_SP): Likewise.
25959         (FP_UNPACK_S): Likewise.
25960         (FP_UNPACK_SP): Likewise.
25961         (FP_UNPACK_SEMIRAW_S): Likewise.
25962         (FP_UNPACK_SEMIRAW_SP): Likewise.
25963         (FP_PACK_S): Likewise.
25964         (FP_PACK_SP): Likewise.
25965         (FP_PACK_SEMIRAW_S): Likewise.
25966         (FP_PACK_SEMIRAW_SP): Likewise.
25967         (_FP_SQRT_MEAT_S): Likewise.
25968         (FP_CMP_S): Likewise.
25969         (FP_CMP_EQ_S): Likewise.
25970         (FP_CMP_UNORD_S): Likewise.
25971         (FP_TO_INT_S): Likewise.
25972         (FP_FROM_INT_S): Likewise.
25973
25974         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
25975
25976         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
25977         (FP_EX_INVALID_IMZ): Likewise.
25978         (FP_EX_INVALID_IMZ_FMA): Likewise.
25979         (FP_EX_INVALID_ISI): Likewise.
25980         (FP_EX_INVALID_ZDZ): Likewise.
25981         (FP_EX_INVALID_IDI): Likewise.
25982         (FP_EX_INVALID_SQRT): Likewise.
25983         (FP_EX_INVALID_CVI): Likewise.
25984         (FP_EX_INVALID_VC): Likewise.
25985         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
25986         "invalid" exceptions.
25987         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
25988         (_FP_ADD_INTERNAL): Likewise.
25989         (_FP_MUL): Likewise.
25990         (_FP_FMA): Likewise.
25991         (_FP_DIV): Likewise.
25992         (_FP_CMP_CHECK_NAN): Likewise.
25993         (_FP_SQRT): Likewise.
25994         (_FP_TO_INT): Likewise.
25995         (FP_EXTEND): Likewise.
25996
25997 2014-10-09  Allan McRae  <allan@archlinux.org>
25998
25999         * po/fr.po: Update French translation from translation project.
26000
26001 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26002
26003         [BZ #14132]
26004         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26005         of INTDEF.
26006         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26007         (__cxa_atexit): Use libc_hidden_proto.
26008         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26009
26010         [BZ #14132]
26011         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26012         declaration.
26013         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26014         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26015         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26016         [!_ISOMAC] (__iswctype_internal): Likewise.
26017         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26018         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26019         alias.
26020         (fcntl): Remove __fcntl_internal alias.
26021         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26022         __connect_internal alias.
26023         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26024         Likewise.
26025
26026         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26027         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26028         FP_DENORM_ZERO.
26029         (_FP_CHECK_FLUSH_ZERO): New macro.
26030         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26031         (_FP_CMP): Likewise.
26032         (_FP_CMP_EQ): Likewise.
26033         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26034         FP_DENORM_ZERO.
26035         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26036         (FP_TRUNC): Likewise.
26037
26038         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26039         treated as invalid conversion, not as normal exponent.
26040
26041         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26042         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26043         (_FP_CMP_EQ): Likewise.
26044         (_FP_CMP_UNORD): Likewise.
26045         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26046         (FP_CMP_EQ_D): Likewise.
26047         (FP_CMP_UNORD_D): Likewise.
26048         * soft-fp/extended.h (FP_CMP_E): Likewise.
26049         (FP_CMP_EQ_E): Likewise.
26050         (FP_CMP_UNORD_E): Likewise.
26051         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26052         (FP_CMP_EQ_Q): Likewise.
26053         (FP_CMP_UNORD_Q): Likewise.
26054         * soft-fp/single.h (FP_CMP_S): Likewise.
26055         (FP_CMP_EQ_S): Likewise.
26056         (FP_CMP_UNORD_S): Likewise.
26057         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26058         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26059         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26060         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26061         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26062         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26063         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26064         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26065         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26066         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26067         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26068         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26069         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26070         to FP_CMP_Q.
26071         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26072         FP_CMP_Q.
26073         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26074         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26075         FP_CMP_EQ_Q.
26076         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26077         FP_CMP_Q.
26078         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26079         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26080         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26081         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26082         FP_CMP_EQ_Q.
26083         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26084         FP_CMP_Q.
26085         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26086         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26087         FP_CMP_EQ_Q.
26088         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26089         FP_CMP_Q.
26090         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26091         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26092         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26093         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26094         FP_CMP_EQ_Q.
26095
26096         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26097         a subnormal result, set the underflow exception if trapping on
26098         underflow is enabled.
26099         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26100         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26101         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26102         redefine to 0.
26103         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26104         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26105         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26106         * soft-fp/extendxftf2.c (__extendxftf2): Use
26107         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26108
26109         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26110         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26111         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26112         FP_HANDLE_EXCEPTIONS.
26113         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26114         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26115         FP_HANDLE_EXCEPTIONS.
26116         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26117         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26118         FP_HANDLE_EXCEPTIONS.
26119         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26120         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26121         FP_HANDLE_EXCEPTIONS.
26122
26123 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26124
26125         [BZ #14132]
26126         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26127         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26128         use INTUSE.
26129         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26130         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26131         Remove alias.
26132         (__adjtimex): Define using libc_hidden_ver.
26133         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26134         Remove declaration.
26135         (ntp_gettime): Call __adjtimex directly.
26136         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26137         Remove declaration.
26138         (ntp_gettimex): Call __adjtimex directly.
26139         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26140         __adjtimex_internal alias.
26141
26142 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26143
26144         [BZ #17460]
26145         * nscd/nscd.c (more_help): Rewrite list of tables collection
26146         using xstrdup and asprintf.
26147
26148         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26149
26150 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26151             Roland McGrath  <roland@hack.frob.com>
26152
26153         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26154         (do_lookup_unique): ... local function 'enter' here; update callers.
26155
26156 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26157
26158         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26159         compat_symbol calls on [SHARED].
26160         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26161         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26162         Remove.
26163         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26164         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26165         (oldsetrlimit): Remove.
26166         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26168         (lchown): New syscall entry.
26169         (oldsetrlimit): Remove.
26170         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26171         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26172         (oldsetrlimit): Remove.
26173         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26174
26175         [BZ #14138]
26176         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26177         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26178         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26179         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26180         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26181         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26182         (fchown): Likewise.
26183         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26184         (fchown): Likewise.
26185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26186         Likewise.
26187
26188 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26189
26190         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26191         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26192         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26193         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26194         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26195         Likewise.
26196         (__old_sem_post): Likewise.
26197
26198 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26199
26200         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26201         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26202         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26203         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26204         Use INLINE_VSYSCALL macro.
26205         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26206         __vdso_clock_gettime.
26207         * sysdeps/unix/sysv/linux/tile/init-first.c
26208         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26209         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26210         __vdso_clock_gettime.
26211
26212         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26213         to set up frame more cleanly.
26214
26215         * sysdeps/tile/memcmp.c: New file.
26216
26217         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26218
26219         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26220         * sysdeps/tile/tilegx/strcasestr.c: New file.
26221         * sysdeps/tile/tilegx/strnlen.c: New file.
26222         * sysdeps/tile/tilegx/strstr.c: New file.
26223
26224         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26225
26226 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26227
26228         * nptl/tst-setuid3.c: Write errors to stdout.
26229
26230 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26231
26232         * elf/dl-deps.c
26233         (preload): New functions broken out of _dl_map_object_deps.
26234         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26235
26236 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26237
26238         [BZ #14138]
26239         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26240         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26241
26242 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26243
26244         * sysdeps/mips/strcmp.S: New.
26245
26246 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26247
26248         [BZ #14138]
26249         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26250         (linkat): Likewise.
26251         (mkdirat): Likewise.
26252         (readlinkat): Likewise.
26253         (renameat): Likewise.
26254         (symlinkat): Likewise.
26255         (unlinkat): Likewise.
26256         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26257         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26258         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26259         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26260         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26261         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26262         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26263
26264 2014-09-30  Will Newton  <will.newton@linaro.org>
26265
26266         * math/math.h: Define long double math functions if
26267         _LIBC_TEST is defined.
26268         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26269
26270         * localedata/Makefile: Move assignment to tests-special
26271         into an ifdef testing run-built-tests.
26272         * timezone/Makefile: Likewise.
26273
26274 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26275
26276         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26277         with $(BASH) not $(SHELL).
26278
26279 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26280             Matthew LeGendre  <legendre1@llnl.gov>
26281
26282         [BZ #17411]
26283         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26284         l_reloc_result.
26285
26286 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26287
26288         * stdio-common/printf_fp.c
26289         (hack_digit): New function, broken out of ...
26290         (__printf_fp): ... local function here.  Update call sites.
26291         hack_digit now takes an additional parameter that is a pointer
26292         to a struct of the referenced locals.  Those locals moved inside
26293         the struct and references updated.
26294
26295 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26296
26297         * aclocal.m4: Require autoconf 2.69.
26298         * configure: Regenerated.
26299         * sysdeps/aarch64/configure: Likewise.
26300         * sysdeps/alpha/configure: Likewise.
26301         * sysdeps/arm/armv7/configure: Likewise.
26302         * sysdeps/arm/configure: Likewise.
26303         * sysdeps/ia64/configure: Likewise.
26304         * sysdeps/mach/configure: Likewise.
26305         * sysdeps/mips/configure: Likewise.
26306         * sysdeps/s390/configure: Likewise.
26307         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26309
26310         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26311         file.
26312         * sysdeps/ia64/configure.ac: Likewise.
26313
26314 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26315
26316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26317         specify symbol version for ld.so.  Do not include entry for
26318         libpthread.
26319         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26320         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26321         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26322
26323         [BZ #14171]
26324         * Makeconfig [$(build-shared) = yes]
26325         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26326         makefiles.
26327         [$(build-shared) = yes && $(soversions.mk-done) = t]
26328         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26329         [$(build-shared) = yes && $(soversions.mk-done) = t]
26330         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26331         to Makerules.
26332         [$(build-shared) = yes && $(soversions.mk-done) = t]
26333         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26334         here.
26335         [$(build-shared) = yes && $(soversions.mk-done) = t]
26336         (common-generated): Don't append gnu/lib-names.h and
26337         gnu/lib-names.stmp here.
26338         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26339         (lib-names-h-abi): New variable.
26340         [$(build-shared) = yes && $(soversions.mk-done) = t]
26341         (lib-names-stmp-abi): Likewise.
26342         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26343         abi-variants] (before-compile): Append
26344         $(common-objpfx)$(lib-names-h-abi).
26345         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26346         abi-variants] (common-generated): Append gnu/lib-names.h.
26347         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26348         abi-variants] (install-others-nosubdir): Depend on
26349         $(inst_includedir)/$(lib-names-h-abi).
26350         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26351         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26352         [$(build-shared) = yes && $(soversions.mk-done) = t]
26353         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26354         [$(build-shared) = yes && $(soversions.mk-done) = t]
26355         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26356         [$(build-shared) = yes && $(soversions.mk-done) = t]
26357         (common-generated): Append $(lib-names-h-abi) and
26358         $(lib-names-stmp-abi).
26359         * scripts/lib-names.awk: Do not handle multi being set.
26360         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26361         Remove variable.
26362         (abi-lp64_be-ld-soname): Likewise.
26363         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26364         Likewise.
26365         (abi-hard-ld-soname): Likewise.
26366         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26367         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26368         Remove variable.
26369         (abi-o32_hard-ld-soname): Likewise.
26370         (abi-o32_soft_2008-ld-soname): Likewise.
26371         (abi-o32_hard_2008-ld-soname): Likewise.
26372         (abi-n32_soft-ld-soname): Likewise.
26373         (abi-n32_hard-ld-soname): Likewise.
26374         (abi-n32_soft_2008-ld-soname): Likewise.
26375         (abi-n32_hard_2008-ld-soname): Likewise.
26376         (abi-n64_soft-ld-soname): Likewise.
26377         (abi-n64_hard-ld-soname): Likewise.
26378         (abi-n64_soft_2008-ld-soname): Likewise.
26379         (abi-n64_hard_2008-ld-soname): Likewise.
26380         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26381         Likewise.
26382         (abi-64-v2-ld-soname): Likewise.
26383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26384         ld.so entries.
26385         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26386         variable.
26387         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26388         entry.
26389         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26390         variable.
26391         (abi-64-ld-soname): Likewise.
26392         (abi-x32-ld-soname): Likewise.
26393         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26394         entry.
26395         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26396
26397 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26398
26399         [BZ #14138]
26400         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26401         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26402         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26403         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26404         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26405         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26406         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26407         syscall entry for GLIBC_2.2 symbol version.
26408         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26409         Likewise.
26410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26411         (setrlimit): Likewise.
26412         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26413         Likewise.
26414
26415 2014-09-23  Will Newton  <will.newton@linaro.org>
26416
26417         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26418         _LINUX_ARM_SYSDEP_H include guard too.
26419         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26420         define.
26421
26422 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26423
26424         * sysdeps/unix/sysv/linux/eventfd.c:
26425         Make first argument unsigned.
26426         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26427         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26428
26429 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26430
26431         [BZ #16852]
26432         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26433         * socket/sys/socket.h: Likewise.
26434         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26435
26436 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26437
26438         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26439
26440 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26441
26442         * time/tst-ftime.c: New test.
26443         * time/Makefile (tests): Add tst-ftime.
26444
26445 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26446
26447         * soft-fp/extended.h: Fix comment formatting.
26448         * soft-fp/op-1.h: Likewise.
26449         * soft-fp/op-2.h: Likewise.
26450         * soft-fp/op-4.h: Likewise.
26451         * soft-fp/op-8.h: Likewise.
26452         * soft-fp/op-common.h: Likewise.
26453         * soft-fp/soft-fp.h: Likewise.
26454
26455         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26456
26457 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26458
26459         [BZ #6652]
26460         * Makeconfig (soversions-default-setname): Remove variable.
26461         ($(common-objpfx)soversions.i): Don't pass default_setname to
26462         soversions.awk.
26463         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26464         oldest_abi to abi-versions.awk.
26465         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26466         * config.make.in (oldest-abi): Remove variable.
26467         * configure.ac (--enable-oldest-abi): Remove configure option.
26468         * configure: Regenerated.
26469         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26470         text.
26471         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26472         * scripts/soversions.awk: Do not handle default_setname variable.
26473         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26474         variable.
26475         * sysdeps/mach/hurd/configure: Regenerated.
26476         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26477         variable.
26478         * sysdeps/unix/sysv/linux/configure: Regenerated.
26479
26480 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26481
26482         * elf/Makefile (CFLAGS-interp.c): Remove.
26483         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26484         path string.
26485         * elf/interp.c: Include generated runtime-linker.h
26486
26487         * Makerules (lib%.so): Don't include $(+interp) in
26488         prerequisites.
26489         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26490         * dlfcn/eval.c: Remove file.
26491
26492         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26493         macros.
26494
26495         [BZ #17266]
26496         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26497         4.2 and newer.
26498
26499         [BZ #17370]
26500         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26501
26502 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26503             Jakub Jelinek  <jakub@redhat.com>
26504
26505         [BZ #17266]
26506         * libio/stdio.h: Check definition of __fortify_function
26507         instead of __extern_always_inline to include bits/stdio2.h.
26508         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26509         check if __extern_always_inline is defined.
26510         [__USE_MISC || __USE_XOPEN]: Likewise.
26511         [__USE_ISOC99] Likewise.
26512         * misc/sys/cdefs.h (__fortify_function): Define only if
26513         __extern_always_inline is defined.
26514         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26515         __extern_always_inline and __extern_inline only for g++-4.3
26516         and newer or a compatible gcc.
26517
26518 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26519
26520         [BZ #17371]
26521         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26522         last change to handle zero prefix length.
26523
26524 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26525
26526         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26527         _SC_REGEX_VERSION.
26528
26529         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26530         _POSIX_RAW_SOCKETS.
26531
26532 2014-09-13  Allan McRae  <allan@archlinux.org>
26533
26534         * po/ru.po: Update Russian translation from translation project.
26535
26536 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26537
26538         * locale/programs/locale.c (show_locale_vars): Inline local function
26539         into its sole call site.  Clean up some style nits.
26540         (print_item): New function, broken out of ...
26541         (show_info): ... local function here.  Clean up style nits.
26542
26543         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26544         out of ...
26545         (set_class_defaults): ... local function set_default here.
26546         Define set_default as a macro locally to pass constant parameters.
26547         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26548         rather than a shared local.
26549
26550         * stdlib/rpmatch.c (try): New function, broken out of ...
26551         (rpmatch): ... local function here.  Also, prototypify definition.
26552
26553 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26554
26555         * scripts/soversions.awk: Do not handle configuration names.
26556         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26557         vendor and os variables to soversions.awk.
26558         * configure.ac: Do not modify gnu-* host_os.
26559         * configure: Regenerated
26560         * shlib-versions: Remove first column with configuration names.
26561         * nptl/shlib-versions: Likewise.
26562         * nptl_db/shlib-versions: Likewise.
26563         * sysdeps/hppa/shlib-versions: Likewise.
26564         * sysdeps/m68k/shlib-versions: Likewise.
26565         * sysdeps/mach/hurd/shlib-versions: Likewise.
26566         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26567         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26568         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26569         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26570         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26571         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26572         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26573         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26575         Likewise.
26576         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26577         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26578         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26579         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26580         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26581         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26582         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26583         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26584
26585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26586         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26588         Regenerated.
26589         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26591         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26592
26593         * shlib-versions: Remove OS-specific entries.  Moved to files in
26594         sysdeps.
26595         * sysdeps/mach/hurd/shlib-versions: New file.
26596         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26597
26598         * nptl/shlib-versions: Remove architecture-specific entries.
26599         Moved to files in sysdeps.
26600         * shlib-versions: Likewise.
26601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26602         file.
26603         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26604         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26605         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26606         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26607
26608         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26609         (UDP_NO_CHECK6_RX): Likewise.
26610
26611 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26612
26613         * sysdeps/posix/sysconf.c (__sysconf): Spell
26614         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26615
26616 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26617
26618         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26619         loading.
26620         * iconv/Versions (__gconv_transliterate): Export for use from
26621         gconv modules.
26622         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26623         (struct __gconv_trans_data, __gconv_trans_fct,
26624         __gconv_trans_context_fct, __gconv_trans_query_fct,
26625         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26626         definitions.
26627         (struct __gconv_step_data): Remove __trans member.
26628         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26629         longer hidden.  Remove unused trans_data argument.
26630         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26631         (__gconv_translit_find): Remove declaration.
26632         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26633         prototype.
26634         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26635         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26636         trans_data argument.  Add hidden definition.
26637         (__gconv_translit_find): Remove.
26638         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26639         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26640         * iconv/skeleton.c: Remove transliteration initialization.
26641         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26642         __gconv_step_data initialization.
26643         * libio/iofwide.c (__libio_translit_): Remove.
26644         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26645         * wcsmbs/btowc.c (__btowc): Likewise.
26646         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26647         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26648         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26649         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26650         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26651         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26652         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26653         * wcsmbs/wctob.c (wctob): Likewise.
26654
26655 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26656
26657         [BZ #16194]
26658         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26659         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26660         register usage.
26661         * sysdeps/x86/Makefile: Adjust.
26662
26663 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26664             Roland McGrath  <roland@hack.frob.com>
26665
26666         * locale/weight.h: Add include guard.
26667         (findidx): Make static rather than auto; take new parameters
26668         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26669         * locale/weightwc.h: Likewise.
26670         * posix/fnmatch_loop.c
26671         (FCT): Change type of EXTRA from int32_t to wint_t.
26672         Don't include either header inside the function.
26673         Call FINDIDX rather than findidx, and pass new arguments.
26674         #undef FINDIDX at the end of the file.
26675         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26676         FINDIDX before including fnmatch_loop.c for the non-wide version.
26677         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26678         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26679         for the wide version.
26680         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26681         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26682         Pass new arguments to findidx.
26683         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26684         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26685         Don't #include it inside the function.  Pass new arguments to findidx.
26686         * posix/regex_internal.h
26687         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26688         (re_string_elem_size_at): Don't #include it inside the function.
26689         Pass new arguments to findidx.
26690         * string/strcoll_l.c: #include WEIGHT_H at top level.
26691         (get_next_seq): Don't #include it inside the function.
26692         Pass new arguments to findidx.
26693         (get_next_seq_nocache): Likewise.
26694         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26695         (STRXFRM): Don't #include it inside the function.
26696         Pass new arguments to findidx.
26697
26698 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26699
26700         [BZ #17344]
26701         * malloc/malloc.c (unlink): Turn asserts into a call to
26702         malloc_printerr.
26703
26704 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26705
26706         [BZ #17370]
26707         * libio/wfileops (do_ftell_wide): Free OUT.
26708
26709 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26710
26711         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26712
26713 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26714
26715         [BZ #17363]
26716         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26717         group if the current group is empty.
26718
26719 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26720
26721         * benchtests/bench-memset.c (test_main): Add more test from size
26722         from 32 to 512 bytes.
26723         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26724         Add POWER8 memset object.
26725         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26726         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26727         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26728         implementation.
26729         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26730         Likewise.
26731         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26732         multiarch POWER8 memset optimization.
26733         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26734         POWER8 memset optimization.
26735
26736         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26737         Remove bzero multiarch objects.
26738         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26739         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26740         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26741         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26742         Remove define.
26743         [__bzero]: Redefine to specific name.
26744         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26745         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26746         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26747         define.
26748         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26749         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26750
26751 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26752
26753         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26754         warnings into errors.
26755
26756         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26757         __cxa_thread_atexit_impl prototype.
26758
26759 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26760
26761         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26762         Fix capitalization of error message.
26763
26764 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26765
26766         * sysdeps/mips/preconfigure: Modify ABI tests.
26767
26768 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26769
26770         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26771
26772 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26773             Carlos O'Donell  <carlos@systemhalted.org>
26774
26775         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
26776         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
26777         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
26778         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
26779         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
26780         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
26781         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
26782         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
26783         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
26784         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
26785         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
26786         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
26787         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
26788         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
26789         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
26790         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
26791         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
26792         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
26793         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
26794         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
26795         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
26796         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
26797         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
26798         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
26799         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
26800         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
26801         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
26802         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
26803         Deconditionalize the code that was previously under [RESET_PID].
26804         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
26805         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
26806         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
26807         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
26808         include sysdep.h.
26809
26810 2014-09-08  Allan McRae  <allan@archlinux.org>
26811
26812         * version.h (RELEASE): Set to "development".
26813         (VERSION): Set to "2.20.90"
26814
26815 2014-09-07  Allan McRae  <allan@archlinux.org
26816
26817         * version.h (RELEASE): Set to "stable".
26818         (VERSION): Set to "2.20"
26819         * include/features.h (__GLIBC_MINOR__): Set to 20.
26820
26821         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
26822         Liebler.
26823
26824         * po/ko.po: Update Korean translation from translation project.
26825
26826 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
26827
26828         [BZ #17354]
26829         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
26830         macro for handling signed relocations.
26831
26832 2014-09-03  Florian Weimer  <fweimer@redhat.com>
26833
26834         [BZ #17325]
26835         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
26836         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
26837         assert.
26838         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
26839         * iconvdata/ibm935.c (BODY): Likewise.
26840         * iconvdata/ibm937.c (BODY): Likewise.
26841         * iconvdata/ibm939.c (BODY): Likewise.
26842         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
26843         assert.
26844         * iconvdata/Makefile (iconv-test.out): Pass module list to test
26845         script.
26846         * iconvdata/run-iconv-test.sh: New test loop for checking for
26847         decoder crashers.
26848
26849 2014-09-02  Khem Raj  <raj.khem@gmail.com>
26850
26851         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
26852         libm_hidden_ver.
26853
26854 2014-09-01  Allan McRae  <allan@archlinux.org>
26855
26856         * po/eo.po: Update Esperanto translation from translation project.
26857
26858         * po/ca.po: Update Catalan translation from translation project.
26859
26860 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26861
26862         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
26863         __proc_dostop call.
26864
26865 2014-08-27  Mark Wielaard  <mjw@redhat.com>
26866
26867         [BZ #17319]
26868         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
26869         to call set_thread_area instead of hand written asm.
26870         (__NR_set_thread_area): Removed define.
26871         (TLS_FLAG_WRITABLE): Likewise.
26872         (__ASSUME_SET_THREAD_AREA): Remove check.
26873         (TLS_EBX_ARG): Remove define.
26874         (TLS_LOAD_EBX): Likewise.
26875
26876 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26877
26878         Simplify atomicity of socket creation in bind.
26879
26880         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
26881         looking up the name after linking the file.
26882
26883 2014-08-27  Allan McRae  <allan@archlinux.org>
26884
26885         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26886
26887 2014-08-26  Florian Weimer  <fweimer@redhat.com>
26888
26889         [BZ #17187]
26890         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
26891         trans_compare, open_translit, __gconv_translit_find):
26892         Remove module loading code.
26893
26894 2014-08-26  Allan McRae  <allan@archlinux.org>
26895
26896         * po/vi.po: Update Vietnamese translation from translation project.
26897
26898         * po/uk.po: Update Ukrainian translation from translation project.
26899
26900         * po/fr.po: Update French translation from translation project.
26901
26902         * po/ru.po: Update Russian translation from translation project.
26903
26904         * po/pl.po: Update Polish translation from translation project.
26905
26906         * po/cs.po: Update Czech translation from translation project.
26907
26908         * po/de.po: Update German translation from translation project.
26909
26910         * po/bg.po: Update Bulgarian translation from translation project.
26911
26912         * po/sv.po: Update Sweedish translation from translation project.
26913
26914         * po/nl.po: Update Dutch translation from translation project.
26915
26916         * po/es.po: Update Spanish translation from translation project.
26917
26918 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26919
26920         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
26921
26922         * catgets/Makefile (CPPFLAGS-gencat): Remove.
26923         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
26924         (CPPFLAGS-iconvconfig): Likewise.
26925         * timezone/Makefile (CPPFLAGS-zic): Likewise.
26926
26927         * include/libc-symbols.h: Remove unnecessary check for
26928         NOT_IN_libc.
26929         * nptl/pthreadP.h: Likewise.
26930         * sysdeps/aarch64/setjmp.S: Likewise.
26931         * sysdeps/alpha/setjmp.S: Likewise.
26932         * sysdeps/arm/sysdep.h: Likewise.
26933         * sysdeps/i386/setjmp.S: Likewise.
26934         * sysdeps/m68k/setjmp.c: Likewise.
26935         * sysdeps/posix/getcwd.c: Likewise.
26936         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
26937         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
26938         * sysdeps/s390/s390-32/setjmp.S: Likewise.
26939         * sysdeps/s390/s390-64/setjmp.S: Likewise.
26940         * sysdeps/sh/sh3/setjmp.S: Likewise.
26941         * sysdeps/sh/sh4/setjmp.S: Likewise.
26942         * sysdeps/unix/alpha/sysdep.h: Likewise.
26943         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
26944         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
26945         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
26946         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
26947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26949         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26950         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26951         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
26952         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26953         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26954         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
26955         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
26956         * sysdeps/x86_64/setjmp.S: Likewise.
26957
26958 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
26959
26960         [BZ #17263]
26961         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
26962         <stdint.h>.
26963         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
26964         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
26965
26966 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
26967
26968         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
26969
26970         [BZ #17262]
26971         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
26972         and __x86_64__ when disabling x87 inline functions.
26973
26974 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26975
26976         [BZ #17259]
26977         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
26978         asm statement with __cpuid_count.
26979
26980 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
26981
26982         * configure.ac: Change __ehdr_start code to dereference the struct.
26983         Run readelf on the output to look for relocations.
26984         * configure: Regenerated.
26985
26986 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
26987
26988         [BZ #17261]
26989         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
26990         value to 0.
26991         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
26992
26993 2014-08-12  Roland McGrath  <roland@hack.frob.com>
26994
26995         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
26996
26997 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
26998
26999         [BZ #16892]
27000         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27001         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27002
27003 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27004
27005         * malloc/malloc.c: Fix typo in comment.
27006
27007 2014-08-09  Allan McRae  <allan@archlinux.org>
27008
27009         * Regenerate libc.po.
27010
27011 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27012
27013         * intl/tst-gettext2.sh: Check every lang file for creation.
27014
27015 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27016
27017         * sysdeps/aarch64/fpu/math_private.h
27018         (libc_feholdsetround_noex_aarch64_ctx): New function.
27019
27020 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27021
27022         * sysdeps/arm/armv6/strcpy.S (strcpy):
27023         Fix performance issue in misaligned cases.
27024
27025 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27026
27027         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27028         Move definition from termios.h.
27029         (struct termio): Likewise.
27030         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27031         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27032         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27033         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27034         Likewise.
27035         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27036         Move definition to ioctl-types.h
27037         (struct termio): Likewise.
27038         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27039         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27040         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27041         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27042         Likewise.
27043
27044 2014-08-05  Richard Henderson  <rth@redhat.com>
27045
27046         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27047         exceptions.
27048         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27049         Add fraiseexcpt.
27050         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27051         Use __feraiseexcept.
27052         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27053         Protect libm symbols with IS_IN_libm.
27054
27055         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27056
27057 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27058
27059         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27060
27061 2014-08-04  Will Newton  <will.newton@linaro.org>
27062
27063         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27064         file.
27065
27066 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27067
27068         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27069         variants for each function.
27070
27071 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27072
27073         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27074         appended ...
27075         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27076         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27077         appended ...
27078         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27079         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27080         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27081         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27082         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27083         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27084         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27085         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27086         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27087         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27088         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27089         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27090         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27091         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27092         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27093         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27094         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27095         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27096         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27097         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27098         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27099         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27100         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27101         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27102         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27103         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27104         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27105         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27106         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27107         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27108         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27109         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27110         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27111         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27112         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27113         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27114         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27115         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27116         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27117         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27118         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27119         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27120         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27121         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27122         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27123         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27124         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27125         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27126         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27127         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27128         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27129         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27130         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27131         Update #include.
27132         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27133         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27134
27135 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27136
27137         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27138         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27139         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27140         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27141         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27142         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27143
27144 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27145
27146         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27147         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27148         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27149         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27150
27151 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27152
27153         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27154         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27155         (__libc_vfork): Define function under this name.
27156         (__vfork): Define as an alias.
27157         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27158         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27159
27160 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27161
27162         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27163         that was previously under [RESET_PID].
27164         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27165
27166 2014-08-04  Andreas Schwab  <schwab@suse.de>
27167
27168         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27169
27170 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27171
27172         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27173         (main): Likewise.
27174
27175 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27176
27177         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27178
27179 2014-08-01  Richard Henderon  <rth@redhat.com>
27180
27181         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27182         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27183         typo in exact zero test.
27184         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27185         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27186         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27187
27188 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27189
27190         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27191         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27192         * sysdeps/arm/sysdep.h: ... here.
27193         [!__ASSEMBLER__]: Include <stdint.h>.
27194
27195 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27196
27197         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27198         (HAVE_WCTYPE_H): Likewise.
27199         (HAVE_ISWCTYPE): Likewise.
27200         (ENABLE_NLS): Likewise.
27201         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27202         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27203
27204         * posix/regex_internal.c: Check if DEBUG is defined and is
27205         set.
27206
27207         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27208         (HAVE_MBSRTOWCS): Likewise.
27209         * posix/fnmatch.c: Include string.h unconditionally.
27210
27211 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27212
27213         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27214         reversal.
27215
27216 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27217
27218         * sysdeps/generic/safe-fatal.h: New file.
27219         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27220         * nptl/forward.c: Include it.
27221         (__pthread_unwind): Use __safe_fatal as default action, rather
27222         than a bogus use of INTERNAL_SYSCALL that could never work.
27223
27224         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27225         * configure.ac (libc_cv_builtin_trap): New test.
27226         * configure: Regenerated.
27227         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27228         (ABORT_INSTRUCTION): Define using __builtin_trap.
27229
27230         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27231         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27232         * sysdeps/nptl/nptl-signals.h: New file.
27233         * nptl/pthreadP.h: Include <nptl-signals.h>.
27234
27235 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27236
27237         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27238         (ONE_DIRECTION): Define.
27239         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27240         (ONE_DIRECTION): Define.
27241         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27242         (ONE_DIRECTION): Define.
27243
27244 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27245
27246         * sysdeps/s390/Makefile: Delete file.
27247         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27248         * sysdeps/s390/__longjmp.c: Delete file.
27249         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27250         Remove fields __flags and __reserved.
27251         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27252         and add versioning.
27253         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27254         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27255         * sysdeps/s390/rtld-setjmp.S: Likewise.
27256         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27257         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27258         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27259         * sysdeps/s390/s390-32/setjmp.S: ... here.
27260         Add versioning.
27261         (__sigsetjmp): Remove setting __flags field.
27262         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27263         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27264         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27265         * sysdeps/s390/s390-64/setjmp.S: ... here.
27266         Add versioning.
27267         (__sigsetjmp): Remove setting __flags field.
27268         * sysdeps/s390/setjmp.S: Delete file.
27269         * sysdeps/s390/sigjmp.c: Likewise.
27270         * sysdeps/s390/v1-longjmp.c: Likewise.
27271         * sysdeps/s390/v1-setjmp.h: Likewise.
27272         * sysdeps/s390/v1-sigjmp.c: Likewise.
27273         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27274         Remove v1-longjmp_chk.
27275         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27276         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27277         Include debug/longjmp_chk.c and add versioning.
27278         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27279         Include nptl/pt-longjmp.c and add versioning.
27280         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27281         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27282         Include __longjmp.c.
27283         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27284         Move to ...
27285         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27286         (__getcontext): Remove setting __flags field.
27287         Add versioning.
27288         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27289         Don't restore upper high grps.
27290         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27291         Likewise.
27292         (__swapcontext): Remove setting uc_flags field.
27293         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27294         Delete file.
27295         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27296         Include __longjmp.c.
27297         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27298         Move to ...
27299         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27300         (__getcontext): Remove setting __flags field.
27301         Add versioning.
27302         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27303         (__swapcontext): Remove setting uc_flags field.
27304         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27305         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27306         Remove fields uc_high_gprs and __reserved.
27307         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27308         New file with reverted content.
27309         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27310         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27311         Regenerated.
27312         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27313         Regenerated.
27314
27315 2014-07-31  Andreas Schwab  <schwab@suse.de>
27316
27317         * config.h.in (HAVE_IFUNC): Define to 0.
27318         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27319         definedness.
27320
27321 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27322
27323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27324         memmove-avx-unaligned, memcpy-avx-unaligned and
27325         mempcpy-avx-unaligned.
27326         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27327         Add tests for AVX memcpy functions.
27328         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27329         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27330         memcpy_chk.
27331         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27332         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27333         memmove_chk.
27334         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27335         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27336         mempcpy_chk.
27337         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27338         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27339         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27340
27341 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27342
27343         [BZ #17213]
27344         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27345         powerpc64le.
27346
27347 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27348
27349         [BZ #16839]
27350         * manual/llio.texi: Add section about open file description locks.
27351         * manual/examples/ofdlocks.c: Example of open file description
27352         lock usage.
27353         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27354         F_OFD_SETLK, and F_OFD_SETLKW.
27355
27356 2014-07-23  Allan McRae  <allan@archlinux.org>
27357
27358         * po/es.po: Update Spanish translation from translation project.
27359
27360 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27361
27362         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27363
27364 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27365
27366         [BZ #17078]
27367         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27368         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27369         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27370
27371 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27372
27373         [BZ #17088]
27374         * math/fesetenv.c (__fesetenv)
27375         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27376         * math/feupdateenv.c (__feupdateenv)
27377         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27378
27379         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27380         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27381         (__ASSUME_SOCKETCALL): Do not define.
27382
27383         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27384         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27385         (__ASSUME_SOCKETCALL): Do not define.
27386         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27387         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27388         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27389         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27390         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27391         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27392         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27393         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27394
27395         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27396         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27397         (__ASSUME_SOCKETCALL): Do not define.
27398         (__ASSUME_IPC64): Define unconditionally.
27399         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27400         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27401         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27402         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27403         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27404         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27405         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27406         Likewise.
27407
27408         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27409         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27410         (__ASSUME_SOCKETCALL): Do not define.
27411         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27412         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27413         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27414         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27415         (__ASSUME_REQUEUE_PI): Define unconditionally.
27416         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27417         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27418         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27419         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27420         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27421         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27422
27423         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27424         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27425         (__ASSUME_SOCKETCALL): Do not define.
27426         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27427         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27428         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27429         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27430         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27431         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27432
27433         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27434         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27435         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27436         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27437         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27438         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27439         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27440         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27441         (__ASSUME_GETCPU_SYSCALL): Likewise.
27442
27443         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27444         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27445         cases for individual architectures.
27446         * sysdeps/gnu/configure: Regenerated.
27447         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27448         LIBC_SLIBDIR_RTLDDIR.
27449         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27450         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27451         LIBC_SLIBDIR_RTLDDIR.
27452         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27454         LIBC_SLIBDIR_RTLDDIR.
27455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27456         Regenerated.
27457         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27458         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27459         file.
27460         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27461         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27462         file.
27463         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27464         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27465         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27466         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27467
27468         * sysdeps/aarch64/shlib-versions: Move to ...
27469         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27470         * sysdeps/alpha/shlib-versions: Move to ...
27471         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27472         * sysdeps/arm/shlib-versions: Move to ...
27473         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27474         * sysdeps/hppa/shlib-versions: Move all contents except for
27475         libgcc_s entry to ...
27476         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27477         entry from ...
27478         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27479         * sysdeps/ia64/shlib-versions: Move to ...
27480         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27481         entry from ...
27482         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27483         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27484         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27485         * sysdeps/microblaze/shlib-versions: Move to ...
27486         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27487         * sysdeps/mips/shlib-versions: Move to ...
27488         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27489         entry from ...
27490         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27491         * sysdeps/tile/shlib-versions: Move to ...
27492         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27493         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27494         from ...
27495         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27496         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27497         entry from ...
27498         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27499
27500 2014-07-17  Will Newton  <will.newton@linaro.org>
27501
27502         * sysdeps/arm/bits/atomic.h
27503         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27504         (__arch_compare_and_exchange_bool_16_int): Likewise.
27505         (__arch_compare_and_exchange_bool_64_int): Likewise.
27506
27507         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27508         into an #else block.
27509
27510 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27511
27512         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27513         just Linux configurations.  Test empirically that the compiler sets
27514         __ARM_EABI__, rather than using the tuple to decide.
27515         * sysdeps/arm/preconfigure: Regenerated.
27516         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27517         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27518         contents appended ...
27519         * sysdeps/arm/configure.ac: ... here.
27520         * sysdeps/arm/configure: Regenerated.
27521
27522 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27523
27524         * nptl/pthread_kill.c: New file.
27525         * nptl/pthread_sigmask.c: New file.
27526         * nptl/pthread_sigqueue.c: New file.
27527
27528         * sysdeps/nptl/lowlevellock.h: New file.
27529         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27530         * sysdeps/nptl/lowlevellock-futex.h: New file.
27531
27532         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27533         Remove dead declarations.
27534
27535 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27536
27537         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27538         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27539         config-cflags-avx2.
27540         * sysdeps/x86_64/configure.ac: Likewise.
27541         * sysdeps/i386/configure: Regenerated.
27542         * sysdeps/x86_64/configure: Likewise.
27543         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27544         memset-avx2 only if config-cflags-avx2 is yes.
27545         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27546         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27547         defined.
27548         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27549         only if HAVE_AVX2_SUPPORT is defined.
27550         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27551
27552 2014-07-14  Alan Modra  <amodra@gmail.com>
27553
27554         [BZ #17153]
27555         * elf/elf.h (DT_PPC64_NUM): Correct value.
27556         * NEWS: Add to fixed bug list.
27557
27558 2014-07-13  Jim Meyering  <meyering@fb.com>
27559
27560         [BZ 17150]
27561         regex: don't deref NULL upon heap allocation failure
27562         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27563         failure in one more place.
27564         To trigger the segfault, configure grep -with-included-regex,
27565         build it, and run these commands:
27566         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27567
27568 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27569
27570         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27571
27572 2014-07-11  Richard Henderson  <rth@redhat.com>
27573
27574         * sysdeps/aarch64/libm-test-ulps: Update.
27575
27576 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27577
27578         [BZ #17135]
27579         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27580         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27581         (__nptl_setxid): Initialize error member.  Call
27582         __nptl_setxid_error.
27583         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27584         * nptl/descr.h (struct xid_command): Add error member.
27585         * nptl/tst-setuid3.c: New file.
27586         * nptl/Makefile (tests): Add it.
27587
27588 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27589
27590         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27591         New define.
27592         (__lll_trylock): Use __lll_base_trylock.
27593         (__lll_cond_trylock): Likewise.
27594
27595 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27596
27597         * nptl/pthread_create.c (start_thread): Use atomic_or and
27598         lll_futex_wake directly rather than lll_robust_dead.
27599         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27600         (lll_robust_dead): Macro removed.
27601         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27602         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27603         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27604         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27605         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27606         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27607         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27608         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27609         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27610         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27611         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27612         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27613         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27614         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27615         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27616
27617         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27618         Use atomic_compare_and_exchange_val_acq directly rather than
27619         lll_robust_trylock.
27620         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27621         (__lll_robust_trylock, lll_robust_trylock): Removed.
27622         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27623         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27624         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27625         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27626         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27627         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27628         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27629         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27630         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27631         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27632         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27633         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27634         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27635         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27636
27637 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27638
27639         * manual/locale.texi (Locale Names): New section documenting
27640         locale name syntax.  Adjust menu and node chaining accordingly.
27641         (Choosing Locale): Reference Locale Names, Locale Categories.
27642         Mention setting LC_ALL=C.  Reflect that name syntax is now
27643         documented.
27644         (Locale Categories): New section title.  Reference Locale Names.
27645         LC_ALL is an environment variable, but not a category.
27646         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27647         description, now in Locale Name.  Reference that section.  Locale
27648         name syntax is now documented.
27649
27650 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27651
27652         [BZ #17137]
27653         * locale/findlocale.c (name_present, valid_locale_name): New
27654         functions.
27655         (_nl_find_locale): Use the loc_name variable to store name
27656         candidates.  Call name_present and valid_locale_name to check and
27657         validate locale names.  Return an error if the locale is invalid.
27658
27659 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27660
27661         * locale/setlocale.c (setlocale): Use strdup for allocating
27662         composite name copy.
27663
27664 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27665
27666         Sync up with gnulib.
27667         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27668         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27669         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27670         and _GL_ARG_NONNULL.
27671         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27672         [!_LIBC]: Include code for Windows and Cygwin.
27673         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27674         Include prototype for int strerror_r.
27675         [!_LIBC] (is_open): New function.
27676         (flush_stdout): New function.
27677         (print_errno_message): Use it.
27678         (error): Likewise.
27679         (error_at_line): Likewise.
27680         (error_tail) Add function attribute macros.  Use
27681         __builtin_expect.
27682
27683         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27684
27685         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27686
27687         * io/ftw.c: Include sys/param.h unconditionally.
27688
27689         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27690
27691         [BZ #17125]
27692         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27693         libc_freeres_ptr.
27694         (freecache): New function to free CACHE on exit.
27695
27696         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27697         initialization.
27698
27699 2014-07-09  David S. Miller  <davem@davemloft.net>
27700
27701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27702
27703         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27704         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27705         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27706         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27707         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27708         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27709         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27710         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27711         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27712         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27713         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27714         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27715         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27716
27717 2014-07-09  Andreas Schwab  <schwab@suse.de>
27718
27719         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27720         output.
27721         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27722         (do_test): Likewise.
27723
27724         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27725
27726 2014-07-09  Will Newton  <will.newton@linaro.org>
27727
27728         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27729         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27730         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27731         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27732         * sysdeps/hppa/start.S (_start): Likewise.
27733
27734 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27735
27736         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27737
27738         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27739         defined.
27740
27741 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27742
27743         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27744         after checking that it is non-NULL.
27745
27746         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27747
27748 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27749
27750         * sysdeps/powerpc/memmove.c: Remove file.
27751         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27752         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27753         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27754         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27755         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27756         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27757         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27758         string memmove instead of removed powerpc one.
27759
27760         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27761         [weak_alias]: Fix compiler warning due trailing data.
27762         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27763         [weak_alias]: Likewise.
27764         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27765         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27766
27767         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27768         (__libc_ifunc_impl_list): Add memmove functions.
27769
27770 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27771
27772         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27773         Remove code.
27774         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27775         Likewise.
27776         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
27777         Likewise.
27778         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
27779         Likewise.
27780         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
27781         Likewise.
27782         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
27783         Likewise.
27784         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
27785         Likewise.
27786         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
27787         Likewise.
27788         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
27789         Likewise.
27790         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
27791         Likewise.
27792         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
27793         Likewise.
27794         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
27795         Likewise.
27796         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
27797         Likewise.
27798         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
27799         Likewise.
27800         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
27801         Likewise.
27802         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
27803         Likewise.
27804         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
27805         Likewise.
27806
27807 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27808
27809         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
27810         to avoid alignment traps in non-cacheable memory.
27811         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
27812
27813         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
27814         multiarch objects.
27815         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
27816         file: multiarch power7 memmove.
27817         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
27818         multiarch default memmove.
27819         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
27820         multiarch memove for powerpc32/power4.
27821
27822         * string/bcopy.c: Use full path to include memmove.c.
27823         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
27824         multiarch objects.
27825         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
27826         bcopy for powerpc64.
27827         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
27828         bcopy for powerpc64.
27829         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
27830         and memmove implementations.
27831         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
27832         optimized multiarch memmove for POWER7/powerpc64.
27833         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
27834         default multiarch memmove for powerpc64.
27835         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
27836         multiarch for powerpc64.
27837         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
27838         for POWER7/powerpc64.
27839         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
27840         memmove for POWER7/powerpc64.
27841
27842         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
27843         glibc default one.
27844
27845         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
27846         __ELF_NATIVE_CLASS equal to 64.
27847
27848 2014-07-07  Roland McGrath  <roland@hack.frob.com>
27849
27850         * sysdeps/nptl/lowlevellock.h: File removed.
27851
27852         * NEWS: NPTL is no longer an add-on!
27853         * nptl/internaltypes.h: Moved ...
27854         * sysdeps/nptl/internaltypes.h: ... here.
27855         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
27856         * sysdeps/nptl/fork.c: Likewise.
27857         * sysdeps/nptl/gai_misc.h: Likewise.
27858         * sysdeps/nptl/librt-cancellation.c: Likewise.
27859         * sysdeps/nptl/jmp-unwind.c: Likewise.
27860         * sysdeps/nptl/setxid.h: Likewise.
27861         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
27862         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
27863         * sysdeps/unix/sysv/linux/arm/Implies: New file.
27864         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
27865         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
27866         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
27867         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
27868         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
27869         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
27870         * sysdeps/unix/sysv/linux/mips/Implies: New file.
27871         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
27872         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
27873         * sysdeps/unix/sysv/linux/sh/Implies: New file.
27874         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
27875         * sysdeps/unix/sysv/linux/tile/Implies: New file.
27876         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
27877         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
27878         * nptl/Makeconfig: Moved ...
27879         * sysdeps/nptl/Makeconfig: ... here.
27880         * nptl/configure: File removed.
27881         * nptl/ANNOUNCE: File removed.
27882         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
27883         * sysdeps/unix/sysv/linux/configure: Regenerated.
27884
27885         * nptl/Makefile (routines): Add libc_pthread_init,
27886         libc_multiple_threads, register-atfork and unregister-atfork.
27887         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
27888         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
27889         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
27890         pthread-pi-defines.sym, structsem.sym.
27891         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
27892         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
27893         [$(subdir) = nptl] (tests): Add tst-setgetname.
27894         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
27895         * sysdeps/unix/sysv/linux/sigaction.c: Just include
27896         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
27897         [!LIBC_SIGACTION]: Remove aliases.
27898         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
27899         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
27900         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
27901         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
27902         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
27903         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
27904         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27905         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27906         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
27907         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
27908         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
27909         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
27910         __libc_allocate_rtsig_private.
27911         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
27912         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
27913         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27914         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27915         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
27916         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
27917         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
27918         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
27919         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
27920         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
27921         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
27922         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
27923         * nptl/internaltypes.h: ... here.
27924         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
27925         * sysdeps/nptl/jmp-unwind.c: ... here.
27926         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
27927         * nptl/libc-lowlevellock.c: ... here.
27928         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
27929         * nptl/libc_multiple_threads.c: ... here.
27930         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
27931         * nptl/libc_pthread_init.c: ... here.
27932         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
27933         * nptl/lowlevelbarrier.sym: ... here.
27934         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
27935         * nptl/lowlevelcond.sym: ... here.
27936         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
27937         * nptl/lowlevellock.c: ... here.
27938         * nptl/lowlevellock.h: Moved ...
27939         * sysdeps/nptl/lowlevellock.h: ... here.
27940         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
27941         * nptl/lowlevelrobustlock.c: ... here.
27942         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
27943         * nptl/lowlevelrobustlock.sym: ... here.
27944         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
27945         * nptl/lowlevelrwlock.sym: ... here.
27946         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
27947         * nptl/pt-fork.c: ... here.
27948         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
27949         * nptl/pthread-pi-defines.sym: ... here.
27950         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
27951         * nptl/pthread_attr_getaffinity.c: ... here.
27952         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
27953         * nptl/pthread_attr_setaffinity.c: ... here.
27954         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
27955         * nptl/pthread_mutex_cond_lock.c: ... here.
27956         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
27957         Update #include.
27958         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
27959         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
27960         * nptl/pthread_once.c: ... here, replacing old file.
27961         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
27962         * nptl/pthread_yield.c: ... here.
27963         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
27964         * nptl/register-atfork.c: ... here.
27965         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
27966         * nptl/sem_post.c: ... here.
27967         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
27968         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
27969         * nptl/sem_timedwait.c: ... here.
27970         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
27971         * nptl/sem_trywait.c: ... here.
27972         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
27973         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
27974         * nptl/sem_wait.c: ... here.
27975         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
27976         * nptl/structsem.sym: ... here.
27977         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
27978         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
27979         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
27980         * nptl/unregister-atfork.c: ... here.
27981         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
27982         * nptl/unwindbuf.sym: ... here.
27983         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
27984         * sysdeps/nptl/fork.c: ... here.
27985         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
27986         * sysdeps/nptl/fork.h: ... here.
27987         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
27988         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
27989         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
27990         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
27991         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
27992         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
27993         * sysdeps/unix/sysv/linux/getpid.c: ... here.
27994         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
27995         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
27996         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
27997         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
27998         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
27999         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28000         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28001         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28002         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28003         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28004         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28005         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28006         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28007         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28008         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28009         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28010         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28011         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28012         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28013         * sysdeps/unix/sysv/linux/raise.c: ... here.
28014         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28015         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28016         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28017         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28018         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28019         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28020         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28021         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28022         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28023         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28024         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28025         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28026         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28027         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28028         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28029
28030 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28031
28032         * sysdeps/generic/memcopy.h: Add comment for
28033         MEMCPY_OK_FOR_FWD_MEMMOVE.
28034
28035 2014-07-04  Will Newton  <will.newton@linaro.org>
28036
28037         * string/memchr.c: Merge from gnulib.
28038         [_LIBC]: Remove conditionals.
28039         (__ptr_t): Remove define.
28040         (LONG_MAX_32_BITS): Likewise.
28041         (LONG_MAX): Likewise.
28042         (MEMCHR): Use ANSI prototype and optimize algorithm.
28043
28044         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28045
28046 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28047
28048         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28049         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28050
28051         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28052         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28053         in a bare environment with no <stdlib.h> installed.
28054         * sysdeps/nptl/configure: Regenerated.
28055
28056         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28057
28058         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28059         AC_EGREP_CPP for kernel header checks, so they only succeed if
28060         including <linux/version.h> actually works right.
28061         * sysdeps/unix/sysv/linux/configure: Regenerated.
28062
28063         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28064         value so it's not diagnosed as unused.
28065
28066         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28067         thing) with "ifeq ($(subdir),rt)".
28068
28069 2014-07-03  Richard Henderson  <rth@redhat.com>
28070
28071         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28072         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28073         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28074
28075         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28076         (math_force_eval): New.
28077
28078         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28079         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28080
28081         * sysdeps/alpha/fpu/s_round.c: Remove file.
28082         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28083
28084         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28085         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28086         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28087         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28088         (_dl_start, print_statistics): Likewise.
28089         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28090         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28091
28092         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28093         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28094         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28095         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28096         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28097         (HP_SMALL_TIMING_AVAIL): Define.
28098         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28099         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28100         (HP_SMALL_TIMING_AVAIL): Define.
28101         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28102         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28103
28104         * sysdeps/aarch64/hp-timing.h: New file.
28105
28106         * sysdeps/generic/hp-timing.h: Remove dead comment.
28107         * sysdeps/generic/hp-timing-common.h: New file.
28108         * sysdeps/alpha/hp-timing.h: Include it.
28109         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28110         * sysdeps/i386/i686/hp-timing.h: Likewise.
28111         * sysdeps/ia64/hp-timing.h: Likewise.
28112         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28113         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28114         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28115         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28116         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28117         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28118         (hp_timing_t): New.
28119
28120         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28121         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28122         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28123         * elf/rtld.c (_dl_start_final): Likewise.
28124         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28125         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28126         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28127         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28128         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28129         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28130         (HP_TIMING_DIFF_INIT): Remove.
28131         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28132         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28133         (HP_TIMING_DIFF_INIT): Remove.
28134         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28135         * sysdeps/i386/i686/hp-timing.c: Remove file.
28136         * sysdeps/x86_64/hp-timing.c: Remove file.
28137         * sysdeps/ia64/hp-timing.c: Remove file.
28138         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28139         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28140         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28141         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28142
28143         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28144         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28145         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28146         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28147         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28148         (HP_TIMING_ACCUM): Remove.
28149         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28150         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28151         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28152
28153         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28154         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28155         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28156         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28157         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28158         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28159         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28160         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28161
28162         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28163
28164 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28165
28166         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28167
28168 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28169
28170         Sync up with gettext.
28171         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28172         [_MSC_VER]: Include malloc.h
28173         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28174         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28175         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28176         TEMP_FAILURE_RETRY.  Cast return of alloca.
28177         [!_LIBC] Call gl_rwlock_init.
28178         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28179
28180 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28181
28182         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28183         before checking its value.
28184
28185 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28186
28187         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28188
28189         * debug/memcpy_chk.c: Don't include pagecopy.h.
28190         * debug/mempcpy_chk.c: Likewise.
28191         * string/memcpy.c: Likewise.
28192         * string/memmove.c: Likewise.
28193         * sysdeps/powerpc/memmove.c: Likewise.
28194         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28195         definition of PAGE_COPY_FWD_MAYBE here...
28196         * sysdeps/generic/pagecopy.h: ... from here.
28197         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28198
28199 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28200             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28201
28202         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28203         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28204         optimizations.
28205         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28206         (__libc_ifunc_impl_list): Likewise.
28207         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28208         multiarch strcat for PPC64.
28209         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28210         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28211
28212 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28213
28214         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28215
28216 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28217
28218         * intl/loadmsgcat.c: Remove declaration of
28219         get_sysdep_segment_value.
28220         (get_sysdep_segment_value): Use ISO C style.
28221         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28222         semicolon.  Fix typo and formatting in comment.
28223         (_nl_unload_domain): Use ISO C style.
28224
28225         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28226
28227 2014-07-02  Will Newton  <will.newton@linaro.org>
28228
28229         * malloc/obstack.c: Merge from gnulib master.
28230         [HAVE_CONFIG_H]: Remove conditional code.
28231         [!_LIBC]: Include config.h.
28232         [!ELIDE_CODE]: Don't include inttypes.h, include
28233         stdint.h unconditionally.
28234         (print_and_abort): Mark as _Noreturn.
28235         (_obstack_allocated_p): Mark as __attribute_pure__.
28236         (obstack_free): Rename to __obstack_free.
28237         [!__attribute__]: Remove conditional code.
28238         * malloc/obstack.h: Merge from gnulib master.
28239         [__cplusplus]: Move conditional down.
28240         [!__attribute_pure__]: Define __attribute_pure__ here
28241         if it is not already defined.
28242         (_obstack_memory_used): Mark as __attribute_pure__.
28243         [!__obstack_free]: Define as obstack_free.
28244         [__GNUC__]: Remove check for ancient NeXT gcc.
28245
28246 2014-07-02  Will Newton  <will.newton@linaro.org>
28247             Paul Eggert  <eggert@cs.ucla.edu>
28248
28249         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28250
28251 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28252
28253         * resolv/gethnamaddr.c: Add comment warning that the file is
28254         not maintained.
28255
28256 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28257
28258         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28259         entries.
28260
28261         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28262         entry for aio_cancel and aio_cancel64.
28263         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28264         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28265         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28266         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28267         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28268         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28269         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28270         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28271         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28272         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28273         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28274         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28275         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28276
28277 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28278
28279         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28280         * nptl/pthread_mutex_lock.c: Likewise.
28281         * nptl/pthread_mutex_timedlock.c: Likewise.
28282         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28283
28284 2014-07-01  Richard henderson  <rth@redhat.com>
28285
28286         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28287         (__isnan, __isnanl): Remove.
28288         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28289
28290         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28291
28292 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28293
28294         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28295
28296 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28297
28298         * resolv/nss_dns/dns-host.c (getanswer_r)
28299         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28300
28301 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28302
28303         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28304         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28305         undefine.
28306         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28307         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28308
28309 2014-07-01  Roland McGrath <roland@hack.frob.com>
28310
28311         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28312         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28313
28314         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28315         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28316
28317         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28318         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28319         ... here.
28320         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28321         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28322
28323         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28324         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28325         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28326         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28327
28328         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28329         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28330         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28331         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28332         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28333         Moved ...
28334         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28335         ... here.
28336         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28337         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28338         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28339         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28340         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28341         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28342         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28343         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28344         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28345         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28346         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28347         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28348         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28349         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28350         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28351         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28352         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28353         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28354         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28355         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28356         ... here.
28357         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28358         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28359         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28360         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28361         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28362         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28363         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28364         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28365
28366 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28367
28368         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28369         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28370         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28371         Add sysdep.
28372
28373 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28374
28375         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28376
28377 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28378
28379         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28380         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28381
28382         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28383
28384         * sysdeps/arm/libm-test-ulps: Regenerated.
28385
28386 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28387             Roland McGrath <roland@hack.frob.com>
28388
28389         * test-skeleton.c (signal_handler): Kill the whole process group
28390         before killing the child individually.
28391         (main): Report any failure on `setpgid'.
28392
28393 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28394
28395         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28396         from _TLS_H to _ARM_NPTL_TLS_H.
28397         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28398         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28399
28400 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28401
28402         [BZ #16539]
28403         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28404         (__expm1l): Return argument unchanged when small but not
28405         subnormal.
28406
28407         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28408         include macro name.
28409         (_FP_UNPACK_RAW_1_P): Likewise.
28410         (_FP_PACK_RAW_1): Likewise.
28411         (_FP_PACK_RAW_1_P): Likewise.
28412         (_FP_MUL_MEAT_1_wide): Likewise.
28413         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28414         (_FP_MUL_MEAT_1_hard): Likewise.
28415         (_FP_DIV_MEAT_1_imm): Likewise.
28416         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28417         (_FP_DIV_MEAT_1_udiv): Likewise.
28418         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28419         (_FP_UNPACK_RAW_2): Likewise.
28420         (_FP_UNPACK_RAW_2_P): Likewise.
28421         (_FP_PACK_RAW_2): Likewise.
28422         (_FP_PACK_RAW_2_P): Likewise.
28423         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28424         (_FP_MUL_MEAT_2_wide): Likewise.
28425         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28426         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28427         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28428         (_FP_MUL_MEAT_2_gmp): Likewise.
28429         (_FP_DIV_MEAT_2_udiv): Likewise.
28430         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28431         (_FP_FRAC_SRL_4): Likewise.
28432         (_FP_FRAC_SRST_4): Likewise.
28433         (_FP_FRAC_SRS_4): Likewise.
28434         (_FP_UNPACK_RAW_4): Likewise.
28435         (_FP_UNPACK_RAW_4_P): Likewise.
28436         (_FP_PACK_RAW_4): Likewise.
28437         (_FP_PACK_RAW_4_P): Likewise.
28438         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28439         (_FP_MUL_MEAT_4_wide): Likewise.
28440         (_FP_MUL_MEAT_4_gmp): Likewise.
28441         (umul_ppppmnnn): Likewise.
28442         (_FP_DIV_MEAT_4_udiv): Likewise.
28443         (__FP_FRAC_ADD_4): Likewise.
28444         (__FP_FRAC_SUB_3): Likewise.
28445         (__FP_FRAC_SUB_4): Likewise.
28446         (__FP_FRAC_DEC_3): Likewise.
28447         (__FP_FRAC_DEC_4): Likewise.
28448         (__FP_FRAC_ADDI_4): Likewise.
28449         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28450         (_FP_FRAC_SRL_8): Likewise.
28451         (_FP_FRAC_SRS_8): Likewise.
28452
28453         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28454         include macro name.
28455         (FP_UNPACK_RAW_EP): Likewise.
28456         (FP_PACK_RAW_E): Likewise.
28457         (FP_PACK_RAW_EP): Likewise.
28458         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28459         (_FP_ISSIGNAN): Likewise.
28460         (_FP_ADD_INTERNAL): Likewise.
28461         (_FP_FMA): Likewise.
28462         (_FP_CMP): Likewise.
28463         (_FP_SQRT): Likewise.
28464         (_FP_TO_INT): Likewise.
28465         (_FP_FROM_INT): Likewise.
28466         (FP_EXTEND): Likewise.
28467         (_FP_DIV_MEAT_N_loop): Likewise.
28468
28469 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28470
28471         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28472         throughout.
28473
28474 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28475
28476         [BZ #17097]
28477         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28478         result with correct sign in case of exponents that produce
28479         overflow except for X very close to 1.
28480
28481 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28482
28483         mktime: merge #if/#ifdef usage from glibc
28484         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28485         as that works with both Glibc's and Gnulib's style.
28486         See thread starting at Siddhesh Poyarekar's bug report at:
28487         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28488
28489 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28490
28491         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28492         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28493         * sysdeps/tile/tilegx/memmove.c: Remove file.
28494
28495 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28496
28497         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28498         abi-name definition.
28499         * scripts/soversions.awk: Do not handle or generate ABI lines.
28500         * shlib-versions: Remove ABI entries.
28501         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28502         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28503
28504 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28505
28506         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28507         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28508         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28509         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28510         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28511         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28512         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28513         Moved ...
28514         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28515         ... here.
28516         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28517         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28518         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28519         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28520         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28521         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28522         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28523         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28524         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28525         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28526         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28527         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28528         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28529         Moved ...
28530         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28531         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28532         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28533         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28534         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28535         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28536         Moved ...
28537         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28538         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28539         Moved ...
28540         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28541         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28542         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28543         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28544         Moved ...
28545         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28546         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28547         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28548         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28549         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28550         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28551         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28552         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28553         Moved ...
28554         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28555         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28556         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28557         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28558         Moved ...
28559         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28560         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28561         Moved ...
28562         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28563         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28564         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28565         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28566         Moved ...
28567         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28568         ... here.
28569         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28570         Identical file removed.
28571         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28572         Moved ...
28573         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28574         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28575         Identical file removed.
28576         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28577         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28578         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28579         Moved ...
28580         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28581         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28582         Identical file removed.
28583         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28584         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28585         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28586         Identical file removed.
28587         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28588         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28589         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28590         Identical file removed.
28591         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28592         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28593         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28594         Identical file removed.
28595         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28596         Moved ...
28597         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28598         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28599         Identical file removed.
28600         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28601         Moved ...
28602         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28603         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28604         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28605         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28606         Identical file removed.
28607         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28608         Moved ...
28609         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28610         ... here.
28611         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28612         Identical file removed.
28613         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28614         Moved ...
28615         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28616         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28617         Identical file removed.
28618         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28619         Moved ...
28620         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28621         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28622         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28623         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28624         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28625         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28626         Moved ...
28627         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28628         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28629         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28630
28631         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28632         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28633         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28634         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28635         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28636
28637 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28638
28639         [BZ #17092]
28640         * nscd/nscd.c (monitor_child): Return exit status of child
28641         instead of return value from wait syscall.
28642
28643 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28644
28645         * configure.ac (libc_commonpagesize): Remove variable.
28646         (libc_relro_required): Likewise.
28647         (libc_cv_z_relro): Remove configure test.
28648         * configure: Regenerated.
28649         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28650         variable.
28651         (libc_relro_required): Likewise.
28652         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28653         (libc_relro_required): Likewise.
28654         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28655         (libc_relro_required): Likewise.
28656         * sysdeps/arm/preconfigure: Regenerated.
28657         * sysdeps/ia64/preconfigure: Remove file.
28658         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28659         variable.
28660         (libc_relro_required): Likewise.
28661
28662         [BZ #16561]
28663         [BZ #16562]
28664         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28665         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28666         recompute overflowing results in original rounding mode.
28667         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28668         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28669         recompute overflowing results in original rounding mode.
28670         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28671         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28672         recompute overflowing results in original rounding mode.
28673         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28674         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28675         recompute overflowing results in original rounding mode.
28676         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28677         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28678         recompute overflowing results in original rounding mode.
28679         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28680         (libc_feholdsetround_ctx): New macro.
28681         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28682         * sysdeps/i386/fpu/libm-test-ulps: Update.
28683         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28684
28685 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28686
28687         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28688         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28689         corresponding .cpsetup call.
28690
28691 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28692
28693         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28694         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28695         * sysdeps/arm/Makefile [$(subdir) = csu]
28696         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28697         (static-only-routines): Add aeabi_read_tp here.
28698         (shared-only-routines): Add libc-aeabi_read_tp here.
28699         (CFLAGS-libc-start.c): Add -fexceptions here.
28700         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28701         (sysdep_routines, static-only-routines, shared-only-routines):
28702         Don't add to these here.
28703         (CFLAGS-libc-start.c): Likewise.
28704
28705         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28706         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28707         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28708         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28709         * sysdeps/arm/Makefile [$(subdir) = rt]
28710         (librt-sysdep_routines, librt-shared-only-routines):
28711         Append rt-aeabi_unwind_cpp_pr1 here.
28712         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28713         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28714         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28715         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28716         Append nptl-aeabi_unwind_cpp_pr1 here.
28717         (tests): Filter out tst-cleanupx4 here.
28718         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28719         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28720         Don't do those here.
28721
28722 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28723
28724         * scripts/list-sources.sh: Do not handle ports specially.
28725
28726 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28727
28728         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28729         * sysdeps/arm/feupdateenv.c: Likewise.
28730
28731         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28732
28733 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28734
28735         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28736         trailing whitespace removed.
28737         * scripts/config.guess: Update to version 2014-03-23.
28738         * scripts/config.sub: Update to version 2014-05-01
28739         * scripts/install-sh: Update to version 2013-12-25.23.
28740         * scripts/move-if-change: Update from gnulib.
28741
28742 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28743
28744         * debug/memmove_chk.c: Remove pagecopy.h include.
28745
28746 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28747
28748         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28749         identical to gnulib mktime.
28750
28751 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28752
28753         * configure.ac: Do not test for machine being rs6000.  Do not test
28754         for powerpc*-*soft.
28755         * configure: Regenerated.
28756
28757         [BZ #11505]
28758         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28759         test.
28760         * configure: Regenerated.
28761         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28762         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28763         Remove configure test.
28764         * sysdeps/arm/configure: Regenerated.
28765         * sysdeps/nptl/configure.ac: Do not check
28766         libc_cv_asm_cfi_directives.
28767         * sysdeps/nptl/configure: Regenerated.
28768         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28769         * sysdeps/x86_64/nptl/configure: Remove generated file.
28770         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28771         unconditional.
28772         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28773
28774 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28775
28776         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
28777         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
28778         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
28779         it is defined.
28780
28781         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
28782         instead of whether it is defined.
28783         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
28784         * sysdeps/hppa/dl-machine.h: Likewise.
28785         * sysdeps/ia64/dl-machine.h: Likewise.
28786         * sysdeps/m68k/dl-machine.h: Likewise.
28787         * sysdeps/microblaze/dl-machine.h: Likewise.
28788         * sysdeps/mips/dl-machine.: Likewise.
28789         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28790         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28791         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28792         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28793         * sysdeps/sh/dl-machine.h: Likewise.
28794         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28795         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28796         * sysdeps/tile/dl-machine.h: Likewise.
28797         * sysdeps/x86_64/dl-machine.h: Likewise.
28798
28799         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
28800         code.
28801         (verify_persistent_db): Likewise.
28802
28803 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28804
28805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
28806         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
28807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
28808         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
28809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
28810         Moved ...
28811         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
28812         ... here.
28813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
28814         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
28815         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
28816         Identical file removed.
28817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
28818         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
28819         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
28820         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
28821         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
28822         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
28823         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28824         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
28825         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
28826         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
28827         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28828         Moved ...
28829         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
28830         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
28831         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
28832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
28833         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
28834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
28835         Moved ...
28836         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
28837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
28838         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
28839         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
28840         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
28841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28842         Identical file removed.
28843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
28844         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
28845         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
28846         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
28847         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
28848         Moved ...
28849         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
28850         ... here.
28851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
28852         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
28853         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
28854         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
28855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
28856         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
28857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
28858         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
28859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
28860         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
28861         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28862         Moved ...
28863         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
28864         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
28865         Moved ...
28866         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
28867         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
28868         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
28869         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
28870         Moved ...
28871         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
28872         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
28873         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
28874
28875         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
28876         folded into ...
28877         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
28878         * sysdeps/unix/sysv/linux/s390/Versions
28879         (libpthread: GLIBC_2.19): New version set.
28880         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
28881         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
28882         (librt: GLIBC_2.3.3): New version set.
28883         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
28884         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
28885         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
28886         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
28887         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
28888         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
28889         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
28890         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
28891         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
28892         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
28893         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
28894         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
28895         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
28896         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
28897         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
28898         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
28899         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28900         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
28901         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
28902         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
28903         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
28904         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
28905         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
28906         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
28907         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
28908         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
28909         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
28910         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
28911         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
28912         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
28913         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
28914         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
28915         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
28916         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
28917         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
28918         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
28919         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
28920         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
28921         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
28922         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
28923         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
28924         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
28925         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
28926         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
28927         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
28928
28929         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
28930         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
28931         (__libc_vfork): Define the function under this name.
28932         [!NOT_IN_libc] (__vfork): Make this an alias.
28933         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28934         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
28935         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
28936         (__libc_vfork): Define the function under this name.
28937         [!NOT_IN_libc] (__vfork): Make this an alias.
28938         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28939         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
28940         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
28941         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
28942         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
28943         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28944
28945         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
28946         code that was previously under [RESET_PID].
28947         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
28948         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
28949         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
28950
28951         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
28952         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
28953         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
28954         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
28955         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
28956         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
28957         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
28958         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
28959         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
28960         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
28961         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
28962         Moved ...
28963         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
28964         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
28965         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
28966         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
28967         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
28968         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
28969         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
28970         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
28971         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
28972         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
28973         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
28974         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
28975         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
28976         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
28977         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
28978         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
28979         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
28980         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
28981         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
28982         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
28983         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
28984         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
28985         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
28986         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
28987         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
28988         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
28989         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
28990         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
28991         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
28992
28993 2014-06-25  Roland McGrath  <roland@hack.frob.com>
28994
28995         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
28996         that was previously under [RESET_PID].
28997         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
28998
28999 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29000
29001         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29002         not undefine and redefine.
29003         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29004         [O_CLOEXEC]: Make code unconditional.
29005         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29006         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29007         <kernel-features.h>.
29008         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29009         conditional variable definition.
29010         (shm_open) [O_CLOEXEC]: Make code unconditional.
29011         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29012         code.
29013
29014         * configure.ac (USE_REGPARMS): Don't define here.
29015         * configure: Regenerated.
29016         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29017         * sysdeps/i386/configure: Regenerated.
29018
29019         * nptl/createthread.c: Don't include kernel-features.h.
29020         * nptl/pthread_cancel.c: Likewise.
29021         * nptl/pthread_condattr_setclock.c: Likewise.
29022         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29023         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29024         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29025         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29026         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29027         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29028         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29029         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29030         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29031         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29032         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29033         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29034         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29035         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29036         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29037         * nscd/gai.c: Likewise.
29038         * nss/nss_db/db-open.c: Likewise.
29039         * sysdeps/generic/ldsodefs.h: Likewise.
29040         * sysdeps/sh/nptl/tls.h: Likewise.
29041         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29042         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29043         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29044         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29045         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29046         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29047         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29048         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29049         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29050         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29051         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29052         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29053         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29054         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29055         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29056         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29057         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29058         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29059         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29060         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29061         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29062         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29063         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29064         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29065         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29066         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29067         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29068         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29069         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29070         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29071         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29072         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29073         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29074         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29075         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29076         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29077         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29078         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29079         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29080         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29081         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29082         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29083         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29084         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29085         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29086         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29087         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29088         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29089         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29090         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29091         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29092         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29093         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29094         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29095         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29096         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29097         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29098         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29121         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29122         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29123         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29124         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29125         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29126         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29127         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29128         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29129         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29130         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29131         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29132         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29133         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29134         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29135         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29136         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29137         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29138         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29139         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29140         * sysdeps/unix/sysv/linux/system.c: Likewise.
29141         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29142         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29143         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29144         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29145         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29146         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29147         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29148
29149         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29150         * configure: Regenerated.
29151         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29152
29153         * configure.ac (base_machine): Do not set specially for particular
29154         machines here.
29155         * configure: Regenerated.
29156         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29157         settings from configure.ac.
29158         * sysdeps/i386/preconfigure: New file.
29159         * sysdeps/s390/preconfigure: Likewise.
29160         * sysdeps/sh/preconfigure: Likewise.
29161         * sysdeps/sparc/preconfigure: Likewise.
29162
29163 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29164
29165         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29166         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29167         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29168         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29169         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29170         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29171         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29172         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29173         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29174         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29175         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29176         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29177         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29178         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29179         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29180         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29181         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29182         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29183         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29184
29185         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29186         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29187         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29188         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29189         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29190         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29191         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29192         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29193         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29194         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29195         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29196         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29197         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29198         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29199         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29200         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29201         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29202         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29203         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29204         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29205         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29206         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29207         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29208         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29209         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29210         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29211         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29212         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29213         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29214         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29215         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29216         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29217         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29218         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29219         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29220         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29221         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29222         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29223
29224         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29225         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29226         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29227         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29228         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29229         Moved ...
29230         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29231         ... here.
29232         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29233         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29234         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29235         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29236         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29237         Moved ...
29238         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29239         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29240         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29241         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29242         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29243         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29244         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29245         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29246         Moved ...
29247         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29248         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29249         Moved ...
29250         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29251         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29252         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29253         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29254         Moved ...
29255         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29256         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29257         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29258         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29259         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29260         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29261         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29262         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29263         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29264         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29265         Moved ...
29266         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29267         ... here.
29268         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29269         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29270         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29271         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29272         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29273         Moved ...
29274         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29275         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29276         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29277         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29278         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29279         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29280         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29281         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29282         Moved ...
29283         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29284         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29285         Moved ...
29286         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29287         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29288         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29289         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29290         Moved ...
29291         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29292         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29293         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29294         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29295         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29296
29297 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29298
29299         * timezone/checktab.awk: Update from tzcode 2014e.
29300         * timezone/private.h: Likewise.
29301         * timezone/tzfile.h: Likewise.
29302         * timezone/zdump.c: Likewise.
29303         * timezone/zic.c: Likewise.
29304
29305         * sysdeps/unix/sysv/linux/kernel-features.h
29306         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29307         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29308         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29309         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29310         Remove conditional code.
29311
29312 2014-06-25  Will Newton  <will.newton@linaro.org>
29313
29314         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29315         (_dl_arm_cap_flags): Add HWCAP2 values.
29316         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29317         (_DL_HWCAP_COUNT): Increase to 37.
29318         (_DL_HWCAP_LAST): New define.
29319         (_DL_HWCAP2_LAST): New define.
29320         (_dl_procinfo): Add support for printing
29321         AT_HWCAP2 entries.
29322         (_dl_string_hwcap): Use _dl_hwcap_string.
29323
29324 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29325
29326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29327
29328 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29329
29330         * README: Do not mention ports directory.
29331
29332         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29333         Remove macro.
29334         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29335         <kernel-features.h>.
29336         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29337         conditional variable definition.
29338         (__futimes): Update comment.
29339         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29340         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29341
29342         [BZ #16560]
29343         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29344         arguments close to 0.
29345         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29346         Likewise.
29347         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29348         Likewise.
29349         * math/auto-libm-test-in: Add more tests of exp10.
29350         * math/auto-libm-test-out: Regenerated.
29351         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29352
29353         * sysdeps/unix/sysv/linux/kernel-features.h
29354         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29355         * sysdeps/unix/sysv/linux/readv.c: Do not include
29356         <kernel-features.h>.
29357         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29358         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29359         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29360         unconditional.
29361         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29362         conditional code.
29363         * sysdeps/unix/sysv/linux/writev.c: Do not include
29364         <kernel-features.h>.
29365         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29366         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29367         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29368         unconditional.
29369         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29370         conditional code.
29371
29372 2014-06-25  Will Newton  <will.newton@linaro.org>
29373
29374         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29375         comment changes throughout the file.  Remove checks
29376         for HAVE_*_H definitions that are not required.
29377         (__gen_tempname): Call abort if an unknown kind value is
29378         passed.
29379
29380 2014-06-25  Andreas Schwab  <schwab@suse.de>
29381
29382         [BZ #17086]
29383         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29384         scalbln, scalblnf, scalblnl in libc.
29385
29386 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29387
29388         [BZ #17086]
29389         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29390         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29391         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29392
29393 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29394
29395         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29396         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29397         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29398         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29399         Update #include.
29400         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29401         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29402         Update #include.
29403         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29404         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29405         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29406         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29407         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29408         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29409         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29410         * sysdeps/x86/bits/semaphore.h: ... here.
29411         * sysdeps/x86/nptl/elide.h: Moved ...
29412         * sysdeps/x86/elide.h: ... here.
29413         * sysdeps/x86_64/nptl/Implies: File removed.
29414         * sysdeps/i386/nptl/Implies: File removed.
29415
29416 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29417
29418         [BZ #16539]
29419         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29420         return the argument for normal arguments with exponent below -64.
29421         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29422         Likewise.
29423         * math/auto-libm-test-in: Add another test of expm1.
29424         * math/auto-libm-test-out: Regenerated.
29425
29426         [BZ #16287]
29427         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29428         calling __erfcl for arguments at least 16.
29429         * math/auto-libm-test-in: Add more tests of erf.
29430         * math/auto-libm-test-out: Regenerated.
29431
29432         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29433         individual architectures.
29434         * sysdeps/unix/sysv/linux/configure: Regenerated.
29435         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29436         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29437         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29438         (ldd_rewrite_script): Define variable.
29439         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29441         file.
29442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29443         generated file.
29444         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29445         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29446         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29447         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29448         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29449         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29450         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29451         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29452
29453 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29454
29455         [BZ #17084]
29456         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29457         Rename member __data.d to __data.__elision_data.
29458
29459 2014-06-24  Wilco  <wdijkstr@arm.com>
29460
29461         * NEWS: Add 16918 to fixed bug list.
29462
29463 2014-06-24  Wilco  <wdijkstr@arm.com>
29464
29465         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29466
29467 2014-06-24  Wilco  <wdijkstr@arm.com>
29468
29469         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29470         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29471         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29472         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29473         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29474         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29475         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29476         Use _FPU_MASK_RM.
29477
29478 2014-06-24  Wilco  <wdijkstr@arm.com>
29479
29480         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29481
29482 2014-06-24  Wilco  <wdijkstr@arm.com>
29483
29484         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29485         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29486         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29487         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29488
29489 2014-06-24  Wilco  <wdijkstr@arm.com>
29490
29491         [BZ #16918]
29492         * sysdeps/arm/feupdateenv.c (feupdateenv):
29493         Rewrite to reduce FPSCR accesses and fix return value.
29494
29495 2014-06-24  Wilco  <wdijkstr@arm.com>
29496
29497         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29498         Optimize to avoid unnecessary FPSCR writes.
29499         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29500         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29501         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29502         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29503
29504 2014-06-24  Wilco  <wdijkstr@arm.com>
29505
29506         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29507         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29508         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29509         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29510         Call libc_fetestexcept_vfp.
29511         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29512         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29513         __SOFTFP__ ifdef so that they can be built for softfp.
29514
29515 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29516
29517         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29518         argument type signed char.
29519
29520         * Makerules (check-abi): Dump diff of symlist if the test
29521         fails.
29522
29523 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29524
29525         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29526         using abort.
29527
29528         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29529         Remove unused variable ST.
29530
29531 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29532
29533         [BZ #16354]
29534         [BZ #17061]
29535         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29536         small arguments before calling __expm1.
29537         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29538         small arguments before calling __expm1f.
29539         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29540         small arguments before calling __expm1l.
29541         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29542         Likewise.
29543         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29544         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29545         spurious underflow for some cosh tests.
29546         * math/auto-libm-test-out: Regenerated.
29547         * sysdeps/i386/fpu/libm-test-ulps: Update.
29548
29549         [BZ #17050]
29550         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29551         (__ieee754_y1): Set errno if return value overflows.
29552         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29553         (__ieee754_y1f): Set errno if return value overflows.
29554         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29555         (__ieee754_y1l): Set errno if return value overflows.
29556         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29557         (__ieee754_y1l): Set errno if return value overflows.
29558         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29559         * math/auto-libm-test-out: Regenerated.
29560
29561         * math/gen-auto-libm-tests.c: Document use of
29562         ignore-zero-inf-sign.
29563         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29564         (input_flags): Add ignore-zero-inf-sign.
29565         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29566         * math/gen-libm-test.pl (generate_testfile): Handle
29567         ignore-zero-inf-sign.
29568         * math/auto-libm-test-in: Mark some cpow tests with
29569         ignore-zero-inf-sign and some with xfail-rounding.
29570         * math/auto-libm-test-out: Regenerated.
29571         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29572         * sysdeps/i386/fpu/libm-test-ulps: Update.
29573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29574
29575         [BZ #16315]
29576         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29577         overflowing or underflowing operations take place with sign of
29578         result.
29579         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29580         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29581         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29582         (__ieee754_pow): Recompute overflowing and underflowing results in
29583         original rounding mode.
29584         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29585         (__powl_helper): Allow negative argument X and scale negated value
29586         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29587         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29588         overflowing or underflowing operations take place with sign of
29589         result.
29590         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29591         Include <math.h>.
29592         * math/auto-libm-test-in: Add more tests of pow.
29593         * math/auto-libm-test-out: Regenerated.
29594         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29595         (pow_tonearest_test_data): Remove.
29596         (pow_test_tonearest): Likewise.
29597         (pow_towardzero_test_data): Likewise.
29598         (pow_test_towardzero): Likewise.
29599         (pow_downward_test_data): Likewise.
29600         (pow_test_downward): Likewise.
29601         (pow_upward_test_data): Likewise.
29602         (pow_test_upward): Likewise.
29603         (main): Don't call removed functions.
29604         * sysdeps/i386/fpu/libm-test-ulps: Update.
29605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29606
29607 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29608
29609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29610         Moved ...
29611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29613         Moved ...
29614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29616         Moved ...
29617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29619         Moved ...
29620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29622         File removed.
29623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29624         File removed.
29625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29626         File removed.
29627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29628         File removed.
29629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29630         File removed.
29631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29632         File removed.
29633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29634         File removed.
29635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29636         File removed.
29637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29638         File removed.
29639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29640         File removed.
29641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29642         File removed.
29643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29644         File removed.
29645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29646         Moved ...
29647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29649         Moved ...
29650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29651         ... here.
29652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29653         Moved ...
29654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29656         Moved ...
29657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29659         Moved ...
29660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29662         Moved ...
29663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29665         Moved ...
29666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29668         Moved ...
29669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29671         Moved ...
29672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29675         ... here.
29676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29677         Moved ...
29678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29680         Moved ...
29681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29682         ... here.
29683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29684         Moved ...
29685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29686         ... here.
29687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29688         Moved ...
29689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29690         ... here.
29691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29692         Moved ...
29693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29695         Moved ...
29696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29700         Moved ...
29701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29702         ... here.
29703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29704         Moved ...
29705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29706         ... here.
29707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29708         Moved ...
29709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29711         Moved ...
29712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29714         Moved ...
29715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29717         Moved ...
29718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29720         Moved ...
29721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29722         ... here.
29723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29724         Moved ...
29725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29727         Moved ...
29728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29730         Moved ...
29731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29733         Moved ...
29734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29738         Moved ...
29739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29741         Moved ...
29742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29744         Moved ...
29745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29746         ... here.
29747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29748         Moved ...
29749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29750         ... here.
29751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29752         Moved ...
29753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29754         ... here.
29755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29756         Moved ...
29757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29759         Moved ...
29760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29762         Moved ...
29763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29765         Moved ...
29766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29767         ... here.
29768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29769         Moved ...
29770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29771         ... here.
29772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29773         Moved ...
29774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29775         ... here.
29776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
29777         Moved ...
29778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
29779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29780         Moved ...
29781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
29782
29783 2014-06-23  Will Newton  <will.newton@linaro.org>
29784             Wilco  <wdijkstr@arm.com>
29785
29786         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
29787         implementation.  Include get-rounding-mode.h.
29788         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
29789         [!libc_feholdsetround_noex_ctx]: Define
29790         libc_feholdsetround_noex_ctx.
29791         [!libc_feholdsetround_noexf_ctx]: Define
29792         libc_feholdsetround_noexf_ctx.
29793         [!libc_feholdsetround_noexl_ctx]: Define
29794         libc_feholdsetround_noexl_ctx.
29795         (libc_feholdsetround_ctx): New function.
29796         (libc_feresetround_ctx): New function.
29797         (libc_feholdsetround_noex_ctx): New function.
29798         (libc_feresetround_noex_ctx): New function.
29799
29800 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29801
29802         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
29803         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
29804         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
29805         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
29806         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
29807         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
29808
29809         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
29810         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29811         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
29812         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
29813         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
29814         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
29815         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
29816         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
29817         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
29818         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
29819         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
29820         Moved ...
29821         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
29822         ... here.
29823         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
29824         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
29825         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
29826         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
29827         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
29828         Moved ...
29829         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
29830         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
29831         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
29832         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
29833         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
29834         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
29835         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
29836         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
29837         Moved ...
29838         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
29839         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
29840         Moved ...
29841         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
29842         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
29843         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
29844         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
29845         Moved ...
29846         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
29847         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
29848         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
29849         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
29850         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
29851         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
29852         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
29853         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
29854         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
29855         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
29856         Moved ...
29857         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
29858         ... here.
29859         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
29860         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
29861         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
29862         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
29863         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
29864         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
29865         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
29866         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
29867         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
29868         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
29869         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
29870         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
29871         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
29872         Moved ...
29873         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
29874         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
29875         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
29876         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
29877         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
29878         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
29879         Moved ...
29880         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
29881         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
29882         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
29883         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
29884         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
29885
29886         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
29887         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
29888         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
29889         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
29890         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
29891         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
29892         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
29893         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
29894         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
29895         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
29896         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
29897         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
29898         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
29899         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
29900         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
29901         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
29902         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
29903         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
29904         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
29905         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
29906         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
29907         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
29908         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
29909         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
29910         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
29911         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
29912         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
29913         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
29914
29915 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29916
29917         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29918         (FALLOC_FL_COLLAPSE_RANGE): New macro.
29919         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
29920         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
29921         (IPV6_PMTUDISC_INTERFACE): Likewise.
29922         (IPV6_PMTUDISC_OMIT): Likewise.
29923
29924 2014-06-23  Andreas Schwab  <schwab@suse.de>
29925
29926         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
29927         Remove unused errout label.
29928
29929 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29930
29931         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
29932         macro: hardware supports Vector Crypto instructions.
29933
29934 2014-06-23  Will Newton  <will.newton@linaro.org>
29935
29936         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
29937         rather than __builtin_expect.
29938
29939         * elf/dl-lookup.c (undefined_msg): Remove variable.
29940         (_dl_lookup_symbol_x): Replace undefined_msg with string
29941         literal.
29942
29943         * elf/dl-lookup.c (do_lookup_unique): New function.
29944         (do_lookup_x): Move STB_GNU_UNIQUE handling code
29945         to a separate function.
29946
29947 2014-06-23  Andreas Schwab  <schwab@suse.de>
29948
29949         [BZ #17079]
29950         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
29951         before reading the next line.
29952
29953 2014-06-23  Will Newton  <will.newton@linaro.org>
29954
29955         * test-skeleton.c (signal_handler): Use printf and %m
29956         rather than perror.  Use printf rather than fprintf to
29957         stderr.  Use puts rather than fputs to stderr.
29958         (main): Likewise.
29959
29960 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
29961
29962         * nscd/nscd.c (thread_info_t): Remove typedef.
29963         (thread_info): Remove variable.
29964
29965 2014-06-21  Allan McRae  <allan@archlinux.org>
29966
29967         * NEWS: Mention CVE-2014-4043.
29968
29969 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29970
29971         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
29972         * nptl/smp.h: ... here.
29973
29974         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
29975
29976         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
29977         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
29978         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
29979         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
29980
29981         * nptl/allocatestack.c: Include <stack-aliasing.h>.
29982         * nptl/stack-aliasing.h: New file.
29983         * sysdeps/i386/i686/stack-aliasing.h: New file.
29984         * sysdeps/i386/i686/nptl/Makefile: File removed.
29985         * sysdeps/x86_64/stack-aliasing.h: New file.
29986         * sysdeps/x86_64/nptl/Makefile
29987         (CFLAGS-pthread_create.c): Variable removed.
29988
29989         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
29990         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
29991         old file.
29992         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
29993         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
29994         old file.
29995
29996 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
29997
29998         * sysdeps/unix/sysv/linux/arm/kernel-features.h
29999         (__ASSUME_SIGFRAME_V2): Remove macro.
30000         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30001         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30002         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30003         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30004         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30005         Declare as function.  Remove conditional macro definitions.
30006         (__default_rt_sa_restorer): Likewise.
30007         (__default_sa_restorer_v1): Remove declaration.
30008         (__default_sa_restorer_v2): Likewise.
30009         (__default_rt_sa_restorer_v1): Likewise.
30010         (__default_rt_sa_restorer_v2): Likewise.
30011         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30012         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30013         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30014
30015 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30016
30017         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30018         (libpthread-routines): Add sysdep.
30019         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30020         * sysdeps/unix/sysv/linux/sparc/Versions
30021         (libpthread: GLIBC_2.3.3): New version set.
30022         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30023         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30024         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30025         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30026         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30027         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30028         Moved ...
30029         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30030         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30031         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30032         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30033         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30034         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30035         * sysdeps/sparc/nptl/sem_init.c: ... here.
30036         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30037         * sysdeps/sparc/nptl/sem_post.c: ... here.
30038         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30039         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30040         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30041         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30042         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30043         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30044         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30045         (libpthread-routines): Add cpu_relax.
30046         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30047         File removed.
30048         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30049         (librt: GLIBC_2.3.3): New version set.
30050         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30051         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30052         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30053         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30054         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30055         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30056         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30057         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30058         Moved ...
30059         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30060         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30061         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30062         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30063         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30064         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30065         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30066         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30067         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30068         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30069         Moved ...
30070         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30071         Update #include.
30072         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30073         Moved ...
30074         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30075         Update #include.
30076         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30077         Moved ...
30078         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30079         Update #include.
30080         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30081         Moved ...
30082         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30083         Update #include.
30084         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30085         Moved ...
30086         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30087         Update #include.
30088         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30089         Moved ...
30090         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30091         Update #include.
30092         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30093         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30094         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30095         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30096         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30097         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30098         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30099         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30100         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30101         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30102         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30103         Moved ...
30104         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30105         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30106         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30107         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30108         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30109
30110 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30111
30112         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30113         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30114         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30115         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30116         * nscd/nscd.c: Likewise.
30117         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30118         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30119         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30120         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30121
30122         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30123         <kernel-features.h>.
30124         (init_mq_netlink): Remove conditional have_sock_cloexec
30125         definitions.  Remove code conditional on have_sock_cloexec < 0.
30126         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30127         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30128         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30129         <kernel-features.h>.
30130         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30131         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30132
30133 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30134
30135         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30136         Add tests for memset_chk and memset.
30137
30138         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30139         with AVX2_Usable.
30140
30141 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30142
30143         [BZ #16046]
30144         * elf/tst-dl-iter-static.c: New file.
30145         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30146
30147         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30148         error.
30149
30150 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30151
30152         * sysdeps/unix/sysv/linux/kernel-features.h
30153         (__ASSUME_F_GETOWN_EX): Remove macro.
30154         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30155         <kernel-features.h>.
30156         (miss_F_GETOWN_EX): Remove variable or macro.
30157         (do_fcntl): Do not check miss_F_GETOWN_EX.
30158         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30159
30160         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30161         Remove macro.
30162         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30163         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30164         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30165
30166         * sysdeps/unix/sysv/linux/kernel-features.h
30167         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30168         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30169         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30170         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30171
30172 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30173
30174         [BZ #17075]
30175         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30176         Fix calculation of the symbol's value.
30177         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30178         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30179         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30180         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30181         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30182         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30183         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30184         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30185         (modules-names): Add `tst-armtlsdescmod',
30186         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30187         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30188         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30189         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30190         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30191         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30192         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30193         ($(objpfx)tst-armtlsdescloc): New dependency.
30194         ($(objpfx)tst-armtlsdescextnow): Likewise.
30195         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30196         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30197         TLS scheme support.
30198         * sysdeps/arm/configure: Regenerate.
30199
30200 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30201
30202         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30203         (__atfct_seterrno_2): Likewise.
30204         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30205         <kernel-features.h>.
30206         (__ASSUME_ATFCTS): Do not undefine and redefine.
30207         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30208         (__have_atfcts): Remove conditional definition.
30209         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30210         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30211         unreachable if [__ASSUME_ATFCTS].
30212         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30213         not undefine and redefine.
30214         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30215         <kernel-features.h>.
30216         (faccessat) [__NR_faccessat]: Make code unconditional.
30217         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30218         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30219         <kernel-features.h>.
30220         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30221         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30222         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30223         <kernel-features.h>.
30224         (fchownat) [__NR_fchownat]: Make code unconditional.
30225         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30226         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30227         <kernel-features.h>.
30228         (futimesat) [__NR_futimesat]: Make code unconditional.
30229         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30230         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30231         <kernel-features.h>.
30232         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30233         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30234         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30235         <kernel-features.h>.
30236         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30237         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30238         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30239         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30240         <kernel-features.h>.
30241         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30242         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30243         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30244         <kernel-features.h>.
30245         (linkat) [__NR_linkat]: Make code unconditional.
30246         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30247         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30248         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30249         <kernel-features.h>.
30250         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30251         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30252         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30253         <kernel-features.h>.
30254         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30255         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30256         * sysdeps/unix/sysv/linux/openat.c: Do not include
30257         <kernel-features.h>.
30258         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30259         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30260         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30261         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30262         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30263         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30264         <kernel-features.h>.
30265         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30266         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30267         result of INLINE_SYSCALL directly, not via int variable.
30268         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30269         <kernel-features.h>.
30270         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30271         (renameat) [__NR_renameat]: Make code unconditional.
30272         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30273         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30274         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30275         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30276         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30277         (__ASSUME_ATFCTS): Do not undefine and redefine.
30278         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30279         <kernel-features.h>.
30280         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30281         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30282         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30283         <kernel-features.h>.
30284         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30285         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30286         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30287         (__ASSUME_ATFCTS): Do not undefine and redefine.
30288         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30289         <kernel-features.h>.
30290         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30291         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30292         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30293         <kernel-features.h>.
30294         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30295         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30296
30297 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30298
30299         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30300
30301 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30302
30303         [BZ #17069]
30304         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30305         constructed tree before returning error.
30306         * posix/bug-regexp36.c: Expand test case.
30307
30308 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30309
30310         [BZ #6803]
30311         * math/libm-test.inc (scalbln_test_date):
30312         Add errno expectations.
30313         * math/w_scalblnf.c: New File.
30314         Add wrapper which checks for setting errno to ERANGE.
30315         Add weak_alias for corresponding scalbln function.
30316         * math/w_scalbln.c: Likewise.
30317         * math/w_scalblnl.c: Likewise.
30318         * math/Makefile (libm-calls): Add w_scalbln.
30319         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30320         Remove weak_alias for corresponding scalbln function.
30321         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30322         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30323         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30324         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30325         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30326         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30327         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30328         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30329         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30330         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30331         Remove long_double_symbol for scalblnl function in libm, libc.
30332         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30333         Add wrapper which checks for setting errno to ERANGE.
30334         Add long_double_symbol for scalblnl function in libm, libc.
30335         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30336         Remove long_double_symbol for scalblnl in libm.
30337         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30338         Add wrapper which checks for setting errno to ERANGE.
30339         Add long_double_symbol for scalblnl function in libm.
30340         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30341         Do not use wrapper because of own implementation.
30342
30343 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30344
30345         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30346         3 bytes for __pad1 for x32.
30347         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30348
30349 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30350             H.J. Lu  <hongjiu.lu@intel.com>
30351
30352         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30353         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30354         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30355         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30356         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30357
30358 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30359
30360         [BZ #17069]
30361         * posix/regcomp.c (parse_expression): Deallocate partially
30362         constructed tree before returning error.
30363         * posix/Makefile.c (tests): Add bug-regex36.
30364         (generated): Add bug-regex36.mtrace.
30365         (tests-special): Add $(objpfx)bug-regex36-mem.out
30366         (bug-regex36-ENV): New variable.
30367         ($(objpfx)bug-regex36-mem.out): New rule.
30368         * posix/bug-regex36.c: New file.
30369
30370 2014-06-19  Will Newton  <will.newton@linaro.org>
30371
30372         * malloc/malloc.c (systrim): If extra is zero then return
30373         early.
30374
30375 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30376
30377         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30378
30379 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30380
30381         * sysdeps/aarch64/strchr.S: New file.
30382
30383 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30384
30385         [BZ #17022]
30386         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30387         from arguments -2 or below.
30388         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30389         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30390
30391 2014-06-18  Andreas Schwab  <schwab@suse.de>
30392
30393         [BZ #17062]
30394         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30395         of a bracket expr not to run off the end of the string.
30396         * posix/Makefile (tests): Add tst-fnmatch3.
30397         * posix/tst-fnmatch3.c: New file.
30398
30399 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30400
30401         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30402         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30403         [$(cross-compiling) = no]: Likewise.
30404         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30405         [$(cross-compiling) = no]: Likewise.
30406
30407 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30408
30409         [BZ #17031]
30410         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30411         double, adjusted for any remainder from the high double.
30412         * math/libm-test.inc (nearbyint): Add tests.
30413         (rint): Likewise.
30414
30415 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30416
30417         * nptl/sysdeps/powerpc/Makefile: Moved ...
30418         * sysdeps/powerpc/nptl/Makefile: ... here.
30419         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30420         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30421         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30422         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30423         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30424         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30425         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30426         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30427         * nptl/sysdeps/powerpc/tls.h: Moved ...
30428         * sysdeps/powerpc/nptl/tls.h: ... here.
30429
30430 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30431
30432         [BZ #16681]
30433         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30434         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30435         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30436         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30437         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30438         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30439         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30440         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30441         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30442
30443 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30444
30445         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30446
30447 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30448
30449         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30450         defined operator.
30451
30452         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30453         $TIMEOUTFACTOR.
30454
30455 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30456
30457         [BZ #17058]
30458         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30459         non-executed part of the test.
30460
30461 2014-06-16  Andreas Schwab  <schwab@suse.de>
30462
30463         * string/bits/string2.h (strdup, strndup): Update feature guard.
30464
30465 2014-06-14  David S. Miller  <davem@davemloft.net>
30466
30467         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30468
30469 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30470
30471         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30472         that was previously under [RESET_PID].
30473         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30474
30475         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30476         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30477         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30478         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30479         (__libc_vfork): New strong alias.
30480         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30481
30482 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30483
30484         * sysdeps/generic/elide.h: New file.
30485
30486 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30487
30488         * Makefile (installed-headers): Adjust path of pthread.h header.
30489
30490 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30491
30492         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30493         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30494         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30495         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30496
30497         * nptl/sysdeps/s390/Makefile: Moved ...
30498         * sysdeps/s390/nptl/Makefile: ... here.
30499         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30500         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30501         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30502         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30503         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30504         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30505         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30506         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30507         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30508         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30509         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30510         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30511         * nptl/sysdeps/s390/tls.h: Moved ...
30512         * sysdeps/s390/nptl/tls.h: ... here.
30513
30514         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30515         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30516
30517 2014-06-13  David S. Miller  <davem@davemloft.net>
30518
30519         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30520         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30521         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30522         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30523         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30524         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30525         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30526         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30527         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30528         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30529         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30530         Remove RESET_PID cpp guards.
30531         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30532         Remove RESET_PID cpp guards.
30533         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30534
30535 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30536
30537         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30538         __sp to uintptr_t.
30539
30540 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30541
30542         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30543         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30544         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30545         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30546         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30547         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30548         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30549         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30550         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30551         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30552         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30553         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30554         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30555         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30556         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30557         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30558         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30559         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30560         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30561         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30562
30563         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30564         (pthread_rwlock_rdlock): Add elision.
30565         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30566         (pthread_rwlock_wrlock): Add elision.
30567         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30568         (pthread_rwlock_trywrlock): Add elision.
30569         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30570         (pthread_rwlock_tryrdlock): Add elision.
30571         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30572         (pthread_rwlock_tryrdlock): Add elision unlock.
30573         * nptl/sysdeps/pthread/pthread.h:
30574         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30575         (PTHREAD_RWLOCK_INITIALIZER,
30576         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30577         Handle new elision field.
30578         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30579         * sysdeps/arm/nptl/bits/pthreadtypes.h
30580         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30581         * sysdeps/sh/nptl/bits/pthreadtypes.h
30582         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30583         * sysdeps/tile/nptl/bits/pthreadtypes.h
30584         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30585         * sysdeps/a/nptl/bits/pthreadtypes.h
30586         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30587         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30588         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30589         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30590         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30591         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30592         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30593         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30594         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30595         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30596         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30597         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30598         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30599         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30600         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30601         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30602         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30603         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30604         (elision_init): Set try_xbegin to zero when no RTM.
30605         * sysdeps/x86/nptl/bits/pthreadtypes.h
30606         (pthread_rwlock_t): Change __pad1 to __rwelision.
30607         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30608
30609 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30610
30611         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30612         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30613         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30614         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30615
30616 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30617
30618         [BZ #16996]
30619         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30620         that the cached result has been set before returning it.
30621
30622 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30623
30624         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30625         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30626         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30627         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30628         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30629         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30630
30631         * nptl/sysdeps/sparc/Makefile: Moved ...
30632         * sysdeps/sparc/nptl/Makefile: ... here.
30633         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30634         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30635         * nptl/sysdeps/sparc/tls.h: Moved ...
30636         * sysdeps/sparc/nptl/tls.h: ... here.
30637         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30638         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30639         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30640         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30641         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30642         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30643         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30644         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30645         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30646         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30647         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30648         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30649         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30650         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30651         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30652         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30653         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30654         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30655         Update #include.
30656         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30657         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30658         Update #include.
30659         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30660         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30661         Update #include.
30662         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30663         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30664         Update #include.
30665
30666         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30667
30668         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30669         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30670
30671         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30672         (struct list_links): Type removed.
30673         (struct thread_node, struct timer_node): Replace struct list_links
30674         with struct list_head.
30675         (list_unlink_ip): Likewise.
30676         * sysdeps/pthread/timer_routines.c
30677         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30678         (list_append, list_insbefore): Likewise.
30679         (list_init): Function removed.
30680         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30681         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30682         * sysdeps/pthread/Makefile: ... here, new file.
30683
30684         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30685         * sysdeps/nptl/Implies: ... here.
30686         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30687         * nptl/sysdeps/pthread/list.h: Moved ...
30688         * include/list.h: ... here.
30689         * nptl/sysdeps/pthread/createthread.c: Moved ...
30690         * nptl/createthread.c: ... here.
30691         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30692         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30693         * nptl/pt-longjmp.c: ... here.
30694         * nptl/sysdeps/pthread/Makefile: Moved ...
30695         * sysdeps/nptl/Makefile: ... here.
30696         * nptl/sysdeps/pthread/Subdirs: Moved ...
30697         * sysdeps/nptl/Subdirs: ... here.
30698         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30699         * sysdeps/nptl/aio_misc.h: ... here.
30700         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30701         * sysdeps/nptl/bits/libc-lock.h: ... here.
30702         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30703         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30704         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30705         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30706         * nptl/sysdeps/pthread/configure: Moved ...
30707         * sysdeps/nptl/configure: ... here.
30708         * nptl/sysdeps/pthread/configure.ac: Moved ...
30709         * sysdeps/nptl/configure.ac: ... here.
30710         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30711         * sysdeps/nptl/gai_misc.h: ... here.
30712         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30713         * sysdeps/nptl/librt-cancellation.c: ... here.
30714         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30715         * sysdeps/nptl/malloc-machine.h: ... here.
30716         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30717         * sysdeps/nptl/pthread-functions.h: ... here.
30718         * nptl/sysdeps/pthread/pthread.h: Moved ...
30719         * sysdeps/nptl/pthread.h: ... here.
30720         * nptl/sysdeps/pthread/setxid.h: Moved ...
30721         * sysdeps/nptl/setxid.h: ... here.
30722         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30723         * sysdeps/nptl/sigfillset.c: ... here.
30724         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30725         * sysdeps/nptl/tcb-offsets.h: ... here.
30726         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30727         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30728         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30729         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30730         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30731         * sysdeps/pthread/allocalim.h: ... here.
30732         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30733         * sysdeps/pthread/bits/sigthread.h: ... here.
30734         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30735         * sysdeps/pthread/flockfile.c: ... here.
30736         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30737         * sysdeps/pthread/ftrylockfile.c: ... here.
30738         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30739         * sysdeps/pthread/funlockfile.c: ... here.
30740         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30741         * sysdeps/pthread/posix-timer.h: ... here.
30742         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30743         * sysdeps/pthread/timer_create.c: ... here.
30744         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30745         * sysdeps/pthread/timer_delete.c: ... here.
30746         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30747         * sysdeps/pthread/timer_getoverr.c: ... here.
30748         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30749         * sysdeps/pthread/timer_gettime.c: ... here.
30750         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30751         * sysdeps/pthread/timer_routines.c: ... here.
30752         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30753         * sysdeps/pthread/timer_settime.c: ... here.
30754         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30755         * sysdeps/pthread/tst-timer.c: ... here.
30756         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30757         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30758
30759         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30760         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30761
30762         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30763         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30764         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30765         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30766         Update #include target.
30767         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30768         * sysdeps/i386/i686/nptl/Makefile: ... here.
30769         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30770         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30771         Update #include target.
30772         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30773         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30774         * nptl/sysdeps/i386/Makefile: Moved ...
30775         * sysdeps/i386/nptl/Makefile: ... here.
30776         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
30777         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
30778         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
30779         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
30780         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
30781         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
30782         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
30783         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
30784         * sysdeps/i386/nptl/pthreaddef.h: ... here.
30785         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
30786         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
30787         * nptl/sysdeps/i386/tls.h: Moved ...
30788         * sysdeps/i386/nptl/tls.h: ... here.
30789
30790         * sysdeps/sh/Makefile [$(subdir) = csu]
30791         (gen-as-const-headers): Add tcb-offsets.sym.
30792         * nptl/sysdeps/sh/Makefile: File removed.
30793         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
30794         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
30795         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
30796         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
30797         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
30798         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
30799         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
30800         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
30801         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
30802         * sysdeps/sh/nptl/pthreaddef.h: ... here.
30803         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
30804         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
30805         * nptl/sysdeps/sh/tls.h: Moved ...
30806         * sysdeps/sh/nptl/tls.h: ... here.
30807         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
30808         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
30809         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
30810         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
30811         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
30812         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
30813         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
30814         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
30815         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
30816         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
30817         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
30818         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
30819         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
30820         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
30821         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
30822         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
30823         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
30824         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
30825         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
30826         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
30827         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
30828         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
30829         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
30830         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
30831         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
30832         Moved ...
30833         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
30834         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
30835         Moved ...
30836         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
30837         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
30838         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
30839         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
30840         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
30841         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
30842         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
30843         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
30844         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
30845         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
30846         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
30847         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
30848         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
30849         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
30850         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
30851         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
30852         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
30853         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
30854         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
30855
30856 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30857
30858         * posix/spawn_faction_addopen.c: Include string.h.
30859
30860 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30861
30862         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
30863         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
30864         * nptl/sysdeps/x86_64/Makefile: Moved ...
30865         * sysdeps/x86_64/nptl/Makefile: ... here.
30866         * nptl/sysdeps/x86_64/configure: Moved ...
30867         * sysdeps/x86_64/nptl/configure: ... here.
30868         * nptl/sysdeps/x86_64/configure.ac: Moved ...
30869         * sysdeps/x86_64/nptl/configure.ac: ... here.
30870         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
30871         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
30872         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
30873         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
30874         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
30875         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
30876         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
30877         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
30878         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
30879         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
30880         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
30881         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
30882         * nptl/sysdeps/x86_64/tls.h: Moved ...
30883         * sysdeps/x86_64/nptl/tls.h: ... here.
30884         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
30885         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
30886         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
30887         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
30888
30889         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
30890
30891 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30892
30893         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30894
30895 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
30896
30897         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
30898         type.
30899         [POSIX] (off_t): Likewise.
30900         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
30901         [POSIX] (S_ISBLK): Require macro.
30902         [POSIX] (S_ISCHR): Likewise.
30903         [POSIX] (S_ISDIR): Likewise.
30904         [POSIX] (S_ISFIFO): Likewise.
30905         [POSIX] (S_ISREG): Likewise.
30906         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
30907         optional-macro.
30908         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
30909         type.
30910         [POSIX] (time_t): Likewise.
30911         [POSIX] (timer_t): Likewise.
30912
30913 2014-06-11  Florian Weimer  <fweimer@redhat.com>
30914
30915         [BZ #17048]
30916         * posix/spawn_int.h (struct __spawn_action): Make the path string
30917         non-const to support deallocation.
30918         * posix/spawn_faction_addopen.c
30919         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
30920         * posix/spawn_faction_destroy.c
30921         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
30922         path in all spawn_do_open actions.
30923         * posix/tst-spawn.c (do_test): Exercise the copy operation in
30924         posix_spawn_file_actions_addopen.
30925
30926 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
30927
30928         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
30929         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
30930         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
30931         conditional code always true.
30932         (__libc_vfork): New alias.
30933
30934 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30935
30936         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30937         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
30938
30939         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
30940
30941         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30942         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
30943
30944         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30945         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
30946
30947         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30948         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
30949
30950 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
30951
30952         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
30953         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
30954         multiarch strcmp for PPC64.
30955         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
30956         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
30957         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
30958         multiarch optimizations.
30959         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
30960         (__libc_ifunc_impl_list): Likewise.
30961
30962 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
30963
30964         * benchtests/scripts/validate_benchout.py: New script.
30965         * benchtests/Makefile (bench-func): Call it.
30966         * benchtests/scripts/benchout.schema.json: New file.
30967
30968 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
30969
30970         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
30971         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
30972         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
30973         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
30974         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
30975         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
30976         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
30977         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
30978         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
30979         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
30980         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
30981         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
30982         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
30983         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
30984         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
30985         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
30986         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
30987         Moved ...
30988         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
30989         ... here.
30990         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
30991         Moved ...
30992         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
30993         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
30994         Moved ...
30995         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
30996         ... here.
30997         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
30998         Moved ...
30999         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31000         ... here.
31001         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31002         Moved ...
31003         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31004         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31005         Moved ...
31006         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31007         ... here.
31008         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31009         Moved ...
31010         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31011         ... here.
31012         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31013         Moved ...
31014         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31015         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31016         Moved ...
31017         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31018         ... here.
31019         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31020         Moved ...
31021         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31022         ... here.
31023         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31024         Moved ...
31025         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31026         ... here.
31027         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31028         Moved ...
31029         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31030         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31031         Moved ...
31032         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31033         ... here.
31034         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31035         Moved ...
31036         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31037         ... here.
31038         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31039         Moved ...
31040         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31041         ... here.
31042         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31043         Moved ...
31044         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31045         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31046         Moved ...
31047         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31048         ... here.
31049         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31050         Moved ...
31051         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31052         ... here.
31053         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31054         Moved ...
31055         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31056         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31057         Moved ...
31058         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31059         ... here.
31060         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31061         Moved ...
31062         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31063         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31064         Moved ...
31065         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31066         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31067         Moved ...
31068         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31069         ... here.
31070         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31071         Moved ...
31072         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31073         ... here.
31074         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31075         Moved ...
31076         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31077         ... here.
31078         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31079         Moved ...
31080         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31081         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31082         Moved ...
31083         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31084         ... here.
31085         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31086         Moved ...
31087         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31088         ... here.
31089         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31090         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31091         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31092         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31093         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31094         Moved ...
31095         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31096         ... here.
31097         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31098         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31099         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31100         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31101         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31102         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31103         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31104         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31105         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31106         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31107         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31108         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31109         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31110         Moved ...
31111         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31112         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31113         Moved ...
31114         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31115         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31116         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31117         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31118         Moved ...
31119         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31120         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31121         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31122         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31123         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31124         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31125         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31126
31127 2014-06-10  Wilco  <wdijkstr@arm.com>
31128
31129         * math/test-fenv-return.c: New file.
31130         * math/Makefile: Add new test test-fenv-return.
31131
31132 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31133
31134         [BZ #17042]
31135         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31136         when x - 1 is zero.
31137         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31138         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31139         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31140         0.0L for an argument of 1.0L.
31141         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31142         Likewise.
31143         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31144         value when x - 1 is zero.
31145         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31146         * sysdeps/i386/fpu/libm-test-ulps: Update.
31147         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31148
31149 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31150
31151         [BZ #15119]
31152         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31153
31154 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31155
31156         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31157         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31158
31159 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31160
31161         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31162         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31163
31164         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31165         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31166
31167         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31168         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31169
31170         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31171         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31172
31173         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31174         if not already defined.
31175         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31176         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31177         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31178         (TLS_INIT_TP): Use it.
31179         (TLS_DEFINE_INIT_TP): New macro.
31180         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31181
31182 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31183
31184         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31185         constant.
31186         [POSIX] (IXANY): Likewise.
31187         [POSIX] (OLCUC): Likewise.
31188         [POSIX || POSIX2008] (CBAUD): Do not allow.
31189         [POSIX || POSIX2008] (DEFECHO): Likewise.
31190         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31191         [POSIX || POSIX2008] (ECHOKE): Likewise.
31192         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31193         [POSIX || POSIX2008] (EXTA): Likewise.
31194         [POSIX || POSIX2008] (EXTB): Likewise.
31195         [POSIX || POSIX2008] (FLUSHO): Likewise.
31196         [POSIX || POSIX2008] (LOBLK): Likewise.
31197         [POSIX || POSIX2008] (PENDIN): Likewise.
31198         [POSIX || POSIX2008] (SWTCH): Likewise.
31199         [POSIX || POSIX2008] (VDISCARD): Likewise.
31200         [POSIX || POSIX2008] (VDSUSP): Likewise.
31201         [POSIX || POSIX2008] (VLNEXT): Likewise.
31202         [POSIX || POSIX2008] (VREPRINT): Likewise.
31203         [POSIX || POSIX2008] (VSTATUS): Likewise.
31204         [POSIX || POSIX2008] (VWERASE): Likewise.
31205         (B*): Change to B[0123456789]*.
31206         * conform/data/time.h-data [POSIX || UNIX98]
31207         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31208         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31209         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31210         [POSIX] (tm_*): Do not allow.
31211
31212 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31213
31214         * Makefile (install): Don't set LANGUAGE.
31215         * Makefile.in (install): Likewise.
31216         * assert/Makefile (test-assert-ENV): Remove variable.
31217         (test-assert-perr-ENV): Likewise.
31218         * elf/Makefile (neededtest4-ENV): Likewise.
31219         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31220         [$(cross-compiling) = no]: Don't set LANGUAGE.
31221         * io/ftwtest-sh (LANG): Remove variable.
31222         * libio/Makefile (tst-widetext-ENV): Likewise.
31223         * manual/install.texi (Running make install): Don't refer to
31224         environment settings for make install.
31225         * INSTALL: Regenerated.
31226         * nptl/tst-tls6.sh: Don't set LANG.
31227         * posix/globtest.sh (LANG): Remove variable.
31228         * string/Makefile (tester-ENV): Likewise.
31229         (inl-tester-ENV): Likewise.
31230         (noinl-tester-ENV): Likewise.
31231         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31232         [$(cross-compiling) = no]: Don't set LANGUAGE.
31233         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31234         without explicit environment settings.
31235
31236 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31237
31238         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31239         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31240         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31241         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31242
31243 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31244
31245         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31246         other files in the crypt directory.
31247         * crypt/crypt.c: Remove duplicate includes.
31248         * crypt/crypt-entry.c: Likewise.
31249         * crypt/crypt_util.c: Likewise.
31250
31251 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31252
31253         * Makeconfig (run-program-env): New variable.
31254         (run-program-prefix-before-env): Likewise.
31255         (run-program-prefix-after-env): Likewise.
31256         (run-program-prefix): Define in terms of new variables.
31257         (built-program-cmd-before-env): New variable.
31258         (built-program-cmd-after-env): Likewise.
31259         (built-program-cmd): Define in terms of new variables.
31260         (test-program-prefix-before-env): New variable.
31261         (test-program-prefix-after-env): Likewise.
31262         (test-program-prefix): Define in terms of new variables.
31263         (test-program-cmd-before-env): New variable.
31264         (test-program-cmd-after-env): Likewise.
31265         (test-program-cmd): Define in terms of new variables.
31266         * Rules (make-test-out): Use $(run-program-env).
31267         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31268         (help): Do not mention environment variables.  Mention
31269         --timeoutfactor option.
31270         (timeoutfactor): New variable.
31271         (blacklist_exports): Remove function.
31272         (exports): Remove variable.
31273         (command): Do not include ${exports}.
31274         * manual/install.texi (Configuring and compiling): Do not mention
31275         test wrappers preserving environment variables.  Mention that last
31276         assignment to a variable must take precedence.
31277         * INSTALL: Regenerated.
31278         * benchtests/Makefile (run-bench): Use $(run-program-env).
31279         * catgets/Makefile ($(objpfx)test1.cat): Use
31280         $(built-program-cmd-before-env), $(run-program-env) and
31281         $(built-program-cmd-after-env).
31282         ($(objpfx)test2.cat): Do not specify environment variables
31283         explicitly.
31284         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31285         $(run-program-env) and $(built-program-cmd-after-env).
31286         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31287         $(run-program-env) and $(test-program-cmd-after-env).
31288         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31289         explicitly.
31290         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31291         run_program_env and test_program_cmd_after_env arguments.
31292         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31293         * elf/tst-pathopt.sh: Use run_program_env argument.
31294         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31295         $(test-wrapper-env) and $(run-program-env).
31296         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31297         run_program_env arguments.
31298         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31299         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31300         $(test-program-prefix-before-env), $(run-program-env) and
31301         $(test-program-prefix-after-env).
31302         ($(objpfx)tst-gettext2.out): Likewise.
31303         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31304         run_program_env and test_program_prefix_after_env arguments.
31305         * intl/tst-gettext2.sh: Likewise.
31306         * intl/tst-gettext4.sh: Do not set environment variables
31307         explicitly.
31308         * intl/tst-gettext6.sh: Likewise.
31309         * intl/tst-translit.sh: Likewise.
31310         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31311         $(test-program-prefix-before-env), $(run-program-env) and
31312         $(test-program-prefix-after-env).
31313         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31314         run_program_env and test_program_prefix_after_env arguments.
31315         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31316         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31317         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31318         explicitly with each use of ${test_wrapper_env}.
31319         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31320         $(test-program-prefix-before-env), $(run-program-env) and
31321         $(test-program-prefix-after-env).
31322         * posix/tst-getconf.sh: Do not set environment variables
31323         explicitly.
31324         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31325         run_program_env and test_program_prefix_after_env arguments.
31326         * stdio-common/tst-printf.sh: Do not set environment variables
31327         explicitly.
31328         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31329         $(test-program-prefix-before-env), $(run-program-env) and
31330         $(test-program-prefix-after-env).
31331         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31332         run_program_env and test_program_prefix_after_env arguments.
31333         Split $test calls into $test_pre and $test.
31334         * timezone/Makefile (build-testdata): Use
31335         $(built-program-cmd-before-env), $(run-program-env) and
31336         $(built-program-cmd-after-env).
31337
31338 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31339
31340         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31341         strlen for non SHARED builds.
31342
31343 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31344
31345         * nptl/allocatestack.c (check_list): Inlined function...
31346         (__reclaim_stacks): ... here.
31347
31348 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31349
31350         [BZ #15698]
31351         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31352         memory overrun.
31353
31354 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31355
31356         * Rules (make-test-out): Include
31357         LOCPATH=$(common-objpfx)localedata in default environment.
31358         * debug/Makefile (tst-chk1-ENV): Remove variable.
31359         (tst-chk2-ENV): Likewise.
31360         (tst-chk3-ENV): Likewise.
31361         (tst-chk4-ENV): Likewise.
31362         (tst-chk5-ENV): Likewise.
31363         (tst-chk6-ENV): Likewise.
31364         (tst-lfschk1-ENV): Likewise.
31365         (tst-lfschk2-ENV): Likewise.
31366         (tst-lfschk3-ENV): Likewise.
31367         (tst-lfschk4-ENV): Likewise.
31368         (tst-lfschk5-ENV): Likewise.
31369         (tst-lfschk6-ENV): Likewise.
31370         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31371         (tst-iconv7-ENV): Likewise.
31372         * intl/Makefile (LOCPATH-ENV): Likewise.
31373         (tst-codeset-ENV): Likewise.
31374         (tst-gettext3-ENV): Likewise.
31375         (tst-gettext5-ENV): Likewise.
31376         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31377         (tst-fopenloc-ENV): Likewise.
31378         (tst-fgetws-ENV): Remove variable.
31379         (tst-ungetwc1-ENV): Likewise.
31380         (tst-ungetwc2-ENV): Likewise.
31381         (bug-ungetwc2-ENV): Likewise.
31382         (tst-swscanf-ENV): Likewise.
31383         (bug-ftell-ENV): Likewise.
31384         (tst-fgetwc-ENV): Likewise.
31385         (tst-fseek-ENV): Likewise.
31386         (tst-ftell-partial-wide-ENV): Likewise.
31387         (tst-ftell-active-handler-ENV): Likewise.
31388         (tst-ftell-append-ENV): Likewise.
31389         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31390         (tst-regexloc-ENV): Likewise.
31391         (bug-regex1-ENV): Likewise.
31392         (tst-regex-ENV): Likewise.
31393         (tst-regex2-ENV): Likewise.
31394         (bug-regex5-ENV): Likewise.
31395         (bug-regex6-ENV): Likewise.
31396         (bug-regex17-ENV): Likewise.
31397         (bug-regex18-ENV): Likewise.
31398         (bug-regex19-ENV): Likewise.
31399         (bug-regex20-ENV): Likewise.
31400         (bug-regex22-ENV): Likewise.
31401         (bug-regex23-ENV): Likewise.
31402         (bug-regex25-ENV): Likewise.
31403         (bug-regex26-ENV): Likewise.
31404         (bug-regex30-ENV): Likewise.
31405         (bug-regex32-ENV): Likewise.
31406         (bug-regex33-ENV): Likewise.
31407         (bug-regex34-ENV): Likewise.
31408         (bug-regex35-ENV): Likewise.
31409         (tst-rxspencer-ENV): Likewise.
31410         (tst-rxspencer-no-utf8-ENV): Likewise.
31411         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31412         (tst-sscanf-ENV): Likewise.
31413         (tst-swprintf-ENV): Likewise.
31414         (tst-swscanf-ENV): Likewise.
31415         (test-vfprintf-ENV): Likewise.
31416         (scanf13-ENV): Likewise.
31417         (bug14-ENV): Likewise.
31418         (tst-grouping-ENV): Likewise.
31419         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31420         (tst-strtod3-ENV): Likewise.
31421         (tst-strtod4-ENV): Likewise.
31422         (tst-strtod5-ENV): Likewise.
31423         (testmb2-ENV): Likewise./
31424         * string/Makefile (tst-strxfrm-ENV): Likewise.
31425         (tst-strxfrm2-ENV): Likewise.
31426         (bug-strcoll1-ENV): Likewise.
31427         (test-strcasecmp-ENV): Likewise.
31428         (test-strncasecmp-ENV): Likewise.
31429         * time/Makefile (tst-strptime-ENV): Likewise.
31430         (tst-ftime_l-ENV): Likewise.
31431         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31432         (tst-mbrtowc-ENV): Likewise.
31433         (tst-wcrtomb-ENV): Likewise.
31434         (tst-mbrtowc2-ENV): Likewise.
31435         (tst-c16c32-1-ENV): Likewise.
31436         (tst-mbsnrtowcs-ENV): Likewise.
31437
31438 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31439
31440         * manual/resource.texi (How to get information about the memory
31441         subsystem?): Fix typo.
31442         Reported by Peon de la Parra Ivan <peon@keba.com>
31443
31444 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31445
31446         [BZ #16882]
31447         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31448         (pthread_spin_lock): Branch out of spin loop to proper location.
31449         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31450         (pthread_spin_lock): Likewise.
31451
31452         * nptl/tst-spin4.c: New test.
31453         * nptl/Makefile (tests): Add tst-spin4.
31454
31455 2014-06-03  Andreas Schwab  <schwab@suse.de>
31456
31457         [BZ #15946]
31458         * resolv/res_send.c (send_dg): Reload file descriptor after
31459         calling reopen.
31460
31461 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31462
31463         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31464
31465 2014-06-03  Richard Henderson  <rth@redhat.com>
31466
31467         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31468         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31469         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31470         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31471         in the SAVE_PID block.
31472         (__libc_vfork): New alias.
31473         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31474
31475         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31476         child in registers, not on the stack.  Remove RESET_PID conditionals.
31477         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31478
31479 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31480
31481         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31482
31483 2014-06-03  Wilco  <wdijkstr@arm.com>
31484
31485         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31486         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31487         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31488         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31489         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31490         Likewise.
31491
31492 2014-06-03  Wilco  <wdijkstr@arm.com>
31493
31494         * sysdeps/aarch64/fpu/math_private.h
31495         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31496         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31497         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31498         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31499         Fix declarations.
31500
31501 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31502
31503         * crypt/crypt-private.h: Include ufc-crypt.h.
31504         (__b64_from_24bit): Declare extern.
31505         * crypt/crypt_util.c(__b64_from_24bit): New function.
31506         (b64t): New static const variable.
31507         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31508         (b64t): Remove variable.
31509         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31510         * crypt/sha256-crypt.c: Include crypt-private.h.
31511         (b64t): Remove variable.
31512         (__sha256_crypt_r): Remove b64_from_24bit and replace
31513         with __b64_from_24bit.
31514         * crypt/sha512-crypt.c: Likewise.
31515
31516 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31517
31518         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31519         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31520         Label the code __libc_vfork rather than __vfork.
31521         [!NOT_IN_libc] (vfork): Define as weak alias.
31522         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31523         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31524         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31525
31526 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31527
31528         * malloc/malloc.c (malloc_info): Fix format specifier for
31529         n_mmaps.
31530
31531 2014-06-02  Wilco  <wdijkstr@arm.com>
31532
31533         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31534         FPCR write.
31535
31536 2014-06-02  Wilco  <wdijkstr@arm.com>
31537
31538         [BZ #17009]
31539         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31540         Rewrite to reduce FPCR/FPSR accesses.
31541
31542 2014-06-01  David S. Miller  <davem@davemloft.net>
31543
31544         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31545
31546 2014-05-31  David S. Miller  <davem@davemloft.net>
31547
31548         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31549         to occur in round to nearest mode when |x| >= 2.0
31550
31551 2014-05-30  Richard Henderson  <rth@twiddle.net>
31552
31553         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31554         (PSEUDO_RET_NOERRNO): Remove.
31555         (ret): Don't redefine.
31556         (ret_NOERRNO): Define in terms of ret.
31557         (ret_ERRVAL): Likewise.
31558
31559         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31560         use of PSEUDO_RET; perform the error check directly.
31561
31562 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31563
31564         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31565         with __int128_t.
31566
31567 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31568
31569         * malloc/malloc (malloc_info): Fix formatting.
31570
31571 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31572             Roland McGrath  <roland@hack.frob.com>
31573
31574         * malloc/malloc (malloc_info): Also print mmapped statistics.
31575
31576 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31577
31578         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31579         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31580
31581 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31582
31583         * malloc/malloc.c (malloc_info): Inline mi_arena.
31584
31585 2014-05-29  Richard Henderson  <rth@twiddle.net>
31586
31587         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31588         Remove comma before expanding ASM_ARGS_##nr.
31589         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31590         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31591         of ASM_ARGS_##nr.
31592         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31593         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31594         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31595         (ASM_ARGS_1): Add leading comma.
31596
31597         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31598         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31599         to __errno_location.
31600         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31601         Remove the expected plt for __errno_location.
31602
31603         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31604         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31605         call to __read_tp.
31606
31607         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31608         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31609         it and break it down.
31610         (DOCARGS_0, DOCARGS_1): Do nothing.
31611         (DOCARGS_2): Update to store into the new stack frame.
31612         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31613         (UNDOCARGS_1): Update to restore from the new stack frame.
31614         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31615         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31616
31617         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31618         (SINGLE_THREAD_P): New parameter for result regno.
31619         (PSEUDO): Update to match; use cbz instead of beq.
31620
31621         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31622         Use ENTRY to define the _nocancel entry point.  Share the syscall
31623         and syscall error check paths with the cancel path.
31624         (PSEUDO_END): New.
31625
31626         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31627         whitespace; tabs before and after asm mnemonics.
31628
31629 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31630
31631         [BZ #15132]
31632         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31633         Call fstat64 or stat64 internally, depending on arguments passed.
31634         Replace stat buffer argument with file descriptor argument.
31635         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31636         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31637         Pass fd to __internal_statvfs instead of calling fstat64.
31638         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31639         Pass fd to __internal_statvfs64 instead of calling fstat64.
31640         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31641         Pass -1 to __internal_statvfs instead of calling stat64.
31642         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31643         Pass -1 to __internal_statvfs64 instead of calling stat64.
31644
31645 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31646
31647         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31648         that was previously under [RESET_PID].
31649         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31650
31651         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31652         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31653
31654 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31655
31656         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31657
31658         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31659         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31660
31661 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31662
31663         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31664
31665 2014-05-27  Andreas Schwab  <schwab@suse.de>
31666
31667         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31668         TLS_INIT_TP macro.
31669         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31670         * elf/rtld.c (init_tls, dl_main): Likewise.
31671         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31672         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31673         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31674         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31675         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31676         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31677         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31678         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31679         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31680         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31681         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31682         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31683         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31684         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31685         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31686         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31687         * sysdeps/generic/tls.h: Update description.
31688
31689 2014-05-27  Will Newton  <will.newton@linaro.org>
31690
31691         [BZ #16990]
31692         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31693         and restore r2 rather than just restoring.
31694
31695 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31696
31697         [BZ #16724]
31698         * libio/tst-ftell-append.c: New test case.
31699         * libio/Makefile (tests): Add test case.
31700         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31701         append mode.
31702         * libio/wfileops.c (do_ftell_wide): Likewise.
31703
31704 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31705
31706         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31707
31708         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31709         ...
31710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31712         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31713         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31714         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31715         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31716         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31717         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31718         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31719         Moved ...
31720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31721         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31722         Moved ...
31723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31724         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31725         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31726         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31727         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31728         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31729         ...
31730         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31731         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31732         Moved ...
31733         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31734         here.
31735         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31736         ...
31737         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31738         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31739         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31740
31741         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31742         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31743         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31744         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31745
31746         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31747         merge into ...
31748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31749         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31750         ...
31751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31752         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31753         ...
31754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31755         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31756         Moved ...
31757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31758         here.
31759         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31760         Moved ...
31761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31762         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31763         Moved ...
31764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31765
31766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31767         conditional [RESET_PID].
31768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31769         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31770         removed.
31771         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31772         removed.
31773
31774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31775         <tcb-offsets.h>.
31776         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31777         (__libc_vfork): New strong alias.
31778         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
31779         removed.
31780         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
31781         Removed.
31782
31783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
31784         <tcb-offsets.h>.
31785         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
31786         (__libc_vfork): New strong alias.
31787         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
31788         removed.
31789         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
31790         removed.
31791
31792 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
31793
31794         * malloc/malloc.c (mi_arena): New function.
31795         (malloc_info): Remove nested function mi_arena. Call non-nosted
31796         function mi_arena.
31797
31798 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31799
31800         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
31801         by insrwi.
31802         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31803         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31804         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
31805         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
31806         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
31807         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
31808         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
31809
31810 2014-05-26  Andreas Schwab  <schwab@suse.de>
31811
31812         [BZ #16984]
31813         * locale/programs/repertoire.c (repertoire_read): Add slash
31814         between I18NPATH element and file name.
31815         * locale/programs/locfile.c (locfile_read): Likewise.
31816
31817 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31818
31819         * nptl/pthread_mutexattr_settype.c
31820         (__pthread_mutexattr_settype):
31821         Disable lock elision for PTHREAD_MUTEX_NORMAL.
31822
31823 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31824
31825         * nptl/tst-mutex5 (do_test):
31826         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
31827
31828 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31829
31830         * benchtests/README: Document 'init' directive.
31831         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
31832         BENCH_INIT.
31833         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
31834         (parse_file): Recognize 'init' directive.
31835
31836 2014-05-26  Kyle McMartin  <kyle@redhat.com>
31837
31838         [BZ #16796]
31839         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
31840         alignment of struct pthread.
31841
31842 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31843
31844         [BZ #16878]
31845         * nscd/netgroupcache.c (addgetnetgrentX): Look for
31846         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31847         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
31848         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31849
31850 2014-05-25  Richard Henderson  <rth@twiddle.net>
31851
31852         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31853         (SINGLE_THREAD_P_PIC): Remove.
31854         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
31855         (SINGLE_THREAD_P_PIC): Remove.
31856
31857         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
31858         branch to syscall error ...
31859         (PSEUDO): ... here.
31860         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
31861         from __local_syscall_error to .Lsyscall_error.
31862         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
31863         (SYSCALL_ERROR): Update label name.
31864
31865         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31866         Do not use DOARGS/UNDOARGS.
31867         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
31868         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
31869         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
31870         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
31871         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
31872
31873         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
31874         block comment.
31875
31876         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
31877         define if !NOT_IN_libc.
31878         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
31879         define with non-default symbol versions.
31880
31881 2014-05-23  Richard Henderson  <rth@twiddle.net>
31882
31883         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
31884         (vfork, __vfork): Define via compat_symbol.
31885
31886         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
31887         [!HAVE_IFUNC] (vfork_compat): Remove.
31888         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
31889
31890 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31891
31892         [BZ #16978]
31893         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
31894         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
31895         variable.
31896
31897 2014-05-23  Richard Henderson  <rth@twiddle.net>
31898
31899         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
31900         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
31901         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
31902         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
31903
31904         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
31905         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
31906         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
31907         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
31908         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
31909         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
31910         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
31911         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
31912         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
31913         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
31914         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
31915         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
31916         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
31917         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
31918         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
31919         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
31920         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
31921         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
31922         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
31923         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
31924         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
31925         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
31926         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
31927         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
31928         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
31929         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
31930         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
31931         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
31932         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
31933         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
31934         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
31935         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
31936         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
31937         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
31938         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
31939         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
31940         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
31941         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
31942         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
31943         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
31944         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
31945         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
31946         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
31947         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
31948         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
31949         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
31950         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
31951         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
31952         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
31953         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
31954         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
31955         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
31956         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
31957         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
31958         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
31959         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
31960
31961         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
31962         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
31963         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
31964         before exiting on error.
31965         (__libc_vfork): New strong alias.
31966         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
31967         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
31968
31969         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
31970         that was previously under [RESET_PID].
31971         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
31972
31973         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
31974
31975 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31976
31977         [BZ #16977]
31978         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
31979         value when x - 1 is zero.
31980         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
31981         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
31982         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
31983         0.0L for an argument of 1.0L.
31984         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
31985         Likewise.
31986         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
31987         value when x - 1 is zero.
31988         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
31989         * sysdeps/i386/fpu/libm-test-ulps: Update.
31990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31991
31992 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31993
31994         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
31995         alphasort and versionsort.
31996
31997 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31998
31999         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32000         macro.
32001         [copysignf]: Likewise.
32002
32003 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32004
32005         * crypt/md5-crypt.c: Fix formatting.
32006
32007 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32008
32009         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32010         (b64_from_24bit): New function.
32011
32012 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32013
32014         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32015         libc_hidden_builtin_def to ifunc.
32016         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32017         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32018
32019 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32020
32021         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32022         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32023
32024 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32025
32026         * nscd/Depend (linuxthreads): Remove.
32027         (nptl): Add.
32028         * resolv/Depend (linuxthreads): Remove.
32029         * rt/Depend (linuxthreads): Remove.
32030
32031         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32032         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32033         $(common-objpfx)elf/.
32034         (link-libc-before-gnulib): Likewise.
32035         (elfobjdir): Remove variable.
32036         * Makefile (install): Use $(elf-objpfx) instead of
32037         $(common-objpfx)elf/.
32038         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32039         $(elfobjdir)/.
32040         (link-libc-deps): Likewise.
32041         ($(common-objpfx)libc.so): Likewise.
32042         ($(common-objpfx)linkobj/libc.so): Likewise.
32043         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32044         instead of $(common-objpfx)elf/.
32045         (symbolic-link-list): Likewise.
32046         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32047         [$(cross-compiling) = no]: Likewise.
32048         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32049         $(elfobjdir)/.
32050         (static-gnulib-arch): Likewise.
32051         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32052         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32053         $(common-objpfx)elf/.
32054
32055 2014-05-21  Richard Henderson  <rth@redhat.com>
32056
32057         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32058         (SINGLE_THREAD_P): Use the correct width load.  Fold
32059         into the ldr offset.
32060
32061         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32062         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32063
32064 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32065
32066         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32067         (libgcc_s_resume): Use __attribute_used__.
32068         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32069         Likewise.
32070
32071 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32072
32073         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32074         optimization when used with float constants.
32075
32076         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32077
32078 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32079
32080         [BZ #16915]
32081         * locale/nl_langinfo_l.c: Make direct reference to every
32082         _nl_current_CATEGORY symbol.
32083         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32084         (tests-static): Add tst-langinfo-static.
32085         (tests-special): Add tst-langinfo-static.out.
32086         ($(objpfx)tst-langinfo.out): Redirect output.
32087         ($(objpfx)tst-langinfo-static.out): New.
32088         * localedata/tst-langinfo.sh: Send output to stdout.
32089         * localedata/tst-langinfo-static.c: New file.
32090
32091         [BZ #16965]
32092         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32093         when the shift amount is modulo the limb size.
32094
32095 2014-05-20  Richard Henderson  <rth@redhat.com>
32096
32097         [BZ #16967]
32098         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32099         Change type of sa_flags from unsigned int to int.
32100
32101         [BZ #16966]
32102         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32103
32104         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32105
32106 2014-05-20  Will Newton  <will.newton@linaro.org>
32107
32108         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32109         Test the return value of the system call in the nocancel case.
32110
32111 2014-05-20  Will Newton  <will.newton@linaro.org>
32112             Yvan Roux  <yvan.roux@linaro.org>
32113
32114         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32115         #include of asm/ptrace.h.
32116         (PTRACE_GET_THREAD_AREA): Remove #undef.
32117         (PTRACE_GETHBPREGS): Likewise.
32118         (PTRACE_SETHBPREGS): Likewise.
32119         (struct user_regs_struct): New structure.
32120         (struct user_fpsimd_struct): New structure.
32121         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32122         #include of asm/ptrace.h and second #include of sys/user.h.
32123         (PTRACE_GET_THREAD_AREA): Remove #undef.
32124         (PTRACE_GETHBPREGS): Likewise.
32125         (PTRACE_SETHBPREGS): Likewise.
32126         (ELF_NGREG): Use new struct user_regs_struct.
32127         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32128
32129 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32130
32131         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32132         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32133
32134 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32135
32136         [BZ #16958]
32137         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32138         membar to avoid block loads/stores to overlap previous stores.
32139
32140 2014-05-17  Richard Henderson  <rth@redhat.com>
32141
32142         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32143         Create the __##syscall_name##_nocancel entry point.
32144         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32145         Remove; let the sysdep-cancel.h code create it.
32146
32147 2014-05-17  David S. Miller  <davem@davemloft.net>
32148
32149         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32150         Protect with __USE_GNU.
32151         (TIOCSET_TEMPT): Likewise.
32152         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32153         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32154         these are already provided in bits/ioctl-types.h
32155
32156 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32157
32158         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32159         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32160
32161         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32162         Use wait4 regardless of [__NR_waitpid].
32163
32164 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32165
32166         PR libgcc/60166
32167         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32168         (_FP_NANSIGN_Q): Set the quiet bit.
32169
32170 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32171
32172         * benchtests/Makefile
32173         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32174         not $(common-objpfx)math/libm.so.
32175         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32176         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32177         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32178         $(common-objpfx)dlfcn/libdl.so.
32179         ($(objpfx)tst-audit8): Depend on $(libm), not
32180         $(common-objpfx)math/libm.so.
32181         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32182         not $(common-objpfx)dlfcn/libdl.so.
32183         * math/Makefile
32184         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32185         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32186         [$(build-shared) = yes].
32187         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32188         $(common-objpfx)nptl/libpthread.so.
32189         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32190         $(common-objpfx)math/libm.so$(libm.so-version) or
32191         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32192         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32193         $(common-objpfx)dlfcn/libdl.so.
32194         * setjmp/Makefile (link-libm): Remove variable.
32195         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32196         * stdio-common/Makefile (link-libm): Remove variable.
32197         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32198         * stdlib/Makefile (link-libm): Remove variable.
32199         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32200         ($(objpfx)tst-strtod-round): Likewise.
32201         ($(objpfx)tst-tininess): Likewise.
32202         ($(objpfx)tst-strtod-underflow): Likewise.
32203         ($(objpfx)tst-strtod6): Likewise.
32204         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32205         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32206         $(common-objpfx)dlfcn/libdl.so.
32207
32208 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32209
32210         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32211         BSD terminal modes definitions.
32212
32213 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32214
32215         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32216         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32217
32218         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32219         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32220         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32221         Don't do #include_next.
32222         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32223         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32224         Don't do #include_next.
32225         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32226         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32227         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32228         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32229
32230 2014-05-16  Allan McRae  <allan@archlinux.org>
32231
32232         * po/sv.po: Update Swedish translation from translation project.
32233
32234         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32235         in sed expression.
32236
32237 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32238
32239         [BZ #16917]
32240         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32241         errno if the TIOCGPTN ioctl fails with an error different than
32242         EINVAL.
32243         * login/tst-ptsname.c: New file.
32244         * login/Makefile (tests): Add tst-ptsname.
32245
32246         [BZ #16943]
32247         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32248         and prlimit64.
32249
32250 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32251
32252         [BZ #16849]
32253         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32254         herrno to return EAI_AGAIN.
32255
32256 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32257
32258         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32259         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32260         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32261         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32262         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32263         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32264         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32265         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32266         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32267         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32268         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32269         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32270         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32271         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32272         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32273         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32274         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32275         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32276         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32277         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32278         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32279         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32280         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32281         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32282         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32283         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32284         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32285         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32286         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32287         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32288         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32289         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32290         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32291         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32292         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32293         Moved ...
32294         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32295         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32296         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32298         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32299         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32300         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32301         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32302         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32303         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32304         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32305         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32306         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32307         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32308         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32309         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32310         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32311         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32312         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32313         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32314         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32315         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32316         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32317         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32318         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32319         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32320         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32321         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32322         Moved ...
32323         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32324         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32325         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32326         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32327         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32328         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32329         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32330         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32331         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32332         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32333         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32334         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32335         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32336         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32337         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32338         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32339         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32340         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32341         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32342         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32343         Moved ...
32344         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32345         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32346         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32347
32348         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32349         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32350         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32351         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32352         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32353         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32354         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32355         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32356         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32357         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32358         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32359         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32360         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32361         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32362         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32363         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32364         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32365         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32366         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32367         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32368         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32369         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32370         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32371         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32372         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32373         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32374         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32375         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32376         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32377         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32378         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32379
32380         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32381         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32382
32383         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32384         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32385         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32386         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32387         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32388         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32389         Moved ...
32390         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32391         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32392         Moved ...
32393         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32394         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32395         Moved ...
32396         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32397         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32398         Moved ...
32399         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32400         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32401         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32402         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32403         Moved ...
32404         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32405         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32406         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32407         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32408         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32409         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32410         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32411         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32412         Moved ...
32413         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32414         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32415         Moved ...
32416         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32417         ... here.
32418         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32419         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32420         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32421         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32422         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32423         Moved ...
32424         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32425         ... here.
32426         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32427         Moved ...
32428         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32429         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32430         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32431         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32432         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32433         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32434         Moved ...
32435         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32436         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32437         Moved ...
32438         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32439         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32440         Moved ...
32441         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32442         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32443         Moved ...
32444         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32445         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32446         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32447         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32448         Moved ...
32449         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32450         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32451         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32452         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32453         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32454         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32455         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32456         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32457         Moved ...
32458         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32459         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32460         Moved ...
32461         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32462         ... here.
32463         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32464         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32465         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32466         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32467         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32468         Moved ...
32469         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32470         ... here.
32471         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32472         Moved ...
32473         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32474         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32475         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32476         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32477         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32478         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32479         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32480         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32481         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32482         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32483         Moved ...
32484         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32485         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32486         Moved ...
32487         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32488         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32489         Moved ...
32490         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32491         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32492         Moved ...
32493         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32494         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32495         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32496         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32497         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32498         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32499         Moved ...
32500         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32501         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32502         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32503         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32504         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32505         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32506         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32507         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32508         Moved ...
32509         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32510         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32511         Moved ...
32512         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32513         ... here.
32514         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32515         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32516         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32517         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32518         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32519         Moved ...
32520         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32521         ... here.
32522         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32523         Moved ...
32524         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32525         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32526         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32527         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32528         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32529         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32530         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32531         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32532         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32533         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32534         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32535
32536         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32537         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32538
32539         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32540         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32541
32542         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32543         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32544         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32545         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32546         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32547         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32548         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32549         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32550         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32551         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32552         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32553         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32554         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32555         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32556         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32557         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32558         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32559         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32560         Moved ...
32561         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32562         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32563         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32564         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32565         Moved ...
32566         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32567         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32568         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32569         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32570         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32571         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32572         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32573         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32574         Moved ...
32575         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32576         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32577         Moved ...
32578         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32579         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32580         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32581         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32582         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32583         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32584         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32585         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32586         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32587         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32588         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32589         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32590         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32591         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32592         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32593         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32594         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32595
32596         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32597         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32598         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32599         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32600         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32601
32602         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32603         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32604         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32605         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32606         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32607         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32608         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32609         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32610         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32611         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32612
32613         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32614         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32615
32616         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32617         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32618         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32619         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32620         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32621         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32622         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32623         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32624         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32625         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32626         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32627         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32628         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32629         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32630         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32631         Update #include.
32632         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32633         Likewise.
32634         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32635         Likewise.
32636         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32637         Likewise.
32638         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32639         Likewise.
32640         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32641         Likewise.
32642         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32643         Likewise.
32644         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32645         Likewise.
32646         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32647         Likewise.
32648         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32649         Likewise.
32650         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32651         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32652         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32653         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32654         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32655         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32656         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32657         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32658         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32659         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32660         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32661         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32662         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32663         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32664         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32665
32666         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32667         that was previously under [RESET_PID].
32668         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32669         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32670         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32671
32672         * sysdeps/i386/nptl/Implies: New file.
32673         * sysdeps/x86_64/nptl/Implies: New file.
32674         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32675         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32676         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32677         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32678
32679         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32680         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32681         (__libc_vfork): New strong alias.
32682         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32683         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32684
32685         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32686         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32687         (__libc_vfork): New strong alias.
32688         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32689         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32690
32691         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32692         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32693         (__libc_vfork): New strong alias.
32694         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32695         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32696         * nptl/pt-vfork.c: New file.
32697         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32698         (libpthread: GLIBC_2.20): New version set (empty).
32699
32700 2014-05-14  Will Newton  <will.newton@linaro.org>
32701
32702         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32703         rather than #if.
32704
32705 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32706
32707         [BZ #16564]
32708         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32709         arguments with exponent 65 or above.
32710         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32711         arguments 0x1p113L or above.
32712         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32713         to arguments 0x1p107L or above.
32714         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32715         positive arguments with exponent 65 or above.
32716         * math/auto-libm-test-in: Add more tests of log1p.
32717         * math/auto-libm-test-out: Regenerated.
32718
32719         [BZ #16928]
32720         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32721         non-finite arguments is +0.
32722         * math/s_cacosf.c (__cacosf): Likewise.
32723         * math/s_cacosl.c (__cacosl): Likewise.
32724         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32725         * sysdeps/i386/fpu/libm-test-ulps: Update.
32726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32727
32728         [BZ #16927]
32729         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32730         value.
32731         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32732         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32733         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32734         for explicit high bit of mantissa when testing for argument equal
32735         to 1.
32736         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32737         * sysdeps/i386/fpu/libm-test-ulps: Update.
32738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32739
32740         [BZ #16516]
32741         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32742         (__erf): Scale by 16 instead of 8 in potentially underflowing
32743         case.  Ensure exception if result actually underflows.
32744         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32745         (__erff): Scale by 16 instead of 8 in potentially underflowing
32746         case.  Ensure exception if result actually underflows.
32747         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32748         (efx8): Remove variable.
32749         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32750         case.  Ensure exception if result actually underflows.
32751         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32752         (efx8): Remove variable.
32753         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32754         case.  Ensure exception if result actually underflows.
32755         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32756         (efx8): Remove variable.
32757         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32758         case.  Ensure exception if result actually underflows.
32759         * math/auto-libm-test-in: Add more tests of erf.
32760         * math/auto-libm-test-out: Regenerated.
32761
32762 2014-05-14  Andreas Schwab  <schwab@suse.de>
32763
32764         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32765         Remove code conditionalized on USE___THREAD.
32766
32767         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32768         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32769         not definedness.
32770
32771 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32772
32773         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32774         Define unconditionally.
32775         (__ASSUME_O_CLOEXEC): Likewise.
32776         (__ASSUME_SOCK_CLOEXEC): Likewise.
32777         (__ASSUME_IN_NONBLOCK): Likewise.
32778         (__ASSUME_PIPE2): Likewise.
32779         (__ASSUME_EVENTFD2): Likewise.
32780         (__ASSUME_SIGNALFD4): Likewise.
32781         (__ASSUME_DUP3): Likewise.
32782         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
32783         (__ASSUME_DUP3): Do not define.
32784         (__ASSUME_EVENTFD2): Likewise.
32785         (__ASSUME_IN_NONBLOCK): Likewise.
32786         (__ASSUME_O_CLOEXEC): Likewise.
32787         (__ASSUME_PIPE2): Likewise.
32788         (__ASSUME_SIGNALFD4): Likewise.
32789         (__ASSUME_SOCK_CLOEXEC): Likewise.
32790         (__ASSUME_UTIMES): Undefine.
32791         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32792         (__ASSUME_UTIMES): Do not define.
32793         (__ASSUME_O_CLOEXEC): Likewise.
32794         (__ASSUME_SOCK_CLOEXEC): Likewise.
32795         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
32796         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
32797         0x020621].
32798         (__ASSUME_PIPE2): Likewise.
32799         (__ASSUME_EVENTFD2): Likewise.
32800         (__ASSUME_SIGNALFD4): Likewise.
32801         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
32802         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
32803         Do not define.
32804         (__ASSUME_EVENTFD2): Likewise.
32805         (__ASSUME_SIGNALFD4): Likewise.
32806         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32807         (__ASSUME_32BITUIDS): Likewise.
32808         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32809         (__ASSUME_IPC64): Likewise.
32810         (__ASSUME_ST_INO_64_BIT): Likewise.
32811         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
32812         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
32813         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32814         (__ASSUME_UTIMES): Do not define.
32815         (__ASSUME_PSELECT): Likewise.
32816         (__ASSUME_PPOLL): Likewise.
32817         (__ASSUME_O_CLOEXEC): Likewise.
32818         (__ASSUME_SOCK_CLOEXEC): Likewise.
32819         (__ASSUME_IN_NONBLOCK): Likewise.
32820         (__ASSUME_PIPE2): Likewise.
32821         (__ASSUME_EVENTFD2): Likewise.
32822         (__ASSUME_SIGNALFD4): Likewise.
32823         (__ASSUME_DUP3): Likewise.
32824         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32825         (__ASSUME_UTIMES): Likewise.
32826         (__ASSUME_O_CLOEXEC): Likewise.
32827         (__ASSUME_SOCK_CLOEXEC): Likewise.
32828         (__ASSUME_IN_NONBLOCK): Likewise.
32829         (__ASSUME_PIPE2): Likewise.
32830         (__ASSUME_EVENTFD2): Likewise.
32831         (__ASSUME_SIGNALFD4): Likewise.
32832         (__ASSUME_DUP3): Likewise.
32833         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32834         (__ASSUME_UTIMES): Likewise.
32835         (__ASSUME_O_CLOEXEC): Likewise.
32836         (__ASSUME_SOCK_CLOEXEC): Likewise.
32837         (__ASSUME_IN_NONBLOCK): Likewise.
32838         (__ASSUME_PIPE2): Likewise.
32839         (__ASSUME_EVENTFD2): Likewise.
32840         (__ASSUME_SIGNALFD4): Likewise.
32841         (__ASSUME_DUP3): Likewise.
32842         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
32843         Likewise.
32844         (__ASSUME_UTIMES): Likewise.
32845         (__ASSUME_EVENTFD2): Likewise.
32846         (__ASSUME_SIGNALFD4): Likewise.
32847         * sysdeps/unix/sysv/linux/tile/kernel-features.h
32848         (__ASSUME_O_CLOEXEC): Likewise.
32849         (__ASSUME_SOCK_CLOEXEC): Likewise.
32850         (__ASSUME_IN_NONBLOCK): Likewise.
32851         (__ASSUME_PIPE2): Likewise.
32852         (__ASSUME_EVENTFD2): Likewise.
32853         (__ASSUME_SIGNALFD4): Likewise.
32854         (__ASSUME_DUP3): Likewise.
32855         (__ASSUME_UTIMES): Undefine.
32856
32857         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
32858         feclearexcept.  Remove symbol versioning code.
32859         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
32860         symbol versioning code.
32861         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
32862         symbol versioning code.
32863         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
32864         feupdateenv.  Remove symbol versioning code.
32865         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
32866         fegetexceptflag.  Remove symbol versioning code.
32867         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
32868         fesetexceptflag.  Remove symbol versioning code.
32869         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
32870         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
32871         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
32872         (__posix_fadvise64_l32): Remove prototype.
32873         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
32874         code.
32875
32876 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32877
32878         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
32879         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
32880         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
32881         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
32882
32883 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
32884
32885         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
32886         current working directory
32887
32888 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32889
32890         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
32891         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
32892         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
32893         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
32894         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
32895         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
32896         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
32897         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
32898         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
32899         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
32900         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
32901         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
32902         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
32903         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
32904         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
32905         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
32906         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
32907         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
32908         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
32909         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
32910         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
32911         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
32912         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
32913         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
32914         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
32915         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
32916         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
32917         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
32918         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
32919         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
32920         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
32921         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
32922         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
32923         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
32924         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
32925         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
32926         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
32927         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
32928         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
32929         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
32930         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
32931         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
32932
32933         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
32934         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
32935
32936         * sysdeps/unix/sysv/linux/arm/Makefile
32937         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
32938         Add rt-aeabi_unwind_cpp_pr1.
32939         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
32940         Add nptl-aeabi_unwind_cpp_pr1.
32941         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
32942         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
32943         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
32944         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32945         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
32946         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32947
32948         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
32949         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
32950         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
32951         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
32952
32953         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
32954         Deconditionalize the code that was previously under [RESET_PID].
32955         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
32956
32957         * sysdeps/generic/exit-thread.h: New file.
32958         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
32959         * include/unistd.h (__exit_thread): Remove declaration.
32960         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
32961         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
32962         * csu/libc-start.c: Include <exit-thread.h>.
32963         (LIBC_START_MAIN): Pass no argument to __exit_thread.
32964         * nptl/pthread_create.c: Include <exit-thread.h>.
32965         (start_thread): Call __exit_thread in place of __exit_thread_inline.
32966         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
32967         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
32968         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
32969         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
32970         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
32971         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
32972         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
32973         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
32974         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
32975         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
32976         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
32977         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
32978         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
32979         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
32980         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
32981         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
32982
32983 2014-05-13  Andreas Schwab  <schwab@suse.de>
32984
32985         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
32986
32987 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
32988
32989         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
32990         (__ASSUME_UTIMES): Do not condition on kernel version.
32991         (__ASSUME_PSELECT): Define unconditionally.
32992         (__ASSUME_PPOLL): Likewise.
32993         (__ASSUME_ATFCTS): Likewise.
32994         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
32995         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
32996         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
32997         (__ASSUME_UTIMENSAT): Define unconditionally.
32998         (__ASSUME_PRIVATE_FUTEX): Likewise.
32999         (__ASSUME_FALLOCATE): Likewise.
33000         (__ASSUME_O_CLOEXEC): Likewise.
33001         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33002         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33003         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33004         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33005         (__ASSUME_IN_NONBLOCK): Likewise.
33006         (__ASSUME_PIPE2): Likewise.
33007         (__ASSUME_EVENTFD2): Likewise.
33008         (__ASSUME_SIGNALFD4): Likewise.
33009         (__ASSUME_DUP3): Likewise.
33010         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33011         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33012         (__ASSUME_AT_RANDOM): Likewise.
33013         (__ASSUME_PREADV): Likewise.
33014         (__ASSUME_PWRITEV): Likewise.
33015         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33016         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33017         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33018         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33019         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33020         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33021         (__ASSUME_O_CLOEXEC): Define unconditionally.
33022         (__ASSUME_PSELECT): Do not undefine conditionally.
33023         (__ASSUME_PPOLL): Likewise.
33024         (__ASSUME_ATFCTS): Likewise.
33025         (__ASSUME_SET_ROBUST_LIST): Likewise.
33026         (__ASSUME_UTIMENSAT): Likewise.
33027         (__ASSUME_FDATASYNC): Define unconditionally.
33028         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33029         (__ASSUME_SIGFRAME_V2): Likewise.
33030         )__ASSUME_EVENTFD2): Likewise.
33031         (__ASSUME_SIGNALFD4): Likewise.
33032         (__ASSUME_PSELECT): Do not undefine conditionally.
33033         (__ASSUME_PPOLL): Likewise.
33034         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33035         (__ASSUME_PSELECT): Define unconditionally.
33036         (__ASSUME_PPOLL): Likewise.
33037         (__ASSUME_O_CLOEXEC): Likewise.
33038         (__ASSUME_SOCK_CLOEXEC): Likewise.
33039         (__ASSUME_IN_NONBLOCK): Likewise.
33040         (__ASSUME_PIPE2): Likewise.
33041         (__ASSUME_EVENTFD2): Likewise.
33042         (__ASSUME_SIGNALFD4): Likewise.
33043         (__ASSUME_DUP3): Likewise.
33044         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33045         (__ASSUME_O_CLOEXEC): Likewise.
33046         (__ASSUME_SOCK_CLOEXEC): Likewise.
33047         (__ASSUME_IN_NONBLOCK): Likewise.
33048         (__ASSUME_PIPE2): Likewise.
33049         (__ASSUME_EVENTFD2): Likewise.
33050         (__ASSUME_SIGNALFD4): Likewise.
33051         (__ASSUME_DUP3): Likewise.
33052         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33053         (__ASSUME_EVENTFD2): Likewise.
33054         (__ASSUME_SIGNALFD4): Likewise.
33055         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33056
33057 2014-05-12  Andreas Schwab  <schwab@suse.de>
33058
33059         [BZ #16932]
33060         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33061         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33062         than maximum RPC packet size.
33063         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33064         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33065         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33066         (_nss_nis_getservbyport_r): Likewise.
33067
33068 2014-05-12  Will Newton  <will.newton@linaro.org>
33069
33070         * malloc/Makefile (tests): Add tst-mallopt.
33071         * malloc/tst-mallopt.c: New file.
33072
33073 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33074
33075         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33076         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33077
33078 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33079
33080         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33081         (tst-tlsmod6.so): Likewise.
33082
33083 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33084
33085         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33086
33087 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33088
33089         [BZ #16064]
33090         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33091         and <dl-procinfo.h>.
33092         (__fegetenv): Save SSE state in envp->__eip if supported.
33093         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33094         envp->__eip if supported.
33095         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33096         and <dl-procinfo.h>.
33097         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33098         __data_offset and __data_selector in environment to 0.  Set SSE
33099         state if supported.
33100         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33101         test-fenv-sse.
33102         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33103         -mfpmath=sse.
33104         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33105
33106 2014-05-09  Will Newton  <will.newton@linaro.org>
33107
33108         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33109         and libc_relro_required for ARM.
33110         * sysdeps/arm/preconfigure: Regenerate.
33111
33112 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33113             Stefan Liebler  <stli@linux.vnet.ibm.com>
33114
33115         * config.make.in (enable-lock-elision): New Makefile variable.
33116         * configure.ac: Likewise.
33117         * configure: Regenerate.
33118         * sysdeps/s390/configure.ac:
33119         Add check for gcc transactions support.
33120         * sysdeps/s390/configure: Regenerate.
33121         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33122         Build elision files if enabled.
33123         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33124         Add lock elision support for s390.
33125         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33126         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33127         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33128         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33129         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33130         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33131         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33132         Likewise.
33133         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33134         Likewise.
33135         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33136         Likewise.
33137         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33138         Likewise.
33139         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33140         (__lll_timedlock_elision, __lll_lock_elision)
33141         (__lll_unlock_elision, __lll_trylock_elision)
33142         (lll_timedlock_elision, lll_lock_elision)
33143         (lll_unlock_elision, lll_trylock_elision): Add.
33144         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33145         (pthread_mutex_t): Add lock elision support for s390.
33146
33147 2014-05-14  Wilco  <wdijkstr@arm.com>
33148
33149         * sysdeps/arm/fclrexcpt.c: Cleanup.
33150         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33151         * sysdeps/arm/feenablxcpt.c: Cleanup.
33152         * sysdeps/arm/fegetenv.c: Cleanup.
33153         * sysdeps/arm/fegetexcept.c: Cleanup.
33154         * sysdeps/arm/fegetround.c: Cleanup.
33155         * sysdeps/arm/feholdexcpt.c: Cleanup.
33156         * sysdeps/arm/fesetenv.c: Cleanup.
33157         * sysdeps/arm/fesetround.c: Cleanup.
33158         * sysdeps/arm/feupdateenv.c: Cleanup.
33159         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33160         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33161         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33162         * sysdeps/arm/ftestexcept.c: Cleanup.
33163         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33164         * sysdeps/arm/setfpucw.c: Cleanup.
33165
33166 2014-05-09  Will Newton  <will.newton@linaro.org>
33167
33168         * sysdeps/arm/armv7/strcmp.S: New file.
33169         * NEWS: Mention addition of ARMv7 optimized strcmp.
33170
33171 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33172
33173         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33174         look for %.ac rather than %.in.
33175
33176         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33177         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33178         * sysdeps/mach/hurd/configure: Regenerated.
33179         * sysdeps/unix/sysv/linux/configure: Regenerated.
33180
33181         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33182
33183 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33184
33185         [BZ# 16922]
33186         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33187         (LONG_SUB): Ditto.
33188         (PTR_SUB): Ditto.
33189
33190 2014-05-07  Andreas Schwab  <schwab@suse.de>
33191
33192         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33193         when skipping over non-matching result from nscd.
33194
33195 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33196
33197         [BZ #16876]
33198         * nptl/sockperf.c (client): Check socket return value.
33199
33200         [BZ #16877]
33201         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33202         nscd security class.
33203
33204 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33205
33206         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33207         * sysdeps/arm/unwind.h: ... here.
33208
33209 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33210
33211         [BZ# 16916]
33212         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33213         Define.
33214
33215 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33216
33217         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33218         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33219         multiarch strncpy for PPC64.
33220         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33221         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33222         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33223         multiarch optimizations.
33224         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33225         (__libc_ifunc_impl_list): Likewise.
33226         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33227         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33228         multiarch stpncpy for PPC64.
33229         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33230         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33231
33232 2014-05-06  Andreas Schwab  <schwab@suse.de>
33233
33234         [BZ #16912]
33235         * gmon/mcount.c (_MCOUNT_DECL): Use
33236         atomic_compare_and_exchange_bool_acq instead of
33237         catomic_compare_and_exchange_bool_acq.
33238
33239 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33240
33241         * elf/Makefile (others, install-bin): Remove pldd.
33242         (pldd-modules): Variable removed.
33243         ($(objpfx)pldd): Target removed.
33244         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33245         (others, install-bin): Append pldd here.
33246         ($(objpfx)pldd): New target.
33247
33248         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33249         to 0, so the first #if test emitted later doesn't see it undefined.
33250         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33251         * sysdeps/gnu/errlist.c: Regenerated.
33252
33253 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33254
33255         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33256         [libc_hidden_builtin_def]: Define to empty value.
33257         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33258         [libc_hidden_builtin_def]: Likewise.
33259         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33260         [libc_hidden_builtin_def]: Likewise.
33261         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33262         [libc_hidden_builtin_def]: Likewise.
33263         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33264         __redirect_memcpy and define ifunc as default hidden symbol.
33265         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33266         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33267
33268 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33269
33270         * locale/iso-4217.def: Reintroduce XDR currency.
33271
33272 2014-05-04  Allan McRae  <allan@archlinux.org>
33273
33274         * po/eo.po: Update Esperanto translation from translation project.
33275
33276 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33277
33278         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33279         and FEATURE_INDEX_MAX to 1.
33280         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33281
33282 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33283
33284         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33285         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33286         * iconvdata/big5.c (ONE_DIRECTION): Define.
33287         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33288         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33289         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33290         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33291         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33292         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33293         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33294         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33295         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33296         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33297         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33298         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33299         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33300         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33301         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33302         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33303         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33304         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33305         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33306         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33307         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33308         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33309         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33310         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33311         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33312         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33313         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33314         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33315         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33316         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33317         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33318         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33319         * iconvdata/johab.c (ONE_DIRECTION): Define.
33320         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33321         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33322         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33323         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33324         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33325         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33326         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33327         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33328         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33329         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33330
33331 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33332
33333         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33334         (_IO_JUMPS_OFFSET): Define to 0.
33335
33336         * nptl/sysdeps/pthread/bits/libc-lock.h
33337         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33338         (__libc_lock_define_initialized_recursive): Always define using
33339         initializer.  Modern compilers treat uninitialized (implicit zero) and
33340         explicit zero initializers the same (i.e. put the datum in bss).
33341
33342 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33343
33344         * nscd/nscd-client.h: Include <string.h>.
33345
33346 2014-05-01  David S. Miller  <davem@davemloft.net>
33347
33348         [BZ #16885]
33349         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33350         multiple zero bytes exist at the end of a string.
33351         Reported by Aurelien Jarno <aurelien@aurel32.net>
33352
33353         * string/test-strcmp.c (check): Add explicit test for situations where
33354         there are multiple zero bytes after the first.
33355
33356 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33357
33358         [BZ #16890]
33359         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33360         when compiling wprintf.
33361         * stdio-common/tstdiomisc.c (t3): New function.
33362         (main): Call it.
33363
33364 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33365
33366         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33367         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33368         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33369         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33370
33371 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33372
33373         * stdlib/longlong.h: Updated from GCC.
33374
33375 2014-05-01  Will Newton  <will.newton@linaro.org>
33376             Bernard Ogden  <bernie.ogden@linaro.org>
33377
33378         * NEWS: Update fixed bug list.
33379
33380         [BZ #15119]
33381         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33382
33383 2014-04-30  David S. Miller  <davem@davemloft.net>
33384
33385         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33386         (libc_feholdexcept_setround_sparc_ctx): New function.
33387         (libc_fesetenv_sparc_ctx): Likewise.
33388         (libc_feupdateenv_sparc_ctx): Likewise.
33389         (libc_feholdsetround_sparc_ctx): Likewise.
33390         (libc_feholdexcept_setround_ctx): Define.
33391         (libc_feholdexcept_setroundf_ctx): Likewise.
33392         (libc_feholdexcept_setroundl_ctx): Likewise.
33393         (libc_fesetenv_ctx): Likewise.
33394         (libc_fesetenvf_ctx): Likewise.
33395         (libc_fesetenvl_ctx): Likewise.
33396         (libc_feupdateenv_ctx): Likewise.
33397         (libc_feupdateenvf_ctx): Likewise.
33398         (libc_feupdateenvl_ctx): Likewise.
33399         (libc_feresetround_ctx): Likewise.
33400         (libc_feresetroundf_ctx): Likewise.
33401         (libc_feresetroundl_ctx): Likewise.
33402         (libc_feholdsetround_ctx): Likewise.
33403         (libc_feholdsetroundf_ctx): Likewise.
33404         (libc_feholdsetroundl_ctx): Likewise.
33405
33406         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33407         with __USE_GNU instead of XOPEN cpp guards.
33408
33409         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33410         0.
33411
33412         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33413         with XOPEN cpp guards.
33414
33415 2014-04-30  Julian Brown  <julian@codesourcery.com>
33416
33417         [BZ #16888]
33418         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33419         handling.
33420
33421 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33422
33423         [BZ #9894]
33424         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33425         Change to 2.6.32.
33426         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33427         * sysdeps/unix/sysv/linux/configure: Regenerated.
33428         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33429         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33430         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33431         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33432         * README: Update reference to required Linux kernel version.
33433         * manual/install.texi (Linux): Update reference to required Linux
33434         kernel headers version.
33435         * INSTALL: Regenerated.
33436
33437         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33438         header inclusion.
33439         [POSIX] (limits.h): Likewise.
33440         [POSIX] (math.h): Likewise.
33441         [POSIX] (sys/wait.h): Likewise.
33442         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33443         function.
33444         [POSIX] (stddef.h): Do not allow header inclusion.
33445
33446 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33447
33448         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33449
33450 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33451
33452         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33453         Return immediately after lll_futex_wake.
33454
33455 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33456
33457         [BZ #16791]
33458         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33459         structure.
33460         (datahead_init_pos): Call datahead_init_common early.
33461         (datahead_init_neg): Likewise.
33462
33463         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33464         datahead_init_neg): New functions.
33465         * nscd/aicache.c (addhstaiX): Use them.
33466         * nscd/grpcache.c (cache_addgr): Likewise.
33467         * nscd/hstcache.c (cache_addhst): Likewise.
33468         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33469         * nscd/netgroupcache.c (do_notfound): Likewise.
33470         (addgetnetgrentX): Likewise.
33471         (addinnetgrX): Likewise.
33472         * nscd/pwdcache.c (cache_addpw): Likewise.
33473         * nscd/servicescache.c (cache_addserv): Likewise.
33474
33475 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33476             Atsushi Onoe  <atsushi@onoe.org>
33477
33478         [BZ #14308]
33479         [BZ #12994]
33480         [BZ #13651]
33481         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33482         one response is valid.
33483         * resolv/res_send.c (send_dg): Check for validity of other
33484         response if the current response is a referral.
33485
33486 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33487
33488         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33489
33490 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33491
33492         [BZ #16823]
33493         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33494         Always divide by positive zero when computing -Inf result.
33495         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33496         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33497
33498 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33499
33500         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33501         FPSCR if value do not change.
33502         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33503         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33504         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33505         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33506         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33507         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33508         function.
33509
33510 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33511
33512         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33513         * sysdeps/unix/sysv/linux/hppa: Move directory from
33514         ports/systeps/unix/sysv/linux/hppa.
33515         * README: Update listing for hppa-*-linux-gnu.
33516
33517 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33518
33519         [BZ #16754]
33520         * manual/stdio.texi (Hook functions): Fix types of stream hook
33521         functions.
33522         [BZ #16854]
33523         * socket/sys/socket.h: Fix typo in comment.
33524
33525 2014-04-28  Wilco  <wdijkstr@arm.com>
33526
33527         * sysdeps/arm/fenv_private.h: New file.
33528         * sysdeps/arm/math_private.h: New file.
33529         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33530
33531 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33532
33533         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33534         with __int128_t.
33535         (La_x86_64_retval): Likewise.
33536
33537 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33538
33539         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33540         fpsr if value didn't change.
33541         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33542         to fpcr if value didn't change.
33543         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33544         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33545         fpsr or fpcr if value didn't change.
33546         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33547         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33548         fpcr if value didn't change.
33549         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33550         to fpsr if value didn't change.
33551
33552 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33553
33554         * nptl/tst-sem3.c: Use test-skeleton.c
33555         (main): Rename to do_test.  Use return instead of
33556         exit.
33557         * nptl/tst-sem4.c: Use test-skeleton.c
33558         (main): Rename to do_test.
33559
33560 2014-04-22  David S. Miller  <davem@davemloft.net>
33561
33562         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33563         (struct sigaction): New struct member __glibc_reserved0, change
33564         type of sa_flags to int.
33565
33566 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33567
33568         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33569         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33570
33571 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33572
33573         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33574         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33575
33576 2014-04-22  Will Newton  <will.newton@linaro.org>
33577             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33578
33579         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33580         (__longjmp): Add longjmp and longjmp_target SystemTap
33581         probes.
33582         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33583         (__sigsetjmp): Add setjmp SystemTap probe.
33584
33585 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33586
33587         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33588         match manual order.
33589
33590 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33591
33592         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33593
33594         * sysdeps/powerpc/fpu/fenv_private.h
33595         (libc_feholdexcept_setroundl_ctx): Define to
33596         libc_feholdexcept_setround_ppc_ctx.
33597         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33598         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33599         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33600         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33601
33602 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33603
33604         * sysdeps/aarch64/math-tests.h: New file.
33605
33606 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33607
33608         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33609         New.
33610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33611         Check and set bit_AVX2_Usable.
33612         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33613         macro.
33614         (bit_AVX2): Likewise.
33615         (index_AVX2_Usable): Likewise.
33616         (CPUID_AVX2): Likewise.
33617         (HAS_AVX2): Likewise.
33618
33619 2014-04-17  Will Newton  <will.newton@linaro.org>
33620
33621         * manual/setjmp.texi (System V contexts): Add note that
33622         calling setcontext on a context created by a call to a
33623         signal handler is undefined.  Update text to note that
33624         setcontext from a signal handler is possible but not
33625         recommended.
33626
33627         [BZ #16629]
33628         * stdlib/tst-setcontext.c: Include signal.h.
33629         (main): Check that the signal stack before and
33630         after swapcontext is the same.
33631
33632         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33633         Re-implement to restore registers in user code and avoid
33634         rt_sigreturn system call.
33635
33636 2014-04-17  Wilco  <wdijkstr@arm.com>
33637
33638         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33639         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33640         * math/test-fenv.c: Skip exception trap tests on targets which only
33641         support non-stop mode.
33642
33643 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33644             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33645
33646         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33647         (libc_feholdsetround_aarch64_ctx)
33648         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33649         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33650         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33651         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33652         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33653         (libc_feresetround_noexl_ctx): Define.
33654
33655 2014-04-16  Richard Henderson  <rth@redhat.com>
33656
33657         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33658
33659         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33660         unwind tables.
33661
33662         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33663         const from the non-libc, non-ldso copy.
33664
33665         * sysdeps/alpha/libm-test-ulps: Regenerate.
33666
33667 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33668             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33669
33670         * sysdeps/aarch64/fpu/math_private.h: New file.
33671
33672 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33673
33674         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33675
33676 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33677
33678         [BZ #16275]
33679         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33680         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33681         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33682         Intel MPX bound registers before _dl_profile_fixup.
33683         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33684         registers after _dl_profile_fixup.  Save and restore bound
33685         registers bnd0/bnd1 when calling _dl_call_pltexit.
33686         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33687         (LR_BND_OFFSET): Likewise.
33688         (LRV_BND0_OFFSET): Likewise.
33689         (LRV_BND1_OFFSET): Likewise.
33690
33691 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33692
33693         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33694         to...
33695         * sysdeps/mach/hurd/i386/tls.h: ... here.
33696         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33697         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33698         fields.
33699
33700 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33701
33702         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33703
33704 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33705
33706         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33707
33708 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33709
33710         [BZ #14770]
33711         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33712         * sysdeps/s390/configure: Regenerate.
33713
33714         [BZ #16824]
33715         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33716         Set round-to-nearest internally to reduce error accumulation.
33717
33718 2014-04-16  Alan Modra  <amodra@gmail.com>
33719
33720         [BZ #16740]
33721         [BZ #16619]
33722         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33723         * math/libm-test.inc (frexp_test_data): Add tests.
33724         * NEWS: Update fixed bug list.
33725
33726 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33727
33728         * benchtests/Makefile: Depend on libraries in build directory.
33729         (bench-math): Separate out math tests.
33730         (bench-pthread): Separate out pthread tests.
33731         (bench): Include math and pthread tests.
33732
33733 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33734
33735         [BZ #16831]
33736         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33737         _dl_debug_initialize.
33738
33739         * configure.ac: Remove SELinux header check.
33740         * configure: Regenerate.
33741         * nscd/selinux.c (perms): Array of const char* to permission names.
33742         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33743         default policy. Call string_to_security_class and string_to_av_perm to
33744         translate strings. Enforce default policy and call avs_has_perm with
33745         results of translated strings.
33746
33747 2014-04-13  David S. Miller  <davem@davemloft.net>
33748
33749         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33750
33751 2014-04-12  Allan McRae  <allan@archlinux.org>
33752
33753         [BZ #16838]
33754         * manual/string.texi (Collation Functions): Fix qsort argument
33755         order in example.
33756         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33757
33758 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33759
33760         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33761         Make the test a no-op if there are no exceptions defined.
33762
33763 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33764
33765         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33766         enable-hardcoded-path-in-tests
33767
33768 2014-04-11  Will Newton  <will.newton@linaro.org>
33769
33770         * benchtests/Makefile (extra-objs): Add json-lib.o.
33771         (bench-func): Tidy up JSON output.
33772         * benchtests/bench-skeleton.c: Include json-lib.h.
33773         (main): Use JSON library functions to do output of
33774         benchmark results.
33775         * benchtests/bench-timing-type.c (main): Output the
33776         timing type simply, leaving formatting to the user.
33777         * benchtests/json-lib.c: New file.
33778         * benchtests/json-lib.h: Likewise.
33779
33780 2014-04-11  Torvald Riegel  <triegel@redhat.com>
33781
33782         [BZ #15215]
33783         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
33784         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
33785         memory barriers.  Add comments.
33786         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
33787         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
33788         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
33789         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
33790         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
33791         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
33792
33793 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
33794
33795         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
33796         * sysdeps/s390/s390-64/configure.ac: ... this ...
33797         * sysdeps/s390/configure.ac: ... to here.
33798         * sysdeps/s390/s390-32/configure: Delete file.
33799         * sysdeps/s390/s390-64/configure: Delete file.
33800         * sysdeps/s390/configure: Regenerate.
33801
33802 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
33803
33804         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
33805
33806 2014-04-11  Will Newton  <will.newton@linaro.org>
33807
33808         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
33809         to zero if it is not defined elsewhere.  (mtrim): Test
33810         the value of MALLOC_DEBUG with #if rather than #ifdef.
33811
33812 2014-04-10 Torvald Riegel  <triegel@redhat.com>
33813
33814         * benchtests/pthread_once-inputs: New file.
33815         * benchtests/pthread_once-source.c: New file.
33816         * benchtests/README: Update documentation.
33817
33818 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
33819             H.J. Lu  <hongjiu.lu@intel.com>
33820
33821         [BZ #16275]
33822         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
33823         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
33824         * sysdeps/x86_64/configure: Regenerated.
33825         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
33826         macro.
33827         (REGISTER_SAVE_RAX): Likewise.
33828         (REGISTER_SAVE_RCX): Likewise.
33829         (REGISTER_SAVE_RDX): Likewise.
33830         (REGISTER_SAVE_RSI): Likewise.
33831         (REGISTER_SAVE_RDI): Likewise.
33832         (REGISTER_SAVE_R8): Likewise.
33833         (REGISTER_SAVE_R9): Likewise.
33834         (REGISTER_SAVE_BND0): Likewise.
33835         (REGISTER_SAVE_BND1): Likewise.
33836         (REGISTER_SAVE_BND2): Likewise.
33837         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
33838         bound registers when calling _dl_fixup.
33839
33840 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33841
33842         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
33843         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
33844         of its definition.
33845         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
33846         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
33847         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
33848         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
33849         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
33850         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
33851         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
33852
33853 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
33854
33855         [BZ #15514]
33856         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
33857         pathconf(_PC_NAME_MAX).
33858
33859 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33860
33861         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
33862         Remove macro usage.
33863         (__PTHREAD_SPINS): Move definition to ...
33864         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
33865         (__PTHREAD_SPINS): ... here.
33866         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33867         (__PTHREAD_SPIN): Likewise.
33868         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
33869         (__PTHREAD_SPIN): Likewise.
33870         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
33871         (__PTHREAD_SPIN): Likewise.
33872         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
33873         (__PTHREAD_SPIN): Likewise.
33874         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
33875         (__PTHREAD_SPIN): Likewise.
33876         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
33877         (__PTHREAD_SPIN): Likewise.
33878         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
33879         (__PTHREAD_SPIN): Likewise.
33880         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
33881         (__PTHREAD_SPIN): Likewise.
33882         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
33883         (__PTHREAD_SPIN): Likewise.
33884         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
33885         (__PTHREAD_SPIN): Likewise.
33886         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
33887         (__PTHREAD_SPIN): Likewise.
33888         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
33889         (__PTHREAD_SPIN): Likewise.
33890
33891         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
33892         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
33893         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
33894         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
33895         imply folder.
33896         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
33897         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
33898         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
33899         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
33900         correct imply path.
33901         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
33902         strlen symbol for non multi-arch builds.
33903         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
33904         missing hidden_def and weak_alias.
33905
33906 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
33907
33908         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
33909
33910 2014-04-07  Will Newton  <will.newton@linaro.org>
33911
33912         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
33913         and contents.  [!_LIBC] Remove #ifndef and contents.
33914         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
33915         * string/memccpy.c (__memccpy): Use ANSI prototype.
33916         * string/memfrob.c (memfrob): Likewise.
33917         * string/strcoll.c (STRCOLL): Likewise.
33918         * string/strlen.c (strlen): Likewise.
33919         * string/strtok.c (STRTOK): Likewise.
33920         * string/strcat.c: Remove unused #include of memcopy.h.
33921         (strcat): Use ANSI prototype.
33922         * string/strchr.c: Remove unused #include of memcopy.h.
33923         (strchr): Use ANSI prototype.
33924         * string/strcmp.c: Remove unused #include of memcopy.h.
33925         (strcmp): Use ANSI prototype.
33926         * string/strcpy.c: Remove unused #include of memcopy.h.
33927         (strcpy): Use ANSI prototype.
33928
33929 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33930
33931         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
33932         * config.make.in (config-extra-cppflags): Set it from
33933         libc_extra_cppflags.
33934         * configure.ac (libc_extra_cflags): Make it accumulate over
33935         configure fragments.
33936         (libc_extra_cppflags): New flag.
33937         * configure. Regenerate.
33938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33939         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
33940         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
33941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
33942
33943         [BZ #16815]
33944         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
33945         result for FE_DOWNWARD rounding mode.
33946         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
33947         Likewise.
33948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33949
33950 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
33951
33952         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
33953         in function argument name.
33954
33955 2014-04-03  David Svoboda  <svoboda@cert.org>
33956
33957         [BZ #5666]
33958         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
33959         explicitly.
33960
33961 2014-04-03  Roland McGrath  <roland@hack.frob.com>
33962
33963         * elf/dl-unmap-segments.h: New file.
33964         * sysdeps/generic/ldsodefs.h
33965         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
33966         * elf/dl-close.c: Include <dl-unmap-segments.h>.
33967         * elf/dl-fptr.c: Likewise.
33968         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
33969         * sysdeps/aarch64/tlsdesc.c: Likewise.
33970         * sysdeps/arm/tlsdesc.c: Likewise.
33971         * sysdeps/i386/tlsdesc.c: Likewise.
33972         * sysdeps/tile/dl-runtime.c: Likewise.
33973         * sysdeps/x86_64/tlsdesc.c: Likewise.
33974         * elf/dl-load.h: New file.
33975         * elf/dl-load.c: Include it.
33976         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
33977         Macros moved to dl-load.h.
33978         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
33979         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
33980         Use _dl_unmap_segments in place of __munmap.
33981         Break out segment-mapping loop into ...
33982         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
33983
33984 2014-04-03  Will Newton  <will.newton@linaro.org>
33985
33986         * elf/dl-lookup.c (do_lookup_x): Remove comment
33987         referring to nested function and move variable
33988         declarations down to before first use.
33989
33990 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
33991
33992         [BZ #16799]
33993         [BZ #16800]
33994         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
33995         with 0 numerator.
33996         * math/s_catanf.c (__catanf): Likewise.
33997         * math/s_catanh.c (__catanh): Likewise.
33998         * math/s_catanhf.c (__catanhf): Likewise.
33999         * math/s_catanhl.c (__catanhl): Likewise.
34000         * math/s_catanl.c (__catanl): Likewise.
34001         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34002         by positive zero when computing -Inf result.
34003         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34004         (catanh_test): Likewise.
34005         * sysdeps/i386/fpu/libm-test-ulps: Update.
34006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34007
34008         [BZ #16789]
34009         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34010         instead of using underflowing value in computing result.
34011         * math/s_clog10.c (__clog10): Likewise.
34012         * math/s_clog10f.c (__clog10f): Likewise.
34013         * math/s_clog10l.c (__clog10l): Likewise.
34014         * math/s_clogf.c (__clogf): Likewise.
34015         * math/s_clogl.c (__clogl): Likewise.
34016         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34017         (clog10_test): Likewise.
34018         * sysdeps/i386/fpu/libm-test-ulps: Update.
34019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34020
34021 2014-04-02  Alan Modra  <amodra@gmail.com>
34022
34023         [BZ #16739]
34024         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34025         output when value is near a power of two.  Use int64_t for lx and
34026         remove casts.  Use decimal rather than hex exponent constants.
34027         Don't use long double multiplication when double will suffice.
34028         * math/libm-test.inc (nextafter_test_data): Add tests.
34029         * NEWS: Add 16739 and 16786 to bug list.
34030
34031         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34032
34033         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34034
34035 2014-04-01  Will Newton  <will.newton@linaro.org>
34036
34037         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34038         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34039
34040 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34041
34042         [BZ #13347]
34043         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34044         * nptl/tst-setuid2.c: New file.
34045         * nptl/Makefile (xtests): Add tst-setuid2.
34046
34047 2014-04-01  Alan Modra  <amodra@gmail.com>
34048
34049         [BZ #16786]
34050         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34051
34052 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34053
34054         [BZ #6803]
34055         [BZ #6804]
34056         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34057         set errno as appropriate.
34058         * math/w_scalbf.c (__scalbf): Likewise.
34059         * math/w_scalbl.c (__scalbl): Likewise.
34060         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34061         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34062         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34063         Add more NaN tests.
34064
34065         [BZ #16349]
34066         * math/w_atan2.c: Include <errno.h>.
34067         (__atan2): Set errno for result underflowing to zero.
34068         * math/w_atan2f.c: Include <errno.h>.
34069         (__atan2f): Set errno for result underflowing to zero.
34070         * math/w_atan2l.c: Include <errno.h>.
34071         (__atan2l): Set errno for result underflowing to zero.
34072         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34073         tests.
34074         * math/auto-libm-test-out: Regenerated.
34075
34076 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34077
34078         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34079         Encode instruction correctly in little endian.
34080         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34081         Likewise.
34082         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34083         Likewise.
34084         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34085         Likewise.
34086         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34087         Likewise.
34088
34089 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34090
34091         [BZ #9894]
34092         * sysdeps/unix/sysv/linux/kernel-features.h
34093         [__sparc__ && !__arch64__ && !__sparc_v9__]
34094         (__ASSUME_SET_ROBUST_LIST): Do not define.
34095         [__sparc__ && !__arch64__ && !__sparc_v9__]
34096         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34097         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34098         Likewise.
34099         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34100         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34101         (__ASSUME_REQUEUE_PI): Likewise.
34102         (__ASSUME_SET_ROBUST_LIST): Likewise.
34103         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34104         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34105         Undefine.
34106         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34107         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34108         Likewise.
34109         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34110         Likewise.
34111         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34112         Likewise.
34113         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34114         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34115         Undefine.
34116         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34117         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34118         Likewise.
34119
34120         [BZ #16648]
34121         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34122         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34123         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34124
34125 2014-03-31  Will Newton  <will.newton@linaro.org>
34126
34127         * benchtests/Makefile (bench): Add ffs and ffsll to list
34128         of tests.
34129         * benchtests/ffs-inputs: New file.
34130         * benchtests/ffsll-inputs: Likewise.
34131
34132 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34133
34134         [BZ #16770]
34135         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34136         too large before casting to int.
34137         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34138         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34139         * math/libm-test.inc (scalb_test_data): Add more tests.
34140
34141 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34142
34143         * benchtests/Makefile (DETAILED_OPT): New make option.
34144         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34145         set.
34146         * benchtests/bench-skeleton.c: Include stdbool.h.
34147         (main): Store and print timings per input.
34148         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34149         member to each argument value.
34150         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34151         (_print_arg_data): Initialize per-input timing to 0.
34152
34153         * benchtests/Makefile (timing-type): New binary.
34154         (bench-clean): Also remove bench-timing-type.
34155         (bench): New target for timing-type.
34156         (bench-func): Print output in JSON format.
34157         * benchtests/bench-skeleton.c (main): Print output in JSON
34158         format.
34159         * benchtests/bench-timing-type.c: New file.
34160         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34161         (TIMING_PRINT_STATS): Remove.
34162         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34163         name separately.
34164
34165         * benchtests/bench-modf.c: Remove.
34166         * benchtests/modf-inputs: New inputs file.
34167
34168 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34169
34170         [BZ #16362]
34171         * math/s_clog10.c (M_PI_LOG10E): New macro.
34172         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34173         imaginary parts are 0.
34174         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34175         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34176         imaginary parts are 0.
34177         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34178         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34179         imaginary parts are 0.
34180         * math/libm-test.inc (clog10_test_data): Update expected results
34181         for when real and imaginary parts are 0.
34182
34183 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34184
34185         * elf/dl-load.c: Finish conversion of __builtin_expect into
34186         __glibc_{un}likely.
34187
34188 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34189
34190         [BZ #16348]
34191         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34192         1+x for argument with exponent below -67.
34193         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34194         Likewise.
34195         * math/auto-libm-test-in: Add more tests of exp.
34196         * math/auto-libm-test-out: Regenerated.
34197
34198 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34199
34200         [BZ #16759]
34201         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34202         (nscd_getnetgrent): Use it.
34203
34204         [BZ #16760]
34205         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34206         of stpcpy.
34207
34208 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34209
34210         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34211         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34212         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34213         (lll_robust_unlock): Remove out of line section. Use cfi
34214         intrinsics.
34215         (LLL_STUB_UNWIND_INFO*): Remove.
34216         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34217         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34218         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34219         (lll_robust_unlock): Remove out of line section. Use cfi
34220         intrinsics.
34221         (LLL_STUB_UNWIND_INFO*): Remove.
34222
34223 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34224
34225         [BZ #16758]
34226         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34227         blank values.
34228
34229 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34230
34231         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34232
34233 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34234
34235         [BZ #16198]
34236         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34237         fnstenv.
34238         * math/test-fenv-preserve.c: New file.
34239         * math/Makefile (tests): Add test-fenv-preserve.
34240
34241 2014-03-26  Will Newton <will.newton@linaro.org>
34242
34243         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34244
34245 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34246
34247         * scripts/versionlist.awk: Partition the version sets and emit all
34248         GLIBC_* (sorted) before all others (sorted).
34249
34250 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34251
34252         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34253         GLIBC_2.2.5 version.
34254
34255 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34256
34257         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34258         calls.
34259
34260         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34261         previous change.
34262
34263         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34264
34265 2014-03-25  Andreas Schwab  <schwab@suse.de>
34266
34267         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34268         label to be used after in6ailist is initialized.
34269
34270 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34271
34272         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34273         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34274
34275 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34276
34277         [BZ #16357]
34278         [BZ #16599]
34279         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34280         min_plus_half.
34281         (fp_formats): Update initializers.
34282         (init_fp_formats): Initialize new field.
34283         (output_for_one_input_case): Allow underflow for results up to
34284         min_plus_half.
34285         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34286         * math/auto-libm-test-in: Don't mark some underflows from asin and
34287         atanh as spurious.
34288         * math/auto-libm-test-out: Regenerated.
34289         * sysdeps/i386/fpu/libm-test-ulps: Update.
34290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34291
34292 2014-03-25  Andreas Schwab  <schwab@suse.de>
34293
34294         * libio/Makefile (tst-ftell-partial-wide-ENV)
34295         (tst-ftell-active-handler-ENV): Define.
34296
34297 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34298
34299         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34300
34301 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34302
34303         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34304
34305 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34306
34307         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34308         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34309         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34310
34311 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34312
34313         [BZ #16634]
34314         * elf/dl-load.c (open_verify): Add mode parameter.
34315         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34316         (open_path): Change from boolean 'secure' to complete flag 'mode'
34317         (_dl_map_object): Adjust.
34318         * elf/Makefile (tests): Add tst-dlopen-aout.
34319         * elf/tst-dlopen-aout.c: New test.
34320
34321 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34322
34323         [BZ #16714]
34324         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34325         (struct stat): Rename member pad0 to __glibc_reserved0.
34326
34327         [BZ #16712]
34328         * sysdeps/s390/s390-32/bits/wordsize.h
34329         (__WORDSIZE32_SIZE_ULONG): New define.
34330         * sysdeps/s390/s390-64/bits/wordsize.h
34331         (__WORDSIZE32_SIZE_ULONG): Likewise.
34332         * sysdeps/generic/stdint.h (SIZE_MAX):
34333         Define as UL if __WORDSIZE32_SIZE_ULONG.
34334
34335         [BZ #16713]
34336         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34337         (__glibc_reserved0): New variable.
34338         (sa_flags): Change type to int.
34339
34340         * posix/Makefile (before-compile): Use += before-compile instead
34341         of a :=.
34342
34343         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34344         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34345
34346 2014-03-20  Andreas Schwab  <schwab@suse.de>
34347
34348         [BZ #16743]
34349         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34350         non-matching result from nscd.
34351
34352 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34353
34354         * scripts/bench.py: Moved to ...
34355         * benchtests/scripts/bench.py: ... here.
34356         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34357
34358 2014-03-24  Andreas Schwab  <schwab@suse.de>
34359
34360         [BZ #16002]
34361         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34362         alloca_account and account alloca use for struct in6ailist.
34363
34364 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34365
34366         [BZ #16284]
34367         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34368         rounding mode to recompute results that overflow to infinity or
34369         underflow to zero.
34370         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34371         bug 16284.
34372         * math/auto-libm-test-out: Regenerated.
34373         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34374         (ccosh_test): Likewise.
34375         (csin_test_data): Use plus_oflow.
34376         (csin_test): Use ALL_RM_TEST.
34377         (csinh_test_data): Use plus_oflow.
34378         (csinh_test): Use ALL_RM_TEST.
34379         * sysdeps/i386/fpu/libm-test-ulps: Update.
34380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34381
34382 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34383
34384         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34385         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34386         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34387
34388         [BZ #16731]
34389         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34390         when x - 1 is zero.
34391         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34392         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34393         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34394         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34395         argument is 1.
34396         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34397         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34398         zero.
34399         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34400         * sysdeps/i386/fpu/libm-test-ulps: Update.
34401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34402
34403 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34404
34405         * scripts/bench.pl: Remove file.
34406         * scripts/bench.py: New benchmark script.
34407         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34408         * benchtests/README: Mention python dependency.
34409         * scripts/pylintrc: New file.
34410         * scripts/pylint: New file.
34411
34412         * bits/mathdef.h: Use #ifdef instead of #if.
34413         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34414         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34415         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34416         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34417         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34418         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34419
34420 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34421             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34422
34423         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34424         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34425         and strpbrk-ppc64 objects.
34426         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34427         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34428         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34429         multiarch strpbrk for POWER7.
34430         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34431         multiarch strpbrk for PPC64.
34432         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34433         ifunc selector.
34434         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34435         strpbrk for POWER7.
34436
34437 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34438
34439         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34440         (atan_test): Likewise.
34441         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34442         (atanh_test): Use ALL_RM_TEST.
34443         (atan2_test_data): Likewise.
34444         (cabs_test): Likewise.
34445         (cacosh_test): Likewise.
34446         (carg_test): Likewise.
34447         (casin_test): Likewise.
34448         (casinh_test): Likewise.
34449         (cbrt_test): Likewise.
34450         (csqrt_test): Likewise.
34451         (erf_test): Likewise.
34452         (erfc_test): Likewise.
34453         (pow10_test): Likewise.
34454         (exp2_test): Likewise.
34455         (hypot_test): Likewise.
34456         (j0_test): Likewise.
34457         (j1_test): Likewise.
34458         (lgamma_test): Likewise.
34459         (gamma_test): Likewise.
34460         (sincos_test): Likewise.
34461         (tanh_test): Likewise.
34462         (y0_test): Likewise.
34463         (y1_test): Likewise.
34464         * sysdeps/i386/fpu/libm-test-ulps: Update.
34465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34466
34467 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34468
34469         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34470         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34471         and strcspn-ppc64 objects.
34472         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34473         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34474         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34475         multiarch strcspn for POWER7.
34476         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34477         multiarch strcspn for PPC64.
34478         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34479         ifunc selector.
34480         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34481         strcspn for POWER7.
34482
34483 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34484
34485         * math/gen-libm-test.pl (generate_testfile): Expect only function
34486         name as argument to AUTO_TESTS_* and pass results for all rounding
34487         modes to parse_args.
34488         (parse_auto_input): Separate inputs of automatic tests from
34489         outputs before storing in %auto_tests.
34490         * math/libm-test.inc (acos_test_data): Update call to
34491         AUTO_TESTS_f_f.
34492         (acos_test): Use ALL_RM_TEST.
34493         (acos_tonearest_test_data): Remove.
34494         (acos_test_tonearest): Likewise.
34495         (acos_towardzero_test_data): Likewise.
34496         (acos_test_towardzero): Likewise.
34497         (acos_downward_test_data): Likewise.
34498         (acos_test_downward): Likewise.
34499         (acos_upward_test_data): Likewise.
34500         (acos_test_upward): Likewise.
34501         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34502         (asin_test_data): Likewise.
34503         (asin_test): Use ALL_RM_TEST.
34504         (asin_tonearest_test_data): Remove.
34505         (asin_test_tonearest): Likewise.
34506         (asin_towardzero_test_data): Likewise.
34507         (asin_test_towardzero): Likewise.
34508         (asin_downward_test_data): Likewise.
34509         (asin_test_downward): Likewise.
34510         (asin_upward_test_data): Likewise.
34511         (asin_test_upward): Likewise.
34512         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34513         (atan_test_data): Likewise.
34514         (atanh_test_data): Likewise.
34515         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34516         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34517         (carg_test_data): Likewise.
34518         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34519         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34520         (ccosh_test_data): Likewise.
34521         (cexp_test_data): Likewise.
34522         (clog_test_data): Likewise.
34523         (clog10_test_data): Likewise.
34524         (cos_test_data): Update call to AUTO_TESTS_f_f.
34525         (cos_test): Use ALL_RM_TEST.
34526         (cos_tonearest_test_data): Remove.
34527         (cos_test_tonearest): Likewise.
34528         (cos_towardzero_test_data): Likewise.
34529         (cos_test_towardzero): Likewise.
34530         (cos_downward_test_data): Likewise.
34531         (cos_test_downward): Likewise.
34532         (cos_upward_test_data): Likewise.
34533         (cos_test_upward): Likewise.
34534         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34535         (cosh_test): Use ALL_RM_TEST.
34536         (cosh_tonearest_test_data): Remove.
34537         (cosh_test_tonearest): Likewise.
34538         (cosh_towardzero_test_data): Likewise.
34539         (cosh_test_towardzero): Likewise.
34540         (cosh_downward_test_data): Likewise.
34541         (cosh_test_downward): Likewise.
34542         (cosh_upward_test_data): Likewise.
34543         (cosh_test_upward): Likewise.
34544         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34545         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34546         (ctan_test_data): Likewise.
34547         (ctan_test): Use ALL_RM_TEST.
34548         (ctan_tonearest_test_data): Remove.
34549         (ctan_test_tonearest): Likewise.
34550         (ctan_towardzero_test_data): Likewise.
34551         (ctan_test_towardzero): Likewise.
34552         (ctan_downward_test_data): Likewise.
34553         (ctan_test_downward): Likewise.
34554         (ctan_upward_test_data): Likewise.
34555         (ctan_test_upward): Likewise.
34556         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34557         (ctanh_test): Use ALL_RM_TEST.
34558         (ctanh_tonearest_test_data): Remove.
34559         (ctanh_test_tonearest): Likewise.
34560         (ctanh_towardzero_test_data): Likewise.
34561         (ctanh_test_towardzero): Likewise.
34562         (ctanh_downward_test_data): Likewise.
34563         (ctanh_test_downward): Likewise.
34564         (ctanh_upward_test_data): Likewise.
34565         (ctanh_test_upward): Likewise.
34566         (erf_test_data): Update call to AUTO_TESTS_f_f.
34567         (erfc_test_data): Likewise.
34568         (exp_test_data): Likewise.
34569         (exp_test): Use ALL_RM_TEST.
34570         (exp_tonearest_test_data): Remove.
34571         (exp_test_tonearest): Likewise.
34572         (exp_towardzero_test_data): Likewise.
34573         (exp_test_towardzero): Likewise.
34574         (exp_downward_test_data): Likewise.
34575         (exp_test_downward): Likewise.
34576         (exp_upward_test_data): Likewise.
34577         (exp_test_upward): Likewise.
34578         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34579         (exp10_test): Use ALL_RM_TEST.
34580         (exp10_tonearest_test_data): Remove.
34581         (exp10_test_tonearest): Likewise.
34582         (exp10_towardzero_test_data): Likewise.
34583         (exp10_test_towardzero): Likewise.
34584         (exp10_downward_test_data): Likewise.
34585         (exp10_test_downward): Likewise.
34586         (exp10_upward_test_data): Likewise.
34587         (exp10_test_upward): Likewise.
34588         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34589         (expm1_test_data): Likewise.
34590         (expm1_test): Use ALL_RM_TEST.
34591         (expm1_tonearest_test_data): Remove.
34592         (expm1_test_tonearest): Likewise.
34593         (expm1_towardzero_test_data): Likewise.
34594         (expm1_test_towardzero): Likewise.
34595         (expm1_downward_test_data): Likewise.
34596         (expm1_test_downward): Likewise.
34597         (expm1_upward_test_data): Likewise.
34598         (expm1_test_upward): Likewise.
34599         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34600         (fma_test): Use ALL_RM_TEST.
34601         (fma_towardzero_test_data): Remove.
34602         (fma_test_towardzero): Likewise.
34603         (fma_downward_test_data): Likewise.
34604         (fma_test_downward): Likewise.
34605         (fma_upward_test_data): Likewise.
34606         (fma_test_upward): Likewise.
34607         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34608         (j0_test_data): Update call to AUTO_TESTS_f_f.
34609         (j1_test_data): Likewise.
34610         (jn_test_data): Update call to AUTO_TESTS_if_f.
34611         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34612         (log_test_data): Update call to AUTO_TESTS_f_f.
34613         (log10_test_data): Likewise.
34614         (log1p_test_data): Likewise.
34615         (log2_test_data): Likewise.
34616         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34617         (pow_tonearest_test_data): Likewise.
34618         (sin_test_data): Update call to AUTO_TESTS_f_f.
34619         (sin_test): Use ALL_RM_TEST.
34620         (sin_tonearest_test_data): Remove.
34621         (sin_test_tonearest): Likewise.
34622         (sin_towardzero_test_data): Likewise.
34623         (sin_test_towardzero): Likewise.
34624         (sin_downward_test_data): Likewise.
34625         (sin_test_downward): Likewise.
34626         (sin_upward_test_data): Likewise.
34627         (sin_test_upward): Likewise.
34628         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34629         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34630         (sinh_test): Use ALL_RM_TEST.
34631         (sinh_tonearest_test_data): Remove.
34632         (sinh_test_tonearest): Likewise.
34633         (sinh_towardzero_test_data): Likewise.
34634         (sinh_test_towardzero): Likewise.
34635         (sinh_downward_test_data): Likewise.
34636         (sinh_test_downward): Likewise.
34637         (sinh_upward_test_data): Likewise.
34638         (sinh_test_upward): Likewise.
34639         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34640         (sqrt_test): Use ALL_RM_TEST.
34641         (sqrt_tonearest_test_data): Remove.
34642         (sqrt_test_tonearest): Likewise.
34643         (sqrt_towardzero_test_data): Likewise.
34644         (sqrt_test_towardzero): Likewise.
34645         (sqrt_downward_test_data): Likewise.
34646         (sqrt_test_downward): Likewise.
34647         (sqrt_upward_test_data): Likewise.
34648         (sqrt_test_upward): Likewise.
34649         (tan_test_data): Update call to AUTO_TESTS_f_f.
34650         (tan_test): Use ALL_RM_TEST.
34651         (tan_tonearest_test_data): Remove.
34652         (tan_test_tonearest): Likewise.
34653         (tan_towardzero_test_data): Likewise.
34654         (tan_test_towardzero): Likewise.
34655         (tan_downward_test_data): Likewise.
34656         (tan_test_downward): Likewise.
34657         (tan_upward_test_data): Likewise.
34658         (tan_test_upward): Likewise.
34659         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34660         (tgamma_test_data): Likewise.
34661         (y0_test_data): Likewise.
34662         (y1_test_data): Likewise.
34663         (yn_test_data): Update call to AUTO_TESTS_if_f.
34664         (main): Do not call removed functions.
34665
34666 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34667
34668         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34669         (ldexp_test_data): Remove.
34670         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34671         scalbn_test_data.
34672         (scalb_test): Use ALL_RM_TEST.
34673
34674 2014-03-19  Andreas Schwab  <schwab@suse.de>
34675
34676         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34677
34678 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34679
34680         [BZ #16649]
34681         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34682         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34683         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34684         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34685         (__ASSUME_PREADV): Undefine.
34686         (__ASSUME_PWRITEV): Likewise.
34687
34688 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34689
34690         * bits/mman-linux.h: Add comment about non-Linux use.
34691         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34692         bits/mman-linux.h resting place.
34693
34694         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34695         * bits/mman-linux.h: ... here.
34696
34697 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34698
34699         * conform/conformtest.pl: Add standard definition when calling C
34700         preprocessor on data files.
34701         (checknamespace): Remove unused variable.
34702
34703 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34704
34705         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34706         minus_oflow, plus_uflow and minus_uflow in expected results.
34707         * math/libm-test.inc (scalbn_test_data): Add more tests of
34708         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34709         minus_uflow.
34710         (scalbn_test): Use ALL_RM_TEST.
34711         (scalbln_test_data): Add more tests of negative arguments.  Use
34712         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34713         (scalbln_test): Use ALL_RM_TEST.
34714
34715 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34716
34717         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34718
34719 2014-03-18  Will Newton  <will.newton@linaro.org>
34720
34721         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34722         inaccurate comment.
34723
34724 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34725
34726         * Makerules [!subdir] (check-abi): Exit with error status if a
34727         test failed.
34728
34729 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34730
34731         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34732         for rint.  Include results for all rounding modes.
34733         (nearbyint_test): Use ALL_RM_TEST.
34734         (rint_test_data): Include all tests used for nearbyint.
34735
34736 2014-03-17  Will Newton  <will.newton@linaro.org>
34737
34738         * nptl/sysdeps/pthread/pthread.h: Revert previous
34739         change.
34740
34741         * sysdeps/generic/ldsodefs.h: Revert previous
34742         change.
34743
34744         * libio/genops.c: Revert previous change.
34745         * libio/libioP.h: Likewise.
34746         * stdio-common/vfprintf.c: Likewise.
34747
34748         * sysdeps/generic/math_private.h: Revert previous
34749         change.
34750
34751         * sysdeps/generic/math_private.h: Check whether
34752         HAVE_RM_CTX is defined with #ifdef rather
34753         than #if.
34754
34755         * argp/argp-fmtstream.h: Check whether
34756         __STRICT_ANSI__ is defined with #ifdef rather
34757         than #if.
34758         * argp/argp.h: Likewise.
34759
34760         * libio/genops.c: Check whether
34761         _IO_JUMPS_OFFSET is defined with #ifdef rather
34762         than #if.
34763         * libio/libioP.h: Likewise.
34764         * stdio-common/vfprintf.c: Likewise.
34765
34766         * sysdeps/generic/ldsodefs.h: Check whether
34767         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34768         than #if.
34769
34770         * nptl/sysdeps/pthread/pthread.h: Check
34771         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34772         its value.
34773
34774 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34775
34776         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
34777         setting O_APPEND.
34778         * libio/tst-ftell-active-handler.c (do_append_test): Add a
34779         test case.
34780
34781         [BZ #16680]
34782         * libio/fileops.c (_IO_file_open): Seek to end of file but
34783         don't cache the offset.
34784         (get_file_offset): Remove function.
34785         (do_ftell): Use cached offset when available.
34786         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
34787         don't cache the offset.
34788         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
34789         case.
34790         (do_one_test): Call it.
34791         (do_ftell_test): Fix up expected old offset for a+ mode.
34792         * libio/wfileops.c (do_ftell_wide): Used cached offset when
34793         available.
34794
34795         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
34796         up test status with function return status.
34797         (do_write_test): Likewise.
34798         (do_append_test): Likewise.
34799
34800         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
34801         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
34802         Remove.
34803
34804 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34805
34806         * math/gen-libm-test.pl (parse_args): Handle results specified for
34807         each rounding mode separately.
34808         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
34809         tests and results from lrint_tonearest_test_data,
34810         lrint_towardzero_test_data, lrint_downward_test_data and
34811         lrint_upward_test_data.
34812         (lrint_test): Use ALL_RM_TEST.
34813         (lrint_tonearest_test_data): Remove.
34814         (lrint_test_tonearest): Likewise.
34815         (lrint_towardzero_test_data): Likewise.
34816         (lrint_test_towardzero): Likewise.
34817         (lrint_downward_test_data): Likewise.
34818         (lrint_test_downward): Likewise.
34819         (lrint_upward_test_data): Likewise.
34820         (lrint_test_upward): Likewise.
34821         (llrint_test_data): Merge in per-rounding-mode tests and results
34822         from llrint_tonearest_test_data, llrint_towardzero_test_data,
34823         llrint_downward_test_data and llrint_upward_test_data.
34824         (llrint_test): Use ALL_RM_TEST.
34825         (llrint_tonearest_test_data): Remove.
34826         (llrint_test_tonearest): Likewise.
34827         (llrint_towardzero_test_data): Likewise.
34828         (llrint_test_towardzero): Likewise.
34829         (llrint_downward_test_data): Likewise.
34830         (llrint_test_downward): Likewise.
34831         (llrint_upward_test_data): Likewise.
34832         (llrint_test_upward): Likewise.
34833         (rint_test_data): Merge in per-rounding-mode tests and results
34834         from rint_tonearest_test_data, rint_towardzero_test_data,
34835         rint_downward_test_data and rint_upward_test_data.  Add
34836         per-rounding-mode results for tests not in those arrays.
34837         (rint_test): Use ALL_RM_TEST.
34838         (rint_tonearest_test_data): Remove.
34839         (rint_test_tonearest): Likewise.
34840         (rint_towardzero_test_data): Likewise.
34841         (rint_test_towardzero): Likewise.
34842         (rint_downward_test_data): Likewise.
34843         (rint_test_downward): Likewise.
34844         (rint_upward_test_data): Likewise.
34845         (rint_test_upward): Likewise.
34846         (main): Don't call removed functions.
34847
34848 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34849
34850         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
34851         "Compiled on ..." crapola.  It is anti-useful.
34852
34853 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
34854
34855         * scripts/evaluate-test.sh: Handle fourth argument to determine
34856         whether test run should stop on failure.
34857         * Makeconfig (stop-on-test-failure): New variable.
34858         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
34859         $(stop-on-test-failure).
34860         * Makefile (tests): Give a summary of results from testing and
34861         exit with failure status if they include an ERROR or FAIL.
34862         (xtests): Likewise.
34863         * manual/install.texi (Configuring and compiling): Mention
34864         stop-on-test-failure=y.
34865         * INSTALL: Regenerated.
34866
34867 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34868
34869         * scripts/versionlist.awk: New file.
34870         * Makerules [$(build-shared) = yes]
34871         (postclean-generated): Add Versions.def, not Versions.def.v and
34872         Versions.def.v.i.
34873         ($(common-objpfx)Versions.def.v.i): Target removed.
34874         ($(common-objpfx)Versions.def): New target.
34875         ($(common-objpfx)Versions.all): Depend on that rather that
34876         $(common-objpfx)Versions.def.v.
34877         * Versions.def: File removed.
34878
34879         * Makeconfig (+gccwarn): Add -Wundef.
34880         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
34881         a dl-sysdep.h breaking its contract.
34882         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
34883         * include/stackinfo.h: New file.
34884         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
34885         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
34886         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
34887         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
34888         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
34889         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
34890         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34891         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34892         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34893         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34894         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34895         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
34896         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34897         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34898         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34899
34900 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34901
34902         [BZ #16707]
34903         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
34904         implementation.
34905         * math/libm-test.inc (round_test_data): Add more tests.
34906
34907         [BZ #16706]
34908         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
34909         implementation.
34910         * math/libm-test.inc (nearbyint_test_data): Add more tests.
34911
34912         [BZ #16701]
34913         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
34914         implementation.
34915         * math/libm-test.inc (ceil_test_data): Add more tests.
34916
34917         * math/libm-test.inc (trunc_test_data): Add more tests related to
34918         BZ#16414.
34919
34920 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34921
34922         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
34923         with #if rather than #ifdef.
34924         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
34925
34926 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
34927
34928         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
34929         first.  Disable AVX-512 GCC support if assembler doesn't support
34930         it.
34931         * sysdeps/x86_64/configure: Regenerated.
34932
34933 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
34934
34935         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
34936         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
34937         (__old_pthread_attr_setstack): Likewise.
34938         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
34939         [!_STACK_GROWS_DOWN]: Likewise.
34940
34941 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
34942
34943         * config.make.in (have-bash2): Delete.
34944         * configure.ac (libc_cv_have_bash2): Delete.
34945         * configure: Regenerate.
34946         * elf/Makefile (common-ldd-rewrite): Rename to ...
34947         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
34948         (sh-ldd-rewrite): Delete.
34949         (bash-ldd-rewrite): Delete.
34950         (have-bash2): Delete checks.
34951         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
34952         ldd-rewrite.
34953
34954         * config.make.in (have-ksh): Delete.
34955         (KSH): Delete.
34956         * configure.ac (libc_cv_have_ksh): Delete.
34957         * configure: Regenerate.
34958
34959         * elf/Makefile: Delete $(have-ksh) check.
34960         ($(objpfx)sotruss): Change KSH to BASH.
34961         * elf/sotruss.ksh: Rename to ...
34962         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
34963         function style to match POSIX.  Drop ksh vim mode setting.
34964
34965         * manual/time.texi (Specifying the Time Zone with TZ): Change
34966         Tuesday to Thursday.
34967
34968         * debug/tst-longjmp_chk2.c: Update header comment.
34969         (stackoverflow_handler): Add comment.  Call assert on pass value.
34970
34971 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
34972
34973         [BZ #16194]
34974         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
34975         (HAVE_AVX512_ASM_SUPPORT): Likewise.
34976         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
34977         (La_x86_64_vector): Add zmm.
34978         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
34979         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
34980         ($(objpfx)tst-audit10): New target.
34981         ($(objpfx)tst-audit10.out): Likewise.
34982         (tst-audit10-ENV): New.
34983         (AVX512-CFLAGS): Likewise.
34984         (CFLAGS-tst-audit10.c): Likewise.
34985         (CFLAGS-tst-auditmod10a.c): Likewise.
34986         (CFLAGS-tst-auditmod10b.c): Likewise.
34987         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
34988         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
34989         * sysdeps/x86_64/configure: Regenerated.
34990         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
34991         AVX-512 zmm register support.
34992         (_dl_x86_64_save_sse): Likewise.
34993         (_dl_x86_64_restore_sse): Likewise.
34994         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
34995         size vector registers.
34996         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
34997         (ZMM_SIZE): Likewise.
34998         * sysdeps/x86_64/tst-audit10.c: New file.
34999         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35000         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35001
35002 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35003
35004         * configure.ac (HAVE_EHDR_START): New check.
35005         * configure: Regenerated.
35006         * config.h.in (HAVE_EHDR_START): New #undef.
35007         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35008         assuming the lowest-addressed segment maps the start of the file.
35009
35010 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35011
35012         * INSTALL: Regenerated.
35013
35014 2014-03-13  Will Newton  <will.newton@linaro.org>
35015
35016         * manual/setjmp.texi (System V contexts): Improve
35017         clarity and grammar of documentation.
35018
35019 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35020
35021         [BZ #16381]
35022         * elf/Makefile (tests): Add tst-pie2.
35023         (tests-pie): Add tst-pie2.
35024         * elf/tst-pie2.c: New file.
35025         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35026         for ET_EXEC.
35027         * elf/rtld.c (map_doit): Load executable as lt_executable.
35028         (dl_main): Likewise.
35029
35030 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35031
35032         [BZ #16642]
35033         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35034         (__ASSUME_PSELECT): Undefine.
35035
35036 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35037
35038         [BZ #16689]
35039         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35040         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35041         static build.
35042         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35043         selector for static builds.
35044
35045 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35046
35047         [BZ #16695]
35048         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35049         key in the buffer.
35050
35051 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35052
35053         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35054         IFUNC selector for static builds.
35055
35056 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35057
35058         * sysdeps/mips/math_private.h [__mips_hard_float]
35059         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35060         libc_feresetround_mips_ctx.
35061         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35062         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35063         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35064
35065         [BZ #16677]
35066         * math/s_nextafter.c (__nextafter): Do not return value from
35067         overflowing computation.
35068         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35069         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35070         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35071         Likewise.
35072         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35073         Likewise.
35074         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35075         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35076
35077 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35078
35079         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35080         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35081         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35082         the new mov targetting sp.
35083
35084 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35085
35086         [BZ #16683]
35087         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35088         Define it for static builds as well.
35089         (NO_BZERO_IMPL): Likewise.
35090
35091 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35092
35093         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35094         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35095         multiarch strspn for PPC64.
35096         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35097         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35098         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35099         (__libc_ifunc_impl_list): Likewise.
35100         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35101         multiarch optimizations
35102         * string/strspn.c (strspn): Using macro to redefine symbol name.
35103
35104 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35105             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35106
35107         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35108         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35109         multiarch strncat for PPC64.
35110         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35111         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35112         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35113         (__libc_ifunc_impl_list): Likewise.
35114         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35115         multiarch optimizations
35116
35117 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35118
35119         [BZ #16639]
35120         * nscd/nscd.service: Make service type forking.
35121
35122 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35123
35124         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35125         sign in non default rounding modes.
35126         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35127
35128 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35129
35130         * math/libm-test.inc (ALL_RM_TEST): New macro.
35131         (ceil_test): Use ALL_RM_TEST.
35132         (cimag_test): Likewise.
35133         (conj_test): Likewise.
35134         (copysign_test): Likewise.
35135         (cproj_test): Likewise.
35136         (creal_test): Likewise.
35137         (fabs_test): Likewise.
35138         (floor_test): Likewise.
35139         (fmax_test): Likewise.
35140         (fmin_test): Likewise.
35141         (fmod_test): Likewise.
35142         (fpclassify_test): Likewise.
35143         (frexp_test): Likewise.
35144         (ilogb_test): Likewise.
35145         (isfinite_test): Likewise.
35146         (finite_test): Likewise.
35147         (isgreater_test): Likewise.
35148         (isgreaterequal_test): Likewise.
35149         (isinf_test): Likewise.
35150         (isless_test): Likewise.
35151         (islessequal_test): Likewise.
35152         (islessgreater_test): Likewise.
35153         (isnan_test): Likewise.
35154         (isnormal_test): Likewise.
35155         (issignaling_test): Likewise.
35156         (isunordered_test): Likewise.
35157         (logb_test): Likewise.
35158         (logb_downward_test_data): Remove.
35159         (logb_test_downward): Likewise.
35160         (lround_test): Use ALL_RM_TEST.
35161         (llround_test): Likewise.
35162         (modf_test): Likewise.
35163         (nexttoward_test): Likewise.
35164         (remainder_test): Likewise.
35165         (drem_test): Likewise.
35166         (remainder_tonearest_test_data): Likewise.
35167         (remainder_test_tonearest): Likewise.
35168         (drem_test_tonearest): Likewise.
35169         (remainder_towardzero_test_data): Likewise.
35170         (remainder_test_towardzero): Likewise.
35171         (drem_test_towardzero): Likewise.
35172         (remainder_downward_test_data): Likewise.
35173         (remainder_test_downward): Likewise.
35174         (drem_test_downward): Likewise.
35175         (remainder_upward_test_data): Likewise.
35176         (remainder_test_upward): Likewise.
35177         (drem_test_upward): Likewise.
35178         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35179         (round_test): Use ALL_RM_TEST.
35180         (signbit_test): Likewise.
35181         (trunc_test): Likewise.
35182         (significand_test): Likewise.
35183         (main): Don't call removed functions.
35184
35185 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35186
35187         [BZ #16674]
35188         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35189         || __USE_XOPEN2K8].
35190         (ILL_ILLOPN): Likewise.
35191         (ILL_ILLADR): Likewise.
35192         (ILL_ILLTRP): Likewise.
35193         (ILL_PRVOPC): Likewise.
35194         (ILL_PRVREG): Likewise.
35195         (ILL_COPROC): Likewise.
35196         (ILL_BADSTK): Likewise.
35197         (FPE_INTDIV): Likewise.
35198         (FPE_INTOVF): Likewise.
35199         (FPE_FLTDIV): Likewise.
35200         (FPE_FLTOVF): Likewise.
35201         (FPE_FLTUND): Likewise.
35202         (FPE_FLTRES): Likewise.
35203         (FPE_FLTINV): Likewise.
35204         (FPE_FLTSUB): Likewise.
35205         (SEGV_MAPERR): Likewise.
35206         (SEGV_ACCERR): Likewise.
35207         (BUS_ADRALN): Likewise.
35208         (BUS_ADRERR): Likewise.
35209         (BUS_OBJERR): Likewise.
35210         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35211         (TRAP_TRACE): Likewise.
35212         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35213         __USE_XOPEN2K8].
35214         (CLD_KILLED): Likewise.
35215         (CLD_DUMPED): Likewise.
35216         (CLD_TRAPPED): Likewise.
35217         (CLD_STOPPED): Likewise.
35218         (CLD_CONTINUED): Likewise.
35219         (POLL_IN): Likewise.
35220         (POLL_OUT): Likewise.
35221         (POLL_MSG): Likewise.
35222         (POLL_ERR): Likewise.
35223         (POLL_PRI): Likewise.
35224         (POLL_HUP): Likewise.
35225         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35226         Likewise.
35227         (ILL_ILLOPN): Likewise.
35228         (ILL_ILLADR): Likewise.
35229         (ILL_ILLTRP): Likewise.
35230         (ILL_PRVOPC): Likewise.
35231         (ILL_PRVREG): Likewise.
35232         (ILL_COPROC): Likewise.
35233         (ILL_BADSTK): Likewise.
35234         (FPE_INTDIV): Likewise.
35235         (FPE_INTOVF): Likewise.
35236         (FPE_FLTDIV): Likewise.
35237         (FPE_FLTOVF): Likewise.
35238         (FPE_FLTUND): Likewise.
35239         (FPE_FLTRES): Likewise.
35240         (FPE_FLTINV): Likewise.
35241         (FPE_FLTSUB): Likewise.
35242         (SEGV_MAPERR): Likewise.
35243         (SEGV_ACCERR): Likewise.
35244         (BUS_ADRALN): Likewise.
35245         (BUS_ADRERR): Likewise.
35246         (BUS_OBJERR): Likewise.
35247         (BUS_MCEERR_AR): Likewise.
35248         (BUS_MCEERR_AO): Likewise.
35249         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35250         (TRAP_TRACE): Likewise.
35251         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35252         __USE_XOPEN2K8].
35253         (CLD_KILLED): Likewise.
35254         (CLD_DUMPED): Likewise.
35255         (CLD_TRAPPED): Likewise.
35256         (CLD_STOPPED): Likewise.
35257         (CLD_CONTINUED): Likewise.
35258         (POLL_IN): Likewise.
35259         (POLL_OUT): Likewise.
35260         (POLL_MSG): Likewise.
35261         (POLL_ERR): Likewise.
35262         (POLL_PRI): Likewise.
35263         (POLL_HUP): Likewise.
35264         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35265         (ILL_ILLOPN): Likewise.
35266         (ILL_ILLADR): Likewise.
35267         (ILL_ILLTRP): Likewise.
35268         (ILL_PRVOPC): Likewise.
35269         (ILL_PRVREG): Likewise.
35270         (ILL_COPROC): Likewise.
35271         (ILL_BADSTK): Likewise.
35272         (FPE_INTDIV): Likewise.
35273         (FPE_INTOVF): Likewise.
35274         (FPE_FLTDIV): Likewise.
35275         (FPE_FLTOVF): Likewise.
35276         (FPE_FLTUND): Likewise.
35277         (FPE_FLTRES): Likewise.
35278         (FPE_FLTINV): Likewise.
35279         (FPE_FLTSUB): Likewise.
35280         (SEGV_MAPERR): Likewise.
35281         (SEGV_ACCERR): Likewise.
35282         (BUS_ADRALN): Likewise.
35283         (BUS_ADRERR): Likewise.
35284         (BUS_OBJERR): Likewise.
35285         (BUS_MCEERR_AR): Likewise.
35286         (BUS_MCEERR_AO): Likewise.
35287         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35288         (TRAP_TRACE): Likewise.
35289         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35290         __USE_XOPEN2K8].
35291         (CLD_KILLED): Likewise.
35292         (CLD_DUMPED): Likewise.
35293         (CLD_TRAPPED): Likewise.
35294         (CLD_STOPPED): Likewise.
35295         (CLD_CONTINUED): Likewise.
35296         (POLL_IN): Likewise.
35297         (POLL_OUT): Likewise.
35298         (POLL_MSG): Likewise.
35299         (POLL_ERR): Likewise.
35300         (POLL_PRI): Likewise.
35301         (POLL_HUP): Likewise.
35302         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35303         Likewise.
35304         (ILL_ILLOPN): Likewise.
35305         (ILL_ILLADR): Likewise.
35306         (ILL_ILLTRP): Likewise.
35307         (ILL_PRVOPC): Likewise.
35308         (ILL_PRVREG): Likewise.
35309         (ILL_COPROC): Likewise.
35310         (ILL_BADSTK): Likewise.
35311         (ILL_BADIADDR): Likewise.
35312         (ILL_BREAK): Likewise.
35313         (FPE_INTDIV): Likewise.
35314         (FPE_INTOVF): Likewise.
35315         (FPE_FLTDIV): Likewise.
35316         (FPE_FLTOVF): Likewise.
35317         (FPE_FLTUND): Likewise.
35318         (FPE_FLTRES): Likewise.
35319         (FPE_FLTINV): Likewise.
35320         (FPE_FLTSUB): Likewise.
35321         (FPE_DECOVF): Likewise.
35322         (FPE_DECDIV): Likewise.
35323         (FPE_DECERR): Likewise.
35324         (FPE_INVASC): Likewise.
35325         (FPE_INVDEC): Likewise.
35326         (SEGV_MAPERR): Likewise.
35327         (SEGV_ACCERR): Likewise.
35328         (SEGV_PSTKOVF): Likewise.
35329         (BUS_ADRALN): Likewise.
35330         (BUS_ADRERR): Likewise.
35331         (BUS_OBJERR): Likewise.
35332         (BUS_MCEERR_AR): Likewise.
35333         (BUS_MCEERR_AO): Likewise.
35334         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35335         (TRAP_TRACE): Likewise.
35336         (TRAP_BRANCH): Likewise.
35337         (TRAP_HWBKPT): Likewise.
35338         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35339         __USE_XOPEN2K8].
35340         (CLD_KILLED): Likewise.
35341         (CLD_DUMPED): Likewise.
35342         (CLD_TRAPPED): Likewise.
35343         (CLD_STOPPED): Likewise.
35344         (CLD_CONTINUED): Likewise.
35345         (POLL_IN): Likewise.
35346         (POLL_OUT): Likewise.
35347         (POLL_MSG): Likewise.
35348         (POLL_ERR): Likewise.
35349         (POLL_PRI): Likewise.
35350         (POLL_HUP): Likewise.
35351         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35352         (ILL_ILLOPN): Likewise.
35353         (ILL_ILLADR): Likewise.
35354         (ILL_ILLTRP): Likewise.
35355         (ILL_PRVOPC): Likewise.
35356         (ILL_PRVREG): Likewise.
35357         (ILL_COPROC): Likewise.
35358         (ILL_BADSTK): Likewise.
35359         (FPE_INTDIV): Likewise.
35360         (FPE_INTOVF): Likewise.
35361         (FPE_FLTDIV): Likewise.
35362         (FPE_FLTOVF): Likewise.
35363         (FPE_FLTUND): Likewise.
35364         (FPE_FLTRES): Likewise.
35365         (FPE_FLTINV): Likewise.
35366         (FPE_FLTSUB): Likewise.
35367         (SEGV_MAPERR): Likewise.
35368         (SEGV_ACCERR): Likewise.
35369         (BUS_ADRALN): Likewise.
35370         (BUS_ADRERR): Likewise.
35371         (BUS_OBJERR): Likewise.
35372         (BUS_MCEERR_AR): Likewise.
35373         (BUS_MCEERR_AO): Likewise.
35374         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35375         (TRAP_TRACE): Likewise.
35376         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35377         __USE_XOPEN2K8].
35378         (CLD_KILLED): Likewise.
35379         (CLD_DUMPED): Likewise.
35380         (CLD_TRAPPED): Likewise.
35381         (CLD_STOPPED): Likewise.
35382         (CLD_CONTINUED): Likewise.
35383         (POLL_IN): Likewise.
35384         (POLL_OUT): Likewise.
35385         (POLL_MSG): Likewise.
35386         (POLL_ERR): Likewise.
35387         (POLL_PRI): Likewise.
35388         (POLL_HUP): Likewise.
35389         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35390         (ILL_ILLOPN): Likewise.
35391         (ILL_ILLADR): Likewise.
35392         (ILL_ILLTRP): Likewise.
35393         (ILL_PRVOPC): Likewise.
35394         (ILL_PRVREG): Likewise.
35395         (ILL_COPROC): Likewise.
35396         (ILL_BADSTK): Likewise.
35397         (FPE_INTDIV): Likewise.
35398         (FPE_INTOVF): Likewise.
35399         (FPE_FLTDIV): Likewise.
35400         (FPE_FLTOVF): Likewise.
35401         (FPE_FLTUND): Likewise.
35402         (FPE_FLTRES): Likewise.
35403         (FPE_FLTINV): Likewise.
35404         (FPE_FLTSUB): Likewise.
35405         (SEGV_MAPERR): Likewise.
35406         (SEGV_ACCERR): Likewise.
35407         (BUS_ADRALN): Likewise.
35408         (BUS_ADRERR): Likewise.
35409         (BUS_OBJERR): Likewise.
35410         (BUS_MCEERR_AR): Likewise.
35411         (BUS_MCEERR_AO): Likewise.
35412         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35413         (TRAP_TRACE): Likewise.
35414         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35415         __USE_XOPEN2K8].
35416         (CLD_KILLED): Likewise.
35417         (CLD_DUMPED): Likewise.
35418         (CLD_TRAPPED): Likewise.
35419         (CLD_STOPPED): Likewise.
35420         (CLD_CONTINUED): Likewise.
35421         (POLL_IN): Likewise.
35422         (POLL_OUT): Likewise.
35423         (POLL_MSG): Likewise.
35424         (POLL_ERR): Likewise.
35425         (POLL_PRI): Likewise.
35426         (POLL_HUP): Likewise.
35427         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35428         (ILL_ILLOPN): Likewise.
35429         (ILL_ILLADR): Likewise.
35430         (ILL_ILLTRP): Likewise.
35431         (ILL_PRVOPC): Likewise.
35432         (ILL_PRVREG): Likewise.
35433         (ILL_COPROC): Likewise.
35434         (ILL_BADSTK): Likewise.
35435         (FPE_INTDIV): Likewise.
35436         (FPE_INTOVF): Likewise.
35437         (FPE_FLTDIV): Likewise.
35438         (FPE_FLTOVF): Likewise.
35439         (FPE_FLTUND): Likewise.
35440         (FPE_FLTRES): Likewise.
35441         (FPE_FLTINV): Likewise.
35442         (FPE_FLTSUB): Likewise.
35443         (SEGV_MAPERR): Likewise.
35444         (SEGV_ACCERR): Likewise.
35445         (BUS_ADRALN): Likewise.
35446         (BUS_ADRERR): Likewise.
35447         (BUS_OBJERR): Likewise.
35448         (BUS_MCEERR_AR): Likewise.
35449         (BUS_MCEERR_AO): Likewise.
35450         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35451         (TRAP_TRACE): Likewise.
35452         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35453         __USE_XOPEN2K8].
35454         (CLD_KILLED): Likewise.
35455         (CLD_DUMPED): Likewise.
35456         (CLD_TRAPPED): Likewise.
35457         (CLD_STOPPED): Likewise.
35458         (CLD_CONTINUED): Likewise.
35459         (POLL_IN): Likewise.
35460         (POLL_OUT): Likewise.
35461         (POLL_MSG): Likewise.
35462         (POLL_ERR): Likewise.
35463         (POLL_PRI): Likewise.
35464         (POLL_HUP): Likewise.
35465         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35466         (ILL_ILLOPN): Likewise.
35467         (ILL_ILLADR): Likewise.
35468         (ILL_ILLTRP): Likewise.
35469         (ILL_PRVOPC): Likewise.
35470         (ILL_PRVREG): Likewise.
35471         (ILL_COPROC): Likewise.
35472         (ILL_BADSTK): Likewise.
35473         (ILL_DBLFLT): Likewise.
35474         (ILL_HARDWALL): Likewise.
35475         (FPE_INTDIV): Likewise.
35476         (FPE_INTOVF): Likewise.
35477         (FPE_FLTDIV): Likewise.
35478         (FPE_FLTOVF): Likewise.
35479         (FPE_FLTUND): Likewise.
35480         (FPE_FLTRES): Likewise.
35481         (FPE_FLTINV): Likewise.
35482         (FPE_FLTSUB): Likewise.
35483         (SEGV_MAPERR): Likewise.
35484         (SEGV_ACCERR): Likewise.
35485         (BUS_ADRALN): Likewise.
35486         (BUS_ADRERR): Likewise.
35487         (BUS_OBJERR): Likewise.
35488         (BUS_MCEERR_AR): Likewise.
35489         (BUS_MCEERR_AO): Likewise.
35490         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35491         (TRAP_TRACE): Likewise.
35492         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35493         __USE_XOPEN2K8].
35494         (CLD_KILLED): Likewise.
35495         (CLD_DUMPED): Likewise.
35496         (CLD_TRAPPED): Likewise.
35497         (CLD_STOPPED): Likewise.
35498         (CLD_CONTINUED): Likewise.
35499         (POLL_IN): Likewise.
35500         (POLL_OUT): Likewise.
35501         (POLL_MSG): Likewise.
35502         (POLL_ERR): Likewise.
35503         (POLL_PRI): Likewise.
35504         (POLL_HUP): Likewise.
35505         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35506         (ILL_ILLOPN): Likewise.
35507         (ILL_ILLADR): Likewise.
35508         (ILL_ILLTRP): Likewise.
35509         (ILL_PRVOPC): Likewise.
35510         (ILL_PRVREG): Likewise.
35511         (ILL_COPROC): Likewise.
35512         (ILL_BADSTK): Likewise.
35513         (FPE_INTDIV): Likewise.
35514         (FPE_INTOVF): Likewise.
35515         (FPE_FLTDIV): Likewise.
35516         (FPE_FLTOVF): Likewise.
35517         (FPE_FLTUND): Likewise.
35518         (FPE_FLTRES): Likewise.
35519         (FPE_FLTINV): Likewise.
35520         (FPE_FLTSUB): Likewise.
35521         (SEGV_MAPERR): Likewise.
35522         (SEGV_ACCERR): Likewise.
35523         (BUS_ADRALN): Likewise.
35524         (BUS_ADRERR): Likewise.
35525         (BUS_OBJERR): Likewise.
35526         (BUS_MCEERR_AR): Likewise.
35527         (BUS_MCEERR_AO): Likewise.
35528         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35529         (TRAP_TRACE): Likewise.
35530         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35531         __USE_XOPEN2K8].
35532         (CLD_KILLED): Likewise.
35533         (CLD_DUMPED): Likewise.
35534         (CLD_TRAPPED): Likewise.
35535         (CLD_STOPPED): Likewise.
35536         (CLD_CONTINUED): Likewise.
35537         (POLL_IN): Likewise.
35538         (POLL_OUT): Likewise.
35539         (POLL_MSG): Likewise.
35540         (POLL_ERR): Likewise.
35541         (POLL_PRI): Likewise.
35542         (POLL_HUP): Likewise.
35543         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35544         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35545
35546         [BZ #16670]
35547         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35548         before #include of <time.h>.
35549         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35550         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35551         (test-xfail-UNIX98/sched.h/conform): Likewise.
35552
35553 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35554
35555         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35556         error absence of trapping exception support.
35557         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35558
35559 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35560
35561         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35562         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35563         * timezone/Makefile (testdata): Move definition above include of
35564         Rules.
35565         (test-zones): New variable.
35566         (tests-special): Add zone files.
35567         (build-testdata): Use $(evaluate-test).
35568
35569         * elf/Makefile (tests-special): Rename tests to end with .out.
35570         ($(objpfx)noload-mem): Likewise.
35571         ($(objpfx)tst-leaks1-mem): Likewise.
35572         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35573         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35574         $(objpfx)test-iconvconfig.out.
35575         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35576         set -e inside subshell and redirect output to file.
35577         * iconvdata/Makefile (generated): Rename tests to end with .out.
35578         Correct type.
35579         (tests-special): Rename tests to end with .out.
35580         ($(objpfx)mtrace-tst-loading): Likewise.
35581         * intl/Makefile (generated): Likewise.
35582         (tests-special): Likewise.
35583         ($(objpfx)mtrace-tst-gettext): Likewise.
35584         * misc/Makefile (generated): Likewise.
35585         (tests-special): Likewise.
35586         ($(objpfx)tst-error1-mem): Likewise.
35587         * nptl/Makefile (tests-special): Likewise.
35588         ($(objpfx)tst-stack3-mem): Likewise.
35589         (generated): Likewise.
35590         * posix/Makefile (generated): Likewise.
35591         (tests-special): Likewise.
35592         (xtests-special): Likewise.
35593         ($(objpfx)tst-fnmatch-mem): Likewise.
35594         ($(objpfx)bug-regex2-mem): Likewise.
35595         ($(objpfx)bug-regex14-mem): Likewise.
35596         ($(objpfx)bug-regex21-mem): Likewise.
35597         ($(objpfx)bug-regex31-mem): Likewise.
35598         ($(objpfx)tst-vfork3-mem): Likewise.
35599         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35600         ($(objpfx)tst-pcre-mem): Likewise.
35601         ($(objpfx)tst-boost-mem): Likewise.
35602         ($(objpfx)bug-ga2-mem): Likewise.
35603         ($(objpfx)bug-glob2-mem): Likewise.
35604         * resolv/Makefile (generate): Likewise.
35605         (tests-special): Likewise.
35606         (xtests-special): Likewise.
35607         (generated): Likewise.
35608         ($(objpfx)mtrace-tst-leaks): Likewise.
35609         ($(objpfx)mtrace-tst-leaks2): Likewise.
35610
35611         * scripts/merge-test-results.sh: New file.
35612         * Makefile (tests-special-notdir): New variable.
35613         (tests): Run merge-test-results.sh.
35614         (xtests): Likewise.
35615         * Rules (tests-special-notdir): New variable.
35616         (xtests-special-notdir): Likewise.
35617         (tests): Run merge-test-results.sh
35618         (xtests): Likewise.
35619
35620         * Makeconfig (test-xfail-name): New variable.
35621         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35622         compute variable name for expected failures.
35623         * conform/Makefile (conformtest-headers-data): New variable.
35624         (conformtest-standards): Likewise.
35625         (conformtest-headers-ISO): Likewise.
35626         (conformtest-headers-ISO99): Likewise.
35627         (conformtest-headers-ISO11): Likewise.
35628         (conformtest-headers-POSIX): Likewise.
35629         (conformtest-headers-XPG3): Likewise.
35630         (conformtest-headers-XPG4): Likewise.
35631         (conformtest-headers-UNIX98): Likewise.
35632         (conformtest-headers-XOPEN2K): Likewise.
35633         (conformtest-headers-POSIX2008): Likewise.
35634         (conformtest-headers-XOPEN2K8): Likewise.
35635         (conformtest-header-list-base): Likewise.
35636         (conformtest-header-list-tests): Likewise.
35637         (conformtest-header-base): Likewise.
35638         (conformtest-header-tests): Likewise.
35639         (tests-special): Add $(conformtest-header-list-tests).  If
35640         [$(fast-check) && !$(cross-compiling)], add
35641         $(conformtest-header-tests) instead of
35642         $(objpfx)run-conformtest.out.
35643         (generated): Add $(conformtest-header-list-base).  If
35644         [$(fast-check) && !$(cross-compiling)], add
35645         $(conformtest-header-base).  Remove previous setting.
35646         ($(conformtest-header-list-tests)): New target.
35647         (test-xfail-run-conformtest): Remove variable.
35648         ($(objpfx)run-conformtest.out): Remove target.
35649         (test-xfail-ISO11/complex.h/conform): New variable.
35650         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35651         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35652         (test-xfail-XPG3/varargs.h/conform): Likewise.
35653         (test-xfail-XPG4/varargs.h/conform): Likewise.
35654         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35655         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35656         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35657         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35658         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35659         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35660         (test-xfail-XPG3/ftw.h/conform): Likewise.
35661         (test-xfail-XPG3/grp.h/conform): Likewise.
35662         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35663         (test-xfail-XPG3/limits.h/conform): Likewise.
35664         (test-xfail-XPG3/pwd.h/conform): Likewise.
35665         (test-xfail-XPG3/search.h/conform): Likewise.
35666         (test-xfail-XPG3/signal.h/conform): Likewise.
35667         (test-xfail-XPG3/stdio.h/conform): Likewise.
35668         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35669         (test-xfail-XPG3/string.h/conform): Likewise.
35670         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35671         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35672         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35673         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35674         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35675         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35676         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35677         (test-xfail-XPG3/termios.h/conform): Likewise.
35678         (test-xfail-XPG3/time.h/conform): Likewise.
35679         (test-xfail-XPG3/unistd.h/conform): Likewise.
35680         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35681         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35682         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35683         (test-xfail-XPG4/netdb.h/conform): Likewise.
35684         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35685         (test-xfail-XPG4/signal.h/conform): Likewise.
35686         (test-xfail-XPG4/stdio.h/conform): Likewise.
35687         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35688         (test-xfail-XPG4/stropts.h/conform): Likewise.
35689         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35690         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35691         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35692         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35693         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35694         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35695         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35696         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35697         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35698         (test-xfail-XPG4/termios.h/conform): Likewise.
35699         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35700         (test-xfail-XPG4/unistd.h/conform): Likewise.
35701         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35702         (test-xfail-POSIX/sched.h/conform): Likewise.
35703         (test-xfail-POSIX/signal.h/conform): Likewise.
35704         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35705         (test-xfail-POSIX/tar.h/conform): Likewise.
35706         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35707         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35708         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35709         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35710         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35711         (test-xfail-UNIX98/sched.h/conform): Likewise.
35712         (test-xfail-UNIX98/signal.h/conform): Likewise.
35713         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35714         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35715         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35716         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35717         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35718         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35719         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35720         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35721         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35722         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35723         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35724         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35725         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35726         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35727         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35728         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35729         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35730         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35731         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35732         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35733         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35734         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35735         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35736         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35737         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35738         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35739         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35740         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35741         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35742         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35743         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35744         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35745         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35746         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35747         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35748         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35749         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35750         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35751         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35752         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35753         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35754         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35755         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35756         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35757         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35758         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35759         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35760         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35761         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35762         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35763         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35764         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35765         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35766         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35767         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35768         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35769         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35770         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35771         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35772         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35773         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35774         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35775         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
35776         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
35777         (conformtest-cc-flags): Likewise.
35778         ($(conformtest-header-tests): New target.
35779         * conform/check-header-lists.sh: New file.
35780         * conform/run-conformtest.sh: Remove.
35781
35782         * conform/conformtest.pl: Allow ' and \ in values given for
35783         constants.
35784         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
35785         inclusion.
35786         [POSIX] (sys/types.h): Likewise.
35787         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
35788         inclusion.
35789         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
35790         inclusion.
35791         * conform/data/signal.h-data (SIGIO): Remove expectation.
35792         [XPG3] (SIGBUS): Do not expect.
35793         [POSIX || XPG3] (SIGPOLL): Likewise.
35794         [POSIX || XPG3] (SIGPROF): Likewise.
35795         [POSIX || XPG3] (SIGSYS): Likewise.
35796         [XPG3] (SIGTRAP): Likewise.
35797         [POSIX || XPG3] (SIGURG): Likewise.
35798         [POSIX || XPG3] (SIGVTALRM): Likewise.
35799         [POSIX || XPG3] (SIGXCPU): Likewise.
35800         [POSIX || XPG3] (SIGXFSZ): Likewise.
35801         [POSIX] (SA_SIGINFO): Expect.
35802         [XPG3] (siginfo_t): Do not expect type or contents.
35803         [POSIX] (si_pid): Do not expect element.
35804         [POSIX] (si_uid): Likewise.
35805         [POSIX] (si_addr): Likewise.
35806         [POSIX] (si_status): Likewise.
35807         [POSIX] (si_band): Likewise.
35808         [XPG4] (si_value): Likewise.
35809         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
35810         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
35811         [POSIX || XPG3] (ILL_ILLADR): Likewise.
35812         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
35813         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
35814         [POSIX || XPG3] (ILL_PRVREG): Likewise.
35815         [POSIX || XPG3] (ILL_COPROC): Likewise.
35816         [POSIX || XPG3] (ILL_BADSTK): Likewise.
35817         [POSIX || XPG3] (FPE_INTDIV): Likewise.
35818         [POSIX || XPG3] (FPE_INTOVF): Likewise.
35819         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
35820         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
35821         [POSIX || XPG3] (FPE_FLTUND): Likewise.
35822         [POSIX || XPG3] (FPE_FLTRES): Likewise.
35823         [POSIX || XPG3] (FPE_FLTINV): Likewise.
35824         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
35825         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
35826         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
35827         [POSIX || XPG3] (BUS_ADRALN): Likewise.
35828         [POSIX || XPG3] (BUS_ADRERR): Likewise.
35829         [POSIX || XPG3] (BUS_OBJERR): Likewise.
35830         [POSIX || XPG3] (CLD_EXITED): Likewise.
35831         [POSIX || XPG3] (CLD_KILLED): Likewise.
35832         [POSIX || XPG3] (CLD_DUMPED): Likewise.
35833         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
35834         [POSIX || XPG3] (CLD_STOPPED): Likewise.
35835         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
35836         [POSIX || XPG3] (POLL_IN): Likewise.
35837         [POSIX || XPG3] (POLL_OUT): Likewise.
35838         [POSIX || XPG3] (POLL_MSG): Likewise.
35839         [POSIX || XPG3] (POLL_ERR): Likewise.
35840         [POSIX || XPG3] (POLL_PRI): Likewise.
35841         [POSIX || XPG3] (POLL_HUP): Likewise.
35842         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
35843         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
35844         (SIG*): Do not allow.
35845         [XPG3] (si_*): Likewise.
35846         [XPG3] (SI_*): Likewise.
35847         [XPG3 || XPG4] (sigev_*): Likewise.
35848         [XPG3 || XPG4] (SIGEV_*): Likewise.
35849         [XPG3 || XPG4] (sival_*): Likewise.
35850         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
35851         [POSIX || XPG3] (BUS_*): Likewise.
35852         [POSIX || XPG3] (CLD_*): Likewise.
35853         [POSIX || XPG3] (FPE_*): Likewise.
35854         [POSIX || XPG3] (ILL_*): Likewise.
35855         [POSIX || XPG3] (POLL_*): Likewise.
35856         [POSIX || XPG3] (SEGV_*): Likewise.
35857         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
35858         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
35859         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
35860         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
35861         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
35862         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
35863         Specify type and value.
35864         (TVERSLEN): Likewise.
35865         (REGTYPE): Likewise.
35866         (AREGTYPE): Likewise.
35867         (LNKTYPE): Likewise.
35868         (SYMTYPE): Likewise.
35869         (CHRTYPE): Likewise.
35870         (BLKTYPE): Likewise.
35871         (DIRTYPE): Likewise.
35872         (FIFOTYPE): Likewise.
35873         (CONTTYPE): Likewise.
35874         (TSUID): Likewise.
35875         (TSGID): Likewise.
35876         (TSVTX): Likewise.
35877         (TUREAD): Likewise.
35878         (TUWRITE): Likewise.
35879         (TUEXEC): Likewise.
35880         (TGREAD): Likewise.
35881         (TGWRITE): Likewise.
35882         (TGEXEC): Likewise.
35883         (TOREAD): Likewise.
35884         (TOWRITE): Likewise.
35885         (TOEXEC): Likewise.
35886         [POSIX] (TSVTX): Expect constant.
35887
35888 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
35889
35890         * Makefile (tests): Change dependencies to ....
35891         (tests-special): ... additions to this variable.
35892         (tests): Depend on $(tests-special).
35893         * Makerules (check-abi-list): New variable.
35894         (check-abi): Depend on $(check-abi-list).
35895         [$(subdir) = elf] (tests-special): Add
35896         $(objpfx)check-abi-libc.out.
35897         [$(build-shared) = yes && subdir] (tests-special): Add
35898         $(check-abi-list).
35899         [$(build-shared) = yes && subdir] (tests): Do not depend on
35900         check-abi.
35901         * Rules (tests): Depend on $(tests-special).
35902         (xtests): Depend on $(xtests-special).
35903         * catgets/Makefile (tests): Change dependencies to ....
35904         (tests-special): ... additions to this variable.
35905         * conform/Makefile (tests): Change dependencies to ....
35906         (tests-special): ... additions to this variable.
35907         * elf/Makefile (tests): Change dependencies to ....
35908         (tests-special): ... additions to this variable.
35909         * grp/Makefile (tests): Change dependencies to ....
35910         (tests-special): ... additions to this variable.
35911         * iconv/Makefile (xtests): Change dependencies to ....
35912         (xtests-special): ... additions to this variable.
35913         * iconvdata/Makefile (tests): Change dependencies to ....
35914         (tests-special): ... additions to this variable.
35915         * intl/Makefile (tests): Change dependencies to ....
35916         (tests-special): ... additions to this variable.  Also add
35917         $(objpfx)tst-gettext.out.
35918         * io/Makefile (tests): Change dependencies to ....
35919         (tests-special): ... additions to this variable.
35920         * libio/Makefile (tests): Change dependencies to ....
35921         (tests-special): ... additions to this variable.
35922         * malloc/Makefile (tests): Change dependencies to ....
35923         (tests-special): ... additions to this variable.
35924         * misc/Makefile (tests): Change dependencies to ....
35925         (tests-special): ... additions to this variable.
35926         * nptl/Makefile (tests): Change dependencies to ....
35927         (tests-special): ... additions to this variable.
35928         * nptl_db/Makefile (tests): Change dependencies to ....
35929         (tests-special): ... additions to this variable.
35930         * posix/Makefile (tests): Change dependencies to ....
35931         (tests-special): ... additions to this variable.
35932         (xtests): Change dependencies to ....
35933         (xtests-special): ... additions to this variable.
35934         * resolv/Makefile (tests): Change dependencies to ....
35935         (tests-special): ... additions to this variable.
35936         (xtests): Change dependencies to ....
35937         (xtests-special): ... additions to this variable.
35938         * stdio-common/Makefile (tests): Change dependencies to ....
35939         (tests-special): ... additions to this variable.
35940         (do-tst-unbputc): Remove target.
35941         (do-tst-printf): Likewise.
35942         * stdlib/Makefile (tests): Change dependencies to ....
35943         (tests-special): ... additions to this variable.
35944         * string/Makefile (tests): Change dependencies to ....
35945         (tests-special): ... additions to this variable.
35946         * sysdeps/x86/Makefile (tests): Change dependencies to ....
35947         (tests-special): ... additions to this variable.
35948
35949         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
35950         whole file.
35951         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
35952         whole file.
35953         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
35954         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
35955
35956         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
35957         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
35958         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
35959         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
35960         * conform/data/libgen.h-data [XPG3]: Likewise.
35961         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
35962         * conform/data/ndbm.h-data [XPG3]: Likewise.
35963         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35964         * conform/data/netdb.h-data [XPG3]: Likewise.
35965         * conform/data/netinet/in.h-data [XPG3]: Likewise.
35966         * conform/data/poll.h-data [XPG3]: Likewise.
35967         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35968         * conform/data/strings.h-data [XPG3]: Likewise.
35969         * conform/data/stropts.h-data [XPG3]: Likewise.
35970         * conform/data/sys/mman.h-data [XPG3]: Likewise.
35971         * conform/data/sys/resource.h-data [XPG3]: Likewise.
35972         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
35973         Likewise.
35974         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
35975         * conform/data/sys/time.h-data [XPG3]: Likewise.
35976         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
35977         * conform/data/sys/uio.h-data [XPG3]: Likewise.
35978         * conform/data/sys/un.h-data [XPG3]: Likewise.
35979         * conform/data/syslog.h-data [XPG3]: Likewise.
35980         * conform/data/ucontext.h-data [XPG3]: Likewise.
35981         * conform/data/utmpx.h-data [XPG3]: Likewise.
35982         * conform/data/varargs.h-data [UNIX98]: Enable file.
35983
35984         * manual/Makefile (INSTALL_INFO): Remove variable setting.
35985
35986         * math/libm-test.inc (struct test_f_f_data): Move expected results
35987         into structure for each rounding mode.
35988         (struct test_ff_f_data): Likewise.
35989         (struct test_ff_f_data_nexttoward): Likewise.
35990         (struct test_fi_f_data): Likewise.
35991         (struct test_fl_f_data): Likewise.
35992         (struct test_if_f_data): Likewise.
35993         (struct test_fff_f_data): Likewise.
35994         (struct test_c_f_data): Likewise.
35995         (struct test_f_f1_data): Likewise.
35996         (struct test_fF_f1_data): Likewise.
35997         (struct test_ffI_f1_data): Likewise.
35998         (struct test_c_c_data): Likewise.
35999         (struct test_cc_c_data): Likewise.
36000         (struct test_f_i_data): Likewise.
36001         (struct test_ff_i_data): Likewise.
36002         (struct test_f_l_data): Likewise.
36003         (struct test_f_L_data): Likewise.
36004         (struct test_fFF_11_data): Likewise.
36005         (RM_): New macro.
36006         (RM_FE_DOWNWARD): Likewise.
36007         (RM_FE_TONEAREST): Likewise.
36008         (RM_FE_TOWARDZERO): Likewise.
36009         (RM_FE_UPWARD): Likewise.
36010         (RUN_TEST_LOOP_f_f): Update references to expected results.
36011         (RUN_TEST_LOOP_2_f): Likewise.
36012         (RUN_TEST_LOOP_fff_f): Likewise.
36013         (RUN_TEST_LOOP_c_f): Likewise.
36014         (RUN_TEST_LOOP_f_f1): Likewise.
36015         (RUN_TEST_LOOP_fF_f1): Likewise.
36016         (RUN_TEST_LOOP_fI_f1): Likewise.
36017         (RUN_TEST_LOOP_ffI_f1): Likewise.
36018         (RUN_TEST_LOOP_c_c): Likewise.
36019         (RUN_TEST_LOOP_cc_c): Likewise.
36020         (RUN_TEST_LOOP_f_i): Likewise.
36021         (RUN_TEST_LOOP_f_i_tg): Likewise.
36022         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36023         (RUN_TEST_LOOP_f_b): Likewise.
36024         (RUN_TEST_LOOP_f_b_tg): Likewise.
36025         (RUN_TEST_LOOP_f_l): Likewise.
36026         (RUN_TEST_LOOP_f_L): Likewise.
36027         (RUN_TEST_LOOP_fFF_11): Likewise.
36028         * math/gen-libm-test.pl (parse_args): Output four copies of
36029         expected results for each test.
36030
36031         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36032         (__ASSUME_UTIMES): Remove.
36033         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36034         (__ASSUME_UTIMES): Likewise.
36035
36036         * math/gen-auto-libm-tests.c: Update comment on output format.
36037         (output_for_one_input_case): Generate before-rounding and
36038         after-rounding information as conditions on output flags not
36039         floating-point format.
36040         * math/auto-libm-test-out: Regenerated.
36041         * math/gen-libm-test.pl (cond_value): New function.
36042         (or_cond_value): Use cond_value.
36043         (generate_testfile): Handle conditional exceptions.
36044
36045 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36046
36047         * math/libm-test.inc (max_valid_error): New variable.
36048         (init_max_error): Take new argument specifying whether function
36049         results are exactly determined.  Set max_valid_error and bound
36050         other variables for errors based on this argument.
36051         (set_max_error): Do not record results above max_valid_error.
36052         (check_float_internal): Only accept errors of up to 0.5ulps if
36053         also at most max_valid_error.
36054         (START): Take new argument EXACT and pass it to init_max_error.
36055         (acos_test): Update call to START.
36056         (acos_test_tonearest): Likewise.
36057         (acos_test_towardzero): Likewise.
36058         (acos_test_downward): Likewise.
36059         (acos_test_upward): Likewise.
36060         (acosh_test): Likewise.
36061         (asin_test): Likewise.
36062         (asin_test_tonearest): Likewise.
36063         (asin_test_towardzero): Likewise.
36064         (asin_test_downward): Likewise.
36065         (asin_test_upward): Likewise.
36066         (asinh_test): Likewise.
36067         (atan_test): Likewise.
36068         (atanh_test): Likewise.
36069         (atan2_test): Likewise.
36070         (cabs_test): Likewise.
36071         (cacos_test): Likewise.
36072         (cacosh_test): Likewise.
36073         (carg_test): Likewise.
36074         (casin_test): Likewise.
36075         (casinh_test): Likewise.
36076         (catan_test): Likewise.
36077         (catanh_test): Likewise.
36078         (cbrt_test): Likewise.
36079         (ccos_test): Likewise.
36080         (ccosh_test): Likewise.
36081         (ceil_test): Likewise.
36082         (cexp_test): Likewise.
36083         (cimag_test): Likewise.
36084         (clog_test): Likewise.
36085         (clog10_test): Likewise.
36086         (conj_test): Likewise.
36087         (copysign_test): Likewise.
36088         (cos_test): Likewise.
36089         (cos_test_tonearest): Likewise.
36090         (cos_test_towardzero): Likewise.
36091         (cos_test_downward): Likewise.
36092         (cos_test_upward): Likewise.
36093         (cosh_test): Likewise.
36094         (cosh_test_tonearest): Likewise.
36095         (cosh_test_towardzero): Likewise.
36096         (cosh_test_downward): Likewise.
36097         (cosh_test_upward): Likewise.
36098         (cpow_test): Likewise.
36099         (cproj_test): Likewise.
36100         (creal_test): Likewise.
36101         (csin_test): Likewise.
36102         (csinh_test): Likewise.
36103         (csqrt_test): Likewise.
36104         (ctan_test): Likewise.
36105         (ctan_test_tonearest): Likewise.
36106         (ctan_test_towardzero): Likewise.
36107         (ctan_test_downward): Likewise.
36108         (ctan_test_upward): Likewise.
36109         (ctanh_test): Likewise.
36110         (ctanh_test_tonearest): Likewise.
36111         (ctanh_test_towardzero): Likewise.
36112         (ctanh_test_downward): Likewise.
36113         (ctanh_test_upward): Likewise.
36114         (erf_test): Likewise.
36115         (erfc_test): Likewise.
36116         (exp_test): Likewise.
36117         (exp_test_tonearest): Likewise.
36118         (exp_test_towardzero): Likewise.
36119         (exp_test_downward): Likewise.
36120         (exp_test_upward): Likewise.
36121         (exp10_test): Likewise.
36122         (exp10_test_tonearest): Likewise.
36123         (exp10_test_towardzero): Likewise.
36124         (exp10_test_downward): Likewise.
36125         (exp10_test_upward): Likewise.
36126         (pow10_test): Likewise.
36127         (exp2_test): Likewise.
36128         (expm1_test): Likewise.
36129         (expm1_test_tonearest): Likewise.
36130         (expm1_test_towardzero): Likewise.
36131         (expm1_test_downward): Likewise.
36132         (expm1_test_upward): Likewise.
36133         (fabs_test): Likewise.
36134         (fdim_test): Likewise.
36135         (floor_test): Likewise.
36136         (fma_test): Likewise.
36137         (fma_test_towardzero): Likewise.
36138         (fma_test_downward): Likewise.
36139         (fma_test_upward): Likewise.
36140         (fmax_test): Likewise.
36141         (fmin_test): Likewise.
36142         (fmod_test): Likewise.
36143         (fpclassify_test): Likewise.
36144         (frexp_test): Likewise.
36145         (hypot_test): Likewise.
36146         (ilogb_test): Likewise.
36147         (isfinite_test): Likewise.
36148         (finite_test): Likewise.
36149         (isgreater_test): Likewise.
36150         (isgreaterequal_test): Likewise.
36151         (isinf_test): Likewise.
36152         (isless_test): Likewise.
36153         (islessequal_test): Likewise.
36154         (islessgreater_test): Likewise.
36155         (isnan_test): Likewise.
36156         (isnormal_test): Likewise.
36157         (issignaling_test): Likewise.
36158         (isunordered_test): Likewise.
36159         (j0_test): Likewise.
36160         (j1_test): Likewise.
36161         (jn_test): Likewise.
36162         (ldexp_test): Likewise.
36163         (lgamma_test): Likewise.
36164         (gamma_test): Likewise.
36165         (lrint_test): Likewise.
36166         (lrint_test_tonearest): Likewise.
36167         (lrint_test_towardzero): Likewise.
36168         (lrint_test_downward): Likewise.
36169         (lrint_test_upward): Likewise.
36170         (llrint_test): Likewise.
36171         (llrint_test_tonearest): Likewise.
36172         (llrint_test_towardzero): Likewise.
36173         (llrint_test_downward): Likewise.
36174         (llrint_test_upward): Likewise.
36175         (log_test): Likewise.
36176         (log10_test): Likewise.
36177         (log1p_test): Likewise.
36178         (log2_test): Likewise.
36179         (logb_test): Likewise.
36180         (logb_test_downward): Likewise.
36181         (lround_test): Likewise.
36182         (llround_test): Likewise.
36183         (modf_test): Likewise.
36184         (nearbyint_test): Likewise.
36185         (nextafter_test): Likewise.
36186         (nexttoward_test): Likewise.
36187         (pow_test): Likewise.
36188         (pow_test_tonearest): Likewise.
36189         (pow_test_towardzero): Likewise.
36190         (pow_test_downward): Likewise.
36191         (pow_test_upward): Likewise.
36192         (remainder_test): Likewise.
36193         (drem_test): Likewise.
36194         (remainder_test_tonearest): Likewise.
36195         (drem_test_tonearest): Likewise.
36196         (remainder_test_towardzero): Likewise.
36197         (drem_test_towardzero): Likewise.
36198         (remainder_test_downward): Likewise.
36199         (drem_test_downward): Likewise.
36200         (remainder_test_upward): Likewise.
36201         (drem_test_upward): Likewise.
36202         (remquo_test): Likewise.
36203         (rint_test): Likewise.
36204         (rint_test_tonearest): Likewise.
36205         (rint_test_towardzero): Likewise.
36206         (rint_test_downward): Likewise.
36207         (rint_test_upward): Likewise.
36208         (round_test): Likewise.
36209         (scalb_test): Likewise.
36210         (scalbn_test): Likewise.
36211         (scalbln_test): Likewise.
36212         (signbit_test): Likewise.
36213         (sin_test): Likewise.
36214         (sin_test_tonearest): Likewise.
36215         (sin_test_towardzero): Likewise.
36216         (sin_test_downward): Likewise.
36217         (sin_test_upward): Likewise.
36218         (sincos_test): Likewise.
36219         (sinh_test): Likewise.
36220         (sinh_test_tonearest): Likewise.
36221         (sinh_test_towardzero): Likewise.
36222         (sinh_test_downward): Likewise.
36223         (sinh_test_upward): Likewise.
36224         (sqrt_test): Likewise.
36225         (sqrt_test_tonearest): Likewise.
36226         (sqrt_test_towardzero): Likewise.
36227         (sqrt_test_downward): Likewise.
36228         (sqrt_test_upward): Likewise.
36229         (tan_test): Likewise.
36230         (tan_test_tonearest): Likewise.
36231         (tan_test_towardzero): Likewise.
36232         (tan_test_downward): Likewise.
36233         (tan_test_upward): Likewise.
36234         (tanh_test): Likewise.
36235         (tgamma_test): Likewise.
36236         (trunc_test): Likewise.
36237         (y0_test): Likewise.
36238         (y1_test): Likewise.
36239         (yn_test): Likewise.
36240         (significand_test): Likewise.
36241
36242         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36243         individual tests in comment.
36244         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36245         (prev_max_error): New variable.
36246         (prev_real_max_error): Likewise.
36247         (prev_imag_max_error): Likewise.
36248         (compare_ulp_data): Don't refer to test names in comment.
36249         (find_test_ulps): Remove function.
36250         (find_function_ulps): Likewise.
36251         (find_complex_function_ulps): Likewise.
36252         (init_max_error): Take function name as argument.  Look up ulps
36253         for that function.
36254         (print_ulps): Remove function.
36255         (print_max_error): Use prev_max_error instead of calling
36256         find_function_ulps.
36257         (print_complex_max_error): Use prev_real_max_error and
36258         prev_imag_max_error instead of calling find_complex_function_ulps.
36259         (check_float_internal): Take max_ulp parameter instead of calling
36260         find_test_ulps.  Don't call print_ulps.
36261         (check_float): Update call to check_float_internal.
36262         (check_complex): Update calls to check_float_internal.
36263         (START): Pass argument to init_max_error.
36264         * math/gen-libm-test.pl (%results): Don't include "kind"
36265         information.
36266         (parse_ulps): Don't handle ulps of individual tests.
36267         (print_ulps_file): Likewise.
36268         (output_ulps): Likewise.
36269         * math/README.libm-test: Update.
36270         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36271         individual tests.
36272         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36273         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36274         * sysdeps/arm/libm-test-ulps: Likewise.
36275         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36276         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36277         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36278         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36279         * sysdeps/microblaze/libm-test-ulps: Likewise.
36280         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36281         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36282         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36283         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36284         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36285         * sysdeps/sh/libm-test-ulps: Likewise.
36286         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36287         * sysdeps/tile/libm-test-ulps: Likewise.
36288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36289
36290 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36291
36292         * math/libm-test.inc (print_complex_max_error): Check separately
36293         whether real and imaginary errors are within allowed range and
36294         pass 0 to print_complex_function_ulps instead of value within
36295         allowed range.
36296
36297 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36298
36299         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36300         formatting.
36301         (get_handles_fopen): Likewise.
36302         (do_write_test): Likewise.
36303
36304         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36305
36306         * libio/fileops.c (do_ftell): Use cached offset when
36307         available.
36308         * libio/iofwide.c (do_ftell_wide): Likewise.
36309         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36310         _IO_file_attach.
36311         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36312
36313         [BZ #16532]
36314         * libio/libioP.h (get_file_offset): New function.
36315         * libio/fileops.c (get_file_offset): Likewise.
36316         (do_ftell): Likewise.
36317         (_IO_new_file_seekoff): Split out ftell logic.
36318         * libio/wfileops.c (do_ftell_wide): Likewise.
36319         (_IO_wfile_seekoff): Split out ftell logic.
36320         * libio/tst-ftell-active-handler.c: New test case.
36321         * libio/Makefile (tests): Add it.
36322
36323 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36324
36325         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36326         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36327
36328 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36329
36330         [BZ #16639]
36331         * nscd/connections.c (nscd_init): Call do_exit.
36332         (start_threads): Call do_exit and notify_parent.
36333         (begin_drop_privileges): Call do_exit.
36334         (finish_drop_privileges): Likewise.
36335         * nscd/selinux.c (preserve_capabilities): Likewise.
36336         (install_real_capabilities): Likewise.
36337         (nscd_selinux_enabled): Likewise.
36338         (avc_create_thread): Likewise.
36339         (avc_alloc_lock): Likewise.
36340         (nscd_avc_init): Likewise.
36341         * nscd/nscd.c (parent_fd): New static variable.
36342         (main): Create a pipe between parent and child processes.
36343         Skip closing parent_fd.
36344         (monitor_child): New function.
36345         (do_exit): Likewise.
36346         (notify_parent): Likewise.
36347         * nscd/nscd.h (notify_parent): Likewise.
36348         (do_exit): Likewise.
36349
36350 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36351
36352         * malloc/malloc.c (__libc_calloc): Revert last change.
36353
36354 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36355
36356         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36357
36358 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36359
36360         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36361         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36362         implementation.
36363         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36364         (__libc_ifunc_impl_list): Likewise.
36365         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36366         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36367         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36368         * string/strrchr.c: Define STRRCHR.
36369
36370 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36371
36372         * benchtest/bench-strtok.c (simple_strtok): Delete.
36373         (strtok_string): Use as benchmark.
36374         * string/strtok (STRTOK): New macro.
36375
36376 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36377
36378         * manual/threads.texi: Add header and standard comments to all
36379         functions.
36380
36381         * elf/dl-lookup.c (check_match): New function.
36382         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36383         (do_lookup_x): Remove nested function check_match. Use non-nested
36384         function check_match.
36385
36386 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36387
36388         * csu/Makefile (generated, before-compile): Use += rather than =.
36389         * catgets/Makefile (generated, generated-dirs): Likewise.
36390         * debug/Makefile (generated): Likewise.
36391         * dlfcn/Makefile (generated): Likewise.
36392         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36393         * iconvdata/Makefile (before-compile, generated): Likewise.
36394         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36395         * libio/Makefile (generated): Likewise.
36396         * malloc/Makefile (generated): Likewise.
36397         * manual/Makefile (generated, generated-dirs): Likewise.
36398         * misc/Makefile (generated): Likewise.
36399         * posix/Makefile (generated): Likewise.
36400         * resolv/Makefile (generated): Likewise.
36401         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36402         * timezone/Makefile (generated, generated-dirs): Likewise.
36403
36404         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36405
36406 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36407
36408         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36409         power8 implementation.
36410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36411         file: POWER8 llround ifunc implementation.
36412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36413         (__lllround): Add POWER8 implementation.
36414         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36415         POWER8 llround implementation.
36416
36417         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36418         power8 implementation.
36419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36420         file: POWER8 llrint ifunc implementation.
36421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36422         Add POWER8 implementation.
36423         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36424         POWER8 llrint implementation.
36425
36426         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36427         power8 implementation.
36428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36429         file: POWER8 finite ifunc implementation.
36430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36431         Add POWER8 implementation.
36432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36433         Likewise.
36434         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36435         POWER8 finite implementation.
36436         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36437
36438         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36439         power8 implementation.
36440         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36441         file: POWER8 isinf ifunc implementation.
36442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36443         POWER8 implementation.
36444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36445         Likewise.
36446         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36447         isinf implementation.
36448         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36449
36450         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36451         (INIT_ARCH): Add hwcap2 initialization.
36452         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36453         power8 implementation.
36454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36455         file: POWER8 isnan ifunc implementation.
36456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36457         POWER8 implementation.
36458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36459         Likewise.
36460         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36461         isnan implementation.
36462         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36463
36464 2014-02-27  Joey Ye  <joey.ye@arm.com>
36465
36466         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36467         (_FP_NANFRAC_Q): Set to zero.
36468
36469 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36470
36471         [BZ #16623]
36472         * math/auto-libm-test-in: New test inputs.
36473         * math/auto-libm-test-out: Regenerate.
36474         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36475         and DA.
36476         (__cos): Likewise.
36477         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36478
36479 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36480
36481         * scripts/evaluate-test.sh: Take new argument indicating whether
36482         failure is expected.
36483         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36484         indicating whether failure is expected.
36485         * conform/Makefile (test-xfail-run-conformtest): New variable.
36486         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36487         level.
36488         * posix/Makefile (test-xfail-annexc): New variable.
36489         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36490
36491 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36492
36493         * argp/Makefile: Include Makeconfig immediately after defining
36494         subdir.
36495         * assert/Makefile: Likewise.
36496         * benchtests/Makefile: Likewise.
36497         * catgets/Makefile: Likewise.
36498         * conform/Makefile: Likewise.
36499         * crypt/Makefile: Likewise.
36500         * csu/Makefile: Likewise.
36501         (all): Remove target.
36502         * ctype/Makefile: Include Makeconfig immediately after defining
36503         subdir.
36504         * debug/Makefile: Likewise.
36505         * dirent/Makefile: Likewise.
36506         * dlfcn/Makefile: Likewise.
36507         * gmon/Makefile: Likewise.
36508         * gnulib/Makefile: Likewise.
36509         * grp/Makefile: Likewise.
36510         * gshadow/Makefile: Likewise.
36511         * hesiod/Makefile: Likewise.
36512         * hurd/Makefile: Likewise.
36513         (all): Remove target.
36514         * iconvdata/Makefile: Include Makeconfig immediately after
36515         defining subdir.
36516         * inet/Makefile: Likewise.
36517         * intl/Makefile: Likewise.
36518         * io/Makefile: Likewise.
36519         * libio/Makefile: Likewise.
36520         (all): Remove target.
36521         * locale/Makefile: Include Makeconfig immediately after defining
36522         subdir.
36523         * login/Makefile: Likewise.
36524         * mach/Makefile: Likewise.
36525         (all): Remove target.
36526         * malloc/Makefile: Include Makeconfig immediately after defining
36527         subdir.
36528         (all): Remove target.
36529         * manual/Makefile: Include Makeconfig immediately after defining
36530         subdir.
36531         * math/Makefile: Likewise.
36532         * misc/Makefile: Likewise.
36533         * nis/Makefile: Likewise.
36534         * nss/Makefile: Likewise.
36535         * po/Makefile: Likewise.
36536         (all): Remove target.
36537         * posix/Makefile: Include Makeconfig immediately after defining
36538         subdir.
36539         * pwd/Makefile: Likewise.
36540         * resolv/Makefile: Likewise.
36541         * resource/Makefile: Likewise.
36542         * rt/Makefile: Likewise.
36543         * setjmp/Makefile: Likewise.
36544         * shadow/Makefile: Likewise.
36545         * signal/Makefile: Likewise.
36546         * socket/Makefile: Likewise.
36547         * soft-fp/Makefile: Likewise.
36548         * stdio-common/Makefile: Likewise.
36549         * stdlib/Makefile: Likewise.
36550         * streams/Makefile: Likewise.
36551         * string/Makefile: Likewise.
36552         * sunrpc/Makefile: Likewise.
36553         (all): Remove target.
36554         * sysvipc/Makefile: Include Makeconfig immediately after defining
36555         subdir.
36556         * termios/Makefile: Likewise.
36557         * time/Makefile: Likewise.
36558         * timezone/Makefile: Likewise.
36559         (all): Remove target.
36560         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36561         subdir.
36562         * wctype/Makefile: Likewise.
36563
36564 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36565
36566         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36567         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36568         (libc_feholdexcept_setround_mips): Ditto.
36569         (libc_feholdsetround): New.
36570         (libc_feholdsetroundf): New.
36571         (libc_feholdsetroundl): New.
36572         (libc_feupdateenv_test_mips): New.
36573         (libc_feupdateenv_test): New.
36574         (libc_feupdateenv_testf): New.
36575         (libc_feupdateenv_testl): New.
36576         (libc_feresetround): New.
36577         (libc_feresetroundf): New.
36578         (libc_feresetroundl): New.
36579         (libc_fetestexcept_mips): New.
36580         (libc_fetestexcept): New.
36581         (libc_fetestexceptf): New.
36582         (libc_fetestexceptl): New.
36583         (HAVE_RM_CTX): New.
36584         (libc_feholdexcept_setround_mips_ctx): New.
36585         (libc_feholdexcept_setround_ctx): New.
36586         (libc_feholdexcept_setroundf_ctx): New.
36587         (libc_feholdexcept_setroundl_ctx): New.
36588         (libc_fesetenv_mips_ctx): New.
36589         (libc_fesetenv_ctx): New.
36590         (libc_fesetenv_ctxf): New.
36591         (libc_fesetenv_ctxl): New.
36592         (libc_feupdateenv_mips_ctx): New.
36593         (libc_feupdateenv_ctx): New.
36594         (libc_feupdateenvf_ctx): New.
36595         (libc_feupdateenvl_ctx): New.
36596         (libc_feholdsetround_mips_ctx): New.
36597         (libc_feholdsetround_ctx): New.
36598         (libc_feholdsetroundf_ctx): New.
36599         (libc_feholdsetroundl_ctx): New.
36600         (libc_feresetround_mips_ctx): New.
36601         (libc_feresetround_ctx): New.
36602         (libc_feresetroundf_ctx): New.
36603         (libc_feresetroundl_ctx): New.
36604
36605 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36606
36607         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36608
36609         * manual/ipc.texi: New file.
36610         * manual/Makefile (chapters): Add ipc.
36611         * manual/job.texi: Add "Inter-Process Communication" to next.
36612         * manual/process.texi: Add "Inter-Process Communication" to prev.
36613
36614 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36615
36616         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36617
36618 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36619
36620         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36621
36622         * manual/arith.texi: Fix spaces after sentences.
36623         * manual/charset.texi: Likewise.
36624         * manual/errno.texi: Likewise.
36625         * manual/install.texi: Likewise.
36626         * manual/llio.texi: Likewise.
36627         * manual/locale.texi: Likewise.
36628         * manual/maint.texi: Likewise.
36629         * manual/math.texi: Likewise.
36630         * manual/memory.texi: Likewise.
36631         * manual/message.texi: Likewise.
36632         * manual/probes.texi: Likewise.
36633         * manual/resource.texi: Likewise.
36634         * manual/signal.texi: Likewise.
36635         * manual/socket.texi: Likewise.
36636         * manual/stdio.texi: Likewise.
36637         * manual/string.texi: Likewise.
36638         * manual/time.texi: Likewise.
36639         * manual/users.texi: Likewise.
36640
36641 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36642
36643         [BZ #16632]
36644         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36645         _DEFAULT_SOURCE is defined.
36646
36647 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36648             Carlos O'Donell  <carlos@redhat.com>
36649
36650         [BZ #16613]
36651         * elf/dl-tls.c (_dl_count_modids): New function.
36652         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36653         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36654         audit library and increment generation counter.
36655         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36656         * elf/tst-audit9.c: New file.
36657         * elf/tst-auditmod9a.c: New file.
36658         * elf/tst-auditmod9b.c: New file.
36659         * elf/Makefile: Add rules to build and run tst-audit9.
36660
36661 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36662
36663         [BZ #15347]
36664         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36665
36666 2014-02-25  Will Newton  <will.newton@linaro.org>
36667
36668         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36669         (__longjmp): Restore sp and lr before restoring callee
36670         saved registers.  Add longjmp and longjmp_target
36671         SystemTap probe point.
36672         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36673         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36674         Define to zero to match jmpbuf layout.
36675         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36676         (__sigsetjmp): Save sp and lr before saving callee
36677         saved registers.  Add setjmp SystemTap probe point.
36678
36679 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36680
36681         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36682
36683 2014-02-24  Andreas Schwab  <schwab@suse.de>
36684
36685         [BZ #15804]
36686         * elf/pldd.c (wait_for_ptrace_stop): New function.
36687         (main): Call it after attaching.
36688
36689 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36690
36691         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36692         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36693         Versions files is now verboten.
36694         * hurd/Versions (libc: GLIBC_2.0):
36695         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36696         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36697         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36698         * mach/Versions: Likewise.
36699
36700         * csu/Versions: Remove unused %include.
36701         * resolv/Versions: Likewise.
36702
36703 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36704
36705         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36706         ($(objpfx)check-local-headers.out): Likewise.
36707         ($(objpfx)begin-end-check.out): Likewise.
36708         * Makerules (check-abi-%.out): Likewise.
36709         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36710         ($(objpfx)test2.cat): Likewise.
36711         ($(objpfx)de/libc.cat): Likewise.
36712         ($(objpfx)test-gencat.out): Likewise.
36713         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36714         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36715         ($(objpfx)noload-mem): Likewise.
36716         ($(objpfx)tst-pathopt.out): Likewise.
36717         ($(objpfx)tst-rtld-load-self.out): Likewise.
36718         ($(objpfx)tst-array1-cmp.out): Likewise.
36719         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36720         ($(objpfx)tst-array2-cmp.out): Likewise.
36721         ($(objpfx)tst-array3-cmp.out): Likewise.
36722         ($(objpfx)tst-array4-cmp.out): Likewise.
36723         ($(objpfx)tst-array5-cmp.out): Likewise.
36724         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36725         ($(objpfx)check-textrel.out): Likewise.
36726         ($(objpfx)check-execstack.out): Likewise.
36727         ($(objpfx)check-localplt.out): Likewise.
36728         ($(objpfx)order2-cmp.out): Likewise.
36729         ($(objpfx)tst-leaks1-mem): Likewise.
36730         ($(objpfx)tst-leaks1-static-mem): Likewise.
36731         ($(objpfx)tst-initorder-cmp.out): Likewise.
36732         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36733         ($(objpfx)tst-unused-dep.out): Likewise.
36734         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36735         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36736         * iconv/Makefile (test-iconvconfig): Likewise.
36737         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36738         ($(objpfx)iconv-test.out): Likewise.
36739         ($(objpfx)tst-tables.out): Likewise.
36740         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36741         ($(objpfx)tst-gettext.out): Likewise.
36742         ($(objpfx)tst-translit.out): Likewise.
36743         ($(objpfx)tst-gettext2.out): Likewise.
36744         ($(objpfx)tst-gettext4.out): Likewise.
36745         ($(objpfx)tst-gettext6.out): Likewise.
36746         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36747         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36748         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36749         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36750         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36751         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36752         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36753         ($(objpfx)wordexp-tst.out): Likewise.
36754         ($(objpfx)annexc.out): Likewise.
36755         ($(objpfx)tst-fnmatch-mem): Likewise.
36756         ($(objpfx)bug-regex2-mem): Likewise.
36757         ($(objpfx)bug-regex14-mem): Likewise.
36758         ($(objpfx)bug-regex21-mem): Likewise.
36759         ($(objpfx)bug-regex31-mem): Likewise.
36760         ($(objpfx)tst-vfork3-mem): Likewise.
36761         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36762         ($(objpfx)tst-pcre-mem): Likewise.
36763         ($(objpfx)tst-boost-mem): Likewise.
36764         ($(objpfx)tst-getconf.out): Likewise.
36765         ($(objpfx)bug-ga2-mem): Likewise.
36766         ($(objpfx)bug-glob2-mem): Likewise.
36767         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36768         ($(objpfx)mtrace-tst-leaks2): Likewise.
36769         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36770         ($(objpfx)tst-printf.out): Likewise.
36771         ($(objpfx)tst-setvbuf1.out): Likewise.
36772         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36773         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36774         ($(objpfx)tst-fmtmsg.out): Likewise.
36775         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
36776         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
36777
36778         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
36779         * bits/sigaction.h [__USE_MISC]: Likewise.
36780         * bits/waitstatus.h: Update #endif comments.
36781         * ctype/ctype.h: Likewise.
36782         * dirent/dirent.h: Likewise.
36783         [__USE_MISC]: Remove redundant conditionals.
36784         * grp/grp.h: Update #endif comments.
36785         [__USE_GNU]: Remove redundant conditionals.
36786         [__USE_MISC]: Likewise.
36787         * inet/netinet/in.h [__USE_GNU]: Likewise.
36788         * io/sys/stat.h [__USE_MISC]: Likewise.
36789         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
36790         * libio/bits/stdio.h: Update #endif comments.
36791         [__USE_MISC]: Remove redundant conditionals.
36792         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
36793         * libio/stdio.h: Update #endif comments.
36794         [__USE_MISC]: Remove redundant conditionals.
36795         * math/bits/math-finite.h [__USE_MISC]: Likewise.
36796         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
36797         * math/math.h: Update #else and #endif comments.
36798         [__USE_MISC]: Remove redundant conditionals.
36799         * misc/sys/uio.h: Update #endif comments.
36800         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
36801         * posix/glob.h [__USE_MISC]: Likewise.
36802         * posix/sys/types.h: Update #endif comments.
36803         [__USE_MISC]: Remove redundant conditionals.
36804         * posix/sys/wait.h: Update #endif comments.
36805         [__USE_MISC]: Remove redundant conditionals.
36806         * posix/unistd.h: Update #endif comments.
36807         [__USE_MISC]: Remove redundant conditionals.
36808         * pwd/pwd.h [__USE_GNU]: Likewise.
36809         [__USE_MISC]: Likewise.
36810         * resolv/netdb.h [__USE_GNU]: Likewise.
36811         * signal/signal.h: Update #endif comments.
36812         [__USE_MISC]: Remove redundant conditionals.
36813         * stdlib/stdlib.h: Update #else and #endif comments.
36814         [__USE_MISC]: Remove redundant conditionals.
36815         [__USE_GNU]: Likewise.
36816         * string/bits/string2.h [__USE_MISC]: Likewise.
36817         * string/string.h: Update #endif comments.
36818         [__USE_MISC]: Remove redundant conditionals.
36819         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
36820         Likewise.
36821         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
36822         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
36823         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
36824         Likewise.
36825         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
36826         Likewise.
36827         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
36828         comments.
36829         [__USE_MISC]: Remove redundant conditionals.
36830         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
36831         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
36832         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
36833         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
36834         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
36835         Likewise.
36836         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
36837         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
36838         Likewise.
36839         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
36840         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
36841         Likewise.
36842         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
36843         Likewise.
36844         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
36845         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
36846         Likewise.
36847         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
36848         Likewise.
36849         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
36850         * sysdeps/x86/bits/string.h: Update #endif comments.
36851         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
36852         conditionals.
36853         * time/sys/time.h: Update #endif comments.
36854         * time/time.h: Likewise.
36855         [__USE_MISC]: Remove redundant conditionals.
36856
36857 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
36858
36859         [BZ #16600]
36860         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
36861
36862 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
36863
36864         * Versions.def (librt): Add GLIBC_2.17.
36865
36866 2014-02-21  Adam Conrad  <adconrad@0c3.net>
36867
36868         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
36869         synonym for _SYS_AUXV_H to allow direct inclusion.
36870         * sysdeps/sparc/bits/hwcap.h: Likewise.
36871         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
36872         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
36873         * sysdeps/sparc/sysdep.h: Likewise.
36874
36875 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
36876
36877         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
36878
36879 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36880
36881         * benchtests/bench-strrchr.c: Print length instead of position.
36882
36883 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
36884
36885         [BZ #16611]
36886         * sysdeps/unix/sysv/linux/kernel-features.h
36887         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
36888         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
36889         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
36890         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
36891         Likewise.
36892         [__i386__ || __powerpc__ || __sh__ || __sparc__]
36893         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36894         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
36895         (__ASSUME_SENDMMSG): Define instead of using previous
36896         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
36897         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36898         (__ASSUME_SENDMMSG_SYSCALL): Define.
36899         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36900         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
36901         Likewise.
36902         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36903         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36904         Likewise.
36905         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36906         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36907         Likewise.
36908         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
36909         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36910         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36911         [__ASSUME_SENDMMSG]: Change conditionals to
36912         [__ASSUME_SENDMMSG_SOCKETCALL].
36913         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36914         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
36915         Define.
36916         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36917         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
36918         Likewise.
36919         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
36920         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36921         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36922         [!__ASSUME_SENDMMSG]: Change conditional to
36923         [!__ASSUME_SENDMMSG_SOCKETCALL].
36924         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36925         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36926         Define.
36927
36928         [BZ #16610]
36929         * sysdeps/unix/sysv/linux/kernel-features.h
36930         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
36931         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
36932         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
36933         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
36934         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
36935         [__i386__ || __sparc__]
36936         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36937         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
36938         (__ASSUME_RECVMMSG): Define instead of using previous
36939         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
36940         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36941         (__ASSUME_RECVMMSG_SYSCALL): Define.
36942         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36943         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36944         Likewise.
36945         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36946         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36947         Likewise.
36948         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36949         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36950         Likewise.
36951         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
36952         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36953         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36954         [__ASSUME_RECVMMSG]: Change condition to
36955         [__ASSUME_RECVMMSG_SOCKETCALL].
36956         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36957         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36958         Define.
36959         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36960         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36961         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36962         Likewise.
36963         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
36964         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36965         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36966         [!__ASSUME_RECVMMSG]: Change condition to
36967         [!__ASSUME_RECVMMSG_SOCKETCALL].
36968         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36969         (__ASSUME_RECVMMSG_SYSCALL): Define.
36970
36971         [BZ #16609]
36972         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
36973         __powerpc__ || __s390__ || __sh__ || __sparc__]
36974         (__ASSUME_SOCKETCALL): Define.
36975         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
36976         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
36977         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
36978         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
36979         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36980         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
36981         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
36982         (__ASSUME_ACCEPT4): Define instead of using previous
36983         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
36984         __powerpc__ || __sparc__ || __s390__)] condition.
36985         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36986         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36987         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
36988         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36989         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36990         [!__ASSUME_ACCEPT4]: Change condition to
36991         [!__ASSUME_ACCEPT4_SOCKETCALL].
36992         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36993         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
36994         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
36995         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36996         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
36997         __ASSUME_ACCEPT4_SYSCALL.
36998         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
36999         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37000         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37001         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37002         __ASSUME_ACCEPT4_SYSCALL.
37003         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37004         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37005         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37006         [__ASSUME_ACCEPT4]: Change condition to
37007         [__ASSUME_ACCEPT4_SOCKETCALL].
37008         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37009         (__ASSUME_SOCKETCALL): Define.
37010         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37011         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37012         (__ASSUME_SOCKETCALL): Define.
37013         (__ASSUME_ACCEPT4): Remove.
37014         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37015         Define.
37016         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37017         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37018         Likewise.
37019         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37020         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37021
37022         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37023         macro.
37024         (HWCAP_ARM_LPAE): Likewise.
37025         (HWCAP_ARM_EVTSTRM): Likewise.
37026         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37027         Add vpfd32, lpae and evtstrm.
37028         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37029         Increase to 22.
37030
37031 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37032
37033         * math/auto-libm-test-in: Add tests of clog10.
37034         * math/auto-libm-test-out: Regenerated.
37035         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37036         * sysdeps/i386/fpu/libm-test-ulps: Update.
37037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37038
37039 2014-02-18  Andreas Schwab  <schwab@suse.de>
37040
37041         [BZ #16574]
37042         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37043         Store non-zero if the second buffer was newly allocated.
37044         (send_dg): Likewise.
37045         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37046         to send_vc and send_dg.
37047         (res_nsend): Pass NULL for ansp2_malloced.
37048         * resolv/res_query.c (__libc_res_nquery): Add parameter
37049         answerp2_malloced and pass it down to __libc_res_nsend.
37050         (res_nquery): Pass additional NULL to __libc_res_nquery.
37051         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37052         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37053         second answer buffer if answerp2_malloced was set.
37054         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37055         (__libc_res_nquerydomain): Add parameter
37056         answerp2_malloced and pass it down to __libc_res_nquery.
37057         (res_nquerydomain): Pass additional NULL to
37058         __libc_res_nquerydomain.
37059         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37060         additional NULL to __libc_res_nsend and __libc_res_nquery.
37061         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37062         additional NULL to __libc_res_nsearch.
37063         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37064         parameter of __libc_res_nsearch to check for separately allocated
37065         second buffer.
37066         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37067         __libc_res_nquery.
37068         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37069         additional NULL to __libc_res_nquery.
37070         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37071         __libc_res_nsearch.
37072         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37073         * include/resolv.h: Update prototypes of __libc_res_nquery,
37074         __libc_res_nsearch, __libc_res_nsend.
37075
37076 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37077
37078         * math/auto-libm-test-in: Add tests of fma.
37079         * math/auto-libm-test-out: Regenerated.
37080         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37081         (fma_towardzero_test_data): Likewise.
37082         (fma_downward_test_data): Likewise.
37083         (fma_upward_test_data): Likewise.
37084         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37085         mpc_mode.
37086         (rounding_modes): Add values for new field.
37087         (func_calc_method): Add value mpfr_fff_f.
37088         (func_calc_desc): Add mpfr_fff_f union field.
37089         (test_function): Add field exact_args.
37090         (FUNC): Add macro argument EXACT_ARGS.
37091         (FUNC_mpfr_f_f): Update call to FUNC.
37092         (FUNC_mpfr_f_f): Likewise.
37093         (FUNC_mpfr_ff_f): Likewise.
37094         (FUNC_mpfr_if_f): Likewise.
37095         (FUNC_mpc_c_f): Likewise.
37096         (FUNC_mpc_c_c): Likewise.
37097         (test_functions): Add fma.  Update calls to FUNC.
37098         (handle_input_arg): Add argument exact_args.
37099         (add_test): Update call to handle_input_arg.
37100         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37101         (output_for_one_input_case): Update call to calc_generic_results.
37102         Recalculate exact zero results in each rounding mode.
37103
37104         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37105         non-negative before setting low bit.
37106         * math/auto-libm-test-in: Mark one asin test possibly having
37107         spurious underflow.
37108         * math/auto-libm-test-out: Regenerated.
37109         * sysdeps/i386/fpu/libm-test-ulps: Update.
37110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37111
37112 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37113
37114         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37115         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37116         ports/sysdeps/unix/sysv/linux/microblaze.
37117         * README: Add missing listing for microblaze*-*-linux-gnu.
37118
37119 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37120
37121         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37122         duplicate code
37123
37124 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37125
37126         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37127         * sysdeps/unix/sysv/linux/ia64: Move directory from
37128         ports/sysdeps/unix/sysv/linux/ia64.
37129         * README: Update listing for ia64-*-linux-gnu.
37130
37131 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37132             Joseph Myers  <joseph@codesourcery.com>
37133
37134         * Makeconfig (test-name): New variable.
37135         (evaluate-test): Likewise.
37136         * Makerules (do-test-clean): Remove .test-result files.
37137         (common-mostlyclean): Likewise.
37138         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37139         * scripts/evaluate-test.sh: New file.
37140
37141 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37142
37143         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37144         separate $(objpfx)tst-fopenloc-cmp.out and
37145         $(objpfx)tst-fopenloc-mem.out targets.
37146         (tests): Update dependencies.
37147         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37148         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37149         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37150         (tst-rxspencer-no-utf8-ARGS): New variable.
37151         (tst-rxspencer-no-utf8-ENV): Likewise.
37152         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37153         instead of $(objpfx)tst-rxspencer-mem.
37154         ($(objpfx)tst-rxspencer-mem): Change target to
37155         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37156         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37157         * posix/tst-rxspencer-no-utf8.c: New file.
37158
37159         * elf/Makefile ($(objpfx)order.out): Remove rule.
37160         [$(run-built-tests) = yes] (tests): Depend on
37161         $(objpfx)order-cmp.out.
37162         ($(objpfx)order-cmp.out): New rule.
37163         [$(run-built-tests) = yes] (tests): Depend on
37164         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37165         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37166         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37167         $(objpfx)tst-array5-static-cmp.out.
37168         ($(objpfx)tst-array1.out): Remove rule.
37169         ($(objpfx)tst-array1-cmp.out): New rule.
37170         ($(objpfx)tst-array1-static.out): Remove rule.
37171         ($(objpfx)tst-array1-static-cmp.out): New rule.
37172         ($(objpfx)tst-array2.out): Remove rule.
37173         ($(objpfx)tst-array2-cmp.out): New rule.
37174         ($(objpfx)tst-array3.out): Remove rule.
37175         ($(objpfx)tst-array3-cmp.out): New rule.
37176         ($(objpfx)tst-array4.out): Remove rule.
37177         ($(objpfx)tst-array4-cmp.out): New rule.
37178         ($(objpfx)tst-array5.out): Remove rule.
37179         ($(objpfx)tst-array5-cmp.out): New rule.
37180         ($(objpfx)tst-array5-static.out): Remove rule.
37181         ($(objpfx)tst-array5-static-cmp.out): New rule.
37182         [$(run-built-tests) = yes] (tests): Depend on
37183         $(objpfx)order2-cmp.out.
37184         ($(objpfx)order2.out): Remove rule.
37185         ($(objpfx)order2-cmp.out): New rule.
37186         ($(objpfx)tst-initorder.out): Remove rule.
37187         [$(run-built-tests) = yes] (tests): Depend on
37188         $(objpfx)tst-initorder-cmp.out.
37189         ($(objpfx)tst-initorder-cmp.out): New rule.
37190         ($(objpfx)tst-initorder2.out): Remove rule.
37191         [$(run-built-tests) = yes] (tests): Depend on
37192         $(objpfx)tst-initorder2-cmp.out.
37193         ($(objpfx)tst-initorder2-cmp.out): New rule.
37194         [$(run-built-tests) = yes] (tests): Depend on
37195         $(objpfx)tst-unused-dep-cmp.out.
37196         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37197         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37198         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37199         on $(objpfx)tst-setvbuf1-cmp.out.
37200         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37201         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37202         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37203         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37204         ($(objpfx)tst-svc.out): Remove rule.
37205         ($(objpfx)tst-svc-cmp.out): New rule.
37206
37207 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37208
37209         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37210         * ctype/ctype.h [__USE_MISC]: Likewise.
37211         * dirent/dirent.h [__USE_MISC]: Likewise.
37212         * grp/grp.h [__USE_MISC]: Likewise.
37213         * io/fcntl.h [__USE_MISC]: Likewise.
37214         * io/sys/stat.h [__USE_MISC]: Likewise.
37215         * libio/stdio.h [__USE_MISC]: Likewise.
37216         * posix/unistd.h [__USE_MISC]: Likewise.
37217         * pwd/pwd.h [__USE_MISC]: Likewise.
37218         * stdlib.h [__USE_MISC]: Likewise.
37219         * string/bits/string2.h [__USE_MISC]: Likewise.
37220         * string/string.h [__USE_MISC]: Likewise.
37221         * time/time.h [__USE_MISC]: Likewise.
37222
37223 2014-02-13  Andreas Schwab  <schwab@suse.de>
37224
37225         [BZ #16574]
37226         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37227         second answer buffer if it was separately allocated.
37228
37229 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37230
37231         * sysdeps/mips/math-tests.h: Include <features.h>.
37232         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37233         (ROUNDING_TESTS_long_double): Do not define.
37234         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37235         (EXCEPTION_TESTS_long_double): Likewise.
37236         * sysdeps/mips/mips64/libm-test-ulps: Update.
37237
37238         * include/features.h (__USE_BSD): Remove macro definitions.
37239         (__USE_SVID): Likewise.
37240         (_BSD_SOURCE): Likewise.
37241         (_SVID_SOURCE): Likewise.
37242         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37243         from definition of _DEFAULT_SOURCE.
37244         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37245         [_DEFAULT_SOURCE].
37246         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37247         * bits/mman.h [__USE_BSD]: Likewise.
37248         * bits/termios.h [__USE_BSD]: Likewise.
37249         * bits/waitstatus.h [__USE_BSD]: Likewise.
37250         * ctype/ctype.h [__USE_SVID]: Likewise.
37251         * dirent/dirent.h [__USE_BSD]: Likewise.
37252         * grp/grp.h [__USE_SVID]: Likewise.
37253         [__USE_BSD]: Likewise.
37254         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37255         * io/fcntl.h [__USE_BSD]: Likewise.
37256         * io/ftw.h [__USE_BSD]: Likewise.
37257         * io/sys/stat.h [__USE_BSD]: Likewise.
37258         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37259         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37260         * libio/stdio.h [__USE_SVID]: Likewise.
37261         [__USE_BSD]: Likewise.
37262         * math/math.h [__USE_SVID]: Likewise.
37263         [__USE_BSD]: Likewise.
37264         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37265         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37266         * misc/search.h [__USE_SVID]: Likewise.
37267         * misc/sys/mman.h [__USE_BSD]: Likewise.
37268         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37269         * misc/sys/uio.h [__USE_BSD]: Likewise.
37270         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37271         * posix/glob.h [__USE_BSD]: Likewise.
37272         * posix/regex.h [__USE_BSD]: Likewise.
37273         * posix/sys/types.h [__USE_BSD]: Likewise.
37274         [__USE_SVID]: Likewise.
37275         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37276         * posix/sys/wait.h [__USE_BSD]: Likewise.
37277         [__USE_SVID]: Likewise.
37278         * posix/unistd.h [__USE_BSD]: Likewise.
37279         [__USE_SVID]: Likewise.
37280         * pwd/pwd.h [__USE_SVID]: Likewise.
37281         * resolv/netdb.h [__USE_BSD]: Likewise.
37282         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37283         * signal/signal.h [__USE_BSD]: Likewise.
37284         [__USE_SVID]: Likewise.
37285         * socket/sys/socket.h [__USE_BSD]: Likewise.
37286         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37287         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37288         [__USE_SVID]: Likewise.
37289         * string/bits/string2.h [__USE_BSD]: Likewise.
37290         [__USE_SVID]: Likewise.
37291         * string/bits/string3.h [__USE_BSD]: Likewise.
37292         * string/endian.h [__USE_BSD]: Likewise.
37293         * string/string.h [__USE_SVID]: Likewise.
37294         [__USE_BSD]: Likewise.
37295         * string/strings.h [__USE_BSD]: Likewise.
37296         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37297         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37298         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37299         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37300         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37301         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37302         Likewise.
37303         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37304         Likewise.
37305         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37306         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37307         Likewise.
37308         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37309         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37310         Likewise.
37311         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37312         Likewise.
37313         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37314         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37315         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37316         Likewise.
37317         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37318         Likewise.
37319         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37320         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37321         * termios/termios.h [__USE_BSD]: Likewise.
37322         * time/sys/time.h [__USE_BSD]: Likewise.
37323         * time/time.h [__USE_BSD]: Likewise.
37324         [__USE_SVID]: Likewise.
37325
37326         * Makefile (subdir_targets): Remove subdir_lint.out.
37327
37328         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37329         (do-tst-printf): Likewise.
37330         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37331         $(objpfx)tst-printf.out.
37332
37333         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37334
37335         * Makerules (check-abi-%): Change target to
37336         $(objpfx)check-abi-%.out.
37337         (check-abi target): Update dependencies.
37338         (check-abi-pattern variable): Redirect output of diff to $@.
37339         (check-abi variable): Likewise.
37340         * elf/Makefile (check-abi): Update dependencies.
37341
37342         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37343         unused.
37344         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37345         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37346         subnormal range.
37347         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37348         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37349         value has largest subnormal exponent.
37350         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37351         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37352         * sysdeps/aarch64/soft-fp/sfp-machine.h
37353         (_FP_TININESS_AFTER_ROUNDING): New macro.
37354         * sysdeps/alpha/soft-fp/sfp-machine.h
37355         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37356         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37357         Likewise.
37358         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37359         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37360         * sysdeps/mips/soft-fp/sfp-machine.h
37361         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37362         * sysdeps/powerpc/soft-fp/sfp-machine.h
37363         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37364         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37365         Likewise.
37366         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37367         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37368         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37369         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37370         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37371         Likewise.
37372
37373 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37374
37375         [BZ #16545]
37376         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37377         model 1.
37378
37379 2014-02-12  Richard Henderson  <rth@redhat.com>
37380
37381         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37382         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37383         * sysdeps/unix/sysv/linux/alpha: Move directory from
37384         ports/sysdeps/unix/sysv/linux/alpha.
37385         * README: Update listing for alpha-*-linux-gnu.
37386
37387 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37388
37389         * include/features.h: Update comment documenting feature test
37390         macros.
37391         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37392         _DEFAULT_SOURCE.
37393         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37394         (_SVID_SOURCE): Likewise.
37395         (_DEFAULT_SOURCE): Update description of default features.
37396         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37397         with _GNU_SOURCE.
37398         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37399         (S_ISVTX): Likewise.
37400         * manual/math.texi (Mathematical Constants): Likewise.
37401         * manual/signal.texi (Interrupted Primitives): Likewise.
37402         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37403         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37404         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37405         Don't refer to _SVID_SOURCE in warning text.
37406
37407         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37408
37409         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37410         already defined.
37411         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37412         * sysdeps/mips/dl-lookup.c: Remove.
37413         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37414
37415 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37416
37417         [BZ #16447]
37418         * math/auto-libm-test-in: Add testcase for expl.
37419         * math/auto-libm-test-out: Regenerate.
37420         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37421         calculation of unsafe.
37422         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37423
37424 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37425
37426         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37427         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37428         ports/sysdeps/unix/sysv/linux/aarch64.
37429         * README: Update listing for aarch64*-*-linux-gnu.
37430
37431 2014-02-11  Will Newton  <will.newton@linaro.org>
37432
37433         * manual/probes.texi (Mathematical Function Probes): Use
37434         "triggered" instead of "hit".
37435
37436         * manual/probes.texi (Internal Probes): Add documentation
37437         of setjmp, longjmp and longjmp_target probes.
37438
37439         * include/stap-probe.h: Add comment about probe argument
37440         format.
37441
37442         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37443         definition.  (tr_where, tr_freehook, tr_mallochook,
37444         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37445
37446 2014-02-11  David S. Miller  <davem@davemloft.net>
37447
37448         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37449         processing int_tests.
37450
37451 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37452
37453         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37454         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37455         * sysdeps/unix/sysv/linux/mips: Move directory from
37456         ports/sysdeps/unix/sysv/linux/mips.
37457         * README: Update listing for mips-*-linux-gnu and
37458         mips64-*-linux-gnu.
37459
37460 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37461
37462         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37463         * sysdeps/unix/sysv/linux/m68k: Move directory from
37464         ports/sysdeps/unix/sysv/linux/m68k.
37465         * README: Update listing for m68k-*-linux-gnu.
37466
37467 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37468
37469         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37470         * sysdeps/unix/sysv/linux/generic: Move directory from
37471         ports/sysdeps/unix/sysv/linux/generic.
37472         * sysdeps/unix/sysv/linux/tile: Move directory from
37473         ports/sysdeps/unix/sysv/linux/tile.
37474         * README: Update listing for tile*-*-linux-gnu.
37475
37476 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37477
37478         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37479         __builtin_expect.
37480         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37481         * catgets/open_catalog.c (__open_catalog): Likewise.
37482         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37483         * debug/confstr_chk.c: Likewise.
37484         * debug/fread_chk.c (__fread_chk): Likewise.
37485         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37486         * debug/getgroups_chk.c: Likewise.
37487         * debug/mbsnrtowcs_chk.c: Likewise.
37488         * debug/mbsrtowcs_chk.c: Likewise.
37489         * debug/mbstowcs_chk.c: Likewise.
37490         * debug/memcpy_chk.c: Likewise.
37491         * debug/memmove_chk.c: Likewise.
37492         * debug/mempcpy_chk.c: Likewise.
37493         * debug/memset_chk.c: Likewise.
37494         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37495         * debug/strcat_chk.c (__strcat_chk): Likewise.
37496         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37497         * debug/strncat_chk.c (__strncat_chk): Likewise.
37498         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37499         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37500         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37501         * debug/wcpncpy_chk.c: Likewise.
37502         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37503         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37504         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37505         * debug/wcsncpy_chk.c: Likewise.
37506         * debug/wcsnrtombs_chk.c: Likewise.
37507         * debug/wcsrtombs_chk.c: Likewise.
37508         * debug/wcstombs_chk.c: Likewise.
37509         * debug/wmemcpy_chk.c: Likewise.
37510         * debug/wmemmove_chk.c: Likewise.
37511         * debug/wmempcpy_chk.c: Likewise.
37512         * debug/wmemset_chk.c: Likewise.
37513         * dirent/scandirat.c (SCANDIRAT): Likewise.
37514         * dlfcn/dladdr1.c (dladdr1): Likewise.
37515         * dlfcn/dladdr.c (dladdr): Likewise.
37516         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37517         * dlfcn/dlerror.c (__dlerror): Likewise.
37518         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37519         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37520         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37521         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37522         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37523         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37524         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37525         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37526         Likewise.
37527         * elf/dl-conflict.c: Likewise.
37528         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37529         * elf/dl-dst.h: Likewise.
37530         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37531         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37532         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37533         * elf/dl-init.c (call_init, _dl_init): Likewise.
37534         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37535         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37536         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37537         Likewise.
37538         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37539         Likewise.
37540         * elf/dl-minimal.c (__libc_memalign): Likewise.
37541         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37542         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37543         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37544         * elf/dl-sym.c (do_sym): Likewise.
37545         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37546         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37547         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37548         * elf/dl-writev.h (_dl_writev): Likewise.
37549         * elf/ldconfig.c (search_dir): Likewise.
37550         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37551         (dl_main): Likewise.
37552         * elf/setup-vdso.h (setup_vdso): Likewise.
37553         * grp/compat-initgroups.c (compat_call): Likewise.
37554         * grp/fgetgrent.c (fgetgrent): Likewise.
37555         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37556         * grp/putgrent.c (putgrent): Likewise.
37557         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37558         Likewise.
37559         * hurd/hurdinit.c: Likewise.
37560         * iconvdata/8bit-gap.c (struct): Likewise.
37561         * iconvdata/ansi_x3.110.c : Likewise.
37562         * iconvdata/big5.c : Likewise.
37563         * iconvdata/big5hkscs.c : Likewise.
37564         * iconvdata/cp1255.c: Likewise.
37565         * iconvdata/cp1258.c : Likewise.
37566         * iconvdata/cp932.c : Likewise.
37567         * iconvdata/euc-cn.c: Likewise.
37568         * iconvdata/euc-jisx0213.c : Likewise.
37569         * iconvdata/euc-jp.c: Likewise.
37570         * iconvdata/euc-jp-ms.c : Likewise.
37571         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37572         * iconvdata/gb18030.c : Likewise.
37573         * iconvdata/gbbig5.c (const): Likewise.
37574         * iconvdata/gbgbk.c: Likewise.
37575         * iconvdata/gbk.c : Likewise.
37576         * iconvdata/ibm1364.c : Likewise.
37577         * iconvdata/ibm930.c : Likewise.
37578         * iconvdata/ibm932.c: Likewise.
37579         * iconvdata/ibm933.c : Likewise.
37580         * iconvdata/ibm935.c : Likewise.
37581         * iconvdata/ibm937.c : Likewise.
37582         * iconvdata/ibm939.c : Likewise.
37583         * iconvdata/ibm943.c: Likewise.
37584         * iconvdata/iso_11548-1.c: Likewise.
37585         * iconvdata/iso-2022-cn.c : Likewise.
37586         * iconvdata/iso-2022-cn-ext.c : Likewise.
37587         * iconvdata/iso-2022-jp-3.c: Likewise.
37588         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37589         * iconvdata/iso-2022-kr.c : Likewise.
37590         * iconvdata/iso646.c (gconv_end): Likewise.
37591         * iconvdata/iso_6937-2.c : Likewise.
37592         * iconvdata/iso_6937.c : Likewise.
37593         * iconvdata/iso8859-1.c: Likewise.
37594         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37595         * iconvdata/shift_jisx0213.c : Likewise.
37596         * iconvdata/sjis.c : Likewise.
37597         * iconvdata/t.61.c : Likewise.
37598         * iconvdata/tcvn5712-1.c : Likewise.
37599         * iconvdata/tscii.c: Likewise.
37600         * iconvdata/uhc.c : Likewise.
37601         * iconvdata/unicode.c (gconv_end): Likewise.
37602         * iconvdata/utf-16.c (gconv_end): Likewise.
37603         * iconvdata/utf-32.c (gconv_end): Likewise.
37604         * iconvdata/utf-7.c (base64): Likewise.
37605         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37606         * iconv/gconv_close.c (__gconv_close): Likewise.
37607         * iconv/gconv_open.c (__gconv_open): Likewise.
37608         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37609         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37610         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37611         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37612         (ucs4le_internal_loop_single): Likewise.
37613         * iconv/iconv.c (iconv): Likewise.
37614         * iconv/iconv_close.c: Likewise.
37615         * iconv/loop.c (SINGLE): Likewise.
37616         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37617         * include/atomic.h: Likewise.
37618         * inet/inet6_option.c (option_alloc): Likewise.
37619         * intl/bindtextdom.c (set_binding_values): Likewise.
37620         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37621         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37622         * intl/localealias.c (read_alias_file): Likewise.
37623         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37624         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37625         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37626         * libio/fmemopen.c (fmemopen): Likewise.
37627         * libio/iofgets.c (_IO_fgets): Likewise.
37628         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37629         * libio/iofgetws.c (fgetws): Likewise.
37630         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37631         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37632         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37633         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37634         * locale/findlocale.c (_nl_find_locale): Likewise.
37635         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37636         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37637         Likewise.
37638         * locale/setlocale.c (setlocale): Likewise.
37639         * login/programs/pt_chown.c (main): Likewise.
37640         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37641         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37642         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37643         (mmap, mmap64, mremap, munmap): Likewise.
37644         * math/e_exp2l.c: Likewise.
37645         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37646         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37647         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37648         * math/s_catan.c (__catan): Likewise.
37649         * math/s_catanf.c (__catanf): Likewise.
37650         * math/s_catanh.c (__catanh): Likewise.
37651         * math/s_catanhf.c (__catanhf): Likewise.
37652         * math/s_catanhl.c (__catanhl): Likewise.
37653         * math/s_catanl.c (__catanl): Likewise.
37654         * math/s_ccosh.c (__ccosh): Likewise.
37655         * math/s_ccoshf.c (__ccoshf): Likewise.
37656         * math/s_ccoshl.c (__ccoshl): Likewise.
37657         * math/s_cexp.c (__cexp): Likewise.
37658         * math/s_cexpf.c (__cexpf): Likewise.
37659         * math/s_cexpl.c (__cexpl): Likewise.
37660         * math/s_clog10.c (__clog10): Likewise.
37661         * math/s_clog10f.c (__clog10f): Likewise.
37662         * math/s_clog10l.c (__clog10l): Likewise.
37663         * math/s_clog.c (__clog): Likewise.
37664         * math/s_clogf.c (__clogf): Likewise.
37665         * math/s_clogl.c (__clogl): Likewise.
37666         * math/s_csin.c (__csin): Likewise.
37667         * math/s_csinf.c (__csinf): Likewise.
37668         * math/s_csinh.c (__csinh): Likewise.
37669         * math/s_csinhf.c (__csinhf): Likewise.
37670         * math/s_csinhl.c (__csinhl): Likewise.
37671         * math/s_csinl.c (__csinl): Likewise.
37672         * math/s_csqrt.c (__csqrt): Likewise.
37673         * math/s_csqrtf.c (__csqrtf): Likewise.
37674         * math/s_csqrtl.c (__csqrtl): Likewise.
37675         * math/s_ctan.c (__ctan): Likewise.
37676         * math/s_ctanf.c (__ctanf): Likewise.
37677         * math/s_ctanh.c (__ctanh): Likewise.
37678         * math/s_ctanhf.c (__ctanhf): Likewise.
37679         * math/s_ctanhl.c (__ctanhl): Likewise.
37680         * math/s_ctanl.c (__ctanl): Likewise.
37681         * math/w_pow.c: Likewise.
37682         * math/w_powf.c: Likewise.
37683         * math/w_powl.c: Likewise.
37684         * math/w_scalb.c (sysv_scalb): Likewise.
37685         * math/w_scalbf.c (sysv_scalbf): Likewise.
37686         * math/w_scalbl.c (sysv_scalbl): Likewise.
37687         * misc/error.c (error_tail): Likewise.
37688         * misc/pselect.c (__pselect): Likewise.
37689         * nis/nis_callback.c (__nis_create_callback): Likewise.
37690         * nis/nis_call.c (__nisfind_server): Likewise.
37691         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37692         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37693         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37694         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37695         * nis/nis_lookup.c (nis_lookup): Likewise.
37696         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37697         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37698         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37699         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37700         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37701         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37702         * nis/nss_compat/compat-initgroups.c (add_group)
37703         (internal_getgrent_r): Likewise.
37704         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37705         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37706         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37707         (internal_getspnam_r): Likewise.
37708         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37709         (_nss_nis_getaliasbyname_r): Likewise.
37710         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37711         (_nss_nis_getntohost_r): Likewise.
37712         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37713         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37714         (_nss_nis_getgrgid_r): Likewise.
37715         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37716         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37717         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37718         (_nss_nis_gethostbyname4_r): Likewise.
37719         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37720         (initgroups_netid): Likewise.
37721         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37722         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37723         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37724         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37725         (_nss_nis_getprotobynumber_r): Likewise.
37726         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37727         (_nss_nis_getsecretkey): Likewise.
37728         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37729         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37730         (_nss_nis_getpwuid_r): Likewise.
37731         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37732         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37733         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37734         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37735         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37736         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37737         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37738         Likewise.
37739         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37740         (_nss_nisplus_getntohost_r): Likewise.
37741         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37742         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37743         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37744         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37745         Likewise.
37746         * nis/nss_nisplus/nisplus-initgroups.c
37747         (_nss_nisplus_initgroups_dyn): Likewise.
37748         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37749         (_nss_nisplus_getnetbyaddr_r): Likewise.
37750         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37751         (_nss_nisplus_getprotobynumber_r): Likewise.
37752         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37753         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37754         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37755         Likewise.
37756         * nis/nss_nisplus/nisplus-service.c
37757         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37758         (_nss_nisplus_getservbyport_r): Likewise.
37759         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37760         (_nss_nisplus_getspnam_r): Likewise.
37761         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37762         Likewise.
37763         * nscd/aicache.c (addhstaiX): Likewise.
37764         * nscd/cache.c (cache_search, prune_cache): Likewise.
37765         * nscd/connections.c (register_traced_file, send_ro_fd)
37766         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37767         (main_loop_epoll): Likewise.
37768         * nscd/grpcache.c (addgrbyX): Likewise.
37769         * nscd/hstcache.c (addhstbyX): Likewise.
37770         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37771         * nscd/mem.c (gc, mempool_alloc): Likewise.
37772         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37773         (addinnetgrX): Likewise.
37774         * nscd/nscd-client.h (__nscd_acquire_maplock)
37775         (__nscd_drop_map_ref): Likewise.
37776         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37777         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37778         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
37779         Likewise.
37780         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37781         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37782         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
37783         (__nscd_get_map_ref): Likewise.
37784         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37785         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
37786         Likewise.
37787         * nscd/pwdcache.c (addpwbyX): Likewise.
37788         * nscd/selinux.c (preserve_capabilities): Likewise.
37789         * nscd/servicescache.c (addservbyX): Likewise.
37790         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
37791         * posix/fnmatch.c (fnmatch): Likewise.
37792         * posix/getopt.c (_getopt_internal_r): Likewise.
37793         * posix/glob.c (glob, glob_in_dir): Likewise.
37794         * posix/wordexp.c (exec_comm_child): Likewise.
37795         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
37796         (getanswer_r, gaih_getanswer_slice): Likewise.
37797         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
37798         * resolv/res_init.c: Likewise.
37799         * resolv/res_mkquery.c (res_nmkquery): Likewise.
37800         * resolv/res_query.c (__libc_res_nquery): Likewise.
37801         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
37802         Likewise.
37803         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
37804         * stdio-common/perror.c (perror): Likewise.
37805         * stdio-common/printf_fp.c (___printf_fp): Likewise.
37806         * stdio-common/tmpnam.c (tmpnam): Likewise.
37807         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
37808         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
37809         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
37810         Likewise.
37811         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
37812         * stdlib/putenv.c (putenv): Likewise.
37813         * stdlib/setenv.c (__add_to_environ): Likewise.
37814         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
37815         * stdlib/strtol_l.c (INTERNAL): Likewise.
37816         * string/memmem.c (memmem): Likewise.
37817         * string/strerror.c (strerror): Likewise.
37818         * string/strnlen.c (__strnlen): Likewise.
37819         * string/test-memmem.c (simple_memmem): Likewise.
37820         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
37821         * sunrpc/pm_getport.c (__get_socket): Likewise.
37822         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
37823         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
37824         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
37825         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
37826         Likewise.
37827         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
37828         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37829         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37830         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
37831         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37832         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
37833         Likewise.
37834         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
37835         Likewise.
37836         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37837         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37838         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
37839         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37840         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
37841         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
37842         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37843         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
37844         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37845         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
37846         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37847         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
37848         Likewise.
37849         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
37850         Likewise.
37851         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
37852         Likewise.
37853         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
37854         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
37855         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
37856         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
37857         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
37858         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
37859         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
37860         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
37861         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
37862         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
37863         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
37864         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
37865         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
37866         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
37867         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
37868         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37869         Likewise.
37870         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
37871         Likewise.
37872         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
37873         Likewise.
37874         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
37875         Likewise.
37876         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
37877         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
37878         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
37879         Likewise.
37880         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
37881         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
37882         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37883         * sysdeps/posix/sleep.c: Likewise.
37884         * sysdeps/posix/tempname.c: Likewise.
37885         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
37886         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
37887         Likewise.
37888         * sysdeps/powerpc/powerpc32/dl-machine.h
37889         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
37890         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
37891         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
37892         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
37893         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
37894         Likewise.
37895         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
37896         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
37897         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37898         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
37899         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37900         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
37901         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
37902         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
37903         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
37904         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
37905         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
37906         (elf_machine_lazy_rel): Likewise.
37907         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
37908         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
37909         (elf_machine_lazy_rel): Likewise.
37910         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
37911         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
37912         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
37913         * sysdeps/unix/grantpt.c (grantpt): Likewise.
37914         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
37915         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
37916         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37917         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37918         Likewise.
37919         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
37920         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
37921         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
37922         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
37923         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
37924         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
37925         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
37926         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
37927         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
37928         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
37929         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
37930         Likewise.
37931         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
37932         (__posix_fallocate64_l64): Likewise.
37933         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
37934         (posix_fallocate): Likewise.
37935         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
37936         Likewise.
37937         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37938         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
37939         (getifaddrs_internal): Likewise.
37940         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
37941         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
37942         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
37943         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
37944         * sysdeps/unix/sysv/linux/posix_fallocate64.c
37945         (__posix_fallocate64_l64): Likewise.
37946         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
37947         Likewise.
37948         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
37949         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
37950         (__get_clockfreq): Likewise.
37951         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
37952         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
37953         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
37954         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37955         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37956         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
37957         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
37958         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
37959         Likewise.
37960         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
37961         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
37962         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
37963         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
37964         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37965         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
37966         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
37967         Likewise.
37968         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
37969         (posix_fallocate): Likewise.
37970         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37971         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
37972         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
37973         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
37974         (elf_machine_rela, elf_machine_rela_relative)
37975         (elf_machine_lazy_rel): Likewise.
37976         * time/asctime.c (asctime_internal): Likewise.
37977         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
37978         * time/tzset.c (__tzset_parse_tz): Likewise.
37979         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
37980         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
37981         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
37982         * wcsmbs/wcsmbsload.h: Likewise.
37983
37984         [BZ #15894]
37985         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
37986
37987         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
37988         (arena_get2): Remove THREAD_STATS conditionals.
37989         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
37990         (__malloc_stats, int): Likewise.
37991
37992 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
37993
37994         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
37995         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
37996
37997         * manual/setjmp.texi: Fix typos/grammar errors.
37998
37999         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38000         Only return early when n is <= 0.  Delete unused return statement.
38001
38002         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38003         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38004         * debug/tst-longjmp_chk3.c: New file.
38005
38006         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38007         (test_main): Replace code with set_fortify_handler call.
38008         * debug/test-strcpy_chk.c: Likewise.
38009         * debug/tst-chk1.c: Likewise.
38010         * debug/tst-longjmp_chk.c: Likewise.
38011         * test-skeleton.c: Include fcntl.h & paths.h
38012         (set_fortify_handler): Define.
38013
38014         * debug/tst-longjmp_chk.c: Add header comment and include
38015         ../test-skeleton.c.
38016         (do_test): Mark static.
38017         (TEST_FUNCTION): Define.
38018
38019         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38020         (IP_PMTUDISC_INTERFACE): Likewise.
38021         (IP_MULTICAST_IF): Likewise.
38022         (IP_MULTICAST_TTL): Likewise.
38023         (IP_MULTICAST_LOOP): Likewise.
38024         (IP_ADD_MEMBERSHIP): Likewise.
38025         (IP_DROP_MEMBERSHIP): Likewise.
38026         (IP_UNBLOCK_SOURCE): Likewise.
38027         (IP_BLOCK_SOURCE): Likewise.
38028         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38029         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38030         (IP_MSFILTER): Likewise.
38031         (MCAST_JOIN_GROUP): Likewise.
38032         (MCAST_BLOCK_SOURCE): Likewise.
38033         (MCAST_UNBLOCK_SOURCE): Likewise.
38034         (MCAST_LEAVE_GROUP): Likewise.
38035         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38036         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38037         (MCAST_MSFILTER): Likewise.
38038         (IP_MULTICAST_ALL): Likewise.
38039         (IP_UNICAST_IF): Likewise.
38040
38041         * timezone/Makefile: Delete $(have-ksh) check.
38042         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38043         * timezone/tzselect.ksh: Add +x mode bits.
38044
38045         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38046         (ANON_INODE_FS_MAGIC): Likewise.
38047         (BDEVFS_MAGIC): Likewise.
38048         (BINFMTFS_MAGIC): Likewise.
38049         (BTRFS_TEST_MAGIC): Likewise.
38050         (CRAMFS_MAGIC_WEND): Likewise.
38051         (DEBUGFS_MAGIC): Likewise.
38052         (ECRYPTFS_SUPER_MAGIC): Likewise.
38053         (EXT3_SUPER_MAGIC): Likewise.
38054         (EXT4_SUPER_MAGIC): Likewise.
38055         (FUTEXFS_SUPER_MAGIC): Likewise.
38056         (HOSTFS_SUPER_MAGIC): Likewise.
38057         (HUGETLBFS_MAGIC): Likewise.
38058         (MINIX3_SUPER_MAGIC): Likewise.
38059         (MTD_INODE_FS_MAGIC): Likewise.
38060         (NILFS_SUPER_MAGIC): Likewise.
38061         (OPENPROM_SUPER_MAGIC): Likewise.
38062         (PIPEFS_MAGIC): Likewise.
38063         (PSTOREFS_MAGIC): Likewise.
38064         (QNX6_SUPER_MAGIC): Likewise.
38065         (RAMFS_MAGIC): Likewise.
38066         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38067         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38068         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38069         (SECURITYFS_MAGIC): Likewise.
38070         (SELINUX_MAGIC): Likewise.
38071         (SMACK_MAGIC): Likewise.
38072         (SOCKFS_MAGIC): Likewise.
38073         (SQUASHFS_MAGIC): Likewise.
38074         (STACK_END_MAGIC): Likewise.
38075         (TMPFS_MAGIC): Likewise.
38076         (USBDEVICE_SUPER_MAGIC): Likewise.
38077         (V9FS_MAGIC): Likewise.
38078         (XENFS_SUPER_MAGIC): Likewise.
38079         (CRAMFS_MAGIC): Fix typo in comment.
38080         (EXT2_SUPER_MAGIC): Update comment.
38081         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38082
38083 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38084
38085         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38086         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38087         * sysdeps/unix/sysv/linux/arm: Move directory from
38088         ports/sysdeps/unix/sysv/linux/arm.
38089         * README: Update listing for arm-*-linux-gnueabi.
38090
38091         * README: Remove mention of am33.
38092
38093 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38094
38095         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38096         than the comma operator, to avoid "rhs of comma has no effect"
38097         compiler warnings.
38098         (__sigfillset, __sigandset, __sigorset): Likewise.
38099         * include/signal.h (__sigemptyset): Likewise.
38100         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38101
38102 2014-02-07  Allan McRae  <allan@archlinux.org>
38103
38104         * version.h (RELEASE): Set to "development".
38105         (VERSION): Set to "2.19.90"
38106         * NEWS: Add 2.20 section.
38107
38108 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38109
38110         [BZ #16529]
38111         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38112
38113 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38114
38115         * manual/contrib.texi: Update entry for Carlos O'Donell,
38116         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38117
38118 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38119
38120         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38121
38122         * sysdeps/unix/sysv/linux/kernel-features.h
38123         [__LINUX_KERNEL_VERSION >= 0x020621]
38124         (__ASSUME_PROC_PID_TASK_COMM): Define.
38125
38126 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38127
38128         [BZ #16398]
38129         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38130         conversion when destination buffer does not have enough space.
38131         * libio/tst-ftell-partial-wide.c: New test case.
38132         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38133
38134         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38135         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38136         Leonard and Allan McRae.
38137
38138 2014-02-04  David S. Miller  <davem@davemloft.net>
38139
38140         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38141         32-bit.
38142
38143 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38144
38145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38146         New file
38147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38148         New file
38149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38150         New file.
38151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38152         New file.
38153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38154         New file.
38155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38156         New file.
38157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38158         New file.
38159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38160         New file.
38161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38162         New file.
38163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38164         New file.
38165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38166         New file.
38167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38168         New file.
38169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38170         New file.
38171
38172 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38173
38174         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38175         * shlib-versions: Likewise.
38176
38177 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38178             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38179
38180         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38181         (abilist-pattern): New variable, set to %-le.abilist.
38182
38183         * Makerules (abilist-pattern): New variable.
38184         (vpath): Use $(abilist-pattern) in place of %.abilist.
38185         (check-abi-% pattern rule): Likewise.
38186         (check-abi, update-abi): Likewise.
38187
38188 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38189
38190         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38191
38192 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38193
38194         * manual/startup.texi: Add next, previous, and top entries for
38195         the `Program Arguments' and `Environment Variables' nodes.
38196
38197 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38198
38199         * manual/macros.texi: Add comments before MTASC-safety macros.
38200
38201         * manual/users.texi: Document MTASC-safety properties.
38202
38203         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38204         (pthread_getspecific, pthread_setspecific): Format with
38205         @deftypefun, and add @safety note.
38206         * manual/signal.texi: Move comments that analyze the above
38207         functions to their home place.
38208
38209 2014-02-03  Allan McRae  <allan@archlinux.org>
38210
38211         * po/sl.po: Update Slovenian translation from translation project.
38212
38213 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38214
38215         * manual/time.texi (timegm): Add missing blank after @c.
38216         Reported by Joseph Myers <joseph@codesourcery.com>.
38217
38218 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38219
38220         * manual/check-safety.sh: New.
38221         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38222
38223         * manual/terminal.texi: Document MTASC-safety properties.
38224
38225         * manual/filesys.texi: Document MTASC-safety properties.
38226
38227         * manual/errno.texi: Document MTASC-safety properties.
38228
38229         * manual/intro.texi: Document safety identifiers and
38230         conditionals.
38231
38232         * manual/string.texi (wcstok): Fix prototype.
38233         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38234
38235         * manual/time.texi: Document MTASC-safety properties.
38236
38237         * manual/string.texi: Document MTASC-safety properties.
38238
38239         * manual/threads.texi: Document MTASC-safety properties.
38240
38241         * manual/stdio.texi: Document MTASC-safety properties.
38242
38243         * manual/syslog.texi: Document MTASC-safety properties.
38244
38245         * manual/sysinfo.texi: Document MTASC-safety properties.
38246
38247         * manual/startup.texi: Document MTASC-safety properties.
38248
38249         * manual/socket.texi: Document MTASC-safety properties.
38250
38251         * manual/signal.texi: Document MTASC-safety properties.
38252
38253 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38254
38255         * manual/setjmp.texi: Document MTASC-safety properties.
38256
38257         * manual/search.texi: Document MTASC-safety properties.
38258
38259         * manual/resource.texi: Document MTASC-safety properties.
38260
38261         * manual/process.texi: Document MTASC-safety properties.
38262
38263         * manual/platform.texi: Document MTASC-safety properties.
38264
38265         * manual/pipe.texi: Document MTASC-safety properties.
38266
38267         * manual/pattern.texi: Document MTASC-safety properties.
38268
38269         * manual/message.texi: Document MTASC-safety properties.
38270
38271         [BZ #12751]
38272         * manual/memory.texi: Document MTASC-safety properties.
38273
38274         * manual/math.texi: Document MTASC-safety properties.
38275
38276         * manual/locale.texi: Document MTASC-safety properties.
38277
38278         * manual/llio.texi: Document MTASC-safety properties.
38279
38280         * manual/libdl.texi: New.
38281
38282         * manual/lang.texi: Document MTASC-safety properties.
38283
38284         * manual/job.texi: Document MTASC-safety properties.
38285
38286         * manual/getopt.texi: Document MTASC-safety properties.
38287
38288         * manual/ctype.texi: Document MTASC-safety properties.
38289
38290 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38291
38292         [BZ #16046]
38293         * csu/libc-tls.c (static_map): Remove variable.
38294         (__libc_setup_tls): Use main executable's link map for TLS data.
38295         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38296         casing for LM_ID_BASE and GL(dl_nns).
38297         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38298         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38299         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38300         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38301         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38302         member.
38303         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38304         l_phnum members.
38305
38306 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38307
38308         * manual/debug.texi: Document MTASC-safety properties.
38309
38310 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38311
38312         [BZ #16510]
38313         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38314         of __x86_64__ when disabling x87 inline functions.
38315
38316 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38317
38318         * manual/charset.texi: Document MTASC-safety properties.
38319
38320         * manual/crypt.texi: Document MTASC-safety properties.
38321
38322         * manual/conf.texi: Document MTASC-safety properties.
38323
38324         * manual/arith.texi: Document MTASC-safety properties.
38325
38326         * manual/argp.texi: Document MTASC-safety properties.
38327
38328         * manual/macros.texi: Introduce macros to document multi
38329         thread, asynchronous signal and asynchronous cancellation
38330         safety properties.
38331         * manual/intro.texi: Introduce the properties themselves.
38332
38333 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38334
38335         * sysdeps/sh/sh4/Makefile: New file.
38336
38337 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38338
38339         * math/gen-libm-test.pl ($srcdir): New variable.
38340         ($auto_input): Use it.
38341
38342 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38343
38344         [BZ #16506]
38345         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38346         access beyond array bounds when parsing netgroups file.
38347
38348         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38349         the old buffer before realloc.
38350
38351 2014-01-27  Allan McRae  <allan@archlinux.org>
38352
38353         * po/fr.po: Update French translation from translation project.
38354
38355 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38356
38357         * sysdeps/sh/libm-test-ulps: Regenerate.
38358
38359 2014-01-24  David S. Miller  <davem@davemloft.net>
38360
38361         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38362
38363 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38364
38365         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38366         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38367
38368 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38369
38370         [BZ #16474]
38371         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38372         string pointers after reallocation.
38373
38374 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38375
38376         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38377         __SH4A__ instead of __SH_FPU_ANY__.
38378
38379 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38380
38381         * sysdeps/sh/fpu_control.h: New file.
38382         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38383         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38384         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38385         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38386         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38387         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38388         * sysdeps/sh/sys/ucontext.h: Remove.
38389         * sysdeps/sh/sys: Remove directory.
38390
38391 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38392
38393         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38394         s390/sys/ucontext.h.
38395         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38396         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38397
38398 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38399
38400         [BZ #15605]
38401         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38402
38403 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38404
38405         [BZ#16431]
38406         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38407         Adjust the vDSO correctly for internal calls.
38408         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38409
38410 2014-01-20  Allan McRae  <allan@archlinux.org>
38411
38412         * po/ca.po: Update Catalan translation from translation project.
38413
38414 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38415
38416         * sysdeps/s390/sotruss-lib.c: New file.
38417
38418 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38419
38420         [BZ#16430]
38421         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38422         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38423         local calls issues by not having a PLT stub required for IFUNC calls.
38424         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38425
38426 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38427
38428         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38429         * math/test-fpucw-static.c: Likewise.
38430
38431 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38432
38433         [BZ #16453]
38434         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38435
38436 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38437
38438         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38439         implementation for powerpc.
38440
38441 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38442
38443         [BZ #14782]
38444         * sysdeps/posix/system.c (__libc_system): Do not enable
38445         asynchronous cancellation.
38446
38447 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38448
38449         [BZ #16427]
38450         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38451         handling only for numbers special also in the IEEE case.
38452
38453 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38454
38455         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38456
38457 2014-01-11  Allan McRae  <allan@archlinux.org>
38458
38459         * po/bg.po: Update Bulgarian translation from translation project.
38460
38461         * po/de.po: Update German translation from translation project.
38462
38463 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38464
38465         * sysdeps/generic/gcc-compat.h: New file.
38466
38467 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38468
38469         * benchtests/asin-inputs: Correct slow inputs.
38470         * benchtests/acos-inputs: Likewise.
38471
38472 2014-01-10  Allan McRae  <allan@archlinux.org>
38473
38474         * po:sv.po: Update Swedish translation from translation project.
38475
38476         * po/vi.po: Update Vietnamese translation from translation project.
38477
38478         * po/eo.po: Update Esperanto translation from translation project.
38479
38480         * po/cs.po: Update Czech translation from translation project.
38481
38482         * po/nl.po: Update Dutch translation from translation project.
38483
38484         * po/pl.po: Update Polish translation from translation project.
38485
38486         * po/ru.po: Update Russian translation from translation project.
38487
38488         * po/uk.po: Update Ukrainian translation from translation project.
38489
38490 2014-01-08  Brooks Moses  <bmoses@google.com>
38491
38492         * elf/dl-load.c: Fix comment typo.
38493
38494 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38495
38496         * po/header.pot: Rename to...
38497         * po/pot.header: ... this.
38498         * po/Makefile: Use pot.header.
38499
38500 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38501             Maxim Kuvyrkov  <maxim@kugelworks.com>
38502
38503         [BZ #16394]
38504         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38505         SRC and DEST against LEN.
38506
38507 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38508
38509         [BZ #16414]
38510         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38511         implementation.
38512         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38513
38514 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38515
38516         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38517
38518 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38519
38520         [BZ #16408]
38521         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38522         for large positive arguments.
38523
38524 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38525
38526         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38527
38528         * math/auto-libm-test-in: Mark various tests with
38529         xfail-rounding:ldbl-128ibm.
38530         * math/auto-libm-test-out: Regenerated.
38531
38532         [BZ #16407]
38533         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38534         Increase overflow threshold.
38535
38536 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38537
38538         [BZ #14286]
38539         * stdio-common/vfprintf.c: Check for integer overflow.
38540
38541 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38542
38543         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38544         the first argument and return value of __tls_get_addr_internal.
38545
38546 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38547
38548         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38549         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38550
38551 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38552
38553         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38554         * sysdeps/s390/rtld-global-offsets.sym: New file.
38555         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38556         GLIBC_2.19 symbol.
38557         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38558         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38559         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38560         ... this.
38561         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38562         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38563         ... this.
38564         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38565         Regenerate.
38566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38567         Regenerate.
38568         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38569         halfs of GPRs for high_gprs contexts.
38570         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38571         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38572         field.
38573         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38574         uc_flags field.
38575         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38576         64 bit versions:
38577         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38578         for high GPRs (uc_high_gprs) and for future extensions
38579         (__reserved).
38580         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38581         for future extensions (__reserved).
38582         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38583         64 bit versions:
38584         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38585         SC_HIGHGPRS offset definition.
38586         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38587         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38588
38589         * Versions.def: Add GLIBC_2.19 for libpthread.
38590         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38591         siglongjmp for libpthread with GLIBC_2.19 symver.
38592         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38593         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38594         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38595         * sysdeps/s390/__longjmp.c: New file.
38596         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38597         * sysdeps/s390/longjmp.c: New file.
38598         * sysdeps/s390/setjmp.S: New file.
38599         * sysdeps/s390/sigjmp.S: New file.
38600         * sysdeps/s390/v1-longjmp.c: New file.
38601         * sysdeps/s390/v1-setjmp.h: New file.
38602         * sysdeps/s390/v1-sigjmp.c: New file.
38603         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38604         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38605         GLIBC_2.19 version.
38606         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38607         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38608         versioned symbols for ____longjmp_chk.
38609         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38610         Likewise.
38611         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38612         Regenerate.
38613         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38614         Regenerate.
38615         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38616         Regenerate.
38617         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38618         Regenerate.
38619         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38620         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38621         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38622         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38623         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38624         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38625         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38626         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38627         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38628         * sysdeps/s390/rtld-__longjmp.c: New file.
38629         * sysdeps/s390/rtld-setjmp.S: New file.
38630
38631 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38632
38633         [BZ #16400]
38634         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38635         Return -__logl (x) for small positive arguments without evaluating
38636         a polynomial.
38637
38638 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38639
38640         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38641         Rename to ...
38642         (__ptrace_peeksiginfo_args): ... this.
38643         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38644         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38645         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38646
38647 2014-01-06  Allan McRae  <allan@archlinux.org>
38648
38649         * inet/netinet/in.h: Fix typo in comment.
38650
38651 2014-01-05  Andreas Jaeger  <aj@suse.de>
38652
38653         * sysdeps/i386/fpu/libm-test-ulps: Update.
38654
38655 2014-01-05  Allan McRae  <allan@archlinux.org>
38656
38657         * po/libc.pot: Regenerated.
38658
38659         * malloc/memusagestat.c: Fix gettext call formatting.
38660
38661 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38662
38663         * nscd/nscd.c: Improve usage() output.
38664
38665 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38666
38667         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38668         * sysdeps/unix/sysv/linux/configure: Regenerated.
38669         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38670         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38671
38672 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38673
38674         [BZ #16390]
38675         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38676         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38677
38678 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38679
38680         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38681         extra tokens at end of #undef directive.
38682         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38683         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38684         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38685
38686 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38687
38688         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38689
38690         * math/auto-libm-test-in: Mark various tests with
38691         xfail-rounding:ldbl-128ibm.
38692         * math/auto-libm-test-out: Regenerated.
38693
38694 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38695
38696         [BZ #16386]
38697         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38698         numbers with subnormal high part when calculating exponent.
38699
38700         [BZ #16385]
38701         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38702         fabs.
38703
38704         [BZ #16384]
38705         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38706         M_LN2l.
38707         (__ieee754_acoshl): Use __log1pl not __log1p.
38708
38709 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38710
38711         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38712         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38713         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38714         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38715         (reused_arena, arena_get2): Convert to GNU style.
38716         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38717         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38718         (memalign_check, __malloc_set_state): Likewise.
38719         * malloc/mallocbug.c (main): Likewise.
38720         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38721         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38722         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38723         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38724         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38725         (__posix_memalign, malloc_info): Likewise.
38726         * malloc/malloc.h: Likewise.
38727         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38728         (mallochook, memalignhook, reallochook, mabort): Likewise.
38729         * malloc/mcheck.h: Likewise.
38730         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38731         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38732         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38733         * malloc/morecore.c (__default_morecore): Likewise.
38734         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38735         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38736         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38737         (print_and_abort): Likewise.
38738         * malloc/obstack.h: Likewise.
38739         * malloc/set-freeres.c (__libc_freeres): Likewise.
38740         * malloc/tst-mallocstate.c (main): Likewise.
38741         * malloc/tst-mtrace.c (main): Likewise.
38742         * malloc/tst-realloc.c (do_test): Likewise.
38743
38744 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38745
38746         [BZ #16366]
38747         * nscd/netgroupcache.c (do_notfound): New function.
38748         (addgetnetgrentX): Use it.
38749
38750         [BZ # 16365]
38751         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38752         NSS_STATUS_NOTFOUND.
38753
38754 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38755
38756         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38758
38759 2014-01-01  Allan McRae  <allan@archlinux.org>
38760
38761         * scripts/update-copyrights: Update configure input file suffix.
38762
38763         * NEWS: Update copyright year.
38764         * catgets/gencat.c: Likewise.
38765         * csu/version.c: Likewise.
38766         * debug/catchsegv.sh: Likewise.
38767         * debug/pcprofiledump.c: Likewise.
38768         * debug/xtrace.sh: Likewise.
38769         * elf/ldconfig.c: Likewise.
38770         * elf/ldd.bash.in: Likewise.
38771         * elf/pldd.c: Likewise.
38772         * elf/sotruss.ksh: Likewise.
38773         * elf/sprof.c: Likewise.
38774         * iconv/iconv_prog.c: Likewise.
38775         * iconv/iconvconfig.c: Likewise.
38776         * locale/programs/locale.c: Likewise.
38777         * locale/programs/localedef.c: Likewise.
38778         * login/programs/pt_chown.c: Likewise.
38779         * malloc/memusage.sh: Likewise.
38780         * malloc/memusagestat.c: Likewise.
38781         * malloc/mtrace.pl: Likewise.
38782         * manual/libc.texinfo: Likewise.
38783         * nscd/nscd.c: Likewise.
38784         * nss/getent.c: Likewise.
38785         * nss/makedb.c: Likewise.
38786         * posix/getconf.c: Likewise.
38787         * scripts/test-installation.pl: Likewise.
38788
38789         * All files with FSF copyright notices: Update copyright dates
38790         using scripts/update-copyrights.
38791         * intl/plural.c: Regenerated.
38792         * locale/programs/charmap-kw.h: Likewise.
38793         * locale/programs/locfile-kw.h: Likewise.
38794
38795 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
38796
38797         * sysdeps/unix/sysv/linux/configure: Regenerated.
38798         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
38799         the linux/fanotify.h header.
38800         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
38801         HAVE_LINUX_FANOTIFY_H is defined.
38802
38803 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
38804
38805         * benchtests/cos-inputs: New inputs.
38806         * benchtests/sin-inputs: Likewise.
38807
38808         * benchtests/atan-inputs: New inputs. Fix name of multiple
38809         precision fallback inputs.
38810
38811         * benchtests/atanh-inputs: New inputs.
38812         * benchtests/tanh-inputs: Likewise.
38813
38814         * benchtests/acosh-inputs: New inputs.
38815         * benchtests/asinh-inputs: Likewise.
38816
38817         * benchtests/cosh-inputs: New inputs.
38818         * benchtests/sinh-inputs: Likewise.
38819
38820         * benchtests/acos-inputs: Add more inputs.
38821         * benchtests/asin-inputs: Likewise.
38822
38823 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
38824
38825         [BZ #16375]
38826         * manual/arith.texi: Fix spelling.
38827         * manual/charset.texi: Likewise.
38828         * manual/errno.texi: Likewise.
38829         * manual/filesys.texi: Likewise.
38830         * manual/lang.texi: Likewise.
38831         * manual/llio.texi: Likewise.
38832         * manual/locale.texi: Likewise.
38833         * manual/message.texi: Likewise.
38834         * manual/resource.texi: Likewise.
38835         * manual/search.texi: Likewise.
38836         * manual/setjmp.texi: Likewise.
38837         * manual/stdio.texi: Likewise.
38838         * manual/string.texi: Likewise.
38839         * manual/sysinfo.texi: Likewise.
38840         * manual/time.texi: Likewise.
38841
38842 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
38843
38844         * po/sl.po: New file.
38845
38846 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
38847
38848         * .gitignore: Add core/.gdbinit/.gdb_history.
38849
38850 2013-12-27  Allan McRae  <allan@archlinux.org>
38851
38852         [BZ #16369]
38853         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
38854         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
38855
38856 2013-12-24  Brooks Moses  <bmoses@google.com>
38857
38858         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
38859         all compilers that claim C++98 compliance, not just GCC.
38860         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
38861         Likewise.
38862
38863 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38864
38865         * NEWS: Restore accidentally deleted bug-fix entries.
38866
38867 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38868             Ondřej Bílka  <neleai@seznam.cz>
38869
38870         [BZ #15073]
38871         * malloc/malloc.c (_int_free): Perform sanity check only if we
38872         have_lock.
38873
38874 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
38875
38876         [BZ #12986]
38877         * manual/stdio.texi (String Input Conversions): Clarify that character
38878         classes are not supported.
38879
38880 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38881
38882         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38883
38884 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
38885
38886         [BZ #16337]
38887         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38888         Calculate results for small negative arguments directly rather
38889         than using reflection formula with special underflow handling.
38890
38891         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
38892         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
38893         sysdeps/unix/bsd/bsd4.4/syscalls.list.
38894         (fchflags): Likewise.
38895         (revoke): Likewise.
38896         (setlogin): Likewise.
38897         (sigaltstack): Likewise.
38898         (wait4): Likewise.
38899         (sigblock): Remove.
38900         (sigsetmask): Likewise.
38901         (wait3): Likewise.
38902         (waitpid): Likewise.
38903         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
38904         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
38905         file.
38906         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
38907         * sysdeps/unix/bsd/Makefile: ... here.
38908         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
38909         * sysdeps/unix/bsd/Versions: ... here.
38910         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
38911         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
38912         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
38913         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
38914         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
38915         * sysdeps/unix/bsd/sigblock.c: ... here.
38916         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
38917         * sysdeps/unix/bsd/sigsetmask.c: ... here.
38918         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
38919         * sysdeps/unix/bsd/sigvec.c: ... here.
38920         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
38921         * sysdeps/unix/bsd/tcdrain.c: ... here.
38922         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
38923         * sysdeps/unix/bsd/tcgetattr.c: ... here.
38924         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
38925         * sysdeps/unix/bsd/tcsetattr.c: ... here.
38926         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
38927         * sysdeps/unix/bsd/wait.c: ... here.
38928         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
38929         * sysdeps/unix/bsd/wait3.c: ... here.
38930         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
38931         * sysdeps/unix/bsd/waitpid.c: ... here.
38932
38933 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
38934
38935         [BZ #16356]
38936         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
38937         round-to-nearest for [!USE_AS_EXPM1L].
38938         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
38939         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
38940         more tests of exp and exp10.  Expect some exp10 tests to miss
38941         exceptions or fail in directed rounding modes.
38942         * math/auto-libm-test-out: Regenerated.
38943         * math/libm-test.inc (exp10_tonearest_test_data): New array.
38944         (exp10_test_tonearest): New function.
38945         (exp10_towardzero_test_data): New array.
38946         (exp10_test_towardzero): New function.
38947         (exp10_downward_test_data): New array.
38948         (exp10_test_downward): New function.
38949         (exp10_upward_test_data): New array.
38950         (exp10_test_upward): New function.
38951         (main): Call the new functions.
38952         * sysdeps/i386/fpu/libm-test-ulps: Update.
38953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38954
38955 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
38956
38957         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
38958         asinh, atan, atan2, atanh, cbrt, cos and cosh.
38959         * math/auto-libm-test-out: Regenerated.
38960         * math/libm-test.inc (acosh_test_data): Add more tests.
38961         (atanh_test_data): Likewise.
38962         (ceil_test_data): Likewise.
38963         (copysign_test_data): Likewise.
38964         * sysdeps/i386/fpu/libm-test-ulps: Update.
38965         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38966
38967         * timezone/checktab.awk: Update from tzcode 2013i.
38968         * timezone/private.h: Likewise.
38969         * timezone/scheck.c: Likewise.
38970         * timezone/tzfile.h: Likewise.
38971         * timezone/tzselect.ksh: Likewise.
38972         * timezone/zdump.c: Likewise.
38973         * timezone/zic.c: Likewise.
38974
38975         * math/auto-libm-test-in: Add tests of cpow.
38976         * math/auto-libm-test-out: Regenerated.
38977         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
38978         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38979         mpc_cc_c.
38980         (func_calc_desc): Add mpc_cc_c union field.
38981         (test_functions): Add cpow.
38982         (special_fill_2pi): New function.
38983         (special_real_inputs): Add 2pi.
38984         (calc_generic_results): Handle mpc_cc_c.
38985         * sysdeps/i386/fpu/libm-test-ulps: Update.
38986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38987
38988         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
38989         csqrt, ctan and ctanh.
38990         * math/auto-libm-test-out: Regenerated.
38991         * math/libm-test.inc (TEST_COND_x86_64): New macro.
38992         (TEST_COND_x86): Likewise.
38993         (ccos_test_data): Use AUTO_TESTS_c_c.
38994         (ccosh_test_data): Likewise.
38995         (cexp_test_data): Likewise.
38996         (clog_test_data): Likewise.
38997         (csqrt_test_data): Likewise.
38998         (ctan_test_data): Likewise.
38999         (ctan_tonearest_test_data): Likewise.
39000         (ctan_towardzero_test_data): Likewise.
39001         (ctan_downward_test_data): Likewise.
39002         (ctan_upward_test_data): Likewise.
39003         (ctanh_test_data): Likewise.
39004         (ctanh_tonearest_test_data): Likewise.
39005         (ctanh_towardzero_test_data): Likewise.
39006         (ctanh_downward_test_data): Likewise.
39007         (ctanh_upward_test_data): Likewise.
39008         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39009         mpc_c_c.
39010         (func_calc_desc): Add mpc_c_c union field.
39011         (FUNC_mpc_c_c): New macro.
39012         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39013         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39014         ctanh.
39015         (special_fill_min_subnorm_p120): New function.
39016         (special_real_inputs): Add min_subnorm_p120.
39017         (calc_generic_results): Handle mpc_c_c.
39018         * sysdeps/i386/fpu/libm-test-ulps: Update.
39019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39020
39021 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39022
39023         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39024         (do_sin_slow): New functions.
39025         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39026         (cslow2, csloww1, csloww2): Use the new functions.
39027
39028         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39029         Use M to change sign of result instead of X.  Assume X is
39030         positive.
39031         (csloww1): Likewise.
39032         (__sin): Adjust.
39033         (__cos): Adjust.
39034
39035         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39036         arguments A and DA.
39037         (__sin): Adjust.
39038         (__cos): Likewise.
39039
39040         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39041         (__cos): Likewise.
39042         (sloww1): Don't adjust sign of DX.
39043         (csloww1): Likewise.
39044         (sloww2): Use X directly and don't adjust sign of DX.
39045         (csloww2): Likewise.
39046
39047 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39048
39049         * math/auto-libm-test-in: Add tests of cabs and carg.
39050         * math/auto-libm-test-out: Regenerated.
39051         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39052         (carg_test_data): Likewise.
39053         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39054         mpc_c_f.
39055         (func_calc_desc): Add mpc_c_f union field.
39056         (test_functions): Add cabs and carg.
39057         (calc_generic_results): Handle mpc_c_f.
39058
39059         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39060         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39061         as a macro and a compat symbol.
39062         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39063         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39064         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39065         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39066         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39067         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39068         not use .hidden.
39069         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39070         Likewise.
39071         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39072         Likewise.
39073         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39074         Likewise.
39075         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39076         Likewise.
39077         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39078         Likewise.
39079         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39080         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39081         from GLIBC_2.3.2.
39082
39083 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39084
39085         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39086
39087 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39088
39089         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39090         trailing whitespace removed.
39091         * scripts/config.guess: Update to version 2013-11-29.
39092         * scripts/config.sub: Update to version 2013-10-01.
39093
39094         * math/auto-libm-test-in: Add tests of sincos.
39095         * math/auto-libm-test-out: Regenerated.
39096         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39097         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39098         mpfr_f_11.
39099         (func_calc_desc): Add mpfr_f_11 union field.
39100         (test_functions): Add sincos.
39101         (calc_generic_results): Handle mpfr_f_11.
39102         * sysdeps/i386/fpu/libm-test-ulps: Update.
39103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39104
39105 2013-12-19  Andreas Schwab  <schwab@suse.de>
39106
39107         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39108         CALL_MCOUNT.
39109         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39110         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39111         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39112
39113 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39114
39115         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39116         * sysdeps/i386/fpu/libm-test-ulps: Update.
39117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39118
39119         [BZ #16293]
39120         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39121         round-to-nearest mode when using frndint.
39122         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39123         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39124         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39125         Likewise.
39126         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39127         sinh test to fail.
39128         * math/auto-libm-test-out: Regenerated.
39129         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39130         (TEST_COND_x86): Likewise.
39131         (expm1_tonearest_test_data): New array.
39132         (expm1_test_tonearest): New function.
39133         (expm1_towardzero_test_data): New array.
39134         (expm1_test_towardzero): New function.
39135         (expm1_downward_test_data): New array.
39136         (expm1_test_downward): New function.
39137         (expm1_upward_test_data): New array.
39138         (expm1_test_upward): New function.
39139         (main): Run the new test functions.
39140         * sysdeps/i386/fpu/libm-test-ulps: Update.
39141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39142
39143         * include/features.h: Update comment documenting feature test
39144         macros.  Mention _DEFAULT_SOURCE in comment.
39145         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39146         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39147         _BSD_SOURCE and _SVID_SOURCE.
39148         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39149         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39150         !_SVID_SOURCE]: Likewise.
39151         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39152         (__USE_POSIX_IMPLICITLY): Define.
39153         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39154         (_POSIX_SOURCE): Undefine and redefine.
39155         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39156         (_POSIX_C_SOURCE): Likewise.
39157         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39158         (Feature Test Macros): Update documentation of default features.
39159
39160 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39161
39162         * benchtests/Makefile: Add bench-strtok.
39163         * benchtests/bench-strtok.c: New file: strtok benchtest.
39164
39165 2013-12-19  Allan McRae  <allan@archlinux.org>
39166
39167         * manual/install.texi: Suppress menu for plain text output.
39168         * INSTALL: Regenerated.
39169
39170 2013-12-18  Brooks Moses  <bmoses@google.com>
39171
39172         [BZ #15846]
39173         * misc/getauxval.c: Include errno.h.
39174         (__getauxval): Set errno to ENOENT if the requested type is not
39175         found.
39176         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39177         don't declare with __attribute_const__.
39178         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39179         * manual/startup.texi: Document that getauxval sets errno.
39180
39181 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39182
39183         * math/auto-libm-test-in: Add tests of jn and yn.
39184         * math/auto-libm-test-out: Regenerated.
39185         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39186         (yn_test_data): Likewise.
39187         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39188         mpfr_if_f.
39189         (func_calc_desc): Add mpfr_if_f union field.
39190         (FUNC_mpfr_if_f): New macro.
39191         (test_functions): Add jn and yn.
39192         (calc_generic_results): Assert type of second input for
39193         mpfr_ff_f.  Handle mpfr_if_f.
39194         (output_for_one_input_case): Disable all checking for arguments
39195         fitting floating-point types in case of an integer argument.
39196         * sysdeps/i386/fpu/libm-test-ulps: Update.
39197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39198
39199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39200         Don't expect fegetround reference in libm.so.
39201
39202 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39203
39204         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39205         $(config-cflags-nofma).
39206
39207 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39208
39209         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39210         * math/auto-libm-test-out: Regenerated.
39211
39212         [BZ #16338]
39213         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39214         to determine exponent and adjust argument to have exponent of -1.
39215         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39216         log2.
39217         * math/auto-libm-test-out: Regenerated.
39218         * sysdeps/i386/fpu/libm-test-ulps: Update.
39219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39220
39221 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39222
39223         * manual/probes.texi: Remove cases when per-thread arenas are
39224         disabled.
39225
39226 2013-12-18  Andreas Schwab  <schwab@suse.de>
39227
39228         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39229         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39230         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39231         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39232         * sysdeps/i386/i686/multiarch/Makefile: Update.
39233         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39234
39235 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39236
39237         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39238         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39239
39240 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39241
39242         [BZ #15968]
39243         Support TZ transition times < 00:00:00.
39244         This is needed for version-3 tz-format files; it supports time
39245         stamps past 2037 for America/Godthab (the only entry in the tz
39246         database for which this change is relevant).
39247         * manual/time.texi (TZ Variable): Document transition times
39248         from -167:59:59 through -00:00:01.
39249         * time/tzset.c (tz_rule): Time of day is now signed.
39250         (__tzset_parse_tz): Parse negative time of day.
39251
39252         Document TZ transition times >= 25:00:00.
39253         * manual/time.texi (TZ Variable): Document transition times from
39254         25:00:00 through 167:59:59.  These are already supported, and this
39255         support will help with version-3 tz-format files.
39256
39257         * manual/time.texi (TZ Variable): Modernize North America example
39258         to reflect current (i.e., 2007-and-later) daylight saving rules.
39259
39260         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39261
39262 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39263
39264         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39265         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39266         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39267         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39268         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39269         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39270         * sysdeps/unix/bsd/clock.c: Likewise.
39271         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39272         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39273         * sysdeps/unix/bsd/init-posix.c: Likewise.
39274         * sysdeps/unix/bsd/poll.c: Likewise.
39275         * sysdeps/unix/bsd/ptsname.c: Likewise.
39276         * sysdeps/unix/bsd/seekdir.c: Likewise.
39277         * sysdeps/unix/bsd/setegid.c: Likewise.
39278         * sysdeps/unix/bsd/seteuid.c: Likewise.
39279         * sysdeps/unix/bsd/setgid.c: Likewise.
39280         * sysdeps/unix/bsd/setrgid.c: Likewise.
39281         * sysdeps/unix/bsd/setruid.c: Likewise.
39282         * sysdeps/unix/bsd/setsid.c: Likewise.
39283         * sysdeps/unix/bsd/setuid.c: Likewise.
39284         * sysdeps/unix/bsd/sigaction.c: Likewise.
39285         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39286         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39287         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39288         * sysdeps/unix/bsd/telldir.c: Likewise.
39289         * sysdeps/unix/bsd/times.c: Likewise.
39290         * sysdeps/unix/bsd/usleep.c: Likewise.
39291
39292         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39293         ($(objpfx)libbsd-compat.a): Remove rule.
39294
39295         * include/features.h (__FAVOR_BSD): Do not define.
39296         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39297         features conflicting with POSIX.
39298         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39299         (_BSD_SOURCE): Remove description of not being a subset of other
39300         feature test macros.
39301         * manual/job.texi (getpgrp): Do not document BSD version.
39302         (getpgid): Do not document by reference to BSD getpgrp.
39303         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39304         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39305         * signal/signal.h [__FAVOR_BSD]: Likewise.
39306         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39307         instead of making contents conditional on [__FAVOR_BSD].
39308         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39309
39310 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39311
39312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39313
39314 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39315
39316         [BZ #16314]
39317         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39318         values below 2**-450, not 2**-500.
39319         * math/auto-libm-test-in: Don't allow spurious underflow from
39320         hypot.
39321         * math/auto-libm-test-out: Regenerated.
39322
39323         [BZ #16316]
39324         [BZ #16330]
39325         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39326         values of ha and hb and sort them after adjusting subnormal
39327         arguments.
39328         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39329         Likewise.
39330         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39331         values of ea and eb and sort them after adjusting subnormal
39332         arguments.
39333         * math/auto-libm-test-in: Do not expect some hypot tests of
39334         subnormals to fail.  Add more hypot tests.
39335         * math/auto-libm-test-out: Regenerated.
39336
39337 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39338
39339         [BZ #13304]
39340         * sysdeps/sh/s_fma.c: New file.
39341         * sysdeps/sh/s_fmaf.c: New file.
39342         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39343         version.
39344         * sysdeps/sh/Implies: Add sh/soft-fp.
39345
39346 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39347
39348         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39349         level of indirection to members `objname', `errstring', `malloced'.
39350         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39351         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39352         it as the __longjmp argument (just pass 1 instead).
39353         (_dl_catch_error): Initialize C with argument pointers and address of
39354         volatile local ERRCODE rather than copying values out of C at return.
39355
39356 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39357
39358         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39359         * math/auto-libm-test-out: Regenerated.
39360         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39361         (hypot_test_data): Likewise.
39362         (pow_test_data): Likewise.
39363         (pow_tonearest_test_data): Likewise.
39364         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39365         mpfr_ff_f.
39366         (func_calc_desc): Add mpfr_ff_f union field.
39367         (FUNC_mpfr_ff_f): New macro.
39368         (test_functions): Add atan2, hypot and pow.
39369         (special_fill_min): New function.
39370         (special_fill_minus_min): Likewise.
39371         (special_fill_min_subnorm): Likewise.
39372         (special_fill_minus_min_subnorm): Likewise.
39373         (special_real_inputs): Add min, -min, min_subnorm and
39374         -min_subnorm.
39375         (calc_generic_results): Handle mpfr_ff_f.
39376         * sysdeps/i386/fpu/libm-test-ulps: Update.
39377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39378
39379 2013-12-16  Will Newton  <will.newton@linaro.org>
39380
39381         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39382         (Aligned Memory Blocks): Add documentation for aligned_alloc
39383         and suggest it as an alternative to posix_memalign.
39384         (Hooks for Malloc): Document __memalign_hook is also called
39385         for aligned_alloc.  (Summary of Malloc): Add summary for
39386         aligned alloc.  Document __memalign_hook is also called
39387         for aligned_alloc.
39388
39389 2013-12-16  Will Newton  <will.newton@linaro.org>
39390
39391         * manual/memory.texi (Malloc Examples): Clarify default
39392         alignment documentation.  Suggest posix_memalign rather
39393         than memalign or valloc.
39394         (Aligned Memory Blocks): Remove suggestion to use memalign
39395         or valloc.  Remove obsolete comment about BSD.
39396         Document memalign errno values and mark the function obsolete.
39397         Document posix_memalign returned error codes.  Mark valloc
39398         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39399         called for posix_memalign and valloc.
39400         (Summary of Malloc): Add posix_memalign to function summary.
39401         __memalign_hook is also called for posix_memalign and valloc.
39402
39403 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39404
39405         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39406         TAYLOR_SIN.
39407         (__sin): Adjust.
39408         (__cos): Likewise.
39409         (sloww): Use mynumber union.  Expand ternary operator into
39410         if-else statements.
39411         (cslow): use mynumber union.
39412
39413 2013-12-16  Allan McRae  <allan@archlinux.org>
39414
39415         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39416         * configure: Regenerated.
39417
39418         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39419
39420         [BZ #14120]
39421         * configure.ac: Added --enable-maintainer-mode. Check for
39422         autoconf when enabled.
39423         * configure: Regenerated.
39424
39425         * nscd/nscd.service: New file.
39426         * nscd/nscd.tmpfiles: New file.
39427
39428 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39429
39430         [BZ #12100]
39431         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39432         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39433         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39434         (strstr): Add __strstr_sse2_unaligned ifunc.
39435         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39436         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39437         (strcasestr): Remove __strcasestr_sse42 ifunc.
39438         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39439         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39440         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39441
39442 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39443
39444         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39445         * sysdeps/sh/bits/fenv.h: ... here.
39446         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39447
39448 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39449
39450         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39451
39452         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39453         hypotf multiarch implementations.
39454         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39455         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39456         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39457         multiarch hypot for PPC64.
39458         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39459         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39460         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39461         multiarch hypotf for PPC64.
39462
39463         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39464         modff multiarch implementations.
39465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39468         multiarch modf for PPC64.
39469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39472         multiarch modff for PPC64.
39473
39474         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39475         and logl multiarch implementations.
39476         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39479         multiarch logb for PPC64.
39480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39483         multiarch logb for PPC64.
39484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39487         multiarch logb for PPC64.
39488
39489         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39490         isinff multiarch implementation.
39491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39492         file.
39493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39495         multiarch isinf for PPC64.
39496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39497         file.
39498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39499         multiarch isinff for PPC64.
39500
39501         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39502         finitef multiarch implementation.
39503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39504         file.
39505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39507         multiarch finite for PPC64.
39508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39509         file.
39510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39511         multiarch finitef for PPC64.
39512
39513         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39514         lrint multiarch implementation.
39515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39516         file.
39517         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39518         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39519         multiarch llrint for PPC64.
39520         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39521         multiarch lrint for PPC64.
39522
39523         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39524         copysignf multiarch implementation.
39525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39526         file.
39527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39528         file.
39529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39530         multiarch copysign for PPC64.
39531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39532         multiarch copysignf for PPC64.
39533
39534         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39535         multiarch implementation.
39536         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39537         file.
39538         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39539         file.
39540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39541         file.
39542         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39543         file.
39544         multiarch llround for PPC64.
39545         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39546         multiarch trunc for PPC64.
39547         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39548         multiarch truncf for PPC64.
39549
39550         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39551         multiarch implementation.
39552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39553         file.
39554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39555         file.
39556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39557         file.
39558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39559         file.
39560         multiarch llround for PPC64.
39561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39562         multiarch round for PPC64.
39563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39564         multiarch roundf for PPC64.
39565
39566         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39567         multiarch implementation.
39568         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39569         file.
39570         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39571         file.
39572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39573         file.
39574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39575         file.
39576         multiarch llround for PPC64.
39577         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39578         multiarch floor for PPC64.
39579         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39580         multiarch floorf for PPC64.
39581
39582         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39583         multiarch implementation.
39584         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39585         file.
39586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39587         file.
39588         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39589         file.
39590         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39591         file.
39592         multiarch llround for PPC64.
39593         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39594         multiarch ceil for PPC64.
39595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39596         multiarch ceilf for PPC64.
39597
39598         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39599         multiarch implementation.
39600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39601         file.
39602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39603         file.
39604         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39605         file.
39606         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39607         multiarch llround for PPC64.
39608         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39609         multiarch lround for PPC64.
39610
39611         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39612         multiarch implementation.
39613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39614         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39615         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39616         file.
39617         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39618         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39619         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39620         multiarch isnan for PPC64.
39621         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39622         multiarch isnanf for PPC64.
39623
39624         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39625         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39626         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39627         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39628         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39630
39631         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39632         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39633         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39634         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39635
39636         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39637         multiarch implementations.
39638         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39639         (__libc_ifunc_impl_list): Likewise.
39640         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39641         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39642         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39643         multiarch stpcpy for PPC64.
39644
39645         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39646         multiarch implementations.
39647         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39648         (__libc_ifunc_impl_list): Likewise.
39649         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39650         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39651         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39652         multiarch strcpy for PPC64.
39653
39654         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39655         redefine function name.
39656         (_wordcopy_fwd_dest_aligned): Likewise.
39657         (_wordcopy_bwd_aligned): Likewise.
39658         (_wordcopy_bwd_dest_aligned): Likewise.
39659         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39660         multiarch implementations.
39661         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39662         (__libc_ifunc_impl_list): Likewise.
39663         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39664         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39665         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39666         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39667         multiarch wcscpy for PPC64.
39668
39669         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39670         multiarch implementations.
39671         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39672         (__libc_ifunc_impl_list): Likewise.
39673         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39674         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39675         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39676         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39677         multiarch wcscpy for PPC64.
39678
39679         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39680         multiarch implementations.
39681         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39682         (__libc_ifunc_impl_list): Likewise.
39683         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39684         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39685         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39686         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39687         multiarch wcsrchr for PPC64.
39688
39689         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39690         multiarch implementations.
39691         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39692         (__libc_ifunc_impl_list): Likewise.
39693         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39694         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39695         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39696         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39697         multiarch wcschr for PPC64.
39698
39699         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39700         multiarch implementations.
39701         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39702         (__libc_ifunc_impl_list): Likewise.
39703         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39704         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39705         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39706         multiarch strchrnul for PPC64.
39707
39708         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39709         implementations.
39710         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39711         (__libc_ifunc_impl_list): Likewise.
39712         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39713         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39714         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39715         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39716         strchr for PPC64.
39717
39718         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39719         implementations.
39720         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39721         (__libc_ifunc_impl_list): Likewise.
39722         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39723         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39724         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39725         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39726         strncmp for PPC64.
39727
39728         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39729         multiarch implementations.
39730         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39731         (__libc_ifunc_impl_list): Likewise.
39732         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39733         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39734         strncasecmp for PPC64.
39735         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39736         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39737         multiarch strncasecmp_l for PPC64.
39738
39739         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39740         multiarch implementations.
39741         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39742         (__libc_ifunc_impl_list): Likewise.
39743         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39744         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39745         multiarch strcasecmp for PPC64.
39746         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39747         file.
39748         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39749         multiarch strcasecmp_l for PPC64.
39750
39751         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39752         implementations.
39753         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39754         (__libc_ifunc_impl_list): Likewise.
39755         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39756         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39757         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39758         strnlen for PPC64.
39759
39760         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39761         implementations.
39762         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39763         (__libc_ifunc_impl_list): Likewise.
39764         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39765         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39766         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39767         strlen for PPC64.
39768
39769         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39770         implementations.
39771         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39772         (__libc_ifunc_impl_list): Likewise.
39773         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39774         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39775         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
39776         rawmemrchr for PPC64.
39777
39778         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
39779         implementation.
39780         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39781         (__libc_ifunc_impl_list): Likewise.
39782         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
39783         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
39784         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
39785         memrchr for PPC64.
39786
39787         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
39788         implementation.
39789         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39790         (__libc_ifunc_impl_list): Likewise.
39791         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
39792         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
39793         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
39794         memchr for PPC64.
39795
39796         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
39797         implementation.
39798         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39799         (__libc_ifunc_impl_list): Likewise.
39800         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
39801         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
39802         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
39803         mempcpy for PPC64.
39804
39805         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
39806         avoid cretion of __bzero symbol.
39807         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
39808         Likewise.
39809         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
39810         Likewise.
39811         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
39812         Likewise.
39813         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
39814         multiarch implementations.
39815         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39816         (__libc_ifunc_impl_list): Likewise.
39817         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
39818         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
39819         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
39820         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
39821         bzero for PPC32.
39822         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
39823         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
39824         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
39825         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
39826         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
39827         memset for PPC64.
39828         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
39829
39830         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
39831         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
39832         implementations.
39833         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39834         (__libc_ifunc_impl_list): Likewise.
39835         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
39836         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
39837         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
39838         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
39839         memcmp for PPC64.
39840
39841         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
39842         multiarch for POWER/PPC64.
39843         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
39844         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
39845         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
39846         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
39847         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
39848         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
39849         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
39850         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
39851         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
39852         memcpy for PPC64.
39853
39854         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
39855         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
39856         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
39857         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
39858         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
39859         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
39860         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
39861         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
39862         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
39863         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
39864         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
39865         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
39866         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
39867         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
39868         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
39869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
39870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
39871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
39872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
39873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
39874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
39875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
39876
39877 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39878
39879         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
39880
39881 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39882
39883         * benchtests/Makefile (bench): Add exp2 and log2.
39884         (LDLIBS-bench-exp2): Add -lm.
39885         (LDLIBS-bench-log2): Likewise.
39886         * benchtests/exp2-inputs: New inputs file.
39887         * benchtests/log2-inputs: New inputs file.
39888         * benchtests/log-inputs: Add new inputs.
39889         * benchtests/tan-inputs: Likewise.
39890
39891 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
39892
39893         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
39894         definition...
39895         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
39896         (csloww2): ... from here.
39897
39898         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
39899         instead of structures.
39900         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
39901         (POLYNOMIAL): Likewise.
39902         (TAYLOR_SLOW): Likewise.
39903         (__sin): Likewise.
39904         (__cos): Likewise.
39905         (slow1): Likewise.
39906         (slow2): Likewise.
39907         (sloww): Likewise.
39908         (sloww1); Likewise.
39909         (sloww2): Likewise.
39910         (bsloww1): Likewise.
39911         (bsloww2): Likewise.
39912         (cslow2): Likewise.
39913         (csloww): Likewise.
39914         (csloww1): Likewise.
39915         (csloww2): Likewise.
39916
39917 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
39918
39919         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
39920         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
39921         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
39922         * malloc/hooks.c (realloc_check): Likewise.
39923
39924         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
39925         * malloc/arena.c: Remove PER_THREAD conditional.
39926         [!PER_THREAD]: Remove code.
39927         (ptmalloc_unlock_all2): Likewise.
39928         (ptmalloc_init): Likewise.
39929         (_int_new_arena): Likewise.
39930         (arena_get2): Likewise.
39931         * malloc/hooks.c (__malloc_get_state): Likewise.
39932         (__malloc_set_state): Likewise.
39933         * malloc/malloc.c: Likewise.
39934         (struct malloc_state): Likewise.
39935         (struct malloc_par): Likewise.
39936         (__libc_realloc): Likewise.
39937         (__libc_mallopt): Likewise.
39938
39939 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39940
39941         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
39942
39943 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
39944
39945         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
39946         macro to a function.  Check for zero perturb_byte.
39947         (_int_malloc, _int_free): Remove zero perturb_byte checks.
39948
39949         * malloc/malloc.c: (force_reg): Remove.
39950         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
39951         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
39952         force_reg by atomic_forced_read.
39953         * malloc/arena.c (ptmalloc_init): Likewise.
39954         * malloc/hooks.c (top_check): Likewise.
39955
39956 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39957
39958         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39959
39960 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
39961
39962         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39963
39964 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
39965
39966         * math/auto-libm-test-in: Add tests of lgamma.
39967         * math/auto-libm-test-out: Regenerated.
39968         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
39969         (M_LOG_2_SQRT_PIl): Likewise.
39970         (lgamma_test_data): Use AUTO_TESTS_f_f1.
39971         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39972         mpfr_f_f1.
39973         (func_calc_desc): Add mpfr_f_f1 union field.
39974         (ARGS1): New macro.
39975         (ARGS2): Likewise.
39976         (ARGS3): Likewise.
39977         (ARGS4): Likewise.
39978         (RET1): Likewise.
39979         (RET2): Likewise.
39980         (CALC): Likewise.
39981         (FUNC): Likewise.
39982         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
39983         (test_functions): Add lgamma.
39984         (calc_generic_results): Handle mpfr_f_f1.
39985         * sysdeps/i386/fpu/libm-test-ulps: Update.
39986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39987
39988 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39989
39990         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
39991         __mpn_add_n for PowerPC64/POWER7.
39992         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
39993         __mpn_sub_n for PowerPC64/POWER7.
39994
39995         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
39996         __mpn_addmul_1 for PowerPC64.
39997         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
39998         __mpn_submul_1 for PowerPC64.
39999         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40000         for PowerPC64.
40001         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40002         for PowerPC64.
40003
40004 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40005
40006         [BZ #15089]
40007         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40008
40009 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40010
40011         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40012
40013         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40014         add multiarch folders.
40015         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40016         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40017         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40018         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40019         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40020         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40021         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40022         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40023         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40024         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40025         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40032
40033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40034         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40036         New file.
40037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40038         New file.
40039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40040         multiarch __ieee754_hypot for PowerPC32.
40041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40042         New file.
40043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40044         New file.
40045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40046         multiarch __ieee754_hypotf for PowerPC32.
40047
40048         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40049         long_double_symbol only if __logbl is defined.
40050         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40051         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40052         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40053         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40054         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40055         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40056         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40057         path for implementation.
40058         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40059         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40061         logb, and logbl multiarch implementations for PowerPC32.
40062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40063         file.
40064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40065         file.
40066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40067         multiarch logb for PowerPC32.
40068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40069         file.
40070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40071         file.
40072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40073         multiarch logbf for PowerPC32.
40074         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40076         file.
40077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40078         multiarch logbl implementation for PowerPC32.
40079
40080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40081         and modff multiarch implementations.
40082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40083         New file.
40084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40085         New file.
40086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40087         multiarch modf for PowerPC32.
40088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40089         New file.
40090         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40091         New file.
40092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40093         multiarch modff for PowerPC32.
40094
40095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40096         and lrintf multiarch implementations.
40097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40098         New file.
40099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40100         New file.
40101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40102         multiarch lrint for PowerPC32.
40103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40104         file: multiarch lrintf for PowerPC32.
40105
40106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40107         and lroundf multiarch implementations.
40108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40109         New file.
40110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40111         New file.
40112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40113         New file.
40114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40115         multiarch lround for PowerPC32.
40116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40117         file: multiarch lroundf for PowerPC32.
40118
40119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40120         copysign and copysignf multiarch implementations.
40121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40122         New file.
40123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40124         New file.
40125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40126         file: multiarch copysign for PowerPC32.
40127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40128         file: multiarch copysignf for PowerPC32.
40129
40130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40131         and truncf multiarch implementations.
40132         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40133         New file.
40134         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40135         file.
40136         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40137         multiarch trunc for PowerPC32.
40138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40139         New file.
40140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40141         New file.
40142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40143         multiarch truncf for PowerPC32.
40144
40145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40146         and roundf multiarch implementations.
40147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40148         New file.
40149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40150         file.
40151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40152         multiarch round for PowerPC32.
40153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40154         New file.
40155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40156         New file.
40157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40158         multiarch roundf for PowerPC32.
40159
40160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40161         and floorf multiarch implementations.
40162         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40163         New file.
40164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40165         file.
40166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40167         multiarch floor for PowerPC32.
40168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40169         New file.
40170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40171         New file.
40172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40173         multiarch floorf for PowerPC32.
40174
40175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40176         and ceilf multiarch implementations.
40177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40178         New file.
40179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40180         file.
40181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40182         multiarch ceil for PowerPC32.
40183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40184         New file.
40185         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40186         file.
40187         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40188         multiarch ceilf for PowerPC32.
40189
40190         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40191         is defined.
40192         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40193         FINITEF is defined.
40194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40195         and finitef multiarch implementations.
40196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40197         New file.
40198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40199         file.
40200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40201         multiarch finite for PowerPC32.
40202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40203         New file.
40204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40205         file: multiarch finitef for PowerPC32.
40206
40207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40208         and isinff multiarch implementations.
40209         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40210         file.
40211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40212         file.
40213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40214         multiarch isinf for PowerPC32.
40215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40216         New file.
40217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40218         multiarch isinff for PowerPC32.
40219
40220         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40221         alias when __isnan is defined.
40222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40223         and isnanf multiarch implementations.
40224         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40225         file.
40226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40227         file.
40228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40229         file.
40230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40231         file.
40232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40233         multiarch isnan for PowerPC32.
40234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40235         New file.
40236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40237         New file.
40238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40239         multiarch isnanf for PowerPC32.
40240
40241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40242         and sqrtf multiarch implementations.
40243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40244         file.
40245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40246         file.
40247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40248         multiarch sqrt for PowerPC32.
40249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40250         file.
40251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40252         file.
40253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40254         multiarch sqrtf for PowerPC32.
40255
40256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40257         and llroundf multiarch implementations.
40258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40259         New file.
40260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40261         New file.
40262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40263         New file.
40264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40265         file: multiarch llround for PowerPC32.
40266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40267         file: multiarch llroundf for PowerPC32.
40268
40269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40270         multiarch PowerPC32 fpu implementations.
40271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40272         New file.
40273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40274         New file.
40275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40276         multiarch llrint for PowerPC32.
40277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40278         New file.
40279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40280         New file.
40281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40282         file.
40283
40284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40285
40286         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40287         file.
40288         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40289         file.
40290         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40291         file.
40292         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40293         multiarch wordcopy for PPC32.
40294         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40295         wordcopy objects.
40296         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40297         (__libc_ifunc_impl_list): Likewise.
40298         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40299         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40300         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40301         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40302         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40303         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40304
40305         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40306         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40307         file.
40308         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40309         file.
40310         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40311         file.
40312         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40313         multiarch wcscpy for PPC32.
40314         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40315         multiarch objects.
40316         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40317         (__libc_ifunc_impl_list): Likewise.
40318         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40319         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40320         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40321         sysdeps/powerpc/power6/wcscpy.c.
40322
40323         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40324         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40325         file.
40326         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40327         file.
40328         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40329         file.
40330         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40331         multiarch wcsrchr for PPC32.
40332         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40333         multiarch objects.
40334         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40335         (__libc_ifunc_impl_list): Likewise.
40336         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40337         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40338         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40339         sysdeps/powerpc/power6/wcsrchr.c.
40340
40341         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40342         file.
40343         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40344         file.
40345         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40346         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40347         multiarch wcschr for PPc32.
40348         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40349         multiarch objects.
40350         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40351         (__libc_ifunc_impl_list): Likewise.
40352         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40353         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40354         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40355         sysdeps/powerpc/power6/wcschr.c.
40356
40357         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40358         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40359         file.
40360         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40361         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40362         file: multiarch strchr for PPC32.
40363         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40364         multiarch objects.
40365         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40366         (__libc_ifunc_impl_list): Likewise.
40367
40368         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40369         name.
40370         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40371         file.
40372         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40373         file.
40374         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40375         multiarch strchrnul for PPC32.
40376         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40377         multiarch objects.
40378         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40379         (__libc_ifunc_impl_list): Likewise.
40380
40381         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40382         file.
40383         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40384         multiarch strncasecmp for PPC32.
40385         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40386         file.
40387         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40388         multiarch strncasecmp_l for PPC32.
40389         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40390         strncasecmp multiarch objects.
40391         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40392         (__libc_ifunc_impl_list): Likewise.
40393
40394         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40395         file.
40396         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40397         multiarch strncasecmp for PPC32.
40398         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40399         New file.
40400         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40401         multiarch strcasecmp_l for PPC32.
40402         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40403         multiarch objects.
40404         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40405         (__libc_ifunc_impl_list): Likewise.
40406
40407         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40408         file.
40409         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40410         file.
40411         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40412         multiarch strncmp for PPC32.
40413         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40414         multiarch objects.
40415         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40416         (__libc_ifunc_impl_list): Likewise.
40417
40418         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40419         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40420         file.
40421         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40422         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40423         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40424         multiarch objects.
40425         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40426         (__libc_ifunc_impl_list): Likewise.
40427
40428         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40429         file.
40430         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40431         file.
40432         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40433         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40434         multiarch objects.
40435         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40436         (__libc_ifunc_impl_list): Likewise.
40437
40438         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40439         file.
40440         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40441         file.
40442         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40443         multiarch rawmemchr for PPC32.
40444         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40445         multiarch objects.
40446         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40447         (__libc_ifunc_impl_list): Likewise.
40448
40449         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40450         file.
40451         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40452         file.
40453         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40454         file: memrchr multiarch for PPC32.
40455         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40456         multiarch objects.
40457         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40458         (__libc_ifunc_impl_list): Likewise.
40459
40460         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40461         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40462         file.
40463         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40464         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40465         multiarch memchr for PPC32.
40466         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40467         multiarch objects.
40468         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40469         (__libc_ifunc_impl_list): Likewise.
40470
40471         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40472         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40473         file.
40474         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40475         file.
40476         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40477         file: multiarch mempcpy for PPC32.
40478         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40479         multiarch objects.
40480         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40481         (__libc_ifunc_impl_list): Likewise.
40482
40483         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40484         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40485         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40486         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40487         multiarch bzero for PPC32.
40488         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40489         file.
40490         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40491         file.
40492         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40493         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40494         file: multiarch memset for PPC32.
40495         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40496         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40497         memset multiarch objects.
40498         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40499         (__libc_ifunc_impl_list): Likewise.
40500
40501         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40502         file.
40503         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40504         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40505         memcmp for PPC32.
40506         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40507         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40508         multiarch objects.
40509         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40510         (__libc_ifunc_impl_list): Likewise.
40511
40512         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40513         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40514         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40515         file.
40516         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40517         file.
40518         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40519         file.
40520         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40521         multiarch memcpy for PPC32.
40522         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40523         multiarch objects.
40524         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40525         (__libc_ifunc_impl_list): Likewise.
40526
40527         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40528         support multiarch for POWER/PPC32.
40529         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40530         Likewise.
40531         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40533         Implies file to make multiarch folder appers before the fpu and
40534         default folder for power4 configuration.
40535
40536 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40537
40538         * scripts/bench.pl: Append volatile keyword to type.
40539
40540 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40541
40542         * sysdeps/sh/sotruss-lib.c: New file.
40543         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40544
40545 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40546
40547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40548
40549 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40550
40551         [BZ #6810]
40552         * math/w_tgamma.c: Include <errno.h>.
40553         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40554         * math/w_tgammaf.c: Include <errno.h>.
40555         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40556         * math/w_tgammal.c: Include <errno.h>.
40557         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40558         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40559         underflow.  Add more tgamma tests.
40560         * math/auto-libm-test-out: Regenerated.
40561         * sysdeps/i386/fpu/libm-test-ulps: Update.
40562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40563
40564         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40565         sin, sinh, tan, tanh, tgamma, y0 and y1.
40566         * math/auto-libm-test-out: Regenerated.
40567         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40568         (TEST_COND_x86): Likewise.
40569         (M_E2l): Remove macro.
40570         (M_E3l): Likewise.
40571         (M_2_SQRT_PIl): Likewise.
40572         (M_SQRT_PIl): Likewise.
40573         (M_1_DIV_El): Likewise.
40574         (log_test_data): Use AUTO_TESTS_f_f.
40575         (log10_test_data): Likewise.
40576         (log1p_test_data): Likewise.
40577         (log2_test_data): Likewise.
40578         (sin_test_data): Likewise.
40579         (sin_tonearest_test_data): Likewise.
40580         (sin_towardzero_test_data): Likewise.
40581         (sin_downward_test_data): Likewise.
40582         (sin_upward_test_data): Likewise.
40583         (sinh_test_data): Likewise.
40584         (sinh_tonearest_test_data): Likewise.
40585         (sinh_towardzero_test_data): Likewise.
40586         (sinh_downward_test_data): Likewise.
40587         (sinh_upward_test_data): Likewise.
40588         (tan_test_data): Likewise.
40589         (tan_tonearest_test_data): Likewise.
40590         (tan_towardzero_test_data): Likewise.
40591         (tan_downward_test_data): Likewise.
40592         (tan_upward_test_data): Likewise.
40593         (tanh_test_data): Likewise.
40594         (tgamma_test_data): Likewise.
40595         (y0_test_data): Likewise.
40596         (y1_test_data): Likewise.
40597         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40598         (special_real_inputs): Add pi/4.
40599         * sysdeps/i386/fpu/libm-test-ulps: Update.
40600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40601
40602 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40603
40604         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40605         "longjmp_target" static probes.
40606         (__longjmp): Rename to __longjmp_symbol.
40607         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40608         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40609         on which longjmp to generate.
40610         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40611         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40612         probe.
40613         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40614         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40615         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40616         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40617         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40618         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40620         __longjmp_symbol based on which __longjmp to generate.
40621         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40622         probe.
40623         (setjmp): Rename to setjmp_symbol.
40624         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40625         (_setjmp): Rename to _setjmp_symbol.
40626         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40627         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40628         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40629         which setjmp to generate.
40630         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40631         "longjmp_target" static probes.
40632
40633 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40634
40635         * benchtests/README: Add note about output arguments.
40636         * benchtests/bench-sincos.c: Remove file.
40637         * benchtests/sincos-inputs: New file.
40638         * scripts/bench.pl: Identify output arguments and define
40639         static variables for them.
40640
40641         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40642
40643         [BZ #15941]
40644         * Makefile (INSTALL): Add install-plain.texi as the primary
40645         dependency.
40646         * manual/install-plain.texi: New file.
40647         * manual/install.texi: Include node directive only for
40648         non-plaintext output.
40649
40650 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40651
40652         * stdlib/longlong.h: Update from GCC.
40653
40654         [BZ #6807]
40655         [BZ #15901]
40656         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40657         * math/w_j0f.c (y0f): Likewise.
40658         * math/w_j0l.c (__y0l): Likewise.
40659         * math/w_j1.c (y1): Likewise.
40660         * math/w_j1f.c (y1f): Likewise.
40661         * math/w_j1l.c (__y1l): Likewise.
40662         * math/w_jn.c (yn): Likewise.
40663         * math/w_jnf.c (ynf): Likewise.
40664         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40665         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40666         value for Bessel function domain errors outside _SVID_ mode.
40667         Adjust sign of return value for yn (negative integer, 0).
40668         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40669         by zero in return for negative x and set sign appropriately for
40670         negative n.
40671         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40672         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40673         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40674         expectations in error cases.
40675         (y1_test_data): Likewise.
40676         (yn_test_data): Likewise.
40677         * sysdeps/i386/fpu/libm-test-ulps: Update.
40678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40679
40680 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40681
40682         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40683         "64" to "64-v1".  Add "64-v2".
40684         (abi-64-options): Rename to ...
40685         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40686         (abi-64-condition): Rename to ...
40687         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40688         (abi-64-ld-soname): Rename to ...
40689         (abi-64-v1-ld-soname): ... this.
40690         (abi-64-v2-options): Define.
40691         (abi-64-v2-condition): Likewise.
40692         (abi-64-v2-ld-soname): Likewise.
40693         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40694         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40698
40699 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40700             Alan Modra  <amodra@gmail.com>
40701
40702         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40703         New versions for use with the ELFv2 ABI.
40704         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40705         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40706         declaration.
40707         (struct La_ppc64v2_retval): Likewise.
40708         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40709         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40710         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40711         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40712         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40713         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40714         Do not save or restore CR.
40715         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40716         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40717         return values for ELFv2 ABI.  Fix location of FPR return registers.
40718         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40719         updated values for _CALL_ELF == 2.
40720         (La_regs, La_retval, int_retval): Likewise.
40721
40722 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40723
40724         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40725         (FRAME_MIN_SIZE_PARM): Likewise.
40726         (FRAME_BACKCHAIN): Likewise.
40727         (FRAME_CR_SAVE): Likewise.
40728         (FRAME_LR_SAVE): Likewise.
40729         (FRAME_TOC_SAVE): Likewise.
40730         (FRAME_PARM_SAVE): Likewise.
40731         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40732         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40733         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40734         (call_mcount_parm_offset): New macro.
40735         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40736         (PROF): Use symbolic stack frame offsets.
40737         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40738         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40739         Redefine in terms of FRAME_MIN_SIZE.
40740         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40741         (_dl_profile_resolve): Likewise.  Update comment.
40742         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40743         symbols stack frame offsets.
40744         (__sigsetjmp): Likewise.
40745         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40746         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40747         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40748         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40749
40750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40751         (FRAME_BACKCHAIN): Remove.
40752         (FRAME_CR_SAVE): Likewise.
40753         (FRAME_LR_SAVE): Likewise.
40754         (FRAME_COMPILER_DW): Likewise.
40755         (FRAME_LINKER_DW): Likewise.
40756         (FRAME_TOC_SAVE): Likewise.
40757         (FRAME_PARM_SAVE): Likewise.
40758         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40759         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40760         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40762         (CHECK_SP): Use symbolic stack frame offsets.
40763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40764         zone" instead of caller's parameter save area for temp storage.
40765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40766         Likewise.  Also, use symbolic stack frame offsets.
40767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40768         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40769         our own stack frame instead of the caller's.
40770         (__socket): Use symbolic stack frame offsets.
40771
40772 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40773             Alan Modra  <amodra@gmail.com>
40774
40775         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
40776         Define.
40777         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
40778         (PPC64_LOCAL_ENTRY_OFFSET): Define.
40779         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
40780         New function.
40781         (elf_machine_fixup_plt): Call it.
40782         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
40783         reloc arguments.
40784         (elf_machine_rela): Update call to elf_machine_plt_conflict.
40785         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40786         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
40787         r2 before calling target.
40788
40789 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40790             Alan Modra  <amodra@gmail.com>
40791
40792         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
40793         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
40794         versions of macros to support ELFv2 ABI.
40795         (LOCALENTRY): New macro.
40796         (ENTRY, EALIGN): Use it.
40797         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
40798         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
40799         fall through into ENTRY entry point.
40800         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
40801         Only define if _CALL_ELF != 2.
40802
40803         (elf_machine_matches_host): Verify ABI version matches.
40804         (RTLD_START): Use LOCALENTRY.
40805         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
40806         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
40807         (PLT_ENTRY_WORDS): New macro.
40808         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
40809         (elf_machine_runtime_setup): Support ELFv2 ABI.
40810         (elf_machine_fixup_plt): Likewise.
40811         (elf_machine_plt_conflict): Likewise.
40812         (resolve_ifunc): Likewise.
40813         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
40814         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
40815         Likewise.
40816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
40817         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
40818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40819         (makecontext): Support ELFv2 ABI.
40820         * elf/elf.h (EF_PPC64_ABI): Define.
40821
40822 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40823
40824         * sysdeps/powerpc/powerpc64/sysdep.h
40825         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
40826         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
40827         (ENTRY) [ASSEMBLER]: ... but instead here ...
40828         (EALIGN) [ASSEMBLER]: ... and here.
40829         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
40830         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
40831         (ENTRY_2) [!ASSEMBLER]: Use it.
40832         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
40833         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
40834         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40835         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
40836         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
40837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
40838         Use PPC64_LOAD_FUNCPTR.
40839
40840         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
40841
40842 2013-12-04  Alan Modra  <amodra@gmail.com>
40843
40844         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
40845         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
40846         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
40847         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
40848
40849         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
40850         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
40851         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
40852         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
40853         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
40854         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
40855
40856 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40857
40858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40859         (__makecontext): Fix incorrect CFI when backtracing out of
40860         context created via makecontext.
40861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
40862         (__setcontext): Fix incorrect CFI during switch to new context.
40863         (__novec_setcontext): Likewise.
40864
40865 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40866
40867         [BZ #4772]
40868         * time/strptime_l.c (__strptime_internal): Allow modifiers
40869         in strptime.
40870         * time/tst-strptime.c (day_tests): Add testcase.
40871
40872 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40873
40874         * scripts/bench.pl: Skip over blank lines.
40875
40876 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40877
40878         [BZ #926]
40879         * manual/time.texi (Calendar Time): Clarify what timezone functions
40880         use.
40881
40882 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40883
40884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40885
40886 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40887
40888         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
40889         implementation.
40890         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
40891         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
40892         * debug/memset_chk.c (__memset_chk): Likewise.
40893         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
40894         * debug/strncpy_chk.c: Likewise.
40895
40896 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40897
40898         [BZ #15268]
40899         [BZ #15425]
40900         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
40901         (__ieee754_exp): For possibly underflowing results, check size of
40902         result and force underflow exception if required.
40903         * math/auto-libm-test-in: Add more tests of exp.
40904         * math/auto-libm-test-out: Regenerated.
40905         * sysdeps/i386/fpu/libm-test-ulps: Update.
40906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40907
40908         [BZ #16283]
40909         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
40910         * math/w_exp2f.c (__exp2f): Likewise.
40911         * math/w_exp2l.c (__exp2l): Likewise.
40912         * math/auto-libm-test-in: Do not allow missing errno on exp2
40913         underflow.
40914         * math/auto-libm-test-out: Regenerated.
40915
40916 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
40917
40918         [BZ #16274]
40919         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
40920         handle filename validation.
40921         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
40922         (do_open): Delete.
40923
40924 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40925
40926         [BZ #6786]
40927         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
40928         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
40929         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
40930         <float.h>.
40931         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
40932         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
40933         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40934         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
40935         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40936         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
40937         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40938         * math/auto-libm-test-in: Don't allow missing errno from erfc.
40939         Add more erfc tests.
40940         * math/auto-libm-test-out: Regenerated.
40941         * sysdeps/i386/fpu/libm-test-ulps: Update.
40942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40943
40944         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
40945         exp2, expm1, j0 and j1.
40946         * math/auto-libm-test-out: Regenerated.
40947         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
40948         (erfc_test_data): Likewise.
40949         (exp_test_data): Likewise.
40950         (exp_tonearest_test_data): Likewise.
40951         (exp_towardzero_test_data): Likewise.
40952         (exp_downward_test_data): Likewise.
40953         (exp_upward_test_data): Likewise.
40954         (exp10_test_data): Likewise.
40955         (exp2_test_data): Likewise.
40956         (expm1_test_data): Likewise.
40957         (j0_test_data): Likewise.
40958         (j1_test_data): Likewise.
40959         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
40960         (input_flag_type): Add flag_xfail_rounding.
40961         (input_flags): Add xfail-rounding.
40962         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
40963         (output_for_one_input_case): Handle flag_xfail_rounding.
40964         * sysdeps/i386/fpu/libm-test-ulps: Update.
40965         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40966
40967 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
40968
40969         [BZ #16289]
40970         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
40971         division by 0.
40972
40973 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
40974
40975         [BZ #16195]
40976         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
40977         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
40978         (STAP_PROBE0): New macro.
40979         (STAP_PROBE1): Likewise.
40980         (STAP_PROBE2): Likewise.
40981         (STAP_PROBE3): Likewise.
40982         (STAP_PROBE4): Likewise.
40983
40984 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
40985
40986         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
40987
40988 2013-12-02  Steve Ellcey  <sellcey@mips.com>
40989
40990         * benchtests/Makefile (bench): Add sqrt.
40991         (LDLIBS-bench-sqrt): New.
40992         * benchtests/sqrt-input: New.
40993
40994 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
40995
40996         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
40997         (GAIH_EAI): Likewise.
40998         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
40999         (gaih_inet): Likewise.
41000         (getaddrinfo): Don't use GAIH_EAI.
41001
41002         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41003         (struct gaih): Remove definition.
41004
41005 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41006
41007         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41008         Use HERRNOP directly.
41009
41010 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41011
41012         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41013
41014 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41015
41016         * math/gen-auto-libm-tests.c (test_functions): Add more
41017         single-argument functions.
41018         (special_fill_pi_2): New function.
41019         (special_fill_minus_pi_2): Likewise.
41020         (special_fill_pi_6): Likewise.
41021         (special_fill_minus_pi_6): Likewise.
41022         (special_fill_pi_3): Likewise.
41023         (special_fill_2pi_3): Likewise.
41024         (special_fill_e): Likewise.
41025         (special_fill_1_e): Likewise.
41026         (special_fill_e_minus_1): Likewise.
41027         (special_real_inputs): Add more special inputs.
41028         (output_for_one_input_case): Do not require ERANGE on underflow to
41029         zero if round-to-nearest result does not underflow to zero, unless
41030         exact results required.
41031         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41032         atan, atanh, cbrt, cos and cosh.
41033         * math/auto-libm-test-out: Regenerated.
41034         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41035         (acos_tonearest_test_data): Likewise.
41036         (acos_towardzero_test_data): Likewise.
41037         (acos_downward_test_data): Likewise.
41038         (acos_upward_test_data): Likewise.
41039         (acosh_test_data): Likewise.
41040         (asin_test_data): Likewise.
41041         (asin_tonearest_test_data): Likewise.
41042         (asin_towardzero_test_data): Likewise.
41043         (asin_upward_test_data): Likewise.
41044         (asinh_test_data): Likewise.
41045         (atan_test_data): Likewise.
41046         (atanh_test_data): Likewise.
41047         (cbrt_test_data): Likewise.
41048         (cos_test_data): Likewise.
41049         (cos_tonearest_test_data): Likewise.
41050         (cos_towardzero_test_data): Likewise.
41051         (cos_downward_test_data): Likewise.
41052         (cos_upward_test_data): Likewise.
41053         (cosh_test_data): Likewise.
41054         (cosh_tonearest_test_data): Likewise.
41055         (cosh_towardzero_test_data): Likewise.
41056         (cosh_downward_test_data): Likewise.
41057         (cosh_upward_test_data): Likewise.
41058         * sysdeps/i386/fpu/libm-test-ulps: Update.
41059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41060
41061 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41062
41063         [BZ #6787]
41064         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41065         * math/w_exp10f.c (__exp10f): Likewise.
41066         * math/w_exp10l.c (__exp10l): Likewise.
41067         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41068         errno settings in existing tests.
41069
41070         [BZ #14032]
41071         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41072         precision control set to double precision.
41073         * sysdeps/i386/fpu/w_sqrt.c: New file.
41074         * math/auto-libm-test-in: Add more tests.
41075         * math/auto-libm-test-out: Update.
41076
41077         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41078         (sqrt_test_tonearest): New function.
41079         (sqrt_towardzero_test_data): New variable.
41080         (sqrt_test_towardzero): New function.
41081         (sqrt_downward_test_data): New variable.
41082         (sqrt_test_downward): New function.
41083         (sqrt_upward_test_data): New variable.
41084         (sqrt_test_upward): New function.
41085         (main): Call the new functions.
41086
41087         * math/gen-auto-libm-tests.c: New file.
41088         * math/auto-libm-test-in: Likewise.
41089         * math/auto-libm-test-out: New generated file.
41090         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41091         variables.
41092         (%beautify): Add generated representations of zero.
41093         (top level): Set $auto_input and call parse_auto_input.
41094         (beautify): Remove trailing "f" from hex float constants.
41095         (parse_args): Handle XFAIL_TEST.
41096         (convert_condition): New function.
41097         (or_value): Likewise.
41098         (or_cond_value): Likewise.
41099         (generate_testfile): Handle AUTO_TESTS_* lines.
41100         (parse_auto_input): New function.
41101         * math/libm-test.inc (XFAIL_TEST): New macro.
41102         (ERRNO_UNCHANGED): Update value.
41103         (ERRNO_EDOM): Likewise.
41104         (ERRNO_ERANGE): Likewise.
41105         (IGNORE_RESULT): Likewise.
41106         (TEST_COND_flt_32): New macro.
41107         (TEST_COND_dbl_64): Likewise.
41108         (TEST_COND_ldbl_96_intel): Likewise.
41109         (TEST_COND_ldbl_96_m68k): Likewise.
41110         (TEST_COND_ldbl_128): Likewise.
41111         (TEST_COND_ldbl_128ibm): Likewise.
41112         (TEST_COND_long32): Likewise.
41113         (TEST_COND_long64): Likewise.
41114         (TEST_COND_before_rounding): Likewise.
41115         (TEST_COND_after_rounding): Likewise.
41116         (enable_test): Handle XFAIL_TEST flag.
41117         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41118         with finite results.
41119         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41120         auto-libm-test-out.
41121
41122 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41123             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41124
41125         [BZ #16214]
41126         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41127         __tls_get_addr_internal instead of __tls_get_offset in order to
41128         avoid GOT pointer dependency.  Make rtld export
41129         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41130         __tls_get_addr since we are a __tls_get_offset platform.
41131         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41132         GOT pointer being set up before.
41133         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41134
41135 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41136
41137         * manual/math.texi (Errors in Math Functions): Document accuracy
41138         goals.
41139
41140         [BZ #15004]
41141         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41142         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41143         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41144         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41145         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41146         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41147         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41148         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41149         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41150         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41151         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41152         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41153         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41154         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41155         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41156         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41157
41158         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41159         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41160         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41161         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41162         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41163         Likewise.
41164         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41165         Likewise.
41166         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41167         Likewise.
41168         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41169         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41170         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41171         atomic-feupdateenv and flt-rounds.
41172         * sysdeps/powerpc/nofpu/Versions (libc): Add
41173         __atomic_feholdexcept, __atomic_feclearexcept,
41174         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41175         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41176         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41177         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41178         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41179         here.
41180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41181         Update.
41182
41183         * manual/arith.texi (FP Exceptions): Document that exceptions may
41184         not be raised when matherr is used.
41185         (Math Error Reporting): Document overflow in directed rounding
41186         modes.  Document that errno may not be set when finite values are
41187         returned on overflow.  Document intent to set errno on underflow
41188         only for underflow to zero.
41189
41190         [BZ #16271]
41191         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41192         round-to-nearest then adjust result for other rounding modes.
41193         * include/fenv.h (fegetround): Use libm_hidden_proto.
41194         * math/fegetround.c (fegetround): Use libm_hidden_def.
41195         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41196         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41197         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41198         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41199         Likewise.
41200         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41201         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41202         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41203         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41204
41205 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41206
41207         [BZ #16077]
41208         * nss/Versions (libnss_files): Add
41209         _nss_files_gethostbyname3_r.
41210         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41211         New function.
41212         (HOST_DB_LOOKUP): Remove macro.
41213         (_nss_files_gethostbyname_r): Implement function without the
41214         HOST_DB_LOOKUP macro.
41215         (_nss_files_gethostbyname2_r): Likewise.
41216
41217 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41218
41219         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41220
41221 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41222
41223         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41224         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41225         warning.
41226
41227 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41228
41229         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41230         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41231         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41232         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41233         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41234         __fe_nomask_env_priv and attribute_hidden.
41235         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41236         (libc_feupdateenv_test_ppc): Likewise.
41237         (libc_feresetround_ppc): Likewise.
41238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41239         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41240         compat_symbol macro.
41241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41242         (__fe_nomask_env): Likewise.
41243         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41244
41245 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41246
41247         * string/Makefile: Remove ifunc tests.
41248         * string/test-string.h: Define TEST_IFUNC.
41249         * string/test-bcopy-ifunc.c: Remove.
41250         * string/test-bzero-ifunc.c: Likewise.
41251         * string/test-memccpy-ifunc.c: Likewise.
41252         * string/test-memchr-ifunc.c: Likewise.
41253         * string/test-memcmp-ifunc.c: Likewise.
41254         * string/test-memcpy-ifunc.c: Likewise.
41255         * string/test-memmem-ifunc.c: Likewise.
41256         * string/test-memmove-ifunc.c: Likewise.
41257         * string/test-mempcpy-ifunc.c: Likewise.
41258         * string/test-memrchr-ifunc.c: Likewise.
41259         * string/test-memset-ifunc.c: Likewise.
41260         * string/test-rawmemchr-ifunc.c: Likewise.
41261         * string/test-stpcpy-ifunc.c: Likewise.
41262         * string/test-stpncpy-ifunc.c: Likewise.
41263         * string/test-strcasecmp-ifunc.c: Likewise.
41264         * string/test-strcasestr-ifunc.c: Likewise.
41265         * string/test-strcat-ifunc.c: Likewise.
41266         * string/test-strchr-ifunc.c: Likewise.
41267         * string/test-strchrnul-ifunc.c: Likewise.
41268         * string/test-strcmp-ifunc.c: Likewise.
41269         * string/test-strcpy-ifunc.c: Likewise.
41270         * string/test-strcspn-ifunc.c: Likewise.
41271         * string/test-strlen-ifunc.c: Likewise.
41272         * string/test-strncasecmp-ifunc.c: Likewise.
41273         * string/test-strncat-ifunc.c: Likewise.
41274         * string/test-strncmp-ifunc.c: Likewise.
41275         * string/test-strncpy-ifunc.c: Likewise.
41276         * string/test-strnlen-ifunc.c: Likewise.
41277         * string/test-strpbrk-ifunc.c: Likewise.
41278         * string/test-strrchr-ifunc.c: Likewise.
41279         * string/test-strspn-ifunc.c: Likewise.
41280         * string/test-strstr-ifunc.c: Likewise.
41281
41282 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41283
41284         * benchtests/Makefile: Remove ifunc tests.
41285         * benchtests/bench-string.h: Define TEST_IFUNC.
41286         * benchtests/bench-bcopy-ifunc.c: Remove.
41287         * benchtests/bench-bzero-ifunc.c: Likewise.
41288         * benchtests/bench-memccpy-ifunc.c: Likewise.
41289         * benchtests/bench-memchr-ifunc.c: Likewise.
41290         * benchtests/bench-memcmp-ifunc.c: Likewise.
41291         * benchtests/bench-memcpy-ifunc.c: Likewise.
41292         * benchtests/bench-memmem-ifunc.c: Likewise.
41293         * benchtests/bench-memmove-ifunc.c: Likewise.
41294         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41295         * benchtests/bench-memrchr-ifunc.c: Likewise.
41296         * benchtests/bench-memset-ifunc.c: Likewise.
41297         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41298         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41299         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41300         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41301         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41302         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41303         * benchtests/bench-strcat-ifunc.c: Likewise.
41304         * benchtests/bench-strchr-ifunc.c: Likewise.
41305         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41306         * benchtests/bench-strcmp-ifunc.c: Likewise.
41307         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41308         * benchtests/bench-strcpy-ifunc.c: Likewise.
41309         * benchtests/bench-strcspn-ifunc.c: Likewise.
41310         * benchtests/bench-strlen-ifunc.c: Likewise.
41311         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41312         * benchtests/bench-strncat-ifunc.c: Likewise.
41313         * benchtests/bench-strncmp-ifunc.c: Likewise.
41314         * benchtests/bench-strncpy-ifunc.c: Likewise.
41315         * benchtests/bench-strnlen-ifunc.c: Likewise.
41316         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41317         * benchtests/bench-strrchr-ifunc.c: Likewise.
41318         * benchtests/bench-strsep-ifunc.c: Likewise.
41319         * benchtests/bench-strspn-ifunc.c: Likewise.
41320         * benchtests/bench-strstr-ifunc.c: Likewise.
41321
41322 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41323
41324         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41325
41326 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41327
41328         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41329         * rt/aio.h: Likewise.
41330         * sysdeps/gnu/bits/utmp.h: Likewise.
41331         * sysdeps/gnu/bits/utmpx.h: Likewise.
41332         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41333         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41334         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41335         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41336         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41337         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41338         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41339         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41340         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41341         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41342         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41343         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41344         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41346         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41347         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41348         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41349         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41350         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41351         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41352         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41353         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41354         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41355         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41356         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41357         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41358         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41359         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41360         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41361         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41362         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41363         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41364         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41365         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41366         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41367         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41368         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41369         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41370         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41371         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41372         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41373         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41374
41375 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41376
41377         [BZ #16245]
41378         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41379         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41380
41381 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41382
41383         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41384         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41385         Likewise.
41386
41387 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41388
41389         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41390         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41391         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41392         (__fesetround): Remove define.
41393         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41394         rounding and exceptions handling.
41395         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41396         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41397         (__fe_nomask_env): Likewise.
41398         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41399         __fegetround instead of fegetround.
41400         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41401         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41402
41403 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41404
41405         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41406         it's there.
41407
41408         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41409
41410 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41411
41412         [BZ #11157]
41413         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41414         (encrypt_r): Likewise.
41415         * malloc/obstack.h (obstack_free): Likewise.
41416         * posix/unistd.h (encrypt): Likewise.
41417
41418 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41419
41420         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41421         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41422         DL_CALL_DT_FINI() that call the functions directly.
41423         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41424         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41425         * elf/dl-fini.c: Likewise.
41426
41427 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41428
41429         * malloc/hooks.c (memalign_check): Add alignment rounding.
41430         * malloc/malloc.c (_mid_memalign): New function.
41431         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41432         Implement by calling _mid_memalign.
41433         * manual/probes.texi (Memory Allocation Probes): Remove
41434         memory_valloc_retry and memory_pvalloc_retry.
41435
41436 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41437
41438         * locale/programs/locarchive.c (open_archive): Add const
41439         qualifier to ARCHIVEFNAME and copy default fname to
41440         DEFAULT_FNAME.
41441
41442         [BZ #15601]
41443         * libio/tst-widetext.input: Rename Oriya to Odia.
41444         * locale/iso-639.def: Likewise.
41445
41446         * manual/probes.texi (Mathematical Function Probes): Add
41447         documentation for sin, cos, asin and acos probes.
41448         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41449         (__sin32): Add slowasin probe.
41450         (__cos32): Add slowacos probe.
41451         (__mpsin): Add slowsin probe.
41452         (__mpcos): Add slowcos probe.
41453
41454 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41455
41456         [BZ #15483]
41457         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41458         thread-local __sim_exceptions_thread and global
41459         __sim_exceptions_global.
41460         (__sim_disabled_exceptions): Change to thread-local
41461         __sim_disabled_exceptions_thread and global
41462         __sim_disabled_exceptions_global.
41463         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41464         and global __sim_round_mode_global.
41465         (__simulate_exceptions): Use thread-local floating-point state and
41466         set global state from it as needed.
41467         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41468         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41469         __sim_round_mode_thread.
41470         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41471         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41472         and global __sim_exceptions_global.
41473         (__sim_disabled_exceptions): Change to thread-local
41474         __sim_disabled_exceptions_thread and global
41475         __sim_disabled_exceptions_global.
41476         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41477         and global __sim_round_mode_global.
41478         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41479         (SIM_SET_GLOBAL): Likewise.
41480         * sysdeps/powerpc/soft-fp/sfp-machine.h
41481         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41482         __sim_round_mode_thread.
41483         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41484         __sim_disabled_exceptions_thread.
41485         (__sim_exceptions): Change to __sim_exceptions_thread.
41486         (__sim_disabled_exceptions): Change to
41487         __sim_disabled_exceptions_thread.
41488         (__sim_round_mode): Change to __sim_round_mode_thread.
41489         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41490         thread-local floating-point state and set global state from it as
41491         needed.
41492         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41493         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41494         (__sim_disabled_exceptions): Remove extern declaration.
41495         (feenableexcept): Use thread-local floating-point state and set
41496         global state from it as needed.
41497         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41498         extern declaration.
41499         (__sim_disabled_exceptions): Likewise.
41500         (__sim_round_mode): Likewise.
41501         (__fegetenv): Use thread-local floating-point state.
41502         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41503         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41504         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41505         floating-point state and set global state from it as needed.
41506         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41507         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41508         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41509         Likewise.
41510         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41511         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41512         Likewise.
41513         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41514         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41515         Use __sim_round_mode_thread.
41516         * math/test-fenv-tls.c: New file.
41517         * math/Makefile (tests): Add test-fenv-tls.
41518         ($(objpfx)test-fenv-tls): Depend on
41519         $(common-objpfx)nptl/libpthread.so.
41520
41521 2013-11-19  Andreas Schwab  <schwab@suse.de>
41522
41523         * locale/programs/locale.c (show_info): Decode wordarray elements.
41524         * locale/categories.def (LC_MONETARY): Add element for
41525         _NL_MONETARY_CRNCYSTR.
41526         * locale/C-monetary.c (conversion_rate): New variable.
41527         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41528         element.
41529
41530 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41531
41532         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41533         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41534
41535 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41536
41537         * elf/Makefile (tst-auxv): New test.
41538         * elf/tst-auxv.c: New
41539         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41540
41541 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41542
41543         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41544         (hidden_proto): Caller changed.
41545         (hidden_tls_proto): New macro.
41546         (libc_hidden_tls_proto): Likewise.
41547         (rtld_hidden_tls_proto): Likewise.
41548         (libm_hidden_tls_proto): Likewise.
41549         (libresolv_hidden_tls_proto): Likewise.
41550         (librt_hidden_tls_proto): Likewise.
41551         (libdl_hidden_tls_proto): Likewise.
41552         (libnss_files_hidden_tls_proto): Likewise.
41553         (libnsl_hidden_tls_proto): Likewise.
41554         (libnss_nisplus_hidden_tls_proto): Likewise.
41555         (libutil_hidden_tls_proto): Likewise.
41556
41557 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41558
41559         [BZ #10253]
41560         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41561         (decompose_rpath): Defer expansion to fillin_rpath.
41562         (_dl_init_paths): Pass linkmap to fillin_rpath.
41563
41564 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41565
41566         * benchtests/Makefile: Add strsep.
41567         * benchtests/bench-strsep.c: New file: strsep benchtest.
41568         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41569
41570 2013-11-18  Andreas Schwab  <schwab@suse.de>
41571
41572         * locale/programs/locale.c (show_info) [case byte]: Check for
41573         '\377' instead of '\177'.
41574         * locale/C-monetary.c (not_available): Always use "\377".
41575         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41576         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41577         detect unavailable sign_posn locale elements.
41578         * locale/localeconv.c (__localeconv): For grouping and
41579         mon_grouping handle "\177" and "\377" like no grouping.
41580         (INT_ELEM): New macro.  Use it to set all numeric members.
41581         * locale/programs/ld-monetary.c (monetary_read)
41582         <tok_mon_grouping>: Normalize single -1 to the empty string.
41583         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41584         Likewise.
41585
41586 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41587
41588         [BZ #16055]
41589         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41590         when we match (nil).
41591         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41592
41593 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41594
41595         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41596         (NO_TEST_INLINE): Update value.
41597         (ERRNO_UNCHANGED): Likewise.
41598         (ERRNO_EDOM): Likewise.
41599         (ERRNO_ERANGE): Likewise.
41600         (IGNORE_RESULT): Likewise.
41601         (check_float_internal): Check signs of NaN results if
41602         TEST_NAN_SIGN used.
41603         (check_complex): Pass TEST_NAN_SIGN flag through to second
41604         check_float_internal call.
41605         (copysign_test_data): Add tests with quiet NaNs as second
41606         argument.  Use TEST_NAN_SIGN.
41607         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41608         TEST_NAN_SIGN.
41609         (signbit_test_data): Add tests of quiet NaN argument.
41610         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41611
41612         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41613         $ignore_result.
41614         (parse_args): Handle function results specified as IGNORE.
41615         * math/libm-test.inc (IGNORE_RESULT): New macro.
41616         (check_float_internal): Do not check numerical result if flag
41617         IGNORE_RESULT set.
41618         (check_complex): Pass through IGNORE_RESULT to second
41619         check_float_internal call.
41620         (check_int): Do not check numerical result if flag IGNORE_RESULT
41621         set.
41622         (check_long): Likewise.
41623         (check_bool): Likewise.
41624         (check_longlong): Likewise.
41625         (lrint_test_data): Add tests of infinite and NaN arguments.
41626         (lrint_tonearest_test_data): Likewise.
41627         (lrint_towardzero_test_data): Likewise.
41628         (lrint_downward_test_data): Likewise.
41629         (lrint_upward_test_data): Likewise.
41630         (llrint_test_data): Likewise.
41631         (llrint_tonearest_test_data): Likewise.
41632         (llrint_towardzero_test_data): Likewise.
41633         (llrint_downward_test_data): Likewise.
41634         (llrint_upward_test_data): Likewise.
41635         (lround_test_data): Likewise.
41636         (llround_test_data): Likewise.
41637
41638         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41639         (ERRNO_UNCHANGED): Update value.
41640         (ERRNO_EDOM): Likewise.
41641         (ERRNO_ERANGE): Likewise.
41642         (NO_TEST_INLINE_FLOAT): New macro.
41643         (NO_TEST_INLINE_DOUBLE): Likewise.
41644         (enable_test): New function.
41645         (RUN_TEST_f_f): Check enable_test before running test.
41646         (RUN_TEST_2_f): Likewise.
41647         (RUN_TEST_fff_f): Likewise.
41648         (RUN_TEST_c_f): Likewise.
41649         (RUN_TEST_f_f1): Likewise.
41650         (RUN_TEST_fF_f1): Likewise.
41651         (RUN_TEST_fI_f1): Likewise.
41652         (RUN_TEST_ffI_f1): Likewise.
41653         (RUN_TEST_c_c): Likewise.
41654         (RUN_TEST_cc_c): Likewise.
41655         (RUN_TEST_f_i): Likewise.
41656         (RUN_TEST_f_i_tg): Likewise.
41657         (RUN_TEST_ff_i_tg): Likewise.
41658         (RUN_TEST_f_b): Likewise.
41659         (RUN_TEST_f_b_tg): Likewise.
41660         (RUN_TEST_f_l): Likewise.
41661         (RUN_TEST_f_L): Likewise.
41662         (RUN_TEST_fFF_11): Likewise.
41663         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41664         conditionals.
41665         (cosh_test_data): Likewise.
41666         (exp_test_data): Likewise.
41667         (expm1_test_data): Likewise.
41668         (hypot_test_data): Likewise.
41669         (pow_test_data): Likewise.
41670         (sinh_test_data): Likewise.
41671         (tanh_test_data): Likewise.
41672         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41673         flags argument.
41674
41675         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41676         tests with quiet NaN input and output.
41677         (acosh_test_data): Likewise.
41678         (asin_test_data): Likewise.
41679         (asinh_test_data): Likewise.
41680         (atan_test_data): Likewise.
41681         (atanh_test_data): Likewise.
41682         (atan2_test_data): Likewise.
41683         (cbrt_test_data): Likewise.
41684         (cos_test_data): Likewise.
41685         (cosh_test_data): Likewise.
41686         (erf_test_data): Likewise.
41687         (erfc_test_data): Likewise.
41688         (exp_test_data): Likewise.
41689         (exp10_test_data): Likewise.
41690         (exp2_test_data): Likewise.
41691         (expm1_test_data): Likewise.
41692         (hypot_test_data): Likewise.
41693         (j0_test_data): Likewise.
41694         (j1_test_data): Likewise.
41695         (jn_test_data): Likewise.
41696         (lgamma_test_data): Likewise.
41697         (log_test_data): Likewise.
41698         (log10_test_data): Likewise.
41699         (log1p_test_data): Likewise.
41700         (log2_test_data): Likewise.
41701         (pow_test_data): Likewise.
41702         (scalb_test_data): Likewise.
41703         (sin_test_data): Likewise.
41704         (sincos_test_data): Likewise.
41705         (sinh_test_data): Likewise.
41706         (tan_test_data): Likewise.
41707         (tanh_test_data): Likewise.
41708         (tgamma_test_data): Likewise.
41709         (y0_test_data): Likewise.
41710         (y1_test_data): Likewise.
41711         (yn_test_data): Likewise.
41712
41713         [BZ #16167]
41714         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41715         argument being NaN and avoid computations with second argument in
41716         that case.
41717         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41718         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41719         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41720
41721 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41722
41723         * locale/iso-639.def: Add Chitwani Tharu (the).
41724
41725 2013-11-14  Andreas Schwab  <schwab@suse.de>
41726
41727         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41728         word instead of empty string.
41729
41730 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41731
41732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41733         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41735         (__fe_nomask_env): Likewise.
41736
41737 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41738
41739         * benchtests/bench-timing.h: Include time.h.
41740
41741 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41742
41743         [BZ #15997]
41744         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41745         to 3.4.0 for x32.
41746         * sysdeps/unix/sysv/linux/configure: Regenerated.
41747
41748 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41749
41750         [BZ #16151]
41751         * stdlib/strtod_l.c (round_and_return): Do not consider
41752         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41753         exponent one less than half the least subnormal exponent.
41754         * stdlib/test-strtod-round-data: Add more tests.
41755         * stdlib/tst-strtod-round.c (tests): Regenerated.
41756
41757 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41758
41759         [BZ #14143]
41760         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41761         (__fe_mask_env): Likewise.
41762         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41763         libm_hidden_proto and add function prototype.
41764         (__fe_mask_env): Add function prototype.
41765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41766         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41768         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41770         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41771
41772 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41773
41774         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41775         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
41776
41777 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41778
41779         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
41780         of htab_find_slot().
41781
41782 2013-11-11  David S. Miller  <davem@davemloft.net>
41783
41784         [BZ #16150]
41785         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
41786         symbol in the non-vis3 case in static builds.
41787         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
41788         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
41789         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
41790         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
41791
41792 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
41793
41794         [BZ #387]
41795         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
41796         it is empty.
41797
41798 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41799
41800         * benchtests/Makefile: Add bench-strtod.
41801         * benchtests/bench-strtod.c: New file: strtod benchtest
41802
41803 2013-11-11  Andreas Schwab  <schwab@suse.de>
41804
41805         [BZ #16153]
41806         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
41807         terminating NUL in key length.
41808
41809 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41810
41811         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41812         Add artificial ODP entry for vDSO symbol for PPC64.
41813         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
41814         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
41815
41816 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41817
41818         [BZ #15374]
41819         * nss/getent.c (services_keys): Recognize services starting with digit.
41820
41821 2013-11-06  David S. Miller  <davem@davemloft.net>
41822
41823         [BZ #15985]
41824         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
41825         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
41826
41827 2013-11-06  Will Newton  <will.newton@linaro.org>
41828
41829         * manual/memory.texi (Malloc Examples): Remove register
41830         keyword from examples.
41831
41832 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
41833
41834         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
41835
41836 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
41837
41838         [BZ #6981]
41839         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
41840         depending on [__GCC_IEC_559 > 0].
41841         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
41842         depending on [__GCC_IEC_559_COMPLEX > 0].
41843
41844 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
41845
41846         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
41847         to iso-639.def.
41848
41849 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
41850
41851         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
41852
41853 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
41854
41855         [BZ #16112]
41856         * malloc/malloc (malloc_info): Do not handle first bin as
41857         special case.
41858
41859 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
41860
41861         * locale/iso-639.def: Add Central Nahuatl (nhn).
41862
41863 2013-11-01  Bruno Haible  <bruno@clisp.org>
41864
41865         [BZ #7003]
41866         * manual/math.texi (BSD Random): Specify range upper bound as
41867         in POSIX.
41868
41869 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
41870
41871         * locale/iso-639.def: Add Meadow Mari (mhr).
41872
41873 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
41874
41875         [BZ #14752], [BZ #15763]
41876         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
41877         Validate name.
41878         * rt/tst_shm.c: Add test for escaping directory.
41879
41880 2013-10-31  Andreas Schwab  <schwab@suse.de>
41881
41882         [BZ #15917]
41883         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
41884         followed by 'x' as part of digit sequence.
41885         * stdio-common/tst-sscanf.c (double_tests2): New tests.
41886
41887 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
41888
41889         [BZ #16037]
41890         * configure.ac: allow GNU Make 4.0 and greater.
41891         * configure: Regenerated.
41892
41893 2013-10-30  Will Newton  <will.newton@linaro.org>
41894
41895         [BZ #16038]
41896         * malloc/hooks.c (memalign_check): Limit alignment to the
41897         maximum representable power of two.
41898         * malloc/malloc.c (__libc_memalign): Likewise.
41899         * malloc/tst-memalign.c (do_test): Add test for very
41900         large alignment values.
41901         * malloc/tst-posix_memalign.c (do_test): Likewise.
41902
41903 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41904
41905         [BZ #11087]
41906         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
41907         (munmap_chunk): Likewise.
41908         (mremap_chunk): Likewise.
41909
41910 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41911
41912         [BZ #15799]
41913         * stdlib/div.c (div): Remove obsolete code.
41914         * stdlib/ldiv.c (ldiv): Likewise.
41915         * stdlib/lldiv.c (lldiv): Likewise.
41916
41917 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
41918
41919         [BZ #16071]
41920         * nss/nss_files/files-XXX.c (get_contents_ret): New
41921         enumerator.
41922         (get_contents): New function.
41923         (internal_getent): Use it.  Expand size of LINEBUFLEN.
41924
41925 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
41926
41927         * configure.in: Moved to ...
41928         * configure.ac: ... here. Change reference to configure.in
41929         to configure.ac.
41930         * sysdeps/arm/preconfigure.ac: ... here.
41931         configure.in to configure.ac.
41932         * sysdeps/gnu/configure.in: Moved to ...
41933         * sysdeps/gnu/configure.ac: ... here.
41934         * sysdeps/i386/configure.in: Moved to ...
41935         * sysdeps/i386/configure.ac: ... here.
41936         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
41937         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
41938         * sysdeps/mach/configure.in: Moved to ...
41939         * sysdeps/mach/configure.ac: ... here.
41940         * sysdeps/mach/hurd/configure.in: Moved to ...
41941         * sysdeps/mach/hurd/configure.ac: ... here.
41942         * sysdeps/powerpc/configure.in: Moved to ...
41943         * sysdeps/powerpc/configure.ac: ... here.
41944         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
41945         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
41946         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
41947         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
41948         * sysdeps/s390/s390-32/configure.in: Moved to ...
41949         * sysdeps/s390/s390-32/configure.ac: ... here.
41950         * sysdeps/s390/s390-64/configure.in: Moved to ...
41951         * sysdeps/s390/s390-64/configure.ac: ... here.
41952         * sysdeps/sh/configure.in: Moved to ...
41953         * sysdeps/sh/configure.ac: ... here.
41954         * sysdeps/sparc/configure.in: Moved to ...
41955         * sysdeps/sparc/configure.ac: ... here.
41956         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
41957         * sysdeps/unix/sysv/linux/configure.ac: ... here.
41958         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
41959         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
41960         * sysdeps/x86_64/configure.in: Moved to ...
41961         * sysdeps/x86_64/configure.ac: ... here.
41962         * sysdeps/x86_64/preconfigure.in: Moved to ...
41963         * sysdeps/x86_64/preconfigure.ac: ... here.
41964         * aclocal.m4: Change reference to configure.in to configure.ac.
41965         * config.h.in: Likewise.
41966         * manual/install.texi: Likewise.
41967         * manual/maint.texi: Likewise.
41968         * Makefile: Likewise.
41969         * malloc/Makefile: Likewise.
41970         * nscd/Makefile: Likewise.
41971         * Makeconfig: Change reference to configure.in and
41972         preconfigure.in to configure.ac and preconfigure.ac
41973         respectively.
41974         * INSTALL: Regenerated.
41975         * configure: Likewise.
41976         * sysdeps/gnu/configure: Likewise.
41977         * sysdeps/i386/configure: Likewise.
41978         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
41979         * sysdeps/mach/configure: Likewise.
41980         * sysdeps/mach/hurd/configure: Likewise.
41981         * sysdeps/powerpc/configure: Likewise.
41982         * sysdeps/powerpc/powerpc32/configure: Likewise.
41983         * sysdeps/powerpc/powerpc64/configure: Likewise.
41984         * sysdeps/s390/s390-32/configure: Likewise.
41985         * sysdeps/s390/s390-64/configure: Likewise.
41986         * sysdeps/sh/configure: Likewise.
41987         * sysdeps/sparc/configure: Likewise.
41988         * sysdeps/unix/sysv/linux/configure: Likewise.
41989         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
41990         * sysdeps/x86_64/configure: Likewise.
41991         * sysdeps/x86_64/preconfigure: Likewise.
41992
41993 2013-10-29  Andreas Schwab  <schwab@suse.de>
41994
41995         * stdio-common/Makefile (tst-swscanf-ENV): Define.
41996
41997 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41998
41999         * benchtests/pow-inputs: Add new inputs.
42000
42001         * benchtests/exp-inputs: Add new inputs.
42002
42003         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42004         conditional check for return value.
42005         (__cos32): Likewise.
42006
42007 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42008
42009         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42010         to provide a boost for large inputs with word alignment.
42011         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42012         implementation based on optimized PPC64 strcpy.
42013         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42014         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42015         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42016         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42017
42018 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42019
42020         [BZ #2801]
42021         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42022
42023 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42024
42025         [BZ #14876]
42026         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42027         * time/tst-strptime.c (day_tests): Add testcase.
42028
42029 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42030
42031         [BZ #14029]
42032         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42033
42034 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42035
42036         [BZ #16074]
42037         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42038         MAP_FAILED on error.
42039
42040 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42041
42042         [BZ #16072]
42043         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42044         heap for large requests.
42045
42046 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42047
42048         [BZ #9954]
42049         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42050         result if the result has no associated interface.
42051         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42052         interface for all 127.X.Y.Z addresses.
42053
42054 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42055
42056         * locale/iso-639.def: Add Ligurian (lij)
42057
42058 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42059
42060         [BZ #15825]
42061         * sunrpc/rpc_main.c: Document rpcgen -5.
42062
42063 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42064
42065         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42066
42067 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42068
42069         [BZ #10278]
42070         * posix/glob.c: Match only directories when trailing slash is present.
42071         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42072         (main): Add testcase.
42073
42074 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42075
42076         [BZ #15670]
42077         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42078
42079 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42080
42081         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42082         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42083         AUTH_DES and cindex for FIPS 140-2.
42084         (DES Encryption): Add cindex FIPS 46-3.
42085
42086         * locale/locarchive.h (struct locarhandle): Add fname.
42087         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42088         if an optional argument was specified to --list-archive,
42089         otherwise NULL.
42090         * locale/programs/locarchive.c (show_archive_content): Take new
42091         argument fname and pass it via ah.fname to open_archive.
42092         * locale/programs/localedef.h: Update decl.
42093         (open_archive): If AH->fname is non-null, open that file
42094         rather than the default file name, and don't ignore ENOENT.
42095         (create_archive): Set AH.fname to NULL.
42096         (delete_locales_from_archive): Likewise.
42097         (add_locales_to_archive): Likewise.
42098         * locale/programs/locfile.c (write_all_categories): Likewise.
42099
42100 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42101             Aldy Hernandez  <aldyh@redhat.com>
42102
42103         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42104         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42105         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42106         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42107         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42108         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42109         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42110         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42111         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42112         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42113         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42114         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42115         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42116         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42117         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42118         Likewise.
42119         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42120         Likewise.
42121         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42122         Likewise.
42123         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42124         Likewise.
42125         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42126         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42127         Likewise.
42128         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42129         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42130         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42131         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42132         Likewise.
42133         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42134         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42135         * sysdeps/powerpc/preconfigure: Likewise.
42136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42137         Likewise.
42138         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42139         Replace contents of file by #include of <fenv_libc.h>.
42140         * sysdeps/powerpc/soft-fp/sfp-machine.h
42141         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42142         and <sys/prctl.h>.
42143         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42144         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42145         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42146         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42147         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42148         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42149         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42150         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42151         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42152         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42153         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42154         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42156         Allow copysignl PLT reference to be missing.
42157
42158 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42159             Joseph Myers  <joseph@codesourcery.com
42160
42161         [BZ #15948]
42162         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42163         single character.
42164         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42165
42166 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42167
42168         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42169         * elf/tst-tls1.c: Likewise.
42170         * elf/tst-tls10.h: Likewise.
42171         * elf/tst-tls14.c: Likewise.
42172         * elf/tst-tls2.c: Likewise.
42173         * elf/tst-tls3.c: Likewise.
42174         * elf/tst-tls4.c: Likewise.
42175         * elf/tst-tls5.c: Likewise.
42176         * elf/tst-tls6.c: Likewise.
42177         * elf/tst-tls7.c: Likewise.
42178         * elf/tst-tls8.c: Likewise.
42179         * elf/tst-tls9.c: Likewise.
42180         * elf/tst-tlsmod1.c: Likewise.
42181         * elf/tst-tlsmod13.c: Likewise.
42182         * elf/tst-tlsmod13a.c: Likewise.
42183         * elf/tst-tlsmod14a.c: Likewise.
42184         * elf/tst-tlsmod16a.c: Likewise.
42185         * elf/tst-tlsmod16b.c: Likewise.
42186         * elf/tst-tlsmod2.c: Likewise.
42187         * elf/tst-tlsmod3.c: Likewise.
42188         * elf/tst-tlsmod4.c: Likewise.
42189         * elf/tst-tlsmod5.c: Likewise.
42190         * elf/tst-tlsmod6.c: Likewise.
42191
42192 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42193
42194         [BZ #12486]
42195         * malloc/malloc.c: remove checks for statistics.
42196
42197 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42198
42199         [BZ #15277]
42200         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42201         * inet/tst-network.c: Add testcase.
42202
42203 2013-10-17  Andreas Schwab  <schwab@suse.de>
42204
42205         [BZ #15218]
42206         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42207         to determine canonical name.
42208
42209 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42210
42211         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42212         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42213         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42214         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42215         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42216         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42217         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42218         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42219         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42220         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42221         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42222         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42223         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42224         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42225         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42226         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42227         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42228         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42229         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42230         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42231         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42232         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42233         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42234         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42235         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42236         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42237         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42238         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42239         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42240         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42241         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42242         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42243         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42244         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42245         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42246         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42247         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42248         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42249         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42250         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42251         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42252         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42253         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42254         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42255         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42256         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42257         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42258         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42259         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42260         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42261         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42262         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42263         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42264         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42265         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42266         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42267         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42268         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42269
42270 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42271
42272         [BZ #16041]
42273         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42274         make result into a quiet NaN.
42275
42276 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42277
42278         * soft-fp/adddf3.c: Fix horizontal whitespace.
42279         * soft-fp/addsf3.c: Likewise.
42280         * soft-fp/addtf3.c: Likewise.
42281         * soft-fp/divdf3.c: Likewise.
42282         * soft-fp/divsf3.c: Likewise.
42283         * soft-fp/divtf3.c: Likewise.
42284         * soft-fp/double.h: Likewise.
42285         * soft-fp/eqdf2.c: Likewise.
42286         * soft-fp/eqsf2.c: Likewise.
42287         * soft-fp/eqtf2.c: Likewise.
42288         * soft-fp/extenddftf2.c: Likewise.
42289         * soft-fp/extended.h: Likewise.
42290         * soft-fp/extendsfdf2.c: Likewise.
42291         * soft-fp/extendsftf2.c: Likewise.
42292         * soft-fp/extendxftf2.c: Likewise.
42293         * soft-fp/fixdfdi.c: Likewise.
42294         * soft-fp/fixdfsi.c: Likewise.
42295         * soft-fp/fixdfti.c: Likewise.
42296         * soft-fp/fixsfdi.c: Likewise.
42297         * soft-fp/fixsfsi.c: Likewise.
42298         * soft-fp/fixsfti.c: Likewise.
42299         * soft-fp/fixtfdi.c: Likewise.
42300         * soft-fp/fixtfsi.c: Likewise.
42301         * soft-fp/fixtfti.c: Likewise.
42302         * soft-fp/fixunsdfdi.c: Likewise.
42303         * soft-fp/fixunsdfsi.c: Likewise.
42304         * soft-fp/fixunsdfti.c: Likewise.
42305         * soft-fp/fixunssfdi.c: Likewise.
42306         * soft-fp/fixunssfsi.c: Likewise.
42307         * soft-fp/fixunssfti.c: Likewise.
42308         * soft-fp/fixunstfdi.c: Likewise.
42309         * soft-fp/fixunstfsi.c: Likewise.
42310         * soft-fp/fixunstfti.c: Likewise.
42311         * soft-fp/floatdidf.c: Likewise.
42312         * soft-fp/floatdisf.c: Likewise.
42313         * soft-fp/floatditf.c: Likewise.
42314         * soft-fp/floatsidf.c: Likewise.
42315         * soft-fp/floatsisf.c: Likewise.
42316         * soft-fp/floatsitf.c: Likewise.
42317         * soft-fp/floattidf.c: Likewise.
42318         * soft-fp/floattisf.c: Likewise.
42319         * soft-fp/floattitf.c: Likewise.
42320         * soft-fp/floatundidf.c: Likewise.
42321         * soft-fp/floatundisf.c: Likewise.
42322         * soft-fp/floatunditf.c: Likewise.
42323         * soft-fp/floatunsidf.c: Likewise.
42324         * soft-fp/floatunsisf.c: Likewise.
42325         * soft-fp/floatunsitf.c: Likewise.
42326         * soft-fp/floatuntidf.c: Likewise.
42327         * soft-fp/floatuntisf.c: Likewise.
42328         * soft-fp/floatuntitf.c: Likewise.
42329         * soft-fp/fmadf4.c: Likewise.
42330         * soft-fp/fmasf4.c: Likewise.
42331         * soft-fp/fmatf4.c: Likewise.
42332         * soft-fp/gedf2.c: Likewise.
42333         * soft-fp/gesf2.c: Likewise.
42334         * soft-fp/getf2.c: Likewise.
42335         * soft-fp/ledf2.c: Likewise.
42336         * soft-fp/lesf2.c: Likewise.
42337         * soft-fp/letf2.c: Likewise.
42338         * soft-fp/muldf3.c: Likewise.
42339         * soft-fp/mulsf3.c: Likewise.
42340         * soft-fp/multf3.c: Likewise.
42341         * soft-fp/negdf2.c: Likewise.
42342         * soft-fp/negsf2.c: Likewise.
42343         * soft-fp/negtf2.c: Likewise.
42344         * soft-fp/op-1.h: Likewise.
42345         * soft-fp/op-2.h: Likewise.
42346         * soft-fp/op-4.h: Likewise.
42347         * soft-fp/op-8.h: Likewise.
42348         * soft-fp/op-common.h: Likewise.
42349         * soft-fp/quad.h: Likewise.
42350         * soft-fp/single.h: Likewise.
42351         * soft-fp/soft-fp.h: Likewise.
42352         * soft-fp/sqrtdf2.c: Likewise.
42353         * soft-fp/sqrtsf2.c: Likewise.
42354         * soft-fp/sqrttf2.c: Likewise.
42355         * soft-fp/subdf3.c: Likewise.
42356         * soft-fp/subsf3.c: Likewise.
42357         * soft-fp/subtf3.c: Likewise.
42358         * soft-fp/truncdfsf2.c: Likewise.
42359         * soft-fp/trunctfdf2.c: Likewise.
42360         * soft-fp/trunctfsf2.c: Likewise.
42361         * soft-fp/trunctfxf2.c: Likewise.
42362         * soft-fp/unorddf2.c: Likewise.
42363         * soft-fp/unordsf2.c: Likewise.
42364         * soft-fp/unordtf2.c: Likewise.
42365
42366 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42367
42368         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42369         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42370
42371 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42372
42373         * elf/dl-libc.c: Clear initfini list after freeing.
42374
42375 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42376
42377         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42378         * soft-fp/addsf3.c: Likewise.
42379         * soft-fp/addtf3.c: Likewise.
42380         * soft-fp/divdf3.c: Likewise.
42381         * soft-fp/divsf3.c: Likewise.
42382         * soft-fp/divtf3.c: Likewise.
42383         * soft-fp/double.h: Likewise.
42384         * soft-fp/eqdf2.c: Likewise.
42385         * soft-fp/eqsf2.c: Likewise.
42386         * soft-fp/eqtf2.c: Likewise.
42387         * soft-fp/extenddftf2.c: Likewise.
42388         * soft-fp/extended.h: Likewise.
42389         * soft-fp/extendsfdf2.c: Likewise.
42390         * soft-fp/extendsftf2.c: Likewise.
42391         * soft-fp/extendxftf2.c: Likewise.
42392         * soft-fp/fixdfdi.c: Likewise.
42393         * soft-fp/fixdfsi.c: Likewise.
42394         * soft-fp/fixdfti.c: Likewise.
42395         * soft-fp/fixsfdi.c: Likewise.
42396         * soft-fp/fixsfsi.c: Likewise.
42397         * soft-fp/fixsfti.c: Likewise.
42398         * soft-fp/fixtfdi.c: Likewise.
42399         * soft-fp/fixtfsi.c: Likewise.
42400         * soft-fp/fixtfti.c: Likewise.
42401         * soft-fp/fixunsdfdi.c: Likewise.
42402         * soft-fp/fixunsdfsi.c: Likewise.
42403         * soft-fp/fixunsdfti.c: Likewise.
42404         * soft-fp/fixunssfdi.c: Likewise.
42405         * soft-fp/fixunssfsi.c: Likewise.
42406         * soft-fp/fixunssfti.c: Likewise.
42407         * soft-fp/fixunstfdi.c: Likewise.
42408         * soft-fp/fixunstfsi.c: Likewise.
42409         * soft-fp/fixunstfti.c: Likewise.
42410         * soft-fp/floatdidf.c: Likewise.
42411         * soft-fp/floatdisf.c: Likewise.
42412         * soft-fp/floatditf.c: Likewise.
42413         * soft-fp/floatsidf.c: Likewise.
42414         * soft-fp/floatsisf.c: Likewise.
42415         * soft-fp/floatsitf.c: Likewise.
42416         * soft-fp/floattidf.c: Likewise.
42417         * soft-fp/floattisf.c: Likewise.
42418         * soft-fp/floattitf.c: Likewise.
42419         * soft-fp/floatundidf.c: Likewise.
42420         * soft-fp/floatundisf.c: Likewise.
42421         * soft-fp/floatunsidf.c: Likewise.
42422         * soft-fp/floatunsisf.c: Likewise.
42423         * soft-fp/floatuntidf.c: Likewise.
42424         * soft-fp/floatuntisf.c: Likewise.
42425         * soft-fp/floatuntitf.c: Likewise.
42426         * soft-fp/fmadf4.c: Likewise.
42427         * soft-fp/fmasf4.c: Likewise.
42428         * soft-fp/fmatf4.c: Likewise.
42429         * soft-fp/gedf2.c: Likewise.
42430         * soft-fp/gesf2.c: Likewise.
42431         * soft-fp/getf2.c: Likewise.
42432         * soft-fp/ledf2.c: Likewise.
42433         * soft-fp/lesf2.c: Likewise.
42434         * soft-fp/letf2.c: Likewise.
42435         * soft-fp/muldf3.c: Likewise.
42436         * soft-fp/mulsf3.c: Likewise.
42437         * soft-fp/multf3.c: Likewise.
42438         * soft-fp/negdf2.c: Likewise.
42439         * soft-fp/negsf2.c: Likewise.
42440         * soft-fp/negtf2.c: Likewise.
42441         * soft-fp/op-1.h: Likewise.
42442         * soft-fp/op-2.h: Likewise.
42443         * soft-fp/op-4.h: Likewise.
42444         * soft-fp/op-8.h: Likewise.
42445         * soft-fp/op-common.h: Likewise.
42446         * soft-fp/quad.h: Likewise.
42447         * soft-fp/single.h: Likewise.
42448         * soft-fp/soft-fp.h: Likewise.
42449         * soft-fp/sqrtdf2.c: Likewise.
42450         * soft-fp/sqrtsf2.c: Likewise.
42451         * soft-fp/sqrttf2.c: Likewise.
42452         * soft-fp/subdf3.c: Likewise.
42453         * soft-fp/subsf3.c: Likewise.
42454         * soft-fp/subtf3.c: Likewise.
42455         * soft-fp/truncdfsf2.c: Likewise.
42456         * soft-fp/trunctfdf2.c: Likewise.
42457         * soft-fp/trunctfsf2.c: Likewise.
42458         * soft-fp/trunctfxf2.c: Likewise.
42459         * soft-fp/unorddf2.c: Likewise.
42460         * soft-fp/unordsf2.c: Likewise.
42461         * soft-fp/unordtf2.c: Likewise.
42462
42463 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42464
42465         [BZ #15672]
42466         * misc/error.c (error_tail): Fix possible buffer overflow.
42467
42468 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42469
42470         [BZ #13028]
42471         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42472         address.
42473
42474 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42475
42476         [BZ #832]
42477         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42478         testing pipefail option.
42479
42480 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42481
42482         * soft-fp/double.h: Indent preprocessor directives inside #if.
42483         * soft-fp/extended.h: Likewise.
42484         * soft-fp/op-2.h: Likewise.
42485         * soft-fp/op-4.h: Likewise.
42486         * soft-fp/op-common.h: Likewise.
42487         * soft-fp/quad.h: Likewise.
42488         * soft-fp/single.h: Likewise.
42489         * soft-fp/soft-fp.h: Likewise.
42490
42491 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42492
42493         * iconv/iconv_prog.c: Fix typos.
42494         * stdio-common/psiginfo-data.h: Likewise.
42495
42496 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42497
42498         [BZ #15764]
42499         * locale/setlocale.c: Fix typo.
42500
42501 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42502
42503         [BZ #16036]
42504         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42505         signaling NaN arguments.
42506         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42507         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42508
42509         [BZ #14910]
42510         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42511         unordered operands.
42512         * soft-fp/gesf2.c (__gesf2): Likewise.
42513         * soft-fp/getf2.c (__getf2): Likewise.
42514         * soft-fp/ledf2.c (__ledf2): Likewise.
42515         * soft-fp/lesf2.c (__lesf2): Likewise.
42516         * soft-fp/letf2.c (__letf2): Likewise.
42517
42518         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42519         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42520         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42521         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42522         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42523         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42524         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42525         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42526         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42527         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42528         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42529         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42530         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42531         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42532         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42533         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42534         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42535         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42536         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42537         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42538         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42539         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42540         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42541         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42542         * soft-fp/floattidf.c (__floattidf): Likewise.
42543         * soft-fp/floattisf.c (__floattisf): Likewise.
42544         * soft-fp/floattitf.c (__floattitf): Likewise.
42545         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42546         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42547         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42548         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42549         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42550         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42551         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42552         * soft-fp/gesf2.c (__gesf2): Likewise.
42553         * soft-fp/getf2.c (__getf2): Likewise.
42554         * soft-fp/ledf2.c (__ledf2): Likewise.
42555         * soft-fp/lesf2.c (__lesf2): Likewise.
42556         * soft-fp/letf2.c (__letf2): Likewise.
42557
42558         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42559         Undefine and redefine.
42560         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42561         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42562         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42563         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42564         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42565         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42566         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42567         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42568         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42569         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42570         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42571         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42572         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42573         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42574         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42575
42576         [BZ #16032]
42577         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42578         without decrementing exponent if mantissa >= that for the
42579         denominator, not >.
42580         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42581         denominator, not >.  Decrement exponent in < case instead of
42582         incrementing in >= case.
42583         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42584         without decrementing exponent if mantissa >= that for the
42585         denominator, not >.
42586
42587         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42588         computing saturated result for unsigned overflow.
42589
42590 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42591             Jeff Law  <law@redhat.com>
42592
42593         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42594         (atan2Mp): Add systemtap probe marker.
42595         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42596         (__ieee754_log): Add systemtap probe marker.
42597         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42598         (atanMp): Add systemtap probe marker.
42599         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42600         (tanMp): Add systemtap probe marker.
42601         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42602         (__slowexp): Add systemtap probe marker.
42603         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42604         (__slowpow): Add systemtap probe marker.
42605         * manual/probes.texi: Document probes.
42606
42607 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42608
42609         [BZ #15362]
42610         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42611         written.
42612         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42613         written.
42614         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42615         written to buffer but not flushed.
42616         * libio/iofwrite_u.c:  Likewise.
42617         * libio/iopadn.c:  Return bytes returned even if EOF was
42618         encountered.
42619         * libio/iowpadn.c:  Likewise.
42620         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42621         if _IO_padn does not write the whole buffer.
42622         [!COMPILE_WPRINTF] (PAD): Likewise.
42623
42624 2013-10-10  David S. Miller  <davem@davemloft.net>
42625
42626         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42627         directory block.
42628
42629 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42630
42631         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42632         instead of FSF address.
42633         * soft-fp/fixdfti.c: Likewise.
42634         * soft-fp/fixsfti.c: Likewise.
42635         * soft-fp/fixtfti.c: Likewise.
42636         * soft-fp/fixunsdfti.c: Likewise.
42637         * soft-fp/fixunssfti.c: Likewise.
42638         * soft-fp/fixunstfti.c: Likewise.
42639         * soft-fp/floattidf.c: Likewise.
42640         * soft-fp/floattisf.c: Likewise.
42641         * soft-fp/floattitf.c: Likewise.
42642         * soft-fp/floatuntidf.c: Likewise.
42643         * soft-fp/floatuntisf.c: Likewise.
42644         * soft-fp/floatuntitf.c: Likewise.
42645         * soft-fp/trunctfxf2.c: Likewise.
42646
42647         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42648         * soft-fp/fixdfti.c: Likewise.
42649         * soft-fp/fixsfti.c: Likewise.
42650         * soft-fp/fixtfti.c: Likewise.
42651         * soft-fp/fixunsdfti.c: Likewise.
42652         * soft-fp/fixunssfti.c: Likewise.
42653         * soft-fp/fixunstfti.c: Likewise.
42654         * soft-fp/floattidf.c: Likewise.
42655         * soft-fp/floattisf.c: Likewise.
42656         * soft-fp/floattitf.c: Likewise.
42657         * soft-fp/floatuntidf.c: Likewise.
42658         * soft-fp/floatuntisf.c: Likewise.
42659         * soft-fp/floatuntitf.c: Likewise.
42660         * soft-fp/trunctfxf2.c: Likewise.
42661
42662 2013-10-10  David S. Miller  <davem@davemloft.net>
42663
42664         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42665
42666 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42667
42668         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42669         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42670         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42671         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42672         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42673         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42674         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42675
42676         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42677         for NaNs before doing comparisons on argument.
42678         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42679         Likewise.
42680
42681 2013-10-10  Will Newton  <will.newton@linaro.org>
42682
42683         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42684         passed to _int_memalign does not overflow.
42685
42686 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42687
42688         * scripts/bench.pl: Add include-sources directive.
42689         * benchtests/README: Update documentation.
42690
42691 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42692
42693         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42694         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42695         instead of FP_INIT_ROUNDMODE.
42696         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42697         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42698
42699         [BZ #16034]
42700         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42701         copy class of input value.
42702         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42703         not handle exceptions.
42704         * soft-fp/negsf2.c (__negsf2): Likewise.
42705         * soft-fp/negtf2.c (__negtf2): Likewise.
42706         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42707
42708 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42709
42710         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42711         semicolon.  From Linux kernel.
42712
42713 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42714
42715         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42716
42717 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42718
42719         [BZ #156]
42720         * manual/socket.texi: Added statement about buffer
42721         for gethostbyname2_r.
42722
42723 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42724
42725         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42726         Use .p2align directive instead, throughout.
42727         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42728         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42729         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42730         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42731         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42732         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42733         * sysdeps/x86_64/strchr.S: Likewise.
42734         * sysdeps/x86_64/strrchr.S: Likewise.
42735
42736 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42737
42738         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42739
42740         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42741
42742         * sysdeps/generic/math_private.h (__mpsin1): Remove
42743         declaration.
42744         (__mpcos1): Likewise.
42745         (__mpsin): New argument __range_reduce.
42746         (__mpcos): Likewise.
42747         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42748         (slow): Use __mpsin and __mpcos.
42749         (slow1): Likewise.
42750         (slow2): Likewise.
42751         (sloww): Likewise.
42752         (sloww1): Likewise.
42753         (sloww2): Likewise.
42754         (bsloww): Likewise.
42755         (bsloww1): Likewise.
42756         (bsloww2): Likewise.
42757         (cslow2): Likewise.
42758         (csloww): Likewise.
42759         (csloww1): Likewise.
42760         (csloww2): Likewise.
42761         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42762         range_reduce.  Merge in __mpsin1.
42763         (__mpcos): Likewise.
42764         (__mpsin1): Remove.
42765         (__mpcos1): Likewise.
42766
42767 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42768
42769         * locale/loadlocale.c (_nl_intern_locale_data): Use
42770         LOCFILE_ALIGNED_P.
42771         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42772         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42773         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42774         obstack data is appropriately aligned.
42775         (obstack_int32_grow_fast): Likewise.
42776         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
42777         * locale/programs/locfile.c (add_locale_uint32): Likewise.
42778         (add_locale_uint32_array): Likewise.
42779
42780 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42781
42782         * benchtests/Makefile: Remove ARGLIST and RET variables.
42783         ($(objpfx)bench-%.c): Pass only function name to the script.
42784         * benchtests/README: Update documentation.
42785         * benchtests/acos-inputs: Add new directives.
42786         * benchtests/acosh-inputs: Likewise.
42787         * benchtests/asin-inputs: Likewise.
42788         * benchtests/asinh-inputs: Likewise.
42789         * benchtests/atan-inputs: Likewise.
42790         * benchtests/atanh-inputs: Likewise.
42791         * benchtests/cos-inputs: Likewise.
42792         * benchtests/cosh-inputs: Likewise.
42793         * benchtests/exp-inputs: Likewise.
42794         * benchtests/log-inputs: Likewise.
42795         * benchtests/pow-inputs: Likewise.
42796         * benchtests/rint-inputs: Likewise.
42797         * benchtests/sin-inputs: Likewise.
42798         * benchtests/sinh-inputs: Likewise.
42799         * benchtests/tan-inputs: Likewise.
42800         * benchtests/tanh-inputs: Likewise.
42801         * scripts/bench.pl: Add support for new directives.
42802
42803 2013-10-07  Alan Modra  <amodra@gmail.com>
42804
42805         * README: Fix careless merge.
42806
42807 2013-10-05  Alan Modra  <amodra@gmail.com>
42808
42809         * NEWS: Mention powerpc64le support and bugs fixed.
42810         * README: Both big-endian and little-endian powerpc64 supported.
42811
42812 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42813
42814         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
42815         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
42816         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
42817         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
42818
42819 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
42820
42821         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
42822         match prototype.
42823
42824 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
42825
42826         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
42827         Move -mhard-float appending from
42828         ports/sysdeps/powerpc/powerpc32/Makefile.
42829         [$(with-fp) = yes] (ASFLAGS): Likewise.
42830         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
42831         * sysdeps/powerpc/nofpu: Move directory from
42832         ports/sysdeps/powerpc/nofpu.
42833         * sysdeps/powerpc/soft-fp: Move directory from
42834         ports/sysdeps/powerpc/soft-fp.
42835         * sysdeps/powerpc/powerpc32/405: Move directory from
42836         ports/sysdeps/powerpc/powerpc32/405.
42837         * sysdeps/powerpc/powerpc32/440: Move directory from
42838         ports/sysdeps/powerpc/powerpc32/440.
42839         * sysdeps/powerpc/powerpc32/464: Move directory from
42840         ports/sysdeps/powerpc/powerpc32/464.
42841         * sysdeps/powerpc/powerpc32/476: Move directory from
42842         ports/sysdeps/powerpc/powerpc32/476.
42843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42844         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
42845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
42846         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
42847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
42848         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
42849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
42850         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
42851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
42852         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
42853         * README: Update for powerpc-*-linux-gnu software floating point
42854         support in libc.
42855
42856         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
42857         case to powerpc/powerpc32*.
42858         * sysdeps/unix/sysv/linux/configure: Regenerated.
42859
42860         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
42861         (_FPU_MASK_OM): Define as 0x04.
42862         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
42863         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
42864         0x00c10080.
42865         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
42866         0x0000003c.
42867         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
42868
42869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
42870         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42871         getcontext_e500.
42872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
42873         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42874         setcontext_e500.
42875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
42876         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
42877         and setcontext_e500.
42878
42879 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
42880
42881         * locale/iso-3166.def: Update iso-1366.def and related occurrences
42882
42883 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42884
42885         * manual/threads.texi (Default Thread Attributes): Fix typo.
42886
42887 2013-10-04  Will Newton  <will.newton@linaro.org>
42888
42889         * malloc/Makefile: Add tst-memalign.
42890         * malloc/tst-memalign.c: New file.
42891
42892         * malloc/tst-posix_memalign.c: Add comments.
42893         (do_test): Add comments and call free on all potentially
42894         allocated pointers. Add space after cast.
42895
42896         * malloc/tst-pvalloc.c: Add comments.
42897         (do_test): Add comments and call free on all potentially
42898         allocated pointers. Remove duplicate check for NULL pointer.
42899         Add space after cast.
42900
42901         * malloc/tst-valloc.c: Add comments.
42902         (do_test): Add comments and call free on all potentially
42903         allocated pointers. Remove duplicate check for NULL pointer.
42904         Add space after cast.
42905
42906 2013-10-04  Alan Modra  <amodra@gmail.com>
42907
42908         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42909         Use stdint types in rather than __attribute__((mode())).
42910         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42911
42912 2013-10-04  Alan Modra  <amodra@gmail.com>
42913
42914         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42915         Correct handling of unaligned relocs for little-endian.
42916         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42917
42918 2013-10-04  Alan Modra  <amodra@gmail.com>
42919
42920         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
42921         * configure: Regenerate.
42922         * nptl/shlib-versions: Powerpc*le starts at 2.18.
42923         * shlib-versions: Likewise.
42924
42925 2013-10-04  Alan Modra  <amodra@gmail.com>
42926
42927         * string/tester.c (test_memrchr): Increment reported test cycle.
42928
42929 2013-10-04  Alan Modra  <amodra@gmail.com>
42930
42931         * string/test-memcpy.c (do_one_test): When reporting errors, print
42932         string address and don't overrun end of string.
42933
42934 2013-10-04  Alan Modra  <amodra@gmail.com>
42935
42936         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
42937         insrdi.  Make better use of reg selection to speed exit slightly.
42938         Schedule entry path a little better.  Remove useless "are we done"
42939         checks on entry to main loop.  Handle wrapping around zero address.
42940         Correct main loop count.  Handle single left-over word from main
42941         loop inline rather than by using loop_small.  Remove extra word
42942         case in loop_small caused by wrong loop count.  Add little-endian
42943         support.
42944         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
42945         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
42946         cache hint.
42947         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
42948         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
42949         support.  Avoid rlwimi.
42950         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
42951
42952 2013-10-04  Alan Modra  <amodra@gmail.com>
42953
42954         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
42955         insrdi.  Formatting.
42956         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
42957         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
42958         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
42959         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
42960         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
42961         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
42962
42963 2013-10-04  Alan Modra  <amodra@gmail.com>
42964
42965         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
42966         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
42967         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42968         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
42969         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
42970         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
42971         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
42972         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42973         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
42974         use of regs.  Use power7 mtocrf.  Tidy function tails.
42975
42976 2013-10-04  Alan Modra  <amodra@gmail.com>
42977
42978         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
42979         Formatting.  Consistently use rXXX register defines or rN defines.
42980         Use early exit labels that avoid restoring unused non-volatile regs.
42981         Make cr field use more consistent with rWORDn compares.  Rename
42982         regs used as shift registers for unaligned loop, using rN defines
42983         for short lifetime/multiple use regs.
42984         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
42985         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
42986         addi 1,1,64 to pop stack frame.  Simplify return value code.
42987         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
42988
42989 2013-10-04  Alan Modra  <amodra@gmail.com>
42990
42991         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
42992         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
42993         rather than rlwimi.
42994         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
42995         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
42996         little-endian support.  Correct typos.
42997         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
42998         rather than rlwimi.
42999         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43000         in loop and entry code to keep "and." results.
43001         (strchr): Add little-endian support.  Comment.  Move cntlzd
43002         earlier in tail.
43003         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43004
43005 2013-10-04  Alan Modra  <amodra@gmail.com>
43006
43007         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43008         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43009         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43010         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43011
43012 2013-10-04  Alan Modra  <amodra@gmail.com>
43013
43014         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43015         (rTMP): Define as r11.
43016         (strcmp): Add little-endian support.  Optimise tail.
43017         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43018         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43019         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43020         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43021         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43022         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43023         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43024
43025 2013-10-04  Alan Modra  <amodra@gmail.com>
43026
43027         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43028         little-endian support.  Remove unnecessary "are we done" tests.
43029         Handle "s" wrapping around zero and extremely large "size".
43030         Correct main loop count.  Handle single left-over word from main
43031         loop inline rather than by using small_loop.  Correct comments.
43032         Delete "zero" tail, use "end_max" instead.
43033         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43034
43035 2013-10-04  Alan Modra  <amodra@gmail.com>
43036
43037         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43038         support.  Don't branch over align.
43039         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43040         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43041         support.  Rearrange tmp reg use to suit.  Comment.
43042         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43043
43044 2013-10-04  Alan Modra  <amodra@gmail.com>
43045
43046         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43047
43048 2013-10-04  Alan Modra  <amodra@gmail.com>
43049
43050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43051         conditional form of branch and link when obtaining pc.
43052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43053
43054 2013-10-04  Alan Modra  <amodra@gmail.com>
43055
43056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43057         HIWORD/LOWORD.
43058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43060
43061 2013-10-04  Alan Modra  <amodra@gmail.com>
43062
43063         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43064         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43065         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43066         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43067         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43068         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43069         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43070         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43071         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43072         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43073
43074 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43075             Alistair Popple <alistair@ozlabs.au.ibm.com>
43076             Alan Modra <amodra@gmail.com>
43077
43078         [BZ #15723]
43079         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43080         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43081         _dl_hwcap access for little-endian.
43082         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43083         destroy vmx regs when saving unaligned.
43084         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43085         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43086         destroy vmx regs when saving unaligned.
43087
43088 2013-10-04  Alan Modra  <amodra@gmail.com>
43089
43090         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43091         Don't use a union to pack hi/low value.
43092
43093 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43094
43095         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43096         for little-endian.
43097         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43098         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43099         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43100         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43101         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43102
43103 2013-10-04  Alan Modra  <amodra@gmail.com>
43104
43105         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43106         constants to usual value for .cst8 section, and remove redundant
43107         high address load.
43108         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43109         constant for 0x1p52.  Load little-endian words of double from
43110         correct stack offsets.
43111
43112 2013-10-04  Alan Modra  <amodra@gmail.com>
43113
43114         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43115         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43116         words of double from correct stack offsets.
43117         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43118         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43119         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43120         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43121         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43122         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43123         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43124         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43125         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43126         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43127         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43128         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43129         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43130         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43131         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43132         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43133         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43134
43135 2013-10-04  Alan Modra  <amodra@gmail.com>
43136
43137         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43138         64-bit int/double union.
43139         (_FPU_SETCW): Likewise.
43140         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43141         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43142
43143 2013-10-04  Alan Modra  <amodra@gmail.com>
43144
43145         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43146         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43147
43148 2013-10-04  Alan Modra  <amodra@gmail.com>
43149
43150         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43151         use vector int constants.
43152         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43153
43154 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43155
43156         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43157         array with long long.
43158         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43159         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43160         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43161         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43162         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43163         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43164         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43165         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43166         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43167         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43168         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43169         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43170         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43171
43172 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43173
43174         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43175         (__signbit): Likewise.  Correct for little-endian.
43176         (__signbitl): Call __signbit.
43177         (lrint): Correct for little-endian.
43178         (lrintf): Call lrint.
43179
43180 2013-10-04  Alan Modra  <amodra@gmail.com>
43181
43182         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43183         union 32-bit int array member with 64-bit int array.
43184         (t515, tm256): Double rather than long double.
43185         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43186
43187 2013-10-04  Alan Modra  <amodra@gmail.com>
43188
43189         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43190         Delete.
43191         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43192         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43193         version of math_ldbl.h.
43194
43195 2013-10-04  Alan Modra  <amodra@gmail.com>
43196
43197         [BZ #15734], [BZ #15735]
43198         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43199         all uses of ieee875 long double macros and unions.  Simplify test
43200         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43201         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43202         normalize after ldbl_extract_mantissa, and don't add hidden bit
43203         already handled.  Don't treat low word of ieee854 mantissa like
43204         low word of IBM long double and mask off bit when testing for
43205         zero.
43206         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43207         all uses of ieee875 long double macros and unions.  Simplify tests
43208         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43209         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43210         two1022, instead use their values.  Recognise that tests for large
43211         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43212         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43213         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43214         test for 0.0L and nan.  Correct negation.
43215         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43216         ieee875 long double macros and unions.  Correct output for large
43217         magnitude x.  Correct absolute value calculation.
43218         (__erfcl): Likewise.
43219         * math/libm-test.inc: Add tests for errors discovered in IBM long
43220         double versions of fmodl, remainderl, erfl and erfcl.
43221
43222 2013-10-04  Alan Modra  <amodra@gmail.com>
43223
43224         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43225         all uses of ieee854 long double macros and unions.  Simplify tests
43226         for long doubles that are fully specified by the high double.
43227         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43228         Likewise.
43229         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43230         Remove dead code too.
43231         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43232         (__ieee754_ynl): Likewise.
43233         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43234         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43235         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43236         Remove dead code too.
43237         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43238         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43239         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43240         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43241         Simplify.
43242         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43243         Simplify.
43244         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43245         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43246         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43247         Comment on variable precision.
43248         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43249         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43250         Likewise.
43251         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43252         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43253         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43254         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43255         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43256
43257 2013-10-04  Alan Modra  <amodra@gmail.com>
43258
43259         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43260         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43261         all uses of ieee854 long double macros and unions.
43262         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43263         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43264         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43265         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43266         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43267         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43268         Likewise.
43269         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43270         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43271         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43272         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43273         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43274         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43275         Simplify sign and nan test too.
43276         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43277         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43278         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43279         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43280         Likewise.
43281         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43282         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43283         Likewise.
43284         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43285         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43286         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43287         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43288         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43289         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43290
43291 2013-10-04  Alan Modra  <amodra@gmail.com>
43292
43293         * stdio-common/printf_size.c (__printf_size): Don't use
43294         union ieee854_long_double in fpnum union.
43295         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43296         signbit macro to retrieve sign from long double.
43297         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43298         retrieve sign from long double.
43299         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43300         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43301         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43302         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43303         * math/test-misc.c (main): Don't use union ieee854_long_double.
43304
43305 2013-10-04  Alan Modra  <amodra@gmail.com>
43306
43307         [BZ #15680]
43308         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43309         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43310         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43311         calculation.  Remove unnecessary test for denormal exponent.
43312         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43313         Correct handling of denormals.  Avoid undefined shift behaviour.
43314         Correct normalisation of low mantissa when low double is denormal.
43315         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43316         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43317         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43318         Correct normalisation of low mantissa.  Test for overflow of high
43319         mantissa and normalise.
43320         (ldbl_nearbyint): Use more readable constant for two52.
43321         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43322         (__mpn_construct_long_double): Fix test for overflow of high
43323         mantissa and correct normalisation.  Avoid undefined shift.
43324
43325 2013-10-04  Alan Modra  <amodra@gmail.com>
43326
43327         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43328         (union ibm_extended_long_double): Define as an array of ieee754_double.
43329         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43330         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43331         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43332         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43333         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43334         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43335         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43336         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43337         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43338         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43339         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43340
43341 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43342
43343         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43344         page size instead of calling getpagesize.
43345
43346         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43347         (LOCFILE_ALIGN_MASK): Likewise.
43348         (LOCFILE_ALIGN_UP): Likewise.
43349         (LOCFILE_ALIGNED_P): Likewise.
43350         * locale/programs/ld-collate.c (collate_output): Use the new
43351         macros instead of __alignof__ (int32_t).
43352         * locale/weight.h (findidx): Likewise.
43353
43354 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43355
43356         [BZ #431]
43357         * manual/string.texi: Fix strncat and wcsncat.
43358
43359 2013-10-03  Brooks Moses  <bmoses@google.com>
43360
43361         [BZ #15915]
43362         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43363         * Makerules: ...here, and adjust associated comments.
43364
43365 2013-10-02  Will Newton  <will.newton@linaro.org>
43366
43367         * malloc/Makefile: Add tst-pvalloc.
43368         * malloc/tst-pvalloc.c: New file.
43369
43370 2013-10-02  Will Newton  <will.newton@linaro.org>
43371
43372         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43373         improve test coverage.
43374
43375 2013-10-02  Will Newton  <will.newton@linaro.org>
43376
43377         * malloc/Makefile: Add tst-posix_memalign.
43378         * malloc/tst-posix_memalign.c: New file.
43379
43380 2013-10-01  Eric Blake  <eblake@redhat.com>
43381
43382         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43383         Use __THROWNL rather than __THROW on static functions.
43384
43385 2013-09-30  Petr Machata  <pmachata@redhat.com>
43386
43387         * elf/elf.h (R_AARCH64_ABS16): New macro.
43388         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43389         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43390         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43391         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43392         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43393         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43394         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43395         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43396         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43397         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43398         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43399         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43400         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43401         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43402         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43403         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43404         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43405         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43406         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43407         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43408         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43409         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43410         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43411         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43412         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43413         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43414         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43415         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43416         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43417         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43418         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43419         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43420         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43421         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43422         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43423         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43424         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43425         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43426         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43427         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43428         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43429         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43430         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43431         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43432         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43433         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43434         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43435         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43436         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43437         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43438         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43439         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43440         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43441         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43442         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43443         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43444         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43445         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43446         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43447         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43448         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43449         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43450         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43451         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43452         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43453         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43454         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43455         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43456         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43457         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43458         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43459         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43460         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43461         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43462         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43463         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43464         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43465         (R_AARCH64_TLSDESC_LDR): Likewise.
43466         (R_AARCH64_TLSDESC_ADD): Likewise.
43467         (R_AARCH64_TLSDESC_CALL): Likewise.
43468
43469 2013-09-30  Andreas Schwab  <schwab@suse.de>
43470
43471         [BZ #15048]
43472         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43473         the nss database lookup.
43474         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43475         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43476
43477 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43478
43479         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43480
43481 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43482
43483         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43484         ${Bash-specific parameter/pattern/string} parameter expansion.
43485         * sysdeps/unix/make-syscalls.sh: Likewise.
43486
43487 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43488
43489         * sysdeps/sh/stackguard-macros.h: New file.
43490
43491 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43492
43493         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43494         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43495         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43496         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43497         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43498         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43499
43500 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43501
43502         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43503         Fix thread ID register.
43504
43505 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43506
43507         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43508         [POSIX || UNIX98]: Require rather than permitting all symbols from
43509         <time.h>.
43510         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43511         element of struct sched_param.
43512         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43513         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43514         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43515         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43516         constant.
43517
43518 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43519
43520         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43521         argument calculation.
43522
43523 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43524
43525         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43526         Expect macro.
43527         [POSIX] (pthread_attr_t): Do not require type.
43528         [POSIX] (pthread_cond_t): Likewise.
43529         [POSIX] (pthread_condattr_t): Likewise.
43530         [POSIX] (pthread_key_t): Likewise.
43531         [POSIX] (pthread_mutex_t): Likewise.
43532         [POSIX] (pthread_mutexattr_t): Likewise.
43533         [POSIX] (pthread_once_t): Likewise.
43534         [POSIX] (pthread_t): Likewise.
43535         [POSIX-based standards] (pthread_atfork): Expect function.
43536
43537 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43538             Richard Sandiford  <richard@codesourcery.com>
43539
43540         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43541         (swap_endianness_p): New extern variable.
43542         (set_big_endian): New inline function.
43543         (maybe_swap_uint32): Likewise.
43544         (maybe_swap_uint32_array): Likewise.
43545         (maybe_swap_uint32_obstack): Likewise.
43546         * locale/programs/locfile.c: Include <stdbool.h>.
43547         (swap_endianness_p): New variable.
43548         (add_locale_uint32): Call maybe_swap_uint32.
43549         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43550         (write_locale_data): Call maybe_swap_uint32_array.
43551         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43552         maybe_swap_uint32.
43553         (obstack_int32_grow_fast): Likewise.
43554         (output_weightwc): Call maybe_swap_uint32_obstack.
43555         (collate_output): Likewise.
43556         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43557         (OPT_LITTLE_ENDIAN): Likewise.
43558         (options): Add --little-endian and --big-endian options.
43559         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43560         * locale/programs/locarchive.c: Include "locfile.h".
43561         (GET): New macro.
43562         (SET): Likewise.
43563         (INC): Likewise.
43564         (create_archive): Use the new macros to access fields of
43565         structures directly mapped from or written to locale archives.
43566         (oldlocrecentcmp): Likewise.
43567         (enlarge_archive): Likewise.
43568         (insert_name): Likewise.
43569         (add_alias): Likewise.
43570         (add_locale): Likewise.
43571         (delete_locales_from_archive): Likewise.
43572         (show_archive_content): Likewise.
43573         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43574         locale data.
43575
43576 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43577
43578         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43579         http://www.gnu.org/doc/freemanuals.texi.
43580         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43581
43582 2013-09-24  Will Newton  <will.newton@linaro.org>
43583
43584         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43585         macro.
43586
43587 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43588
43589         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43590         unsigned char.
43591
43592 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43593
43594         * manual/threads.texi (POSIX Threads): Fix a typo.
43595
43596 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43597
43598         [BZ #14547]
43599         * string/tst-strcoll-overflow.c: New test case.
43600         * string/Makefile (xtests): Add tst-strcoll-overflow.
43601         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43602         cache if string sizes may cause integer overflow.
43603
43604         [BZ #14547]
43605         * string/strcoll_l.c (coll_seq): New members rule, idx,
43606         save_idx and back_us.
43607         (get_next_seq_nocache): New function.
43608         (do_compare_nocache): New function.
43609         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43610         when malloc fails.
43611
43612 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43613
43614         [BZ #15754]
43615         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43616         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43617         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43618
43619         [BZ #15754]
43620         * elf/Makefile (tests): Add tst-ptrguard1.
43621         (tests-static): Add tst-ptrguard1-static.
43622         (tst-ptrguard1-ARGS): Define.
43623         (tst-ptrguard1-static-ARGS): Define.
43624         * elf/tst-ptrguard1.c: New file.
43625         * elf/tst-ptrguard1-static.c: New file.
43626         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43627         * sysdeps/i386/stackguard-macros.h: Likewise.
43628         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43629         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43630         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43631         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43632         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43633         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43634
43635 2013-09-23  Hector Marco  <hecmargi@upv.es>
43636             Ismael Ripoll  <iripoll@disca.upv.es>
43637             Carlos O'Donell  <carlos@redhat.com>
43638
43639         [BZ #15754]
43640         * sysdeps/generic/stackguard-macros.h: Define
43641         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43642         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43643         Define __pointer_chk_guard_local.
43644         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43645         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43646
43647 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43648
43649         [BZ #15859]
43650         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43651
43652 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43653
43654         * include/string.h (__ffs): Declare as hidden.
43655         * string/ffs.c (__ffs): Define as hidden.
43656         * sysdeps/i386/ffs.c (__ffs): Likewise.
43657         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43658         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43659         * sysdeps/s390/ffs.c (__ffs): Likewise.
43660         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43661
43662 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43663
43664         * NEWS: Mention malloc probes.
43665
43666         * malloc/arena.c (new_heap): New memory_heap_new probe.
43667         (grow_heap): New memory_heap_more probe.
43668         (shrink_heap): New memory_heap_less probe.
43669         (heap_trim): New memory_heap_free probe.
43670         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43671         (systrim): New memory_sbrk_less probe.
43672         * manual/probes.texi: Document them.
43673
43674         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43675         * manual/probes.texi: Document it.
43676
43677         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43678         (__libc_realloc): Add memory_realloc_retry probe.
43679         (__libc_memalign): Add memory_memalign_retry probe.
43680         (__libc_valloc): Add memory_valloc_retry probe.
43681         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43682         (__libc_calloc): Add memory_calloc_retry probe.
43683         * manual/probes.texi: Document them.
43684
43685         * malloc/arena.c (get_free_list): Add probe
43686         memory_arena_reuse_free_list.
43687         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43688         and memory_arena_reuse.
43689         (arena_get2) [!PER_THREAD]: Likewise.
43690         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43691         memory_arena_reuse_realloc.
43692         * manual/probes.texi: Document them.
43693
43694         * malloc/malloc.c (__libc_free): Add
43695         memory_mallopt_free_dyn_thresholds probe.
43696         (__libc_mallopt): Add multiple memory_mallopt probes.
43697         * manual/probes.texi: Document them.
43698
43699         * malloc/malloc.c: Include stap-probe.h.
43700         (__libc_mallopt): Add memory_mallopt probe.
43701         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43702         * manual/probes.texi: New.
43703         * manual/Makefile (chapters): Add probes.
43704         * manual/threads.texi: Set next node.
43705
43706 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43707
43708         [BZ #15963, #13985]
43709         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43710         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43711         Add `Chinese' to `nan' entry name.
43712
43713 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43714
43715         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43716         (POLYNOMIAL): Likewise.
43717         (TAYLOR_SINCOS): Likewise.
43718         (TAYLOR_SLOW): Likewise.
43719         (__sin): Use TAYLOR_SINCOS.
43720         (__cos): Likewise.
43721         (slow): Use TAYLOR_SLOW.
43722         (sloww): Likewise.
43723         (bsloww): Likewise.
43724         (csloww): Likewise.
43725
43726 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43727
43728         * stdlib/strtod_l.c: Fix buffer overrun.
43729
43730 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43731
43732         * benchtests/Makefile (bench): Add sincos.
43733         * benchtests/bench-sincos.c: New file.
43734
43735         * math/libm-test.inc (cos_test_data): New test inputs.
43736         (sin_test_data): Likewise.
43737
43738         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43739         macro.
43740         (__sin): Use it.
43741         (__cos): Likewise.
43742         (slow1): Likewise.
43743         (slow2): Likewise.
43744         (sloww1): Likewise.
43745         (sloww2): Likewise.
43746         (bsloww1): Likewise.
43747         (bsloww2): Likewise.
43748         (cslow2): Likewise.
43749         (csloww1): Likewise.
43750         (csloww2): Likewise.
43751
43752         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43753         function.
43754         (__sin): Use it.
43755         (__cos): Likewise.
43756
43757         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43758         gotos.
43759         (__cos): Likewise.
43760
43761 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43762
43763         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43764         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43765         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43766         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43767         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43768         * elf/cache.c (print_entry): Handle the new cache flags.
43769
43770 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43771             Aldy Hernandez  <aldyh@redhat.com>
43772
43773         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43774         Change condition to [_SOFT_FLOAT].
43775         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
43776         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
43777         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
43778         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
43779         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
43780         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
43781         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
43782         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
43783         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
43784         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
43785         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
43786         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
43787         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
43788         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
43789         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
43790         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
43791         declaration.
43792
43793 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43794
43795         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
43796         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43797         (__longjmp): Use LOAD_GP to load saved GPRs.
43798         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
43799         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43800         (__sigsetjmp): Use SAVE_GP to save GPRs.
43801
43802         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
43803         Do not append -msoft-float.
43804         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
43805
43806 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43807
43808         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
43809
43810 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
43811
43812         [BZ #15966]
43813         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
43814         (_FPU_GETCW): Use initial "__" on variable and field names but not
43815         on macro parameter name.
43816         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
43817         parentheses around reference to macro parameter.
43818
43819 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
43820
43821         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
43822         prototype.
43823         (ctype_startup): Use uint32_t in cast and sizeof for
43824         ctype->charnames.
43825
43826 2013-09-11  Jia Liu  <proljc@gmail.com>
43827
43828         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
43829         __daddr_t_defined.
43830         [__FreeBSD__]: Likewise.
43831
43832 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
43833
43834         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
43835         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
43836         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
43837         (strchr): Remove __strchr_sse42 ifunc selection.
43838         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
43839         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
43840
43841 2013-09-11  Will Newton  <will.newton@linaro.org>
43842
43843         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
43844         parameter to RES. Remove hardcoded 1000 value.
43845         * benchtests/bench-skeleton.c (main): Pass RES parameter
43846         to TIMING_INIT and multiply result by 1000.
43847
43848 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43849
43850         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43851
43852 2013-09-11  Andreas Schwab  <schwab@suse.de>
43853
43854         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
43855         if not defined.
43856         (O_TMPFILE) [__USE_GNU]: Define.
43857         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
43858         Define.
43859
43860 2013-09-11  Will Newton  <will.newton@linaro.org>
43861
43862         [BZ #15857]
43863         * malloc/malloc.c (__libc_memalign): Check the value of bytes
43864         does not overflow.
43865
43866 2013-09-11  Will Newton  <will.newton@linaro.org>
43867
43868         [BZ #15856]
43869         * malloc/malloc.c (__libc_valloc): Check the value of bytes
43870         does not overflow.
43871
43872 2013-09-11  Will Newton  <will.newton@linaro.org>
43873
43874         [BZ #15855]
43875         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
43876         does not overflow.
43877
43878 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
43879
43880         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
43881         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43882         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43883         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43884         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43885
43886 2013-09-10  Allan McRae  <allan@archlinux.org>
43887
43888         [BZ #15748]
43889         * manual/arith.texi (Parsing of Floats): Clarify
43890         cross-reference.
43891
43892         [BZ #15849]
43893         * manual/install.texi (Running make install): Mention
43894         --enable-pt-chown.
43895         * INSTALL: Regenerated.
43896
43897 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
43898
43899         * csu/init-first.c (_init): Remove the !SHARED condition around
43900         FPU control word initialization.
43901         * elf/dl-support.c (_dl_fpu_control): New variable.
43902         (_dl_aux_init) <AT_FPUCW>: Initialize it.
43903         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
43904         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
43905         * math/test-fpucw-static.c: New file.
43906         * math/test-fpucw-ieee.c: New file.
43907         * math/test-fpucw-ieee-static.c: New file.
43908         * math/Makefile (tests): Add `test-fpucw-ieee' and
43909         `$(tests-static)'.
43910         (tests-static): New variable.
43911         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
43912         dependency to...
43913         [($(build-shared),yes)]
43914         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
43915         ... this.
43916         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
43917         New dependency.
43918
43919 2013-09-09  Allan McRae  <allan@archlinux.org>
43920
43921         [BZ #15939]
43922         * manual/string.texi (Collation Functions): Fix typo in
43923         strcoll example.
43924         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
43925
43926         [BZ #15893]
43927         * stdlib/isomac.c (get_null_defines): Fix memory leak.
43928
43929         [BZ #15892]
43930         * libio/memstream.c (open_memstream): Fix memory leak.
43931         * libio/wmemstream.c (open_wmemstream): Likewise.
43932
43933         [BZ #15895]
43934         * nscd/netgroupcache.c: Fix nesting of ifdefs.
43935
43936 2013-09-09  Will Newton  <will.newton@linaro.org>
43937
43938         * malloc/Makefile: Add tst-realloc to tests.
43939         * malloc/tst-realloc.c: New file.
43940
43941 2013-09-09  Allan McRae  <allan@archlinux.org>
43942
43943         [BZ #15844]
43944         * COPYING: Update from GNU website to fix FSF address.
43945         * COPYING.LIB: Likewise.
43946
43947 2013-09-06  David S. Miller  <davem@davemloft.net>
43948
43949         * po/zh_TW.po: Update Chinese (traditional) translation from
43950         translation project.
43951
43952 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
43953             Joseph Myers  <joseph@codesourcery.com>
43954
43955         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
43956         "localeinfo.h".
43957         (obstack_chunk_alloc): New macro.
43958         (obstack_chunk_free): Likewise.
43959         (record_offset): New function.
43960         (init_locale_data): Likewise.
43961         (align_locale_data): Likewise.
43962         (add_locale_empty): Likewise.
43963         (add_locale_raw_data): Likewise.
43964         (add_locale_raw_obstack): Likewise.
43965         (add_locale_string): Likewise.
43966         (add_locale_wstring): Likewise.
43967         (add_locale_uint32): Likewise.
43968         (add_locale_uint32_array): Likewise.
43969         (add_locale_char): Likewise.
43970         (start_locale_structure): Likewise.
43971         (end_locale_structure): Likewise.
43972         (start_locale_prelude): Likewise.
43973         (end_locale_prelude): Likewise.
43974         (write_locale_data): Take locale_file structure rather than an
43975         iovec.
43976         * locale/programs/locfile.h: Include "obstack.h".
43977         (struct locale_file): Change to store locale file contents instead
43978         of header.
43979         (init_locale_data): New prototype.
43980         (align_locale_data): Likewise.
43981         (add_locale_empty): Likewise.
43982         (add_locale_raw_data): Likewise.
43983         (add_locale_raw_obstack): Likewise.
43984         (add_locale_string): Likewise.
43985         (add_locale_wstring): Likewise.
43986         (add_locale_uint32): Likewise.
43987         (add_locale_uint32_array): Likewise.
43988         (add_locale_char): Likewise.
43989         (start_locale_structure): Likewise.
43990         (end_locale_structure): Likewise.
43991         (start_locale_prelude): Likewise.
43992         (end_locale_prelude): Likewise.
43993         (write_locale_data): Update prototype.
43994         * locale/programs/3level.h (struct TABLE): Remove result field.
43995         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
43996         Use new locale_file interface.
43997         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
43998         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
43999         * locale/programs/ld-address.c (address_output): Use new
44000         locale_file interface.
44001         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44002         NO_ADD_LOCALE.
44003         (collate_finish): Don't call collseq_table_finalize.
44004         (collate_output): Use new locale_file interface.
44005         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44006         in file.
44007         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44008         (TABLE): Move defines earlier in file.
44009         (ELEMENT): Likewise.
44010         (DEFAULT): Likewise.
44011         (wctrans_table_add): Move macro and inline function earlier in
44012         file.
44013         (struct wctype_table): Move type earlier in file.
44014         (add_locale_wctype_table): New static prototype.
44015         (struct locale_ctype_t): Use logical types instead of struct iovec
44016         pointers for members.
44017         (ctype_output): Use new locale_file interface.
44018         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44019         new locale_file interface.
44020         (allocate_arrays): Update for use of new locale_file interface.
44021         * locale/programs/ld-identification.c (identification_output): Use
44022         new locale_file interface.
44023         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44024         * locale/programs/ld-messages.c (messages_output): Likewise.
44025         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44026         * locale/programs/ld-name.c (name_output): Likewise.
44027         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44028         * locale/programs/ld-paper.c (paper_output): Likewise.
44029         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44030         * locale/programs/ld-time.c (time_output): Likewise.
44031
44032 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44033
44034         * benchtests/Makefile: Add memrchr benchmark.
44035         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44036         benchmark as memrchr.
44037         * benchtests/bench-memrchr-ifunc.c: New file.
44038         * benchtests/bench-memrchr.c: New file.
44039
44040 2013-09-06   Will Newton  <will.newton@linaro.org>
44041
44042         * benchtests/Makefile (string-bench): Add memcpy.
44043
44044 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44045             Cong Wang  <amwang@redhat.com>
44046
44047         [BZ #15850]
44048         * sysdeps/unix/sysv/linux/bits/in.h
44049         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44050         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44051         before __USE_KERNEL_IPV6_DEFS uses.
44052         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44053         IPPROTO_BEETPH.
44054         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44055         sockaddr_in6, or ipv6_mreq.
44056
44057 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44058
44059         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44060         memory access for final bytes in some large inputs.
44061         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44062
44063 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44064
44065         * string/test-memrchr.c: New file.
44066         * string/test-memrchr-ifunc.c: New file.
44067         * string/Makefile: Add new memrchr testcase.
44068
44069 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44070
44071         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44072         fanotify_init returns EPERM.
44073
44074 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44075
44076         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44077         errors.
44078         (top level): Treat second token from macro or constant entries for
44079         allowed headers as allowed.
44080         * include/complex.h: Condition internal declarations on
44081         [!_ISOMAC].
44082         * include/fenv.h: Condition include of <stdbool.h> and internal
44083         declarations on [!_ISOMAC].
44084
44085 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44086
44087         [BZ #15923]
44088         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44089
44090 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44091
44092         * configure.in (--enable-versioning): Remove configure option.
44093         (libc_cv_asm_symver_directive): Remove configure test.
44094         (libc_cv_ld_version_script_option): Likewise.
44095         (VERSIONING): Remove variable and AC_SUBST.
44096         (DO_VERSIONING): Remove AC_DEFINE.
44097         * configure: Regenerated.
44098         * config.h.in (DO_VERSIONING): Remove macro.
44099         * Makerules [$(versioning) = yes]: Change conditionals to
44100         [$(build-shared) = yes].
44101         * config.make.in (versioning): Remove variable.
44102         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44103         [$(build-shared) = yes].
44104         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44105         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44106         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44107         [$(build-shared) = yes].
44108         * extra-lib.mk [$(versioning) = yes]: Likewise.
44109         * hurd/Makefile [$(versioning) = yes]: Likewise.
44110         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44111         [SHARED].
44112         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44113         [SHARED].
44114         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44115         [SHARED && !NO_HIDDEN].
44116         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44117         [SHARED].
44118         [SHARED && DO_VERSIONING]: Likewise..
44119         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44120         [$(build-shared) = yes].
44121         * manual/install.texi (--disable-versioning): Remove
44122         documentation.
44123         * INSTALL: Regenerated.
44124         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44125         to [SHARED].
44126         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44127         [$(build-shared) = yes].
44128         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44129         * sysdeps/i386/i686/multiarch/strstr-c.c
44130         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44131         [SHARED && !NO_HIDDEN].
44132         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44133         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44134         * sysdeps/powerpc/powerpc32/dl-machine.c
44135         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44136         * sysdeps/powerpc/powerpc32/sysdep.h
44137         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44138         to [SHARED && PIC && !NO_HIDDEN].
44139         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44140         conditional to [SHARED].
44141
44142 2013-09-04   Will Newton  <will.newton@linaro.org>
44143
44144         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44145         * benchtests/bench-string.h: Include bench-timing.h instead
44146         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44147         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44148         call to HP_TIMING_DIFF_INIT.
44149         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44150         instead of hp-timing.h macros.
44151         * benchtests/bench-memchr.c: Likewise.
44152         * benchtests/bench-memcmp.c: Likewise.
44153         * benchtests/bench-memcpy.c: Likewise.
44154         * benchtests/bench-memmem.c: Likewise.
44155         * benchtests/bench-memmove.c: Likewise.
44156         * benchtests/bench-memset.c: Likewise.
44157         * benchtests/bench-rawmemchr.c: Likewise.
44158         * benchtests/bench-strcasecmp.c: Likewise.
44159         * benchtests/bench-strcasestr.c: Likewise.
44160         * benchtests/bench-strcat.c: Likewise.
44161         * benchtests/bench-strchr.c: Likewise.
44162         * benchtests/bench-strcmp.c: Likewise.
44163         * benchtests/bench-strcpy.c: Likewise.
44164         * benchtests/bench-strcpy_chk.c: Likewise.
44165         * benchtests/bench-strlen.c: Likewise.
44166         * benchtests/bench-strncasecmp.c: Likewise.
44167         * benchtests/bench-strncat.c: Likewise.
44168         * benchtests/bench-strncmp.c: Likewise.
44169         * benchtests/bench-strncpy.c: Likewise.
44170         * benchtests/bench-strnlen.c: Likewise.
44171         * benchtests/bench-strpbrk.c: Likewise.
44172         * benchtests/bench-strrchr.c: Likewise.
44173         * benchtests/bench-strspn.c: Likewise.
44174         * benchtests/bench-strstr.c: Likewise.
44175
44176 2013-09-04  Will Newton  <will.newton@linaro.org>
44177
44178         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44179
44180 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44181
44182         [BZ #15427]
44183         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44184         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44185         * math/libm-test.inc (lgamma_test_data): Add more tests.
44186         * sysdeps/i386/fpu/libm-test-ulps: Update.
44187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44188
44189 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44190
44191         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44192         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44193         Add ifunc.
44194         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44195         Add strcmp-sse2-unaligned
44196         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44197
44198 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44199
44200         * Versions.def (libc): Add GLIBC_2.19.
44201
44202 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44203
44204         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44205         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44206
44207 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44208
44209         [BZ #14155]
44210         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44211         intermediate calculations in recurrence.
44212         (__ieee754_ynf): Likewise.
44213         * math/libm-test.inc (jn_test_data): Do not allow spurious
44214         underflow exception.  Add more tests.
44215         (yn_test_data): Add more tests.
44216         * sysdeps/i386/fpu/libm-test-ulps: Update.
44217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44218
44219 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44220
44221         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44222
44223 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44224
44225         * csu/init-first.c: Fix then/than typos.
44226         * locale/programs/ld-collate.c: Likewise.
44227         * locale/programs/linereader.h: Likewise.
44228         * manual/charset.texi: Likewise.
44229         * manual/filesys.texi: Likewise.
44230         * manual/stdio.texi: Likewise.
44231         * manual/string.texi: Likewise.
44232         * stdlib/fmtmsg.c: Likewise.
44233         * sysdeps/i386/stpncpy.S: Likewise.
44234         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44235         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44236         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44237         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44238
44239 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44240
44241         * elf/dl-open.c: Fix typos.
44242         * iconvdata/gbbig5.c: Likewise.
44243         * iconvdata/iso-2022-jp.c: Likewise.
44244         * iconv/gconv_int.h: Likewise.
44245         * iconv/loop.c: Likewise.
44246         * nis/rpcsvc/nis.h: Likewise.
44247         * resolv/ns_name.c: Likewise.
44248         * stdio-common/vfscanf.c: Likewise.
44249         * streams/stropts.h: Likewise.
44250         * sunrpc/rpc_thread.c: Likewise.
44251         * sysdeps/i386/strpbrk.S: Likewise.
44252         * sysdeps/ieee754/k_standard.c: Likewise.
44253         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44254         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44255         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44256         * sysdeps/mach/hurd/profil.c: Likewise.
44257         * sysdeps/s390/dl-procinfo.h: Likewise.
44258         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44259         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44260         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44261         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44262         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44263
44264 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44265
44266         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44267         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44268
44269 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44270
44271         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44272         aix specific files.
44273         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44274         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44275         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44276         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44277         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44278         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44279         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44280         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44281
44282 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44283             Roland McGrath  <roland@hack.frob.com>
44284
44285         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44286         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44287
44288 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44289
44290         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44291         __executable_start symbol instead of _start.
44292
44293 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44294
44295         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44296         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44297         Move macros to...
44298         * sysdeps/gnu/ldsodefs.h: ... this new file.
44299
44300         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44301         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44302         instead of ELFOSABI_LINUX.
44303
44304         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44305         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44306         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44307         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44308         Likewise.
44309         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44310         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44311         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44312         Likewise.
44313         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44314         (ibm_extended_long_double): Add ieee_nan member.
44315         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44316         (do_test): New function.
44317
44318         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44319         TEST_TRUNC.
44320         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44321         functions, renamed from truncdfsf_test, trunctfsf_test,
44322         trunctfdf_test.
44323         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44324         functions.
44325         (do_test): Run all these.
44326
44327 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44328
44329         * argp/argp-help.c: Fix typos.
44330         * argp/argp-parse.c: Likewise.
44331         * debug/backtracesyms.c: Likewise.
44332         * elf/elf.h: Likewise.
44333         * malloc/malloc.c: Likewise.
44334         * nis/nis_print.c: Likewise.
44335         * resolv/res_comp.c: Likewise.
44336         * stdlib/stdlib.h: Likewise.
44337         * sunrpc/clnt_tcp.c: Likewise.
44338         * sunrpc/clnt_udp.c: Likewise.
44339         * sunrpc/clnt_unix.c: Likewise.
44340         * sysdeps/unix/bsd/ptsname.c: Likewise.
44341         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44342         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44344         Likewise.
44345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44346         Likewise.
44347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44348         Likewise.
44349         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44350
44351 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44352
44353         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44354         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44355
44356 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44357
44358         [BZ #15897]
44359         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44360         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44361         ($(objpfx)bug-dl-leaf): New rule.
44362         ($(objpfx)bug-dl-leaf.so): Likewise.
44363         ($(objpfx)bug-dl-leaf.out): Likewise.
44364         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44365         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44366         * dlfcn/bug-dl-leaf.c: New test.
44367         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44368         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44369         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44370         (dlclose): Likewise.
44371         (dlmopen): Likewise.
44372
44373 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44374
44375         * include/netdb.h [!_ISOMAC]:
44376         Don't include <tls.h>.
44377         (h_errno, __libc_h_errno): Move declaration and macros out of
44378         [_LIBC_REENTRANT].
44379
44380         * include/resolv.h [_RESOLV_H_]:
44381         Don't include <tls.h>.
44382         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44383         * resolv/res_libc.c: Don't include <tls.h>.
44384         (_res): Use __attribute__ ((nocommon)) in place of
44385         __attribute__ ((section (".bss"))).
44386
44387         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44388         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44389
44390         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44391
44392         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44393         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44394
44395         * resolv/res_mkquery.c: Include <sys/time.h>.
44396
44397         * inet/ifreq.c: Moved to ...
44398         * sysdeps/unix/ifreq.c: ... here.
44399         * inet/ifreq.c: New file, true stub version.
44400
44401         * socket/sa_len.c: New file.
44402         * socket/Makefile (aux): Add it.
44403         * sysdeps/unix/sysv/linux/Makefile
44404         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44405         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44406         and #include <socket/sa_len.c>.
44407         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44408         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44409
44410         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44411         * bits/socket.h: ... here.
44412
44413         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44414         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44415         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44416
44417 2013-08-27  Andreas Schwab  <schwab@suse.de>
44418
44419         [BZ #15736]
44420         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44421         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44422         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44423         * string/test-strcasecmp.c (test_main): Run tests in several
44424         locales.
44425         * string/test-strncasecmp.c (test_main): Likewise.
44426
44427         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44428         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44429         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44430         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44431         (__strncasecmp_ssse3) [PIC]: Likewise.
44432
44433 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44434
44435         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44436
44437         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44438         instead of explicitly declaring xdecrypt.
44439         * nis/nss_nis/nis-publickey.c: Likewise.
44440
44441 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44442
44443         [BZ #15890]
44444         * nscd/aicache.c: Include res_hconf.h.
44445         (addhstaiX): Initialize res_hconf.
44446
44447 2013-08-26  Andreas Schwab  <schwab@suse.de>
44448
44449         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44450         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44451
44452 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44453
44454         * nscd/aicache.c (addhstaiX): Fix indentation.
44455
44456 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44457
44458         * configure.ac: Quote $build_pt_chown test.
44459         * configure: Regenerated.
44460
44461 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44462
44463         [BZ #15532]
44464         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44465         * math/s_cexpf.c (__cexpf): Likewise.
44466         * math/s_cexpl.c (__cexpl): Likewise.
44467         * math/libm-test.inc (cexp_test_data): Correct expected return
44468         value for NaN + i0.  Add another test.
44469
44470 2013-08-22  David S. Miller  <davem@davemloft.net>
44471
44472         * po/ca.po: Update Catalan translation from translation project.
44473         * po/uk.po: Add Ukrainian translations from translation project.
44474
44475 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44476
44477         [BZ #15797]
44478         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44479         is infinite, not alongside NaN test.
44480         * math/s_fdimf.c (__fdimf): Likewise.
44481         * math/s_fdiml.c (__fdiml): Likewise.
44482         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44483         errno is unchanged.
44484
44485 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44486
44487         * argp/argp-help.c: Fix typos.
44488         * crypt/speeds.c: Likewise.
44489         * csu/check_fds.c: Likewise.
44490         * elf/dl-load.c: Likewise.
44491         * elf/dl-open.c: Likewise.
44492         * elf/reldep3.c: Likewise.
44493         * elf/reldep.c: Likewise.
44494         * elf/sprof.c: Likewise.
44495         * iconv/iconv_charmap.c: Likewise.
44496         * iconv/skeleton.c: Likewise.
44497         * iconv/strtab.c: Likewise.
44498         * io/lockf64.c: Likewise.
44499         * libio/libioP.h: Likewise.
44500         * resolv/gai_notify.c: Likewise.
44501         * resolv/ns_name.c: Likewise.
44502         * resolv/ns_samedomain.c: Likewise.
44503         * resolv/res_send.c: Likewise.
44504         * stdlib/random.c: Likewise.
44505         * sunrpc/rpc/xdr.h: Likewise.
44506         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44507         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44508         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44509         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44510         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44511         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44512         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44513         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44514         * sysdeps/mach/hurd/check_fds.c: Likewise.
44515         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44516         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44517         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44518         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44519         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44520         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44521         * sysdeps/pthread/aio_notify.c: Likewise.
44522         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44523         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44524         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44525         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44526         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44527
44528 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44529
44530         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44531         version if bit_Slow_SSE4_2 is set.
44532         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44533         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44534
44535 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44536
44537         [BZ #15867]
44538         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44539         trampoline stack frame information.
44540         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44541         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44542         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44543         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44544         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44545         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44546         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44547         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44548         sa_flags value.
44549         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44550         interrupting a syscall and set with option SA_SIGINFO.
44551
44552 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44553
44554         [BZ #15531]
44555         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44556         argument is infinite.
44557         * math/s_cprojf.c (__cprojf): Likewise.
44558         * math/s_cprojl.c (__cprojl): Likewise.
44559         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44560         * math/libm-test.inc (cproj_test_data): Add more tests.
44561
44562         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44563
44564         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44565         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44566         size.  Use __ffs to determine corresponding shift.
44567
44568 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44569             Roland McGrath  <roland@hack.frob.com>
44570
44571         * Makefile (INSTALL): Remove trailing blank lines from output of
44572         makeinfo.
44573
44574 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44575
44576         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44577         Align 32 bit compat elf_greg to 8 bytes.
44578
44579 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44580
44581         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44582
44583 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44584
44585         * string/strcoll_l.c (coll_seq): New structure.
44586         (get_next_seq_cached): New function.
44587         (get_next_seq): New function.
44588         (do_compare): New function.
44589         (STRCOLL): Use GNU style definition.  Simplify implementation
44590         by using get_next_seq, get_next_seq_cached and do_compare.
44591
44592 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44593
44594         [BZ #14699]
44595         CVE-2013-4237
44596         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44597         member.
44598         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44599         member.
44600         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44601         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44602         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44603         conditional.
44604         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44605         GETDENTS_64BIT_ALIGNED.
44606         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44607         * manual/filesys.texi (Reading/Closing Directory): Document
44608         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44609         strongly.
44610         * manual/conf.texi (Limits for Files): Add portability note to
44611         NAME_MAX, PATH_MAX.
44612         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44613
44614 2013-08-13  Andreas Schwab  <schwab@suse.de>
44615
44616         [BZ #15749]
44617         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44618         of fabs.
44619         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44620         LDBL_MAX_EXP >= 16384]: Add tests for it.
44621
44622 2013-08-12  David S. Miller  <davem@davemloft.net>
44623
44624         * version.h (RELEASE): Set to "development".
44625         (VERSION): Set to "2.18.90".
44626         * NEWS: Add 2.19 section.
44627
44628 2013-08-03  David S. Miller  <davem@davemloft.net>
44629
44630         * po/ko.po: Update Korean translation from translation project.
44631
44632 2013-08-01  David S. Miller  <davem@davemloft.net>
44633
44634         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44635         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44636         Bilka.
44637
44638 2013-07-30  David S. Miller  <davem@davemloft.net>
44639
44640         * po/fr.po: Update French translation from translation project.
44641
44642 2013-07-28  David S. Miller  <davem@davemloft.net>
44643
44644         * po/cs.po: Update Czech translation from translation project.
44645
44646         * po/sv.po: Update Swedish translation from translation project.
44647
44648 2013-07-27  David S. Miller  <davem@davemloft.net>
44649
44650         * po/eo.po: Update Esperanto translation from translation project.
44651
44652         * po/vi.po: Update Vietnamese translation from translation project.
44653
44654         * po/de.po: Update German translation from translation project.
44655
44656 2013-07-26  David S. Miller  <davem@davemloft.net>
44657
44658         * po/bg.po: Update Bulgarian translation from translation project.
44659
44660         * po/nl.po: Update Dutch translation from translation project.
44661         * po/pl.po: Update Polish translation from translation project.
44662         * po/ru.po: Update Russian translation from translation project.
44663
44664 2013-07-24  David S. Miller  <davem@davemloft.net>
44665
44666         * po/libc.pot: Update.
44667
44668 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44669
44670         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44671         variable page size.
44672         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44673         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44674         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44675
44676 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44677
44678         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44679
44680 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44681             Andreas Schwab  <schwab@suse.de>
44682             Roland McGrath  <roland@hack.frob.com>
44683             Joseph Myers  <joseph@codesourcery.com>
44684             Carlos O'Donell  <carlos@redhat.com>
44685
44686         [BZ #15755]
44687         * config.h.in: Define HAVE_PT_CHOWN.
44688         * config.make.in (build-pt-chown): New variable.
44689         * configure.in (--enable-pt_chown): New configure option.
44690         * configure: Regenerate.
44691         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44692         build-pt-chown is enabled.
44693         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44694         pt_chown to fix pty ownership.
44695         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44696         CLOSE_ALL_FDS.
44697         * manual/install.texi (Configuring and compiling): Mention
44698         --enable-pt_chown. Add @findex for grantpt.
44699         * INSTALL: Regenerate.
44700
44701 2013-07-20  David S. Miller  <davem@davemloft.net>
44702
44703         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44704         difference between 32-bit and 64-bit.
44705
44706 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44707
44708         [BZ #15711]
44709         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44710         Avoid system header dependency with -ffreestanding.
44711         ($(objpfx)bits/syscall%d): Likewise.
44712
44713 2013-07-13  David S. Miller  <davem@davemloft.net>
44714
44715         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44716         underflows from atanl/atan2l due to bug 15319.
44717         (casinh_test_data): Likewise.
44718
44719 2013-07-07  David S. Miller  <davem@davemloft.net>
44720
44721         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44722
44723 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44724
44725         * sysdeps/i386/fpu/libm-test-ulps: Update.
44726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44727
44728 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44729
44730         * configure.in (--enable-lock-elision): Fix message text.
44731         * INSTALL: Regenerate.
44732         * configure: Regenerate.
44733
44734 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44735
44736         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44737
44738 2013-07-03  Andreas Jaeger  <aj@suse.de>
44739
44740         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44741         define.
44742         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44743         (ptrace_peeksiginfo_args): Add.
44744         (__ptrace_peeksiginfo_flags): Add.
44745         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44746         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44747         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44748
44749 2013-07-03  Allan McRae  <allan@archlinux.org>
44750
44751         * sysdeps/i386/fpu/libm-test-ulps: Update.
44752
44753 2013-07-02  David S. Miller  <davem@davemloft.net>
44754
44755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44756
44757 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44758
44759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44760
44761 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44762
44763         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44765
44766 2013-07-02  Andi Kleen <ak@linux.intel.com>
44767
44768         * config.h.in (ENABLE_LOCK_ELISION): Add.
44769         * configure.in (--enable-lock-elision): Add option.
44770         * manual/install.texi: Document --enable lock elision.
44771         * configure: Regenerate
44772         * INSTALL: Regenerate.
44773
44774 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44775
44776         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
44777         SSE4.2 strcasecmp for libc.a.
44778         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
44779
44780 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44781
44782         [BZ #13304]
44783         * soft-fp/op-common.h (_FP_FMA): New macro.
44784         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
44785         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
44786         (_FP_MUL_MEAT_1_imm): ... here.
44787         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
44788         (_FP_MUL_MEAT_1_wide): ... here.
44789         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
44790         (_FP_MUL_MEAT_1_hard): ... here.
44791         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
44792         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
44793         (_FP_MUL_MEAT_2_wide): ... here.
44794         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
44795         (_FP_MUL_MEAT_2_wide_3mul): ... here.
44796         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
44797         (_FP_MUL_MEAT_2_gmp): ... here.
44798         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
44799         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
44800         (_FP_MUL_MEAT_4_wide): ... here.
44801         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
44802         (_FP_MUL_MEAT_4_gmp): ... here.
44803         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
44804         (_FP_WFRACBITS_DW_S): Likewise.
44805         (_FP_WFRACXBITS_DW_S): Likewise.
44806         (_FP_HIGHBIT_DW_S): Likewise.
44807         (FP_FMA_S): Likewise.
44808         (_FP_FRAC_HIGH_DW_S): Likewise.
44809         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
44810         (_FP_WFRACBITS_DW_D): Likewise.
44811         (_FP_WFRACXBITS_DW_D): Likewise.
44812         (_FP_HIGHBIT_DW_D): Likewise.
44813         (FP_FMA_D): Likewise.
44814         (_FP_FRAC_HIGH_DW_D): Likewise.
44815         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
44816         (_FP_WFRACBITS_DW_E): Likewise.
44817         (_FP_WFRACXBITS_DW_E): Likewise.
44818         (_FP_HIGHBIT_DW_E): Likewise.
44819         (FP_FMA_E): Likewise.
44820         (_FP_FRAC_HIGH_DW_E): Likewise.
44821         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
44822         (_FP_WFRACBITS_DW_Q): Likewise.
44823         (_FP_WFRACXBITS_DW_Q): Likewise.
44824         (_FP_HIGHBIT_DW_Q): Likewise.
44825         (FP_FMA_Q): Likewise.
44826         (_FP_FRAC_HIGH_DW_Q): Likewise.
44827         * soft-fp/fmasf4.c: New file.
44828         * soft-fp/fmadf4.c: Likewise.
44829         * soft-fp/fmatf4.c: Likewise.
44830
44831 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44832
44833         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44834         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
44835         Silvermont.
44836         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
44837         macro.
44838         (index_Slow_SSE4_2): Likewise.
44839         (index_Prefer_PMINUB_for_stringop): Likewise.
44840         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
44841         bit_Slow_SSE4_2 is set.
44842         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
44843         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44844
44845 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44846
44847         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
44848         rtld_global._dl_hwcap2.
44849         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
44850         POWER8.
44851         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
44852         POWER8 feature descriptions defined in _dl_hwcap2.
44853         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
44854         string handling for POWER8 feature bits.
44855         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
44856         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
44857         _dl_powerpc_cap_flags.
44858         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
44859         * sysdeps/powerpc/rtld-global-offsets.sym
44860         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
44861         _dl_hwcap2 in the rtld_global_ro structure.
44862
44863 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44864
44865         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
44866         hardware capabilities in support of AT_HWCAP2.
44867         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
44868         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
44869         GLRO(dl_hwcap2).
44870         (_dl_show_auxv): Add support for calling _dl_procinfo to display
44871         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
44872         explicitly the unknown a_type display mechanism is used.
44873         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
44874         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
44875         struct member.
44876         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
44877         to macro prototype for AT_HWCAP2 support.
44878         * sysdeps/i386/dl-procinfo.h: Likewise.
44879         * sysdeps/s390/dl-procinfo.h: Likewise.
44880         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
44881         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
44882         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
44883         return -1 for unknown a_type display fallback.
44884         * sysdeps/sparc/dl-procinfo.h: Likewise.
44885         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
44886         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
44887
44888 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
44889
44890         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
44891         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
44892
44893 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
44894
44895         [BZ #12492]
44896         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
44897         mprotect making __stack_prot writable.
44898
44899 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
44900             Joseph Myers  <joseph@codesourcery.com>
44901
44902         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
44903         as being properly aligned.
44904
44905 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
44906
44907         * dlfcn/modstatic5.c: New file.
44908         * dlfcn/tststatic5.c: New file.
44909         * dlfcn/Makefile (tests): Add tststatic5.
44910         (tests-static): Likewise.
44911         (modules-names): Add modstatic5.
44912         (tststatic5-ENV): New variable.
44913         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
44914
44915         [BZ #15022]
44916         * elf/dl-support.c (_dl_main_map): New variable.
44917         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
44918         (_dl_nns, _dl_load_adds): Set to 1.
44919         (_dl_initial_searchlist): Refer to _dl_main_map.
44920         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
44921         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
44922         call to _dl_get_origin.
44923         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
44924         around call_map.
44925         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
44926         * dlfcn/modstatic3.c: New file.
44927         * dlfcn/tststatic3.c: New file.
44928         * dlfcn/tststatic4.c: New file.
44929         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
44930         (tests-static): Likewise.
44931         (modules-names): Add modstatic3.
44932         (tststatic3-ENV, tststatic4-ENV): New variables.
44933         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
44934         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
44935
44936 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
44937
44938         * configure.in (CC): Require GCC version 4.4 or later.
44939         * configure: Regenerated.
44940         * manual/install.texi (Tools for Compilation): Update GCC version
44941         requirement.
44942         * INSTALL: Regenerated.
44943
44944 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44945
44946         [BZ #15674]
44947         * string/test-memcmp.c (check2): New.
44948         (main): Call check2.
44949
44950         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
44951
44952 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
44953
44954         [BZ #15022]
44955         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
44956         over to...
44957         (dl_open_worker) [!SHARED]: ... here.
44958
44959 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44960
44961         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
44962
44963 2013-06-25  Richard Henderson  <rth@redhat.com>
44964
44965         * locale/programs/locarchive.c: Include <libc-internal.h>
44966
44967 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
44968
44969         * manual/texinfo.tex: Update to version 2013-06-21.17, with
44970         trailing whitespace removed.
44971
44972 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44973
44974         [BZ #10283]
44975         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
44976         * locale/programs/locarchive.c: Include libc-mmap.h.
44977         (prepare_address_space): Take two new outputs (the mmap base and len).
44978         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
44979         values.
44980         (create_archive): Declare new mmap base and len values for
44981         prepare_address_space, and store the result in ah.
44982         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
44983         (enlarge_archive): If ah->mmap_base is not NULL, use that and
44984         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44985         Declare new mmap base and len values for
44986         prepare_address_space, and store the result in new_ah.
44987         (open_archive): Declare new mmap base and len values for
44988         prepare_address_space, and store the result in ah.
44989         (close_archive): If ah->mmap_base is not NULL, use that and
44990         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44991         * sysdeps/generic/libc-mmap.h: New file.
44992
44993 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44994
44995         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
44996         (ALIGN_UP): Likewise.
44997         (PTR_ALIGN_DOWN): Likewise.
44998         (PTR_ALIGN_UP): Likewise.
44999
45000 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45001
45002         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45003         entry mapped to PPC_PLATFORM_POWER8.
45004         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45005         POWER8.
45006         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45007         (_dl_string_platform): Add case for exporting platform position for
45008         POWER8.
45009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45010         search path to sysdeps/powerpc/powerpc32/power8 directory.
45011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45012         search path to sysdeps/powerpc/powerpc64/power8 directory.
45013         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45014         power7 directories.
45015         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45016         power7 directories.
45017
45018 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45019
45020         * INSTALL: Regenerate.
45021
45022         * nscd/connections.c (nscd_init): Fix comment.
45023
45024 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45025
45026         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45027
45028         [BZ #15667]
45029         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45030         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45031
45032 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45033
45034         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45035         DL_DST_REQ_STATIC.
45036         (DL_DST_REQ_STATIC): Remove macro.
45037
45038 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45039
45040         [BZ #7006]
45041         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45042         with a shift of 0 bits.
45043
45044 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45045
45046         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45047         $(tststatic-ENV).
45048
45049 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45050
45051         [BZ #15655]
45052         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45053
45054 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45055
45056         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45057         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45058         accepts -fno-tree-loop-distribute-patterns.
45059         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45060         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45061         recursive call.
45062         * string/memset.c (memset): Likewise.
45063         * string/test-memmove.c (simple_memmove): Disable loop transformation
45064         to library calls.
45065         * string/test-memset.c (simple_memset): Likewise.
45066         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45067         * benchtests/bench-memset.c (simple_memset): Likewise.
45068         * configure: Regenerated.
45069
45070 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45071
45072         * math/test-misc.c (main): Ignore fesetround failure when failures
45073         of subsequent rounding tests would be ignored.
45074
45075         [BZ #15654]
45076         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45077         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45078         * math/fegetenv.c (__fegetenv): Return 0.
45079         * math/fegetexcept.c (fegetexcept): Return 0.
45080         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45081         FE_TONEAREST.
45082         * math/feholdexcpt.c (feholdexcept): Return 0.
45083         * math/fesetenv.c (__fesetenv): Return 0.
45084         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45085         argument FE_TONEAREST.
45086         * math/feupdateenv.c (__feupdateenv): Return 0.
45087         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45088
45089 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45090
45091         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45092         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45093         ($(objpfx)rtld-%.os rules): Use them.
45094
45095 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45096
45097         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45098         fields.
45099
45100 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45101
45102         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45103         length of target pattern, then descending length of dependency pattern.
45104         * configure.in (AWK): Require gawk 3.1.2 or newer.
45105         * manual/install.texi (Tools for Compilation): Say that we do.
45106         * configure: Regenerated.
45107
45108         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45109         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45110         * scripts/sysd-rules.awk: ... this new script.
45111         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45112         than a glob-style pattern.
45113
45114 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45115
45116         * math/test-misc.c (main): Do not treat incorrectly rounded
45117         conversions as failure unless ROUNDING_TESTS passes.
45118
45119 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45120
45121         [BZ #15631]
45122         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45123         restore exception state around main square root computation, then
45124         check for inexactness explicitly.
45125
45126         * math/libm-test.inc (fma_test_data): Add another test.
45127
45128 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45129
45130         * manual/threads.texi (Non-POSIX Extensions): New document
45131         node.  Document pthread_getattr_default_np and
45132         pthread_setattr_default_np.
45133
45134         * Versions.def (libpthread): Add GLIBC_2.18.
45135         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45137         Likewise.
45138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45139         Likewise.
45140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45141         Likewise.
45142         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45143         Likewise.
45144         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45145         Likewise.
45146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45147         Likewise.
45148         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45149         Likewise.
45150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45151         Likewise.
45152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45153         Likewise.
45154
45155 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45156
45157         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45158         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45159
45160 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45161             H.J. Lu  <hjl.tools@gmail.com>
45162
45163         [BZ #15627]
45164         * sysdeps/x86_64/rtld-memset.c: Remove file.
45165         * sysdeps/x86_64/rtld-memset.S: New file.
45166
45167 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45168
45169         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45170         (test_in_one_mode): Take arguments for whether the rounding mode
45171         is supported for each floating-point type.
45172         (do_test): Pass new arguments to test_in_one_mode using
45173         ROUNDING_TESTS.
45174
45175 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45176
45177         * posix/tst-waitid.c (do_test): Distinguish different instances of
45178         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45179         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45180         before entering the kernel for waitpid.
45181
45182 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45183
45184         * NEWS: Fix note on clock function precision.  Text by Roland
45185         McGrath.
45186
45187 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45188
45189         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45190         it into place only when and if the sanity check passes.
45191
45192 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45193
45194         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45195         output for whether conversion result is exact.  Take argument
45196         indicating whether type is IBM long double.
45197         (round_for_all): Change need_exact field to ibm_ld.
45198         * stdlib/tst-strtod-round.c (struct exactness): New type.
45199         (struct test): Change bool ld_ok field to struct exactness exact.
45200         (TEST): Update all definitions for change to field.
45201         (tests): Regenerate array contents.
45202         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45203         field value.  Check for IBM long double here.
45204         (do_test): Update calls to test_in_one_mode.
45205
45206 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45207
45208         [BZ #12515]
45209         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45210         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45211
45212 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45213
45214         [BZ #15605]
45215         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45216         generated by the compiler on loop optimizations.
45217         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45218         general definitions.
45219
45220 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45221
45222         * math/bug-nextafter.c: Include <math-tests.h>.
45223         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45224         the relevant type.
45225         * math/bug-nexttoward.c: Include <math-tests.h>.
45226         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45227         the relevant type.
45228         * math/test-misc.c: Include <math-tests.h>.
45229         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45230         the relevant type.
45231
45232 2013-06-12  Andreas Jaeger  <aj@suse.de>
45233
45234         * po/ia.po: Update Interlingua translation from translation
45235         project.
45236
45237 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45238
45239         * include/fenv.h: Include stdbool.h.
45240         (struct rm_ctx): New structure.
45241         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45242         Define macro.
45243         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45244         (SET_RESTORE_ROUNDF): Likewise.
45245         (SET_RESTORE_ROUNDL): Likewise.
45246         (SET_RESTORE_ROUND_NOEX): Likewise.
45247         (SET_RESTORE_ROUND_NOEXF): Likewise.
45248         (SET_RESTORE_ROUND_NOEXL): Likewise.
45249         (SET_RESTORE_ROUND_53BIT): Likewise.
45250         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45251         (libc_feresetround_noexf_ctx): Likewise.
45252         (libc_feresetround_noexl_ctx): Likewise.
45253         (libc_feholdsetround_53bit_ctx): Likewise.
45254         (libc_feresetround_53bit_ctx): Likewise.
45255         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45256         (libc_feholdexcept_setround_sse_ctx): New function.
45257         (libc_fesetenv_sse_ctx): Likewise.
45258         (libc_feupdateenv_sse_ctx): Likewise.
45259         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45260         (libc_feholdexcept_setround_387_ctx): Likewise.
45261         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45262         (libc_feholdsetround_387_prec_ctx): Likewise.
45263         (libc_feholdsetround_387_ctx): Likewise.
45264         (libc_feholdsetround_387_53bit_ctx): Likewise.
45265         (libc_feholdsetround_sse_ctx): Likewise.
45266         (libc_feresetround_sse_ctx): Likewise.
45267         (libc_feresetround_387_ctx): Likewise.
45268         (libc_feupdateenv_387_ctx): Likewise.
45269         (libc_feholdexcept_setroundf_ctx): Define macro.
45270         (libc_fesetenvf_ctx): Likewise.
45271         (libc_feupdateenvf_ctx): Likewise.
45272         (libc_feholdsetroundf_ctx): Likewise.
45273         (libc_feresetroundf_ctx): Likewise.
45274         (libc_feholdexcept_setround_ctx): Likewise.
45275         (libc_fesetenv_ctx): Likewise.
45276         (libc_feupdateenv_ctx): Likewise.
45277         (libc_feholdsetround_ctx): Likewise.
45278         (libc_feresetround_ctx): Likewise.
45279         (libc_feholdexcept_setroundl_ctx): Likewise.
45280         (libc_feupdateenvl_ctx): Likewise.
45281         (libc_feholdsetroundl_ctx): Likewise.
45282         (libc_feresetroundl_ctx): Likewise.
45283         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45284         (libc_feresetround_53bit_ctx): Likewise.
45285
45286 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45287
45288         * locale/iso-639.def: Convert to UTF-8.
45289
45290 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45291
45292         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45293         (EXCEPTION_TESTS_double): Likewise.
45294         (EXCEPTION_TESTS_long_double): Likewise.
45295         (EXCEPTION_TESTS): Likewise.
45296         * math/libm-test.inc (test_exceptions): Only test exceptions if
45297         EXCEPTION_TESTS (FLOAT).
45298
45299 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45300
45301         * benchtests/Makefile (string-bench): Add strcpy_chk and
45302         stpcpy_chk.
45303         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45304         * benchtests/bench-stpcpy_chk.c: New file.
45305         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45306         * benchtests/bench-strcpy_chk.c: New file.
45307         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45308         code.
45309         (do_test): Likewise.
45310
45311 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45312
45313         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45314         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45315         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45316         with tabs where appropriate.
45317         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45318         dl-procinfo.h.
45319         [PPC_PLATFORM_PPC440]: Likewise.
45320         [PPC_PLATFORM_PPC464]: Likewise.
45321         [PPC_PLATFORM_PPC476]: Likewise.
45322         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45323         ppc464, and ppc476 platform strings merging from ports/
45324         dl-procinfo.h.
45325
45326 2013-06-11  Andreas Schwab  <schwab@suse.de>
45327
45328         [BZ #14991]
45329         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45330         (from_ucs4_idx): Regenerate.
45331         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45332         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45333         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45334         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45335         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45336         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45337         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45338         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45339         from FROM_LOOP and TO_LOOP specific macros.
45340         (BODY): Handle combining characters.
45341         * iconvdata/BIG5HKSCS.irreversible: Update.
45342         * iconvdata/BIG5HKSCS.precomposed: New file.
45343         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45344         characters.
45345         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45346
45347 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45348
45349         * include/sys/time.h: Fix indentation and add copyright header.
45350
45351         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45352         (do_test): Likewise.
45353         * string/test-memchr.c (do_one_test): Likewise.
45354         (do_test): Likewise.
45355         * string/test-memcmp.c (do_one_test): Likewise.
45356         (do_test): Likewise.
45357         * string/test-memcpy.c (do_one_test): Likewise.
45358         (do_test): Likewise.
45359         * string/test-memmem.c (do_one_test): Likewise.
45360         (do_test): Likewise.
45361         (do_random_tests): Likewise.
45362         * string/test-memmove.c (do_one_test): Likewise.
45363         (do_test): Likewise.
45364         * string/test-memset.c (do_one_test): Likewise.
45365         (do_test): Likewise.
45366         * string/test-rawmemchr.c (do_one_test): Likewise.
45367         (do_test): Likewise.
45368         * string/test-strcasecmp.c (do_one_test): Likewise.
45369         (do_test): Likewise.
45370         * string/test-strcasestr.c (do_one_test): Likewise.
45371         (do_test): Likewise.
45372         * string/test-strcat.c (do_one_test): Likewise.
45373         (do_test): Likewise.
45374         * string/test-strchr.c (do_one_test): Likewise.
45375         (do_test): Likewise.
45376         * string/test-strcmp.c (do_one_test): Likewise.
45377         (do_test): Likewise.
45378         * string/test-strcpy.c (do_one_test): Likewise.
45379         (do_test): Likewise.
45380         * string/test-string.h: Likewise.
45381         (test_init): Likewise.
45382         * string/test-strlen.c (do_one_test): Likewise.
45383         (do_test): Likewise.
45384         * string/test-strncasecmp.c (do_one_test): Likewise.
45385         (do_test): Likewise.
45386         * string/test-strncat.c (do_one_test): Likewise.
45387         (do_test): Likewise.
45388         * string/test-strncmp.c (do_one_test): Likewise.
45389         (do_test_limit): Likewise.
45390         (do_test): Likewise.
45391         * string/test-strncpy.c (do_one_test): Likewise.
45392         (do_test): Likewise.
45393         * string/test-strnlen.c (do_one_test): Likewise.
45394         (do_test): Likewise.
45395         * string/test-strpbrk.c (do_one_test): Likewise.
45396         (do_test): Likewise.
45397         * string/test-strrchr.c (do_one_test): Likewise.
45398         (do_test): Likewise.
45399         * string/test-strspn.c (do_one_test): Likewise.
45400         (do_test): Likewise.
45401         * string/test-strstr.c (do_one_test): Likewise.
45402         (do_test): Likewise.
45403
45404         * benchtests/Makefile (string-bench): Add string benchmarks.
45405         * benchtests/bench-bcopy-ifunc.c: New file.
45406         * benchtests/bench-bcopy.c: New file.
45407         * benchtests/bench-bzero-ifunc.c: New file.
45408         * benchtests/bench-bzero.c: New file.
45409         * benchtests/bench-memccpy-ifunc.c: New file.
45410         * benchtests/bench-memccpy.c: New file.
45411         * benchtests/bench-memchr-ifunc.c: New file.
45412         * benchtests/bench-memchr.c: New file.
45413         * benchtests/bench-memcmp-ifunc.c: New file.
45414         * benchtests/bench-memcmp.c: New file.
45415         * benchtests/bench-memmem-ifunc.c: New file.
45416         * benchtests/bench-memmem.c: New file.
45417         * benchtests/bench-memmove-ifunc.c: New file.
45418         * benchtests/bench-memmove.c: New file.
45419         * benchtests/bench-mempcpy-ifunc.c: New file.
45420         * benchtests/bench-mempcpy.c: New file.
45421         * benchtests/bench-memset-ifunc.c: New file.
45422         * benchtests/bench-memset.c: New file.
45423         * benchtests/bench-rawmemchr-ifunc.c: New file.
45424         * benchtests/bench-rawmemchr.c: New file.
45425         * benchtests/bench-stpcpy-ifunc.c: New file.
45426         * benchtests/bench-stpcpy.c: New file.
45427         * benchtests/bench-stpncpy-ifunc.c: New file.
45428         * benchtests/bench-stpncpy.c: New file.
45429         * benchtests/bench-strcasecmp-ifunc.c: New file.
45430         * benchtests/bench-strcasecmp.c: New file.
45431         * benchtests/bench-strcasestr-ifunc.c: New file.
45432         * benchtests/bench-strcasestr.c: New file.
45433         * benchtests/bench-strcat-ifunc.c: New file.
45434         * benchtests/bench-strcat.c: New file.
45435         * benchtests/bench-strchr-ifunc.c: New file.
45436         * benchtests/bench-strchr.c: New file.
45437         * benchtests/bench-strchrnul-ifunc.c: New file.
45438         * benchtests/bench-strchrnul.c: New file.
45439         * benchtests/bench-strcmp-ifunc.c: New file.
45440         * benchtests/bench-strcmp.c: New file.
45441         * benchtests/bench-strcpy-ifunc.c: New file.
45442         * benchtests/bench-strcpy.c: New file.
45443         * benchtests/bench-strcspn-ifunc.c: New file.
45444         * benchtests/bench-strcspn.c: New file.
45445         * benchtests/bench-strlen-ifunc.c: New file.
45446         * benchtests/bench-strlen.c: New file.
45447         * benchtests/bench-strncasecmp-ifunc.c: New file.
45448         * benchtests/bench-strncasecmp.c: New file.
45449         * benchtests/bench-strncat-ifunc.c: New file.
45450         * benchtests/bench-strncat.c: New file.
45451         * benchtests/bench-strncmp-ifunc.c: New file.
45452         * benchtests/bench-strncmp.c: New file.
45453         * benchtests/bench-strncpy-ifunc.c: New file.
45454         * benchtests/bench-strncpy.c: New file.
45455         * benchtests/bench-strnlen-ifunc.c: New file.
45456         * benchtests/bench-strnlen.c: New file.
45457         * benchtests/bench-strpbrk-ifunc.c: New file.
45458         * benchtests/bench-strpbrk.c: New file.
45459         * benchtests/bench-strrchr-ifunc.c: New file.
45460         * benchtests/bench-strrchr.c: New file.
45461         * benchtests/bench-strspn-ifunc.c: New file.
45462         * benchtests/bench-strspn.c: New file.
45463         * benchtests/bench-strstr-ifunc.c: New file.
45464         * benchtests/bench-strstr.c: New file.
45465
45466         * benchtests/Makefile: Disable parallel execution of targets.
45467         (string-bench): Add memcpy.
45468         (benchset): New variable to store a list of benchmark sets.
45469         (bench-func): Renamed from bench.
45470         (bench-set): New target.
45471         (bench): Depend on bench-func and bench-set.
45472         * benchtests/README: Add section on benchmark sets.
45473         * benchtests/bench-memcpy-ifunc.c: New file.
45474         * benchtests/bench-memcpy.c: New file.
45475         * benchtests/bench-string.h: New file.
45476
45477 2013-06-11  Andreas Schwab  <schwab@suse.de>
45478
45479         [BZ #15577]
45480         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45481         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45482         values in the triple.
45483         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45484         terminator in the group key.
45485
45486 2013-06-11  Andreas Jaeger  <aj@suse.de>
45487
45488         * po/zh_TW.po: Update Chinese (traditional) translation from
45489         translation project.
45490
45491 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45492
45493         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45494         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45495         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45496         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45497         (clock_getcpuclockid): Likewise.
45498         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45499         Add weak_alias and libc_hidden_def.
45500         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45501         * rt/clock_gettime.c (clock_gettime): Rename to
45502         __clock_gettime.  Add weak_alias and libc_hidden_def.
45503         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45504         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45505         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45506         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45507         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45508         Likewise.
45509         * rt/clock_settime.c (clock_settime): Rename to
45510         __clock_settime.  Add weak_alias and libc_hidden_def.
45511         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45512
45513 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45514
45515         * mach/err_boot.sub: Remove trailing whitespace.
45516         * mach/err_ipc.sub: Likewise.
45517         * mach/err_mach.sub: Likewise.
45518
45519         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45520         (ROUNDING_TESTS_double): Likewise.
45521         (ROUNDING_TESTS_long_double): Likewise.
45522         (ROUNDING_TESTS): Likewise.
45523         * math/libm-test.inc: Include <math-tests.h>.
45524         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45525         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45526         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45527         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45528
45529 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45530
45531         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45532         of assigning.
45533
45534 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45535
45536         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45537         otherwise empty TRANS lines.
45538         * sysdeps/gnu/errlist.c: Regenerated.
45539
45540         * catgets/gencat.c (error_print): Use (void) in function
45541         definition.
45542         * crypt/crypt_util.c (__init_des): Likewise.
45543         * crypt/speeds.c (Stop): Likewise.
45544         (main): Likewise.
45545         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45546         * inet/ruserpass.c (token): Likewise.
45547         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45548         * intl/localealias.c (extend_alias_table): Likewise.
45549         * intl/plural-exp.c (init_germanic_plural): Likewise.
45550         * libio/fcloseall.c (__fcloseall): Likewise.
45551         * libio/genops.c (_IO_flush_all): Likewise.
45552         (_IO_flush_all_linebuffered): Likewise.
45553         (_IO_cleanup): Likewise.
45554         (_IO_iter_begin): Likewise.
45555         (_IO_iter_end): Likewise.
45556         (_IO_list_lock): Likewise.
45557         (_IO_list_unlock): Likewise.
45558         (_IO_list_resetlock): Likewise.
45559         * libio/getchar.c (getchar): Likewise.
45560         * libio/getchar_u.c (getchar_unlocked): Likewise.
45561         * libio/getwchar.c (getwchar): Likewise.
45562         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45563         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45564         * login/getpt.c (__getpt): Likewise.
45565         * login/tst-utmp.c (main): Likewise.
45566         * malloc/hooks.c (__malloc_check_init): Likewise.
45567         * malloc/malloc.c (__malloc_stats): Likewise.
45568         * malloc/mtrace.c (tr_break): Likewise.
45569         (mtrace): Likewise.
45570         (muntrace): Likewise.
45571         * misc/fstab.c (endfsent): Likewise.
45572         * misc/getclktck.c (__getclktck): Likewise.
45573         * misc/getdtsz.c (__getdtablesize): Likewise.
45574         * misc/gethostid.c (gethostid): Likewise.
45575         * misc/getpagesize.c (__getpagesize): Likewise.
45576         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45577         (__get_nprocs): Likewise.
45578         (__get_phys_pages): Likewise.
45579         (__get_avphys_pages): Likewise.
45580         * misc/getttyent.c (getttyent): Likewise.
45581         (setttyent): Likewise.
45582         (endttyent): Likewise.
45583         * misc/getusershell.c (getusershell): Likewise.
45584         (endusershell): Likewise.
45585         (setusershell): Likewise.
45586         (initshells): Likewise.
45587         * misc/hsearch.c (__hdestroy): Likewise.
45588         * misc/sync.c (sync): Likewise.
45589         * misc/syslog.c (closelog_internal): Likewise.
45590         (closelog): Likewise.
45591         * misc/ttyslot.c (ttyslot): Likewise.
45592         * misc/vhangup.c (vhangup): Likewise.
45593         * posix/fork.c (__fork): Likewise.
45594         * posix/getegid.c (__getegid): Likewise.
45595         * posix/geteuid.c (__geteuid): Likewise.
45596         * posix/getgid.c (__getgid): Likewise.
45597         * posix/getpid.c (__getpid): Likewise.
45598         * posix/getppid.c (__getppid): Likewise.
45599         * posix/getuid.c (__getuid): Likewise.
45600         * posix/pause.c (pause): Likewise.
45601         * posix/setpgrp.c (setpgrp): Likewise.
45602         * posix/setsid.c (__setsid): Likewise.
45603         * posix/test-vfork.c (noop): Likewise.
45604         * resolv/gethnamaddr.c (_endhtent): Likewise.
45605         (_gethtent): Likewise.
45606         (ht_endhostent): Likewise.
45607         (gethostent): Likewise.
45608         (dns_service): Likewise.
45609         * stdlib/drand48.c (drand48): Likewise.
45610         * stdlib/lrand48.c (lrand48): Likewise.
45611         * stdlib/mrand48.c (mrand48): Likewise.
45612         * stdlib/rand.c (rand): Likewise.
45613         * stdlib/random.c (__random): Likewise.
45614         * stdlib/setenv.c (clearenv): Likewise.
45615         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45616         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45617         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45618         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45619         (__get_nprocs): Likewise.
45620         (__get_phys_pages): Likewise.
45621         (__get_avphys_pages): Likewise.
45622         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45623         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45624         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45625         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45626         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45627         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45628         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45629         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45630         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45631         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45632         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45633         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45634         * sysdeps/posix/clock.c (clock): Likewise.
45635         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45636         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45637         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45638         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45639         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45640         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45641         (__get_nprocs_conf): Likewise.
45642         (__get_phys_pages): Likewise.
45643         (__get_avphys_pages): Likewise.
45644         * time/clock.c (clock): Likewise.
45645         * time/tzset.c (__tzname_max): Likewise.
45646
45647 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45648
45649         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45650         (__bswap_32): Do not use "register".
45651         * crypt/crypt.c (_ufc_doit_r): Likewise.
45652         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45653         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45654         * gmon/gmon.c (__monstartup): Likewise.
45655         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45656         * hurd/hurdmalloc.c (more_memory): Likewise.
45657         (malloc): Likewise.
45658         (free): Likewise.
45659         (realloc): Likewise.
45660         (malloc_fork_prepare): Likewise.
45661         (malloc_fork_parent): Likewise.
45662         (malloc_fork_child): Likewise.
45663         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45664         (_svcauth_des): Likewise.
45665         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45666         * inet/inet_net.c (inet_network): Likewise.
45667         * inet/inet_netof.c (inet_netof): Likewise.
45668         * inet/rcmd.c (__validuser2_sa): Likewise.
45669         * io/fts.c (fts_open): Likewise.
45670         (fts_load): Likewise.
45671         (fts_close): Likewise.
45672         (fts_read): Likewise.
45673         (fts_children): Likewise.
45674         (fts_build): Likewise.
45675         (fts_stat): Likewise.
45676         (fts_sort): Likewise.
45677         (fts_alloc): Likewise.
45678         (fts_lfree): Likewise.
45679         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45680         (_IO_file_xsgetn): Likewise.
45681         (_IO_file_xsgetn_mmap): Likewise.
45682         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45683         (_IO_cookie_write): Likewise.
45684         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45685         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45686         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45687         * malloc/obstack.c (_obstack_begin): Likewise.
45688         (_obstack_begin_1): Likewise.
45689         (_obstack_newchunk): Likewise.
45690         (_obstack_allocated_p): Likewise.
45691         (obstack_free): Likewise.
45692         (_obstack_memory_used): Likewise.
45693         * misc/getttyent.c (getttynam): Likewise.
45694         (getttyent): Likewise.
45695         (skip): Likewise.
45696         (value): Likewise.
45697         * misc/getusershell.c (initshells): Likewise.
45698         * misc/syslog.c (__vsyslog_chk): Likewise.
45699         * misc/ttyslot.c (ttyslot): Likewise.
45700         * nis/nis_hash.c (__nis_hash): Likewise.
45701         * posix/fnmatch_loop.c (FCT): Likewise.
45702         * posix/getconf.c (print_all): Likewise.
45703         (main): Likewise.
45704         * posix/getopt.c (exchange): Likewise.
45705         * posix/glob.c (globfree): Likewise.
45706         (prefix_array): Likewise.
45707         (__glob_pattern_type): Likewise.
45708         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45709         (NS_GET32): Likewise.
45710         (NS_PUT16): Likewise.
45711         (NS_PUT32): Likewise.
45712         * resolv/gethnamaddr.c (getanswer): Likewise.
45713         (gethostbyname2): Likewise.
45714         (gethostbyaddr): Likewise.
45715         (_gethtent): Likewise.
45716         (_gethtbyname2): Likewise.
45717         (_gethtbyaddr): Likewise.
45718         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45719         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45720         * resolv/res_init.c (__res_vinit): Likewise.
45721         (net_mask): Likewise.
45722         * resolv/res_mkquery.c (outchar): Likewise.
45723         (PRINT): Likewise.
45724         * stdio-common/printf_fp.c (outchar): Likewise.
45725         (PRINT): Likewise.
45726         * stdio-common/printf_fphex.c (outchar): Likewise.
45727         (PRINT): Likewise.
45728         * stdio-common/printf_size.c (outchar): Likewise.
45729         (PRINT): Likewise.
45730         * stdio-common/test_rdwr.c (main): Likewise.
45731         * stdio-common/tfformat.c (matches): Likewise.
45732         * stdio-common/vfprintf.c (outchar): Likewise.
45733         (printf_unknown): Likewise.
45734         (buffered_vfprintf): Likewise.
45735         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45736         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45737         (ReadFile): Likewise.
45738         * stdlib/qsort.c (SWAP): Likewise.
45739         (_quicksort): Likewise.
45740         * stdlib/setenv.c (__add_to_environ): Likewise.
45741         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45742         * stdlib/strtol_l.c (__strtol_l): Likewise.
45743         * stdlib/tst-strtod.c (main): Likewise.
45744         * stdlib/tst-strtol.c (main): Likewise.
45745         * stdlib/tst-strtoll.c (main): Likewise.
45746         * string/bits/string2.h (__strcmp_cc): Likewise.
45747         (__strcmp_cg): Likewise.
45748         (__strcspn_c1): Likewise.
45749         (__strcspn_c2): Likewise.
45750         (__strcspn_c3): Likewise.
45751         (__strspn_c1): Likewise.
45752         (__strspn_c2): Likewise.
45753         (__strspn_c3): Likewise.
45754         (__strsep_1c): Likewise.
45755         (__strsep_2c): Likewise.
45756         (__strsep_3c): Likewise.
45757         * string/memccpy.c (__memccpy): Likewise.
45758         * string/stpcpy.c (__stpcpy): Likewise.
45759         * string/strcmp.c (strcmp): Likewise.
45760         * string/strrchr.c (strrchr): Likewise.
45761         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45762         Likewise.
45763         * sysdeps/mach/hurd/getcwd.c
45764         (_hurd_canonicalize_directory_name_internal): Likewise.
45765         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45766         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45767         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45768         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45769         Likewise, in both definitions.
45770         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45771         definitions.
45772         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45773         64] (__bswap_64): Likewise.
45774         * time/test_time.c (main): Likewise.
45775         * time/tzfile.c (__tzfile_read): Likewise.
45776         (__tzfile_compute): Likewise.
45777         * time/tzset.c (__tzset_parse_tz): Likewise.
45778         (tzset_internal): Likewise.
45779         (compute_change): Likewise.
45780         * wcsmbs/wcscat.c (__wcscat): Likewise.
45781         * wcsmbs/wcschr.c (wcschr): Likewise.
45782         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
45783         * wcsmbs/wcscspn.c (wcscspn): Likewise.
45784         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
45785         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
45786         * wcsmbs/wcsspn.c (wcsspn): Likewise.
45787         * wcsmbs/wcsstr.c (wcsstr): Likewise.
45788         * wcsmbs/wmemchr.c (wmemchr): Likewise.
45789         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
45790         * wcsmbs/wmemset.c (wmemset): Likewise.
45791
45792 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
45793
45794         * scripts/config.guess: Update to version 2013-05-16.
45795         * scripts/config.sub: Update to version 2013-04-24.
45796         * scripts/install-sh: Update to version 2011-11-20.07.
45797         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
45798         * scripts/move-if-change: Update to version 2012-01-06 07:23.
45799
45800 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
45801
45802         * debug/fgetws_u_chk.c: Fix leading whitespaces.
45803         * elf/sln.c: Likewise.
45804         * hurd/hurd/ioctl.h: Likewise.
45805         * hurd/hurdmalloc.c: Likewise.
45806         * hurd/xattr.c: Likewise.
45807         * include/shlib-compat.h: Likewise.
45808         * inet/ruserpass.c: Likewise.
45809         * libio/iofgets_u.c: Likewise.
45810         * libio/iofgetws_u.c: Likewise.
45811         * locale/programs/ld-identification.c: Likewise.
45812         * locale/programs/ld-time.c: Likewise.
45813         * mach/msg-destroy.c: Likewise.
45814         * nss/nss_files/files-netgrp.c: Likewise.
45815         * resolv/res_data.c: Likewise.
45816         * soft-fp/op-1.h: Likewise.
45817         * soft-fp/op-2.h: Likewise.
45818         * soft-fp/op-4.h: Likewise.
45819         * soft-fp/op-common.h: Likewise.
45820         * stdio-common/printf_fphex.c: Likewise.
45821         * stdlib/strtod_l.c: Likewise.
45822         * sunrpc/rpc/clnt.h: Likewise.
45823         * sysdeps/generic/framestate.c: Likewise.
45824         * sysdeps/i386/bsd-_setjmp.S: Likewise.
45825         * sysdeps/i386/bsd-setjmp.S: Likewise.
45826         * sysdeps/i386/__longjmp.S: Likewise.
45827         * sysdeps/i386/setjmp.S: Likewise.
45828         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45829         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
45830         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45831         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45832         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45833         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
45834         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
45835         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
45836         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
45837         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
45838         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
45839         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
45840         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
45841         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
45842         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
45843         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
45844         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
45845         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
45846         * sysdeps/ieee754/support.c: Likewise.
45847         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
45848         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
45849         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
45850         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
45851         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
45852         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
45853         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
45854         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
45855         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
45856         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
45857         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
45858         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
45859         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
45860         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
45861         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
45862         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
45863         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
45864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
45865
45866 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
45867
45868         * posix/transbug.c: Remove executable mode.
45869
45870 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
45871
45872         * crypt/speeds.c: Remove trailing whitespace.
45873         * dlfcn/default.c: Likewise.
45874         * elf/ifuncdep2.c: Likewise.
45875         * elf/ifuncmain1.c: Likewise.
45876         * elf/ifuncmain1vis.c: Likewise.
45877         * elf/testobj.h: Likewise.
45878         * elf/tst-stackguard1.c: Likewise.
45879         * gmon/sys/gmon.h: Likewise.
45880         * hurd/hurdmsg.c: Likewise.
45881         * hurd/new-fd.c: Likewise.
45882         * hurd/ports-get.c: Likewise.
45883         * iconvdata/ibm1008_420.c: Likewise.
45884         * inet/tst-getni1.c: Likewise.
45885         * inet/tst-getni2.c: Likewise.
45886         * libio/ioungetc.c: Likewise.
45887         * libio/wfiledoalloc.c: Likewise.
45888         * manual/libm-err-tab.pl: Likewise.
45889         * math/w_dremf.c: Likewise.
45890         * misc/ftruncate.c: Likewise.
45891         * posix/bug-glob2.c: Likewise.
45892         * posix/tst-pcre.c: Likewise.
45893         * posix/wait4.c: Likewise.
45894         * resolv/README: Likewise.
45895         * resolv/res_debug.h: Likewise.
45896         * resolv/tst-inet_ntop.c: Likewise.
45897         * setjmp/bug269-setjmp.c: Likewise.
45898         * soft-fp/extended.h: 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-8.h: Likewise.
45903         * soft-fp/testit.c: Likewise.
45904         * stdio-common/bug16.c: Likewise.
45905         * stdlib/random.c: Likewise.
45906         * sunrpc/rpcsvc/rquota.x: Likewise.
45907         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
45908         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
45909         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45910         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
45911         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
45912         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
45913         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
45914         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
45915         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
45916         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
45917         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
45918         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
45919         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
45920         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
45921         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
45922         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
45923         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
45924         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
45925         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
45926         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
45927         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
45928         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
45929         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
45930         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
45931         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
45932         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
45933         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
45934         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
45935         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
45936         * sysdeps/ieee754/s_lib_version.c: Likewise.
45937         * sysdeps/mach/hurd/check_fds.c: Likewise.
45938         * sysdeps/mach/hurd/getsockname.c: Likewise.
45939         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
45940         * sysdeps/mach/hurd/recvfrom.c: Likewise.
45941         * sysdeps/powerpc/bits/link.h: Likewise.
45942         * sysdeps/powerpc/dl-procinfo.c: Likewise.
45943         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
45944         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
45945         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
45946         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
45947         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
45948         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
45949         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
45950         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
45951         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
45952         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
45953         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
45954         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
45955         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
45956         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
45957         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
45958         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
45959         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
45960         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
45961         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
45962         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
45963         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
45964         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45965         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
45966         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
45967         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
45968         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
45969         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
45970         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
45971         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
45972         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
45973         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
45974         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
45975         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
45976         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
45977         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
45978         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
45979         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
45980         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
45981         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
45982         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
45983         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
45984         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
45985         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
45986         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
45987         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
45988         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
45989         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
45990         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
45991         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
45992         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
45993         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
45994         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
45995         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
45996         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
45997         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
45998         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
45999         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46000         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46001         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46002         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46003         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46004         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46005         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46006         * sysdeps/powerpc/sysdep.h: Likewise.
46007         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46008         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46009         * sysdeps/sh/dl-trampoline.S: Likewise.
46010         * sysdeps/sh/memset.S: Likewise.
46011         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46012         * sysdeps/sh/strlen.S: Likewise.
46013         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46014         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46015         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46016         * sysdeps/sparc/sparc32/rem.S: Likewise.
46017         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46018         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46019         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46020         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46021         * sysdeps/sparc/sparc32/urem.S: Likewise.
46022         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46023         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46024         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46025         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46026         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46027         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46028         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46029         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46030         * sysdeps/unix/bsd/times.c: Likewise.
46031         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46032         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46036         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46037         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46038         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46039         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46040         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46041         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46042         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46043         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46044         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46045         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46046         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46047         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46048         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46049         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46050         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46051         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46052         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46053         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46054         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46055         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46056         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46057         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46058         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46059         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46060         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46061         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46062         * sysdeps/x86_64/strcspn.S: Likewise.
46063
46064 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46065
46066         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46067         generated file.  Regenerate properly from gen-translit.pl.
46068         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46069         locale/C-translit.h.
46070
46071 2013-06-05  Andreas Schwab  <schwab@suse.de>
46072
46073         [BZ #15100]
46074         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46075         week as 6 instead of -1.
46076         * time/tst-strptime.c (day_tests): Add test case.
46077
46078 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46079
46080         * sysdeps/generic/math_private.h
46081         (libc_feholdexcept_setround_53bit): Replace with
46082         libc_feholdsetround_53bit.
46083         (libc_feupdateenv_53bit): Replace with
46084         libc_feresetround_53bit.
46085         (SET_RESTORE_ROUND_53BIT): Adjust.
46086
46087 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46088
46089         * string/test-strchrnul.c: Add copyright header.
46090
46091         * posix/tst-getaddrinfo4.c: Increase test timeout.
46092
46093 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46094
46095         [BZ #15536]
46096         * math/libm-test.inc (MAX_EXP): Remove
46097         (MIN_EXP): Define.
46098         (ulp): Use MIN_EXP - MANT_DIG.
46099         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46100
46101 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46102
46103         * po/be.po: Revert last change.
46104         * po/zh_CN.po: Likewise.
46105         * po/header.pot: Likewise.
46106
46107 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46108
46109         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46110         link-libc-deps to empty as target-specific variable.
46111         * Makerules (link-libc-args): New variable.
46112         (libc-for-link): Likewise.
46113         (link-libc-deps): Likewise.
46114         (lib%.so): Depend on $(link-libc-deps).  Link with
46115         $(link-libc-args).
46116         (build-module): Link with $(link-libc-args).
46117         (build-module-asneeded): Likewise.
46118         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46119         list of objects.
46120         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46121         target-specific variable.
46122         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46123         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46124         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46125         libc.
46126         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46127         libc and ld.so.
46128         ($(objpfx)libpcprofile.so): Likewise.
46129         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46130         libc_nonshared.a.
46131         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46132         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46133         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46134         $(link-libc-deps).
46135         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46136         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46137         * login/Makefile ($(objpfx)libutil.so): Likewise.
46138         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46139         * math/Makefile ($(objpfx)libm.so): Likewise.
46140         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46141         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46142         variable instead of depending directly on libc.
46143         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46144         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46145         $(link-libc-deps).
46146         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46147         libc.
46148         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46149         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46150         ($(objpfx)libanl.so): Likewise.
46151         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46152         ld.so.
46153         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46154         $(link-libc-deps).
46155         * sysdeps/i386/fpu/Makefile: Remove file.
46156         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46157         ($(objpfx)libm.so): Remove dependency on ld.so.
46158
46159 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46160
46161         [BZ # 15553]
46162         * nis/yp_xdr.c (XDRMAXNAME): Define.
46163         (XDRMAXRECORD): Define.
46164         (xdr_domainname): Use XDRMAXNAME.
46165         (xdr_mapname): Likewise.
46166         (xdr_peername): Likewise.
46167         (xdr_keydat): Use XDRMAXRECORD.
46168         (xdr_valdat): Likewise.
46169
46170 2013-05-30  Jeff Law  <law@redhat.com>
46171
46172         [BZ #14256]
46173         * manual/errno.texi (ESTALE): Update to account for more than
46174         just NFS file systems.
46175         * sysdeps/gnu/errlist.c: Regenerated.
46176
46177 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46178
46179         [BZ #15465]
46180         * elf/Makefile (tests): Add tst-null-argv.
46181         (modules-names):  Add tst-null-argv-lib.
46182         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46183         (tst-null-argv-ENV): Set environment for tst-null-argv.
46184         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46185         (RTLD_PROGNAME): New macro.
46186         * elf/tst-null-argv.c: New test case.
46187         * elf/tst-null-argv-lib.c: Library for test case.
46188         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46189         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46190         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46191         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46192         * elf/dl-init.c (call_init): Likewise.
46193         (_dl_init): Likewise.
46194         * elf/dl-load.c (print_search_path): Likewise.
46195         (_dl_map_object): Likewise.
46196         * elf/dl-lookup.c (do_lookup_x): Likewise.
46197         (add_dependency): Likewise.
46198         (_dl_lookup_symbol_x): Likewise.
46199         (_dl_debug_bindings): Likewise.
46200         * elf/dl-open.c (_dl_show_scope): Likewise.
46201         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46202         * elf/dl-version.c (match_symbol): Likewise.
46203         (_dl_check_map_versions): Likewise.
46204         * elf/rtld.c (dl_main): Likewise.
46205         (print_unresolved): Use RTLD_PROGNAME.
46206         (print_missing_version): Likewise.
46207         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46208         (elf_machine_rela): Likewise.
46209         * sysdeps/powerpc/powerpc32/dl-machine.c
46210         (__process_machine_rela): Likewise.
46211         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46212         Likewise.
46213         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46214         Likewise.
46215         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46216         Likewise.
46217         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46218         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46219         Likewise.
46220         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46221         Likewise.
46222         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46223
46224 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46225
46226         * po/be.po: Add descriptive title.
46227         * po/zh_CN.po: Likewise.
46228         * po/header.pot: Likewise.
46229
46230 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46231
46232         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46233         error message.
46234         (enlarge_archive): Likewise.
46235
46236 2013-05-28  Ben North  <ben@redfrontdoor.org>
46237
46238         * manual/arith.texi (frexp): It is the magnitude of the return
46239         value which lies in [0.5, 1), not the return value itself.
46240
46241 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46242
46243         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46244
46245 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46246
46247         * stdio-common/bug26.c (main): Correct fscanf template.
46248
46249         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46250         declare _dl_skip_args.
46251
46252         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46253         Don't declare.
46254
46255         * manual/platform.texi: Add missing @end deftypefun.
46256
46257 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46258
46259         [BZ #15529]
46260         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46261         bit of mantissa of 2^16382.
46262         * math/libm-test.inc (hypot_test_data): Add more tests.
46263
46264         * math/libm-test.inc: Add drem and pow10 to list of tested
46265         functions.
46266         (pow10_test): New function.
46267         (drem_test): Likewise.
46268         (drem_test_tonearest): Likewise.
46269         (drem_test_towardzero): Likewise.
46270         (drem_test_downward): Likewise.
46271         (drem_test_upward): Likewise.
46272         (main): Call the new functions.
46273
46274         * math/libm-test.inc (finite_test_data): Remove.
46275         (finite_test): Run tests from isfinite_test_data.
46276         (gamma_test_data): Remove.
46277         (gamma_test): Run tests from lgamma_test_data.
46278         * sysdeps/i386/fpu/libm-test-ulps: Update.
46279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46280
46281 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46282
46283         * manual/platform.texi: Add PowerPC PPR function set documentation.
46284         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46285         implementation.
46286
46287 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46288
46289         * math/libm-test.inc (MAX_EXP): Define.
46290         (ULPDIFF): Define.
46291         (ulp): New function.
46292         (check_float_internal): Use ULPDIFF.
46293         (cpow_test): Disable failing test.
46294         (check_ulp): Test ulp() implemetnation.
46295         (main): Call check_ulp before starting tests.
46296
46297 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46298
46299         * math/gen-libm-test.pl (generate_testfile): Do not handle
46300         START_DATA and END_DATA.
46301         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46302         END_DATA.
46303         (acos_tonearest_test_data): Likewise.
46304         (acos_towardzero_test_data): Likewise.
46305         (acos_downward_test_data): Likewise.
46306         (acos_upward_test_data): Likewise.
46307         (acosh_test_data): Likewise.
46308         (asin_test_data): Likewise.
46309         (asin_tonearest_test_data): Likewise.
46310         (asin_towardzero_test_data): Likewise.
46311         (asin_downward_test_data): Likewise.
46312         (asin_upward_test_data): Likewise.
46313         (asinh_test_data): Likewise.
46314         (atan_test_data): Likewise.
46315         (atanh_test_data): Likewise.
46316         (atan2_test_data): Likewise.
46317         (cabs_test_data): Likewise.
46318         (cacos_test_data): Likewise.
46319         (cacosh_test_data): Likewise.
46320         (carg_test_data): Likewise.
46321         (casin_test_data): Likewise.
46322         (casinh_test_data): Likewise.
46323         (catan_test_data): Likewise.
46324         (catanh_test_data): Likewise.
46325         (cbrt_test_data): Likewise.
46326         (ccos_test_data): Likewise.
46327         (ccosh_test_data): Likewise.
46328         (ceil_test_data): Likewise.
46329         (cexp_test_data): Likewise.
46330         (cimag_test_data): Likewise.
46331         (clog_test_data): Likewise.
46332         (clog10_test_data): Likewise.
46333         (conj_test_data): Likewise.
46334         (copysign_test_data): Likewise.
46335         (cos_test_data): Likewise.
46336         (cos_tonearest_test_data): Likewise.
46337         (cos_towardzero_test_data): Likewise.
46338         (cos_downward_test_data): Likewise.
46339         (cos_upward_test_data): Likewise.
46340         (cosh_test_data): Likewise.
46341         (cosh_tonearest_test_data): Likewise.
46342         (cosh_towardzero_test_data): Likewise.
46343         (cosh_downward_test_data): Likewise.
46344         (cosh_upward_test_data): Likewise.
46345         (cpow_test_data): Likewise.
46346         (cproj_test_data): Likewise.
46347         (creal_test_data): Likewise.
46348         (csin_test_data): Likewise.
46349         (csinh_test_data): Likewise.
46350         (csqrt_test_data): Likewise.
46351         (ctan_test_data): Likewise.
46352         (ctan_tonearest_test_data): Likewise.
46353         (ctan_towardzero_test_data): Likewise.
46354         (ctan_downward_test_data): Likewise.
46355         (ctan_upward_test_data): Likewise.
46356         (ctanh_test_data): Likewise.
46357         (ctanh_tonearest_test_data): Likewise.
46358         (ctanh_towardzero_test_data): Likewise.
46359         (ctanh_downward_test_data): Likewise.
46360         (ctanh_upward_test_data): Likewise.
46361         (erf_test_data): Likewise.
46362         (erfc_test_data): Likewise.
46363         (exp_test_data): Likewise.
46364         (exp_tonearest_test_data): Likewise.
46365         (exp_towardzero_test_data): Likewise.
46366         (exp_downward_test_data): Likewise.
46367         (exp_upward_test_data): Likewise.
46368         (exp10_test_data): Likewise.
46369         (exp2_test_data): Likewise.
46370         (expm1_test_data): Likewise.
46371         (fabs_test_data): Likewise.
46372         (fdim_test_data): Likewise.
46373         (finite_test_data): Likewise.
46374         (floor_test_data): Likewise.
46375         (fma_test_data): Likewise.
46376         (fma_towardzero_test_data): Likewise.
46377         (fma_downward_test_data): Likewise.
46378         (fma_upward_test_data): Likewise.
46379         (fmax_test_data): Likewise.
46380         (fmin_test_data): Likewise.
46381         (fmod_test_data): Likewise.
46382         (fpclassify_test_data): Likewise.
46383         (frexp_test_data): Likewise.
46384         (gamma_test_data): Likewise.
46385         (hypot_test_data): Likewise.
46386         (ilogb_test_data): Likewise.
46387         (isfinite_test_data): Likewise.
46388         (isgreater_test_data): Likewise.
46389         (isgreaterequal_test_data): Likewise.
46390         (isinf_test_data): Likewise.
46391         (isless_test_data): Likewise.
46392         (islessequal_test_data): Likewise.
46393         (islessgreater_test_data): Likewise.
46394         (isnan_test_data): Likewise.
46395         (isnormal_test_data): Likewise.
46396         (issignaling_test_data): Likewise.
46397         (isunordered_test_data): Likewise.
46398         (j0_test_data): Likewise.
46399         (j1_test_data): Likewise.
46400         (jn_test_data): Likewise.
46401         (ldexp_test_data): Likewise.
46402         (lgamma_test_data): Likewise.
46403         (lrint_test_data): Likewise.
46404         (lrint_tonearest_test_data): Likewise.
46405         (lrint_towardzero_test_data): Likewise.
46406         (lrint_downward_test_data): Likewise.
46407         (lrint_upward_test_data): Likewise.
46408         (llrint_test_data): Likewise.
46409         (llrint_tonearest_test_data): Likewise.
46410         (llrint_towardzero_test_data): Likewise.
46411         (llrint_downward_test_data): Likewise.
46412         (llrint_upward_test_data): Likewise.
46413         (log_test_data): Likewise.
46414         (log10_test_data): Likewise.
46415         (log1p_test_data): Likewise.
46416         (log2_test_data): Likewise.
46417         (logb_test_data): Likewise.
46418         (logb_downward_test_data): Likewise.
46419         (lround_test_data): Likewise.
46420         (llround_test_data): Likewise.
46421         (modf_test_data): Likewise.
46422         (nearbyint_test_data): Likewise.
46423         (nextafter_test_data): Likewise.
46424         (nexttoward_test_data): Likewise.
46425         (pow_test_data): Likewise.
46426         (pow_tonearest_test_data): Likewise.
46427         (pow_towardzero_test_data): Likewise.
46428         (pow_downward_test_data): Likewise.
46429         (pow_upward_test_data): Likewise.
46430         (remainder_test_data): Likewise.
46431         (remainder_tonearest_test_data): Likewise.
46432         (remainder_towardzero_test_data): Likewise.
46433         (remainder_downward_test_data): Likewise.
46434         (remainder_upward_test_data): Likewise.
46435         (remquo_test_data): Likewise.
46436         (rint_test_data): Likewise.
46437         (rint_tonearest_test_data): Likewise.
46438         (rint_towardzero_test_data): Likewise.
46439         (rint_downward_test_data): Likewise.
46440         (rint_upward_test_data): Likewise.
46441         (round_test_data): Likewise.
46442         (scalb_test_data): Likewise.
46443         (scalbn_test_data): Likewise.
46444         (scalbln_test_data): Likewise.
46445         (signbit_test_data): Likewise.
46446         (sin_test_data): Likewise.
46447         (sin_tonearest_test_data): Likewise.
46448         (sin_towardzero_test_data): Likewise.
46449         (sin_downward_test_data): Likewise.
46450         (sin_upward_test_data): Likewise.
46451         (sincos_test_data): Likewise.
46452         (sinh_test_data): Likewise.
46453         (sinh_tonearest_test_data): Likewise.
46454         (sinh_towardzero_test_data): Likewise.
46455         (sinh_downward_test_data): Likewise.
46456         (sinh_upward_test_data): Likewise.
46457         (sqrt_test_data): Likewise.
46458         (tan_test_data): Likewise.
46459         (tan_tonearest_test_data): Likewise.
46460         (tan_towardzero_test_data): Likewise.
46461         (tan_downward_test_data): Likewise.
46462         (tan_upward_test_data): Likewise.
46463         (tanh_test_data): Likewise.
46464         (tgamma_test_data): Likewise.
46465         (trunc_test_data): Likewise.
46466         (y0_test_data): Likewise.
46467         (y1_test_data): Likewise.
46468         (yn_test_data): Likewise.
46469         (significand_test_data): Likewise.
46470
46471         * math/gen-libm-test.pl (@functions): Remove variable.
46472         (generate_testfile): Don't handle START and END lines.
46473         * math/libm-test.inc (START): New macro.
46474         (END): Likewise.
46475         (END_COMPLEX): Likewise.
46476         (acos_test): Use END macro without arguments.
46477         (acos_test_tonearest): Likewise.
46478         (acos_test_towardzero): Likewise.
46479         (acos_test_downward): Likewise.
46480         (acos_test_upward): Likewise.
46481         (acosh_test): Likewise.
46482         (asin_test): Likewise.
46483         (asin_test_tonearest): Likewise.
46484         (asin_test_towardzero): Likewise.
46485         (asin_test_downward): Likewise.
46486         (asin_test_upward): Likewise.
46487         (asinh_test): Likewise.
46488         (atan_test): Likewise.
46489         (atanh_test): Likewise.
46490         (atan2_test): Likewise.
46491         (cabs_test): Likewise.
46492         (cacos_test): Use END_COMPLEX macro without arguments.
46493         (cacosh_test): Likewise.
46494         (carg_test): Use END macro without arguments.
46495         (casin_test): Use END_COMPLEX macro without arguments.
46496         (casinh_test): Likewise.
46497         (catan_test): Likewise.
46498         (catanh_test): Likewise.
46499         (cbrt_test): Use END macro without arguments.
46500         (ccos_test): Use END_COMPLEX macro without arguments.
46501         (ccosh_test): Likewise.
46502         (ceil_test): Use END macro without arguments.
46503         (cexp_test): Use END_COMPLEX macro without arguments.
46504         (cimag_test): Use END macro without arguments.
46505         (clog_test): Use END_COMPLEX macro without arguments.
46506         (clog10_test): Likewise.
46507         (conj_test): Likewise.
46508         (copysign_test): Use END macro without arguments.
46509         (cos_test): Likewise.
46510         (cos_test_tonearest): Likewise.
46511         (cos_test_towardzero): Likewise.
46512         (cos_test_downward): Likewise.
46513         (cos_test_upward): Likewise.
46514         (cosh_test): Likewise.
46515         (cosh_test_tonearest): Likewise.
46516         (cosh_test_towardzero): Likewise.
46517         (cosh_test_downward): Likewise.
46518         (cosh_test_upward): Likewise.
46519         (cpow_test): Use END_COMPLEX macro without arguments.
46520         (cproj_test): Likewise.
46521         (creal_test): Use END macro without arguments.
46522         (csin_test): Use END_COMPLEX macro without arguments.
46523         (csinh_test): Likewise.
46524         (csqrt_test): Likewise.
46525         (ctan_test): Likewise.
46526         (ctan_test_tonearest): Likewise.
46527         (ctan_test_towardzero): Likewise.
46528         (ctan_test_downward): Likewise.
46529         (ctan_test_upward): Likewise.
46530         (ctanh_test): Likewise.
46531         (ctanh_test_tonearest): Likewise.
46532         (ctanh_test_towardzero): Likewise.
46533         (ctanh_test_downward): Likewise.
46534         (ctanh_test_upward): Likewise.
46535         (erf_test): Use END macro without arguments.
46536         (erfc_test): Likewise.
46537         (exp_test): Likewise.
46538         (exp_test_tonearest): Likewise.
46539         (exp_test_towardzero): Likewise.
46540         (exp_test_downward): Likewise.
46541         (exp_test_upward): Likewise.
46542         (exp10_test): Likewise.
46543         (exp2_test): Likewise.
46544         (expm1_test): Likewise.
46545         (fabs_test): Likewise.
46546         (fdim_test): Likewise.
46547         (finite_test): Likewise.
46548         (floor_test): Likewise.
46549         (fma_test): Likewise.
46550         (fma_test_towardzero): Likewise.
46551         (fma_test_downward): Likewise.
46552         (fma_test_upward): Likewise.
46553         (fmax_test): Likewise.
46554         (fmin_test): Likewise.
46555         (fmod_test): Likewise.
46556         (fpclassify_test): Likewise.
46557         (frexp_test): Likewise.
46558         (gamma_test): Likewise.
46559         (hypot_test): Likewise.
46560         (ilogb_test): Likewise.
46561         (isfinite_test): Likewise.
46562         (isgreater_test): Likewise.
46563         (isgreaterequal_test): Likewise.
46564         (isinf_test): Likewise.
46565         (isless_test): Likewise.
46566         (islessequal_test): Likewise.
46567         (islessgreater_test): Likewise.
46568         (isnan_test): Likewise.
46569         (isnormal_test): Likewise.
46570         (issignaling_test): Likewise.
46571         (isunordered_test): Likewise.
46572         (j0_test): Likewise.
46573         (j1_test): Likewise.
46574         (jn_test): Likewise.
46575         (ldexp_test): Likewise.
46576         (lgamma_test): Likewise.
46577         (lrint_test): Likewise.
46578         (lrint_test_tonearest): Likewise.
46579         (lrint_test_towardzero): Likewise.
46580         (lrint_test_downward): Likewise.
46581         (lrint_test_upward): Likewise.
46582         (llrint_test): Likewise.
46583         (llrint_test_tonearest): Likewise.
46584         (llrint_test_towardzero): Likewise.
46585         (llrint_test_downward): Likewise.
46586         (llrint_test_upward): Likewise.
46587         (log_test): Likewise.
46588         (log10_test): Likewise.
46589         (log1p_test): Likewise.
46590         (log2_test): Likewise.
46591         (logb_test): Likewise.
46592         (logb_test_downward): Likewise.
46593         (lround_test): Likewise.
46594         (llround_test): Likewise.
46595         (modf_test): Likewise.
46596         (nearbyint_test): Likewise.
46597         (nextafter_test): Likewise.
46598         (nexttoward_test): Likewise.
46599         (pow_test): Likewise.
46600         (pow_test_tonearest): Likewise.
46601         (pow_test_towardzero): Likewise.
46602         (pow_test_downward): Likewise.
46603         (pow_test_upward): Likewise.
46604         (remainder_test): Likewise.
46605         (remainder_test_tonearest): Likewise.
46606         (remainder_test_towardzero): Likewise.
46607         (remainder_test_downward): Likewise.
46608         (remainder_test_upward): Likewise.
46609         (remquo_test): Likewise.
46610         (rint_test): Likewise.
46611         (rint_test_tonearest): Likewise.
46612         (rint_test_towardzero): Likewise.
46613         (rint_test_downward): Likewise.
46614         (rint_test_upward): Likewise.
46615         (round_test): Likewise.
46616         (scalb_test): Likewise.
46617         (scalbn_test): Likewise.
46618         (scalbln_test): Likewise.
46619         (signbit_test): Likewise.
46620         (sin_test): Likewise.
46621         (sin_test_tonearest): Likewise.
46622         (sin_test_towardzero): Likewise.
46623         (sin_test_downward): Likewise.
46624         (sin_test_upward): Likewise.
46625         (sincos_test): Likewise.
46626         (sinh_test): Likewise.
46627         (sinh_test_tonearest): Likewise.
46628         (sinh_test_towardzero): Likewise.
46629         (sinh_test_downward): Likewise.
46630         (sinh_test_upward): Likewise.
46631         (sqrt_test): Likewise.
46632         (tan_test): Likewise.
46633         (tan_test_tonearest): Likewise.
46634         (tan_test_towardzero): Likewise.
46635         (tan_test_downward): Likewise.
46636         (tan_test_upward): Likewise.
46637         (tanh_test): Likewise.
46638         (tgamma_test): Likewise.
46639         (trunc_test): Likewise.
46640         (y0_test): Likewise.
46641         (y1_test): Likewise.
46642         (yn_test): Likewise.
46643         (significand_test): Likewise.
46644
46645 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46646
46647         [BZ #15381]
46648         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46649
46650 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46651
46652         [BZ #14894]
46653         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46654         __ppc_mdoio and __ppc_mdoom.
46655         * manual/platform.texi: Document new functions __ppc_yield,
46656         __ppc_mdoio and __ppc_mdoom.
46657
46658 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46659
46660         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46661         (main): Mention "tls" pseudo-hwcap is legacy.
46662         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46663
46664 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46665
46666         * math/gen-libm-test.pl (parse_args): Output only string of
46667         arguments as text for test name, not full call or descriptions of
46668         tests for extra outputs.
46669         (generate_testfile): Do not pass function name to parse_args.
46670         Generate this_func variable from START.
46671         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46672         field to arg_str.
46673         (struct test_ff_f_data): Likewise.
46674         (test_ff_f_data_nexttoward): Likewise.
46675         (struct test_fi_f_data): Likewise.
46676         (struct test_fl_f_data): Likewise.
46677         (struct test_if_f_data): Likewise.
46678         (struct test_fff_f_data): Likewise.
46679         (struct test_c_f_data): Likewise.
46680         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46681         (struct test_fF_f1_data): Likewise.
46682         (struct test_ffI_f1_data): Likewise.
46683         (struct test_c_c_data): Rename test_name field to arg_str.
46684         (struct test_cc_c_data): Likewise.
46685         (struct test_f_i_data): Likewise.
46686         (struct test_ff_i_data): Likewise.
46687         (struct test_f_l_data): Likewise.
46688         (struct test_f_L_data): Likewise.
46689         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46690         and extra2_name.
46691         (COMMON_TEST_SETUP): New macro.
46692         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46693         (COMMON_TEST_CLEANUP): Likewise.
46694         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46695         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46696         macros.
46697         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46698         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46699         macros.
46700         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46701         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46702         cleanup macros.
46703         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46704         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46705         macros.
46706         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46707         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46708         macros.
46709         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46710         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46711         cleanup macros.
46712         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46713         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46714         cleanup macros.
46715         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46716         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46717         cleanup macros.
46718         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46719         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46720         macros.
46721         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46722         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46723         macros.
46724         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46725         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46726         macros.
46727         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46728         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46729         cleanup macros.
46730         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46731         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46732         cleanup macros.
46733         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46734         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46735         macros.
46736         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46737         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46738         cleanup macros.
46739         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46740         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46741         macros.
46742         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46743         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46744         macros.
46745         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46746         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46747         cleanup macros.
46748         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46749
46750 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46751
46752         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46753         to _sifields.sigfault.
46754         (si_addr_lsb): Define new macro.
46755         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46756         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46757         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46758
46759 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46760
46761         [BZ #15441]
46762         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46763         returns -1.
46764         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46765         null return -1.
46766         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46767         loading the domain.
46768
46769 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46770
46771         * math/gen-libm-test.pl (parse_args): Do not include expected
46772         result in test name.
46773         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46774         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46775         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46776         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46777         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46779
46780 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46781
46782         * benchtests/Makefile: Sort function entries.
46783
46784         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
46785         tanh, asinh, acosh, atanh.
46786         * benchtests/acos-inputs: New file.
46787         * benchtests/acosh-inputs: New file.
46788         * benchtests/asin-inputs: New file.
46789         * benchtests/asinh-inputs: New file.
46790         * benchtests/atanh-inputs: New file.
46791         * benchtests/cosh-inputs: New file.
46792         * benchtests/log-inputs: New file.
46793         * benchtests/sinh-inputs: New file.
46794         * benchtests/tanh-inputs: New file.
46795
46796 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
46797
46798         [BZ #15339]
46799         * posix/tst-getaddrinfo4.c: New test.
46800         * posix/Makefile (tests): Add it.
46801
46802 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46803
46804         [BZ #15339]
46805         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
46806         when no services were used.
46807         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
46808         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
46809
46810 2013-05-21  Andreas Schwab  <schwab@suse.de>
46811
46812         [BZ #15014]
46813         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
46814         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
46815         successful.
46816         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
46817         redundant variable declarations and reallocation of buffer when
46818         parsing as IPv6 address.  Always set NSS status when called from
46819         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
46820         buffer too small.  Correct computation of needed size.
46821         * nss/Makefile (tests): Add test-digits-dots.
46822         * nss/test-digits-dots.c: New test.
46823
46824 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46825
46826         * benchtests/Makefile: Remove instructions for adding
46827         benchmark tests.
46828         * benchtests/README: New file to explain how to execute and
46829         enhance the benchmark tests.
46830
46831 2013-05-21  Andreas Schwab  <schwab@suse.de>
46832
46833         [BZ #15493]
46834         * setjmp/Makefile (tests): Add tst-sigsetjmp.
46835         * setjmp/tst-sigsetjmp.c: New test.
46836
46837 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46838
46839         * sysdeps/x86_64/memset.S (memset): New implementation.
46840         (__bzero): Likewise.
46841         (__memset_tail): New function.
46842
46843 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46844
46845         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
46846         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
46847         __memcpy_sse2_unaligned ifunc selection.
46848         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
46849         Add memcpy-sse2-unaligned.S.
46850         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
46851         Add: __memcpy_sse2_unaligned.
46852
46853 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
46854
46855         [BZ #15490]
46856         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
46857         math_force_eval before restoring floating-point envrionment.
46858         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
46859         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
46860         Likewise.
46861         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
46862         <math_private.h>.
46863         (__nearbyintl): Use math_force_eval before restoring
46864         floating-point environment.
46865         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
46866
46867         * math/gen-libm-test.pl (special_functions): Remove.
46868         (parse_args): Don't handle TEST_extra.  Handle functions with no
46869         return value.
46870         * math/libm-test.inc (struct test_sincos_data): Replace with
46871         struct test_fFF_11_data.
46872         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
46873         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
46874         (sincos_test_data): Change element type to struct
46875         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
46876         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
46877         RUN_TEST_LOOP_sincos.
46878         * math/README.libm-test: Don't mention special handling of
46879         individual functions.
46880         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
46881         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46882         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46883         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46884         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46886
46887         * math/gen-libm-test.pl (get_variable): Remove function.
46888         (parse_args): Don't show pointer parameters to call in test
46889         names.  Use "extra output N" in test names for extra outputs
46890         rather than naming variables.
46891
46892 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
46893
46894         [BZ #15488]
46895         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
46896         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
46897         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
46898         double tests.
46899         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
46900         disable.
46901         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
46902         check_long_double.
46903
46904         * math/gen-libm-test.pl (@tests): Remove variable.
46905         ($count): Likewise.
46906         (new_test): Remove function.
46907         (show_exceptions): New function.
46908         (special_functions): Use show_exceptions instead of new_test.
46909         (parse_args): Likewise.
46910         (generate_testfile): Pass only function name in generated call to
46911         print_max_error or print_complex_max_error.
46912         (get_ulps): Do not handle complex tests specially.
46913         (output_test): Rename to ...
46914         (get_all_ulps_for_test): ... this.  Return a string rather than
46915         printing to a file.  Require ulps to be present.
46916         (output_ulps): Generate arrays rather than #defines.
46917         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
46918         (struct ulp_data): New type.
46919         (BUILD_COMPLEX_ULP): Remove macro.
46920         (compare_ulp_data): New function.
46921         (find_ulps): Likewise.
46922         (find_test_ulps): Likewise.
46923         (find_function_ulps): Likewise.
46924         (find_complex_function_ulps): Likewise.
46925         (print_max_error): Determine allowed ulps using
46926         find_function_ulps.
46927         (print_complex_max_error): Determine allowed ulps using
46928         find_complex_function_ulps.
46929         (check_float_internal): Determine max ulps using find_test_ulps.
46930         (check_float): Do not take max_ulp parameter.  Update call to
46931         check_float_internal.
46932         (check_complex): Likewise.
46933         (check_int): Do not take max_ulp parameter.
46934         (check_long): Likewise.
46935         (check_bool): Likewise.
46936         (check_longlong): Likewise.
46937         (struct test_f_f_data): Remove max_ulp field.
46938         (struct test_ff_f_data): Likewise.
46939         (struct test_ff_f_data_nexttoward): Likewise.
46940         (struct test_fi_f_data): Likewise.
46941         (struct test_fl_f_data): Likewise.
46942         (struct test_if_f_data): Likewise.
46943         (struct test_fff_f_data): Likewise.
46944         (struct test_c_f_data): Likewise.
46945         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
46946         (struct test_fF_f1_data): Likewise.
46947         (struct test_ffI_f1_data): Likewise.
46948         (struct test_c_c_data): Remove max_ulp field.
46949         (struct test_cc_c_data): Likewise.
46950         (struct test_f_i_data): Likewise.
46951         (struct test_ff_i_data): Likewise.
46952         (struct test_f_l_data): Likewise.
46953         (struct test_f_L_data): Likewise.
46954         (struct test_sincos_data): Likewise.
46955         (RUN_TEST_f_f): Do not handle ulps.
46956         (RUN_TEST_LOOP_f_f): Likewise.
46957         (RUN_TEST_2_f): Likewise.
46958         (RUN_TEST_LOOP_2_f): Likewise.
46959         (RUN_TEST_fff_f): Likewise.
46960         (RUN_TEST_LOOP_fff_f): Likewise.
46961         (RUN_TEST_c_f): Likewise.
46962         (RUN_TEST_LOOP_c_f): Likewise.
46963         (RUN_TEST_f_f1): Likewise.
46964         (RUN_TEST_LOOP_f_f1): Likewise.
46965         (RUN_TEST_fF_f1): Likewise.
46966         (RUN_TEST_LOOP_fF_f1): Likewise.
46967         (RUN_TEST_fI_f1): Likewise.
46968         (RUN_TEST_LOOP_fI_f1): Likewise.
46969         (RUN_TEST_ffI_f1): Likewise.
46970         (RUN_TEST_LOOP_ffI_f1): Likewise.
46971         (RUN_TEST_c_c): Likewise.
46972         (RUN_TEST_LOOP_c_c): Likewise.
46973         (RUN_TEST_cc_c): Likewise.
46974         (RUN_TEST_LOOP_cc_c): Likewise.
46975         (RUN_TEST_f_i): Likewise.
46976         (RUN_TEST_LOOP_f_i): Likewise.
46977         (RUN_TEST_f_i_tg): Likewise.
46978         (RUN_TEST_LOOP_f_i_tg): Likewise.
46979         (RUN_TEST_ff_i_tg): Likewise.
46980         (RUN_TEST_LOOP_ff_i_tg): Likewise.
46981         (RUN_TEST_f_b): Likewise.
46982         (RUN_TEST_LOOP_f_b): Likewise.
46983         (RUN_TEST_f_b_tg): Likewise.
46984         (RUN_TEST_LOOP_f_b_tg): Likewise.
46985         (RUN_TEST_f_l): Likewise.
46986         (RUN_TEST_LOOP_f_l): Likewise.
46987         (RUN_TEST_f_L): Likewise.
46988         (RUN_TEST_LOOP_f_L): Likewise.
46989         (RUN_TEST_sincos): Likewise.
46990         (RUN_TEST_LOOP_sincos): Likewise.
46991
46992 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
46993
46994         [BZ #15480]
46995         [BZ #15485]
46996         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
46997         main case of finite arguments, set rounding mode to FE_TONEAREST
46998         and discard exceptions.
46999         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47000         exceptions.
47001         (remainder_tonearest_test_data): New variable.
47002         (remainder_test_tonearest): New function.
47003         (remainder_towardzero_test_data): New variable.
47004         (remainder_test_towardzero): New function.
47005         (remainder_downward_test_data): New variable.
47006         (remainder_test_downward): New function.
47007         (remainder_upward_test_data): New variable.
47008         (remainder_test_upward): New function.
47009         (main): Call the new test functions.
47010
47011         * math/libm-test.inc (struct test_f_f1_data): Remove field
47012         extra_init.
47013         (struct test_fF_f1_data): Likewise.
47014         (struct test_ffI_f1_data): Likewise.
47015         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47016         based on value of EXTRA_EXPECTED.
47017         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47018         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47019         EXTRA_VAR based on value of EXTRA_EXPECTED.
47020         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47021         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47022         EXTRA_VAR based on value of EXTRA_EXPECTED.
47023         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47024         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47025         EXTRA_VAR based on value of EXTRA_EXPECTED.
47026         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47027         * math/gen-libm-test.pl (parse_args): Don't output initializers
47028         for extra output values.
47029
47030         * math/libm-test.inc (check_int): Expect result to be exactly
47031         equal to expected value and do not handle ulps.
47032         (check_long): Likewise.
47033         (check_longlong): Likewise.
47034
47035         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47036         exceptions.
47037         (cimag_test_data): Likewise.
47038         (conj_test_data): Likewise.
47039         (copysign_test_data): Likewise.
47040         (cproj_test_data): Likewise.
47041         (creal_test_data): Likewise.
47042         (fabs_test_data): Likewise.
47043         (fdim_test_data): Likewise.
47044         (finite_test_data): Likewise.
47045         (floor_test_data): Likewise.
47046         (fmax_test_data): Likewise.
47047         (fmin_test_data): Likewise.
47048         (fmod_test_data): Likewise.
47049         (fpclassify_test_data): Likewise.
47050         (frexp_test_data): Likewise.
47051         (ilogb_test_data): Likewise.
47052         (isfinite_test_data): Likewise.
47053         (isgreater_test_data): Likewise.
47054         (isgreaterequal_test_data): Likewise.
47055         (isinf_test_data): Likewise.
47056         (isless_test_data): Likewise.
47057         (islessequal_test_data): Likewise.
47058         (islessgreater_test_data): Likewise.
47059         (isnan_test_data): Likewise.
47060         (isnormal_test_data): Likewise.
47061         (issignaling_test_data): Likewise.
47062         (isunordered_test_data): Likewise.
47063         (ldexp_test_data): Likewise.
47064         (lrint_test_data): Likewise.
47065         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47066         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47067         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47068         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47069         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47070         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47071         test input.
47072         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47073         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47074         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47075         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47076         that test input.
47077         (lrint_downward_test_data): Test for "inexact" exceptions.
47078         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47079         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47080         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47081         test input.
47082         (lrint_upward_test_data): Test for "inexact" exceptions.
47083         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47084         test input.
47085         (llrint_test_data): Test for "inexact" exceptions.
47086         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47087         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47088         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47089         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47090         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47091         (llrint_downward_test_data): Test for "inexact" exceptions.
47092         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47093         (llrint_upward_test_data): Test for "inexact" exceptions.
47094         (logb_test_data): Likewise.
47095         (logb_downward_test_data): Likewise.
47096         (nextafter_test_data): Likewise.
47097         (nexttoward_test_data): Likewise.
47098         (remainder_test_data): Likewise.
47099         (remquo_test_data): Likewise.
47100         (scalbn_test_data): Likewise.
47101         (scalbln_test_data): Likewise.
47102         (signbit_test_data): Likewise.
47103         (sqrt_test_data): Likewise.
47104         (significand_test_data): Likewise.
47105
47106 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47107
47108         [BZ #15424]
47109         * benchtests/bench-modf.c (struct args): Mark arg0 as
47110         volatile.
47111         * scripts/bench.pl: Mark members of struct args as volatile.
47112
47113 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47114
47115         [BZ # 15497]
47116         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47117         negative infinity on POWER6 or lower.
47118         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47119
47120 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47121
47122         [BZ #15442]
47123         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47124         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47125         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47126         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47127         (_FP_SETQNAN): New macro.
47128         (_FP_SETQNAN_SEMIRAW): Likewise.
47129         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47130         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47131         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47132         (FP_EXTEND): Use _FP_FRAC_SNANP.
47133         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47134         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47135         into account.
47136         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47137         New macro.
47138         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47139         Likewise.
47140
47141 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47142
47143         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47144         with DIVIDE_BY_ZERO_EXCEPTION.
47145         (gamma_test_data): Likewise.
47146         (lgamma_test_data): Likewise.
47147         (log_test_data): Likewise.
47148         (log10_test_data): Likewise.
47149         (log2_test_data): Likewise.
47150         (tgamma_test_data): Likewise.
47151
47152         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47153         (acos_test_tonearest): Likewise.
47154         (acos_test_towardzero): Likewise.
47155         (acos_test_downward): Likewise.
47156         (acos_test_upward): Likewise.
47157         (acosh_test): Likewise.
47158         (asin_test): Likewise.
47159         (asin_test_tonearest): Likewise.
47160         (asin_test_towardzero): Likewise.
47161         (asin_test_downward): Likewise.
47162         (asin_test_upward): Likewise.
47163         (asinh_test): Likewise.
47164         (atan_test): Likewise.
47165         (atanh_test): Likewise.
47166         (atan2_test): Likewise.
47167         (cabs_test): Likewise.
47168         (cacos_test): Likewise.
47169         (cacosh_test): Likewise.
47170         (casin_test): Likewise.
47171         (casinh_test): Likewise.
47172         (catan_test): Likewise.
47173         (catanh_test): Likewise.
47174         (cbrt_test): Likewise.
47175         (ccos_test): Likewise.
47176         (ccosh_test): Likewise.
47177         (cexp_test): Likewise.
47178         (clog_test): Likewise.
47179         (clog10_test): Likewise.
47180         (cos_test): Likewise.
47181         (cos_test_tonearest): Likewise.
47182         (cos_test_towardzero): Likewise.
47183         (cos_test_downward): Likewise.
47184         (cos_test_upward): Likewise.
47185         (cosh_test): Likewise.
47186         (cosh_test_tonearest): Likewise.
47187         (cosh_test_towardzero): Likewise.
47188         (cosh_test_downward): Likewise.
47189         (cosh_test_upward): Likewise.
47190         (cpow_test): Likewise.
47191         (csin_test): Likewise.
47192         (csinh_test): Likewise.
47193         (csqrt_test): Likewise.
47194         (ctan_test): Likewise.
47195         (ctan_test_tonearest): Likewise.
47196         (ctan_test_towardzero): Likewise.
47197         (ctan_test_downward): Likewise.
47198         (ctan_test_upward): Likewise.
47199         (ctanh_test): Likewise.
47200         (ctanh_test_tonearest): Likewise.
47201         (ctanh_test_towardzero): Likewise.
47202         (ctanh_test_downward): Likewise.
47203         (ctanh_test_upward): Likewise.
47204         (erf_test): Likewise.
47205         (erfc_test): Likewise.
47206         (exp_test): Likewise.
47207         (exp_test_tonearest): Likewise.
47208         (exp_test_towardzero): Likewise.
47209         (exp_test_downward): Likewise.
47210         (exp_test_upward): Likewise.
47211         (exp10_test): Likewise.
47212         (exp2_test): Likewise.
47213         (expm1_test): Likewise.
47214         (fmod_test): Likewise.
47215         (gamma_test): Likewise.
47216         (hypot_test): Likewise.
47217         (j0_test): Likewise.
47218         (j1_test): Likewise.
47219         (jn_test): Likewise.
47220         (lgamma_test): Likewise.
47221         (log_test): Likewise.
47222         (log10_test): Likewise.
47223         (log1p_test): Likewise.
47224         (log2_test): Likewise.
47225         (logb_test_downward): Likewise.
47226         (pow_test): Likewise.
47227         (pow_test_tonearest): Likewise.
47228         (pow_test_towardzero): Likewise.
47229         (pow_test_downward): Likewise.
47230         (pow_test_upward): Likewise.
47231         (remainder_test): Likewise.
47232         (remquo_test): Likewise.
47233         (sin_test): Likewise.
47234         (sin_test_tonearest): Likewise.
47235         (sin_test_towardzero): Likewise.
47236         (sin_test_downward): Likewise.
47237         (sin_test_upward): Likewise.
47238         (sincos_test): Likewise.
47239         (sinh_test): Likewise.
47240         (sinh_test_tonearest): Likewise.
47241         (sinh_test_towardzero): Likewise.
47242         (sinh_test_downward): Likewise.
47243         (sinh_test_upward): Likewise.
47244         (sqrt_test): Likewise.
47245         (tan_test): Likewise.
47246         (tan_test_tonearest): Likewise.
47247         (tan_test_towardzero): Likewise.
47248         (tan_test_downward): Likewise.
47249         (tan_test_upward): Likewise.
47250         (tanh_test): Likewise.
47251         (tgamma_test): Likewise.
47252         (y0_test): Likewise.
47253         (y1_test): Likewise.
47254         (yn_test): Likewise.
47255
47256         * math/gen-libm-test.pl (adjust_arg): Remove function.
47257         (special_function): Remove argument $in_func.  Only handle
47258         generating output for tables of tests, not inside functions.
47259         (parse_args): Likewise.
47260         (generate_testfile): Remove variable $in_func.  Update call to
47261         parse_args.
47262         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47263         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47264         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47265         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47266         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47267         (MAX_VALUE_INIT): Rename macro to max_value.
47268         (MIN_VALUE_INIT): Rename macro to min_value.
47269         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47270         (plus_zero): Remove variable.
47271         (minus_zero): Likewise.
47272         (plus_infty): Likewise.
47273         (minus_infty): Likewise.
47274         (qnan_value): Likewise.
47275         (max_value): Likewise.
47276         (min_value): Likewise.
47277         (min_subnorm_value): Likewise.
47278
47279 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47280
47281         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47282         uint64_t or uint32_t usage.
47283         * crypt/sha256-block.c: Likewise.
47284         * crypt/sha256-crypt.c: Likewise.
47285         * crypt/sha256.c: Likewise.
47286         * crypt/sha512-block.c: Likewise.
47287         * crypt/sha512-crypt.c: Likewise.
47288         * crypt/sha512.c: Likewise.
47289         * debug/backtrace-tst.c: Likewise.
47290         * debug/pcprofiledump.c: Likewise.
47291         * elf/cache.c: Likewise.
47292         * elf/dl-cache.c: Likewise.
47293         * elf/dl-misc.c: Likewise.
47294         * elf/dl-profile.c: Likewise.
47295         * elf/dl-support.c: Likewise.
47296         * elf/ldconfig.c: Likewise.
47297         * elf/sprof.c: Likewise.
47298         * iconv/dummy-repertoire.c: Likewise.
47299         * iconv/iconv_charmap.c: Likewise.
47300         * iconv/skeleton.c: Likewise.
47301         * iconvdata/8bit-generic.c: Likewise.
47302         * iconvdata/cp737.h: Likewise.
47303         * iconvdata/cp775.h: Likewise.
47304         * iconvdata/ibm1008.h: Likewise.
47305         * iconvdata/ibm1025.h: Likewise.
47306         * iconvdata/ibm1046.h: Likewise.
47307         * iconvdata/ibm1097.h: Likewise.
47308         * iconvdata/ibm1112.h: Likewise.
47309         * iconvdata/ibm1122.h: Likewise.
47310         * iconvdata/ibm1123.h: Likewise.
47311         * iconvdata/ibm1124.h: Likewise.
47312         * iconvdata/ibm1129.h: Likewise.
47313         * iconvdata/ibm1130.h: Likewise.
47314         * iconvdata/ibm1132.h: Likewise.
47315         * iconvdata/ibm1133.h: Likewise.
47316         * iconvdata/ibm1137.h: Likewise.
47317         * iconvdata/ibm1140.h: Likewise.
47318         * iconvdata/ibm1141.h: Likewise.
47319         * iconvdata/ibm1142.h: Likewise.
47320         * iconvdata/ibm1143.h: Likewise.
47321         * iconvdata/ibm1144.h: Likewise.
47322         * iconvdata/ibm1145.h: Likewise.
47323         * iconvdata/ibm1146.h: Likewise.
47324         * iconvdata/ibm1147.h: Likewise.
47325         * iconvdata/ibm1148.h: Likewise.
47326         * iconvdata/ibm1149.h: Likewise.
47327         * iconvdata/ibm1153.h: Likewise.
47328         * iconvdata/ibm1154.h: Likewise.
47329         * iconvdata/ibm1155.h: Likewise.
47330         * iconvdata/ibm1156.h: Likewise.
47331         * iconvdata/ibm1157.h: Likewise.
47332         * iconvdata/ibm1158.h: Likewise.
47333         * iconvdata/ibm1160.h: Likewise.
47334         * iconvdata/ibm1161.h: Likewise.
47335         * iconvdata/ibm1162.h: Likewise.
47336         * iconvdata/ibm1163.h: Likewise.
47337         * iconvdata/ibm1164.h: Likewise.
47338         * iconvdata/ibm1166.h: Likewise.
47339         * iconvdata/ibm1167.h: Likewise.
47340         * iconvdata/ibm12712.h: Likewise.
47341         * iconvdata/ibm1390.h: Likewise.
47342         * iconvdata/ibm1399.h: Likewise.
47343         * iconvdata/ibm16804.h: Likewise.
47344         * iconvdata/ibm4517.h: Likewise.
47345         * iconvdata/ibm4899.h: Likewise.
47346         * iconvdata/ibm4909.h: Likewise.
47347         * iconvdata/ibm4971.h: Likewise.
47348         * iconvdata/ibm5347.h: Likewise.
47349         * iconvdata/ibm803.h: Likewise.
47350         * iconvdata/ibm856.h: Likewise.
47351         * iconvdata/ibm901.h: Likewise.
47352         * iconvdata/ibm902.h: Likewise.
47353         * iconvdata/ibm9030.h: Likewise.
47354         * iconvdata/ibm9066.h: Likewise.
47355         * iconvdata/ibm921.h: Likewise.
47356         * iconvdata/ibm922.h: Likewise.
47357         * iconvdata/ibm9448.h: Likewise.
47358         * iconvdata/isiri-3342.h: Likewise.
47359         * iconvdata/jis0201.h: Likewise.
47360         * include/link.h: Likewise.
47361         * include/netdb.h: Likewise.
47362         * inet/check_native.c: Likewise.
47363         * inet/check_pf.c: Likewise.
47364         * inet/getipv4sourcefilter.c: Likewise.
47365         * inet/getnameinfo.c: Likewise.
47366         * inet/getsourcefilter.c: Likewise.
47367         * inet/htonl.c: Likewise.
47368         * inet/setipv4sourcefilter.c: Likewise.
47369         * inet/setsourcefilter.c: Likewise.
47370         * inet/test-inet6_opt.c: Likewise.
47371         * inet/tst-network.c: Likewise.
47372         * locale/C-collate.c: Likewise.
47373         * locale/C-ctype.c: Likewise.
47374         * locale/C-time.c: Likewise.
47375         * locale/C-translit.h: Likewise.
47376         * locale/loadarchive.c: Likewise.
47377         * locale/programs/3level.h: Likewise.
47378         * locale/programs/charmap.c: Likewise.
47379         * locale/programs/charmap.h: Likewise.
47380         * locale/programs/ld-address.c: Likewise.
47381         * locale/programs/ld-collate.c: Likewise.
47382         * locale/programs/ld-ctype.c: Likewise.
47383         * locale/programs/ld-identification.c: Likewise.
47384         * locale/programs/ld-measurement.c: Likewise.
47385         * locale/programs/ld-messages.c: Likewise.
47386         * locale/programs/ld-monetary.c: Likewise.
47387         * locale/programs/ld-name.c: Likewise.
47388         * locale/programs/ld-numeric.c: Likewise.
47389         * locale/programs/ld-paper.c: Likewise.
47390         * locale/programs/ld-telephone.c: Likewise.
47391         * locale/programs/ld-time.c: Likewise.
47392         * locale/programs/linereader.c: Likewise.
47393         * locale/programs/locale.c: Likewise.
47394         * locale/programs/locarchive.c: Likewise.
47395         * locale/programs/locfile.h: Likewise.
47396         * locale/programs/repertoire.c: Likewise.
47397         * locale/programs/simple-hash.c: Likewise.
47398         * locale/programs/simple-hash.h: Likewise.
47399         * malloc/memusage.c: Likewise.
47400         * malloc/memusagestat.c: Likewise.
47401         * nis/nis_defaults.c: Likewise.
47402         * nis/nis_hash.c: Likewise.
47403         * nis/nis_print.c: Likewise.
47404         * nis/nis_xdr.c: Likewise.
47405         * nscd/connections.c: Likewise.
47406         * nscd/hstcache.c: Likewise.
47407         * nscd/nscd_gethst_r.c: Likewise.
47408         * nscd/nscd_getserv_r.c: Likewise.
47409         * nscd/nscd_helper.c: Likewise.
47410         * nscd/servicescache.c: Likewise.
47411         * nss/makedb.c: Likewise.
47412         * nss/nss_db/db-XXX.c: Likewise.
47413         * nss/nss_db/db-initgroups.c: Likewise.
47414         * nss/nss_db/db-netgrp.c: Likewise.
47415         * nss/nss_files/files-network.c: Likewise.
47416         * nss/nss_files/files-parse.c: Likewise.
47417         * posix/bug-regex5.c: Likewise.
47418         * posix/fnmatch_loop.c: Likewise.
47419         * posix/regcomp.c: Likewise.
47420         * posix/regexec.c: Likewise.
47421         * posix/tst-rfc3484-2.c: Likewise.
47422         * posix/tst-rfc3484-3.c: Likewise.
47423         * posix/tst-rfc3484.c: Likewise.
47424         * resolv/nss_dns/dns-canon.c: Likewise.
47425         * resolv/nss_dns/dns-network.c: Likewise.
47426         * resolv/res_init.c: Likewise.
47427         * resolv/res_mkquery.c: Likewise.
47428         * resolv/tst-aton.c: Likewise.
47429         * stdlib/cxa_atexit.c: Likewise.
47430         * stdlib/cxa_finalize.c: Likewise.
47431         * stdlib/gen-fpioconst.c: Likewise.
47432         * stdlib/strtol_l.c: Likewise.
47433         * string/tst-endian.c: Likewise.
47434         * sunrpc/auth_des.c: Likewise.
47435         * sunrpc/clnt_udp.c: Likewise.
47436         * sunrpc/rtime.c: Likewise.
47437         * sunrpc/svcauth_des.c: Likewise.
47438         * sunrpc/xdr.c: Likewise.
47439         * sunrpc/xdr_intXX_t.c: Likewise.
47440         * sunrpc/xdr_rec.c: Likewise.
47441         * sysdeps/generic/ldconfig.h: Likewise.
47442         * sysdeps/generic/ldsodefs.h: Likewise.
47443         * sysdeps/generic/memusage.h: Likewise.
47444         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47445         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47446         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47447         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47448         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47449         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47450         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47451         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47452         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47453         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47454         * sysdeps/posix/getaddrinfo.c: Likewise.
47455         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47456         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47457         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47458         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47459         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47460         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47461         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47462         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47463         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47464         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47465         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47466         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47467         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47468         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47469         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47470         * sysdeps/x86_64/dl-tls.h: Likewise.
47471         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47472         * time/alt_digit.c: Likewise.
47473         * time/era.c: Likewise.
47474         * wcsmbs/tst-c16c32-1.c: Likewise.
47475
47476 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47477
47478         * math/libm-test.inc (struct test_sincos_data): New type.
47479         (RUN_TEST_LOOP_sincos): New macro.
47480         (sincos_test_data): New variable.
47481         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47482
47483 2013-05-16  Richard Henderson  <rth@redhat.com>
47484
47485         * math/atest-exp2.c (LIMB64): New macro.
47486         (CONSTSZ): New macro.
47487         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47488         (hexdig): Move ...
47489         (print_mpn_fp): ... to function scope.
47490         (read_mpn_hex): Remove.
47491         (get_log2): Remove.
47492         (exp2_mpn): Use mp_log2.
47493         (main): Use mp_exp1.
47494
47495 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47496
47497         * math/libm-test.inc: Remove comment about not testing "inexact"
47498         exceptions.
47499         (INEXACT_EXCEPTION): New macro.
47500         (NO_INEXACT_EXCEPTION): Likewise.
47501         (INVALID_EXCEPTION_OK): Update value.
47502         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47503         (OVERFLOW_EXCEPTION_OK): Likewise.
47504         (UNDERFLOW_EXCEPTION_OK): Likewise.
47505         (IGNORE_ZERO_INF_SIGN): Likewise.
47506         (ERRNO_UNCHANGED): Likewise.
47507         (ERRNO_EDOM): Likewise.
47508         (ERRNO_ERANGE): Likewise.
47509         (test_exceptions): Handle testing "inexact" exceptions.
47510         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47511         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47512         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47513         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47514         INEXACT_EXCEPTION.
47515         (rint_towardzero_test_data): Likewise.
47516         (rint_downward_test_data): Likewise.
47517         (rint_upward_test_data): Likewise.
47518
47519         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47520         with OVERFLOW_EXCEPTION.
47521         (exp10_test_data): Likewise.
47522         (exp2_test_data): Likewise.
47523         (expm1_test_data): Likewise.
47524         (lgamma_test_data): Likewise.
47525         (pow_test_data): Likewise.
47526         (tgamma_test_data): Likewise.
47527         (yn_test_data): Remove duplicate test of overflow.
47528
47529         * math/libm-test.inc (struct test_cc_c_data): New type.
47530         (RUN_TEST_LOOP_cc_c): New macro.
47531         (cpow_test_data): New variable.
47532         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47533
47534         * math/libm-test.inc (struct test_f_L_data): New type.
47535         (RUN_TEST_LOOP_f_L): New macro.
47536         (llrint_test_data): New variable.
47537         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47538         (llrint_tonearest_test_data): New variable.
47539         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47540         (llrint_towardzero_test_data): New variable.
47541         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47542         (llrint_downward_test_data): New variable.
47543         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47544         (llrint_upward_test_data): New variable.
47545         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47546         (llround_test_data): New variable.
47547         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47548
47549 2013-05-13  Peter Collingbourne  <pcc@google.com>
47550
47551         * math/atest-exp2.c (get_log2): Remove const attribute.
47552
47553 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47554
47555         * math/libm-test.inc (struct test_f_l_data): New type.
47556         (RUN_TEST_LOOP_f_l): New macro.
47557         (lrint_test_data): New variable.
47558         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47559         (lrint_tonearest_test_data): New variable.
47560         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47561         (lrint_towardzero_test_data): New variable.
47562         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47563         (lrint_downward_test_data): New variable.
47564         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47565         (lrint_upward_test_data): New variable.
47566         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47567         (lround_test_data): New variable.
47568         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47569
47570 2013-05-15  Peter Collingbourne  <pcc@google.com>
47571
47572         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47573         (EXTRACT_WORDS64) Use where appropriate.
47574         (INSERT_WORDS64) Likewise.
47575
47576         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47577         constraints with x constraints.
47578         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47579
47580         * malloc/obstack.c (_obstack_compat): Add initializer.
47581
47582 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47583
47584         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47585         si_trapno and add si_addr_lsb to _sifields.sigfault.
47586         (si_trapno): Remove macro.
47587         (si_addr_lsb): Define new macro.
47588         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47589
47590 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47591
47592         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47593         instead of TEST_f_l.
47594         (llrint_test_tonearest): Likewise.
47595         (llrint_test_towardzero): Likewise.
47596         (llrint_test_downward): Likewise.
47597         (llrint_test_upward): Likewise.
47598         (llround_test): Likewise.
47599
47600         * math/libm-test.inc (struct test_f_i_data): Add comment.
47601         (RUN_TEST_LOOP_f_b): New macro.
47602         (RUN_TEST_LOOP_f_b_tg): Likewise.
47603         (finite_test_data): New variable.
47604         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47605         (isfinite_test_data): New variable.
47606         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47607         (isinf_test_data): New variable.
47608         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47609         (isnan_test_data): New variable.
47610         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47611         (isnormal_test_data): New variable.
47612         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47613         (issignaling_test_data): New variable.
47614         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47615         (signbit_test_data): New variable.
47616         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47617
47618         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47619         with INVALID_EXCEPTION.
47620         (acosh_test_data): Likewise.
47621         (asin_test_data): Likewise.
47622         (atanh_test_data): Likewise.
47623         (fmod_test_data): Likewise.
47624         (log_test_data): Likewise.
47625         (log10_test_data): Likewise.
47626         (log2_test_data): Likewise.
47627         (pow_test_data): Likewise.
47628         (sqrt_test_data): Likewise.
47629         (y0_test_data): Likewise.
47630         (y1_test_data): Likewise.
47631         (yn_test_data): Likewise.
47632
47633         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47634         function contents.
47635
47636         * math/libm-test.inc (struct test_ff_i_data): New type.
47637         (RUN_TEST_LOOP_ff_i_tg): New macro.
47638         (isgreater_test_data): New variable.
47639         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47640         (isgreaterequal_test_data): New variable.
47641         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47642         (isless_test_data): New variable.
47643         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47644         (islessequal_test_data): New variable.
47645         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47646         (islessgreater_test_data): New variable.
47647         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47648         (isunordered_test_data): New variable.
47649         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47650
47651 2013-05-14  David S. Miller  <davem@davemloft.net>
47652
47653         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47654
47655 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47656
47657         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47658
47659         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47660         extra_test to int.
47661         (struct test_f_i_data): Change type of max_ulp to int.
47662
47663         * math/libm-test.inc (test_ffI_f1_data): New type.
47664         (RUN_TEST_LOOP_ffI_f1): New macro.
47665         (remquo_test_data): New variable.
47666         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47667
47668         * setjmp/tst-setjmp-fp.c: New file.
47669         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47670         (link-libm): New variable.
47671         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47672
47673         * math/libm-test.inc (struct test_f_i_data): New type.
47674         (RUN_TEST_LOOP_f_i): New macro.
47675         (RUN_TEST_LOOP_f_i_tg): Likewise.
47676         (fpclassify_test_data): New variable.
47677         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47678         (ilogb_test_data): New variable.
47679         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47680
47681         * math/libm-test.inc (scalbln_test): Correct function name in END
47682         call.
47683
47684         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47685         (RUN_TEST_LOOP_fI_f1): New macro.
47686         (frexp_test_data): New variable.
47687         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47688
47689         * math/libm-test.inc (struct test_fF_f1_data): New type.
47690         (RUN_TEST_LOOP_fF_f1): New macro.
47691         (modf_test_data): New variable.
47692         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47693
47694         * math/libm-test.inc (struct test_f_f1_data): New type.
47695         (RUN_TEST_LOOP_f_f1): New macro.
47696         (gamma_test_data): New variable.
47697         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47698         (lgamma_test_data): New variable.
47699         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47700
47701 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47702
47703         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47704         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47705         (main): Comment "tls" pseudo-hwcap.
47706
47707 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47708
47709         * math/libm-test.inc (struct test_fl_f_data): New type.
47710         (RUN_TEST_LOOP_fl_f): New variable.
47711         (scalbln_test_data): New variable.
47712         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47713
47714         * math/libm-test.inc (struct test_fi_f_data): New type.
47715         (RUN_TEST_LOOP_fi_f): New macro.
47716         (ldexp_test_data): New variable.
47717         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47718         (scalbn_test_data): New variable.
47719         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47720
47721         * math/libm-test.inc (struct test_c_f_data): New type.
47722         (RUN_TEST_LOOP_c_f): New macro.
47723         (cabs_test_data): New variable.
47724         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47725         (carg_test_data): New variable.
47726         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47727         (cimag_test_data): New variable.
47728         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47729         (creal_test_data): New variable.
47730         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47731
47732         * math/libm-test.inc (struct test_if_f_data): New type.
47733         (RUN_TEST_LOOP_if_f): New macro.
47734         (jn_test_data): New variable.
47735         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47736         (yn_test_data): New variable.
47737         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47738
47739         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47740
47741 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47742
47743         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47744         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47745
47746 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47747
47748         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47749         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47750         (bench-deps): Add bench-timing.h.
47751         * benchtests-bench-skeleton.c: Include bench-timing.h.
47752         (main): Use TIMING_* macros instead of clock_gettime.
47753         * benchtests/bench-timing.h: New file.
47754
47755         [BZ #14582]
47756         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47757         Renamed from _LIB_VERSION.
47758         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47759
47760 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47761
47762         * math/libm-test.inc (struct test_fff_f_data): New type.
47763         (RUN_TEST_LOOP_fff_f): New macro.
47764         (fma_test_data): New variable.
47765         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47766         (fma_towardzero_test_data): New variable.
47767         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47768         (fma_downward_test_data): New variable.
47769         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47770         (fma_upward_test_data): New variable.
47771         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47772
47773         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47774         (struct test_c_c_data): New type.
47775         (RUN_TEST_LOOP_c_c): New macro.
47776         (cacos_test_data): New variable.
47777         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
47778         (cacosh_test_data): New variable.
47779         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
47780         (casin_test_data): New variable.
47781         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
47782         (casinh_test_data): New variable.
47783         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
47784         (catan_test_data): New variable.
47785         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
47786         (catanh_test_data): New variable.
47787         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
47788         (ccos_test_data): New variable.
47789         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
47790         (ccosh_test_data): New variable.
47791         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
47792         (cexp_test_data): New variable.
47793         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
47794         (clog_test_data): New variable.
47795         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
47796         (clog10_test_data): New variable.
47797         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
47798         (conj_test_data): New variable.
47799         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
47800         (cproj_test_data): New variable.
47801         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
47802         (csin_test_data): New variable.
47803         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
47804         (csinh_test_data): New variable.
47805         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
47806         (csqrt_test_data): New variable.
47807         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
47808         (ctan_test_data): New variable.
47809         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
47810         (ctan_tonearest_test_data): New variable.
47811         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47812         (ctan_towardzero_test_data): New variable.
47813         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47814         (ctan_downward_test_data): New variable.
47815         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47816         (ctan_upward_test_data): New variable.
47817         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47818         (ctanh_test_data): New variable.
47819         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
47820         (ctanh_tonearest_test_data): New variable.
47821         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47822         (ctanh_towardzero_test_data): New variable.
47823         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47824         (ctanh_downward_test_data): New variable.
47825         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47826         (ctanh_upward_test_data): New variable.
47827         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47828         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
47829         of BUILD_COMPLEX.
47830
47831         * math/libm-test.inc (struct test_ff_f_data): New type.
47832         (struct test_ff_f_data_nexttoward): Likewise.
47833         (RUN_TEST_LOOP_2_f): New macro.
47834         (RUN_TEST_LOOP_ff_f): Likewise.
47835         (atan2_test_data): New variable.
47836         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
47837         (copysign_test_data): New variable.
47838         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
47839         (fdim_test_data): New variable.
47840         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
47841         (fmax_test_data): New variable.
47842         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
47843         (fmin_test_data): New variable.
47844         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
47845         (fmod_test_data): New variable.
47846         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
47847         (hypot_test_data): New variable.
47848         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
47849         (nextafter_test_data): New variable.
47850         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
47851         (nexttoward_test_data): New variable.
47852         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
47853         (pow_test_data): New variable.
47854         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
47855         (pow_tonearest_test_data): New variable.
47856         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
47857         (pow_towardzero_test_data): New variable.
47858         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
47859         (pow_downward_test_data): New variable.
47860         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
47861         (pow_upward_test_data): New variable.
47862         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
47863         (remainder_test_data): New variable.
47864         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
47865         (scalb_test_data): New variable.
47866         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
47867         * sysdeps/i386/fpu/libm-test-ulps: Update.
47868
47869 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
47870
47871         * math/libm-test.inc (fma_test): Use max_value instead of local
47872         variable fltmax.
47873         (nextafter_test): Likewise.
47874
47875         * math/libm-test.inc (acos_towardzero_test_data): New variable.
47876         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47877         (acos_downward_test_data): New variable.
47878         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47879         (acos_upward_test_data): New variable.
47880         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47881         (acosh_test_data): New variable.
47882         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
47883         (asin_test_data): New variable.
47884         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
47885         (asin_tonearest_test_data): New variable.
47886         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47887         (asin_towardzero_test_data): New variable.
47888         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47889         (asin_downward_test_data): New variable.
47890         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47891         (asin_upward_test_data): New variable.
47892         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47893         (asinh_test_data): New variable.
47894         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
47895         (atan_test_data): New variable.
47896         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
47897         (atanh_test_data): New variable.
47898         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
47899         (cbrt_test_data): New variable.
47900         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
47901         (ceil_test_data): New variable.
47902         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
47903         (cos_test_data): New variable.
47904         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
47905         (cos_tonearest_test_data): New variable.
47906         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47907         (cos_towardzero_test_data): New variable.
47908         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47909         (cos_downward_test_data): New variable.
47910         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47911         (cos_upward_test_data): New variable.
47912         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47913         (cosh_test_data): New variable.
47914         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
47915         (cosh_tonearest_test_data): New variable.
47916         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47917         (cosh_towardzero_test_data): New variable.
47918         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47919         (cosh_downward_test_data): New variable.
47920         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47921         (cosh_upward_test_data): New variable.
47922         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47923         (erf_test_data): New variable.
47924         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
47925         (erfc_test_data): New variable.
47926         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
47927         (exp_test_data): New variable.
47928         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
47929         (exp_tonearest_test_data): New variable.
47930         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47931         (exp_towardzero_test_data): New variable.
47932         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47933         (exp_downward_test_data): New variable.
47934         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47935         (exp_upward_test_data): New variable.
47936         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47937         (exp10_test_data): New variable.
47938         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
47939         (exp2_test_data): New variable.
47940         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
47941         (expm1_test_data): New variable.
47942         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
47943         (fabs_test_data): New variable.
47944         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
47945         (floor_test_data): New variable.
47946         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
47947         (j0_test_data): New variable.
47948         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
47949         (j1_test_data): New variable.
47950         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
47951         (log_test_data): New variable.
47952         (log_test): Run tests with RUN_TEST_LOOP_f_f.
47953         (log10_test_data): New variable.
47954         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
47955         (log1p_test_data): New variable.
47956         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
47957         (log2_test_data): New variable.
47958         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
47959         (logb_test_data): New variable.
47960         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
47961         (logb_downward_test_data): New variable.
47962         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47963         (nearbyint_test_data): New variable.
47964         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
47965         (rint_test_data): New variable.
47966         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
47967         (rint_tonearest_test_data): New variable.
47968         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47969         (rint_towardzero_test_data): New variable.
47970         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47971         (rint_downward_test_data): New variable.
47972         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47973         (rint_upward_test_data): New variable.
47974         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47975         (round_test_data): New variable.
47976         (round_test): Run tests with RUN_TEST_LOOP_f_f.
47977         (sin_test_data): New variable.
47978         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
47979         (sin_tonearest_test_data): New variable.
47980         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47981         (sin_towardzero_test_data): New variable.
47982         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47983         (sin_downward_test_data): New variable.
47984         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47985         (sin_upward_test_data): New variable.
47986         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47987         (sinh_test_data): New variable.
47988         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
47989         (sinh_tonearest_test_data): New variable.
47990         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47991         (sinh_towardzero_test_data): New variable.
47992         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47993         (sinh_downward_test_data): New variable.
47994         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47995         (sinh_upward_test_data): New variable.
47996         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47997         (sqrt_test_data): New variable.
47998         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
47999         (tan_test_data): New variable.
48000         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48001         (tan_tonearest_test_data): New variable.
48002         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48003         (tan_towardzero_test_data): New variable.
48004         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48005         (tan_downward_test_data): New variable.
48006         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48007         (tan_upward_test_data): New variable.
48008         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48009         (tanh_test_data): New variable.
48010         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48011         (tgamma_test_data): New variable.
48012         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48013         (trunc_test_data): New variable.
48014         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48015         (y0_test_data): New variable.
48016         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48017         (y1_test_data): New variable.
48018         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48019         (significand_test_data): New variable.
48020         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48021
48022 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48023
48024         [BZ #12387]
48025         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48026
48027 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48028
48029         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48030
48031 2013-05-10  Andreas Jaeger  <aj@suse.de>
48032
48033         [BZ #15448]
48034         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48035         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48036
48037 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48038
48039         * math/gen-libm-test.pl (adjust_arg): New function.
48040         (special_functions): Handle generating output in both functions
48041         and arrays.
48042         (parse_args): Likewise.
48043         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48044         $in_func argument to parse_args.
48045         * math/libm-test.inc (struct test_f_f_data): New type.
48046         (IF_ROUND_INIT_): New macro.
48047         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48048         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48049         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48050         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48051         (ROUND_RESTORE_): Likewise.
48052         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48053         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48054         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48055         (ROUND_RESTORE_FE_UPWARD): Likewise.
48056         (RUN_TEST_LOOP_f_f): New macro.
48057         (acos_test_data): New variable.
48058         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48059         (acos_tonearest_test_data): New variable.
48060         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48061
48062 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48063
48064         * benchtests/bench-skeleton.c (startup): Fix coding style.
48065
48066 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48067
48068         [BZ #6809]
48069         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48070         negative infinity argument.
48071         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48072         negative infinity argument.
48073         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48074         negative infinity argument.
48075         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48076         domain errors.
48077
48078 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48079
48080         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48081         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48082         * iconv/iconv_prog.c (main): Likewise.
48083         * locale/programs/charmap-dir.c (charmap_readdir)
48084         (fopen_uncompressed): Likewise.
48085         * locale/programs/locfile.c (siblings_uncached)
48086         (write_locale_data): Use lstat64 instead of lstat.
48087         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48088         stat.
48089
48090 2013-05-10  Andreas Jaeger  <aj@suse.de>
48091
48092         [BZ #15395]
48093         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48094         localization.
48095         Include <locale.h>.
48096
48097 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48098
48099         * elf/dl-close.c (_dl_close_worker): Add comments.
48100
48101 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48102
48103         [BZ #15359]
48104         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48105         high part of pi/2.
48106         (__ieee754_rem_pio2l): Update comments.
48107
48108         [BZ #15429]
48109         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48110         high part of pi/2.
48111         (__ieee754_rem_pio2l): Update comments.
48112
48113         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48114         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48115
48116         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48117         M_PI_4l.
48118
48119         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48120         (M_PI_34_LOG10El): Likewise.
48121         (M_PI2_LOG10El): Likewise.
48122         (M_PI4_LOG10El): Likewise.
48123         (M_PI_LOG10El): Likewise.
48124
48125 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48126
48127         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48128
48129 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48130
48131         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48132         (MINUS_ZERO_INIT): Likewise.
48133         (PLUS_INFTY_INIT): Likewise.
48134         (MINUS_INFTY_INIT): Likewise.
48135         (QNAN_VALUE_INIT): Likewise.
48136         (MAX_VALUE_INIT): Likewise.
48137         (MIN_VALUE_INIT): Likewise.
48138         (MIN_SUBNORM_VALUE_INIT): Likewise.
48139         (plus_zero): Initialize with PLUS_ZERO_INIT.
48140         (minus_zero): Initialize with MINUS_ZERO_INIT.
48141         (plus_infty): Initialize with PLUS_INFTY_INIT.
48142         (minus_infty): Initialize with MINUS_INFTY_INIT.
48143         (qnan_value): Initialize with QNAN_VALUE_INIT.
48144         (max_value): Initialize with MAX_VALUE_INIT.
48145         (min_value): Initialize with MIN_VALUE_INIT.
48146         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48147
48148         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48149         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48150         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48151         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48152
48153         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48154         (RUN_TEST_2_f): Likewise.
48155         (RUN_TEST_ff_f): Likewise.
48156         (RUN_TEST_fi_f): Likewise.
48157         (RUN_TEST_fl_f): Likewise.
48158         (RUN_TEST_fff_f): Likewise.
48159         (RUN_TEST_c_f): Likewise.
48160         (RUN_TEST_f_f1): Likewise.
48161         (RUN_TEST_fF_f1): Likewise.
48162         (RUN_TEST_fI_f1): Likewise.
48163         (RUN_TEST_ffI_f1): Likewise.
48164         (RUN_TEST_c_c): Likewise.
48165         (RUN_TEST_cc_c): Likewise.
48166         (RUN_TEST_f_i): Likewise.
48167         (RUN_TEST_f_i_tg): Likewise.
48168         (RUN_TEST_ff_i_tg): Likewise.
48169         (RUN_TEST_f_b): Likewise.
48170         (RUN_TEST_f_b_tg): Likewise.
48171         (RUN_TEST_f_l): Likewise.
48172         (RUN_TEST_f_L): Likewise.
48173         (RUN_TEST_sincos): Likewise.
48174         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48175         whether to show exceptions.  Do not include ");\n" in return
48176         value.
48177         (special_functions): Output call to RUN_TEST_sincos instead of
48178         check_float calls.  Update calls to new_test.
48179         (parse_args): Output call to single RUN_TEST_* macro instead of
48180         check_* calls and other assignments.  Update calls to new_test.
48181
48182         [BZ #2546]
48183         [BZ #2560]
48184         [BZ #5159]
48185         [BZ #15426]
48186         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48187         input to result for tgamma overflow.
48188         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48189         (gamma_coeff): New variable.
48190         (NCOEFF): New macro.
48191         (gamma_positive): New function.
48192         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48193         underflow here.  Use gamma_positive instead of exp (lgamma) for
48194         other arguments.
48195         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48196         (gamma_coeff): New variable.
48197         (NCOEFF): New macro.
48198         (gammaf_positive): New function.
48199         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48200         underflow here.  Use gamma_positive instead of exp (lgamma) for
48201         other arguments.
48202         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48203         (gamma_coeff): New variable.
48204         (NCOEFF): New macro.
48205         (gammal_positive): New function.
48206         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48207         underflow here.  Use gamma_positive instead of exp (lgamma) for
48208         other arguments.
48209         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48210         (gamma_coeff): New variable.
48211         (NCOEFF): New macro.
48212         (gammal_positive): New function.
48213         (__ieee754_gammal_r): Handle positive infinity, overflow and
48214         underflow here.  Handle NaN the same as positive infinity.  Remove
48215         check x < 0xffffffff for negative integers.  Use gamma_positive
48216         instead of exp (lgamma) for other arguments.
48217         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48218         (gamma_coeff): New variable.
48219         (NCOEFF): New macro.
48220         (gammal_positive): New function.
48221         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48222         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48223         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48224         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48225         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48226         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48227         * sysdeps/generic/math_private.h (__gamma_productf): New
48228         prototype.
48229         (__gamma_product): Likewise.
48230         (__gamma_productl): Likewise.
48231         * math/Makefile (libm-calls): Add gamma_product.
48232         * math/libm-test.inc (tgamma_test): Add more tests.
48233         * sysdeps/i386/fpu/libm-test-ulps: Update.
48234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48235
48236 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48237
48238         * benchtests/bench-skeleton.c (main): Preheat CPU.
48239
48240 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48241
48242         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48243
48244 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48245
48246         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48247         and _dl_skip_args_internal.
48248
48249 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48250
48251         * manual/message.texi (Message Translation): Talk about users.
48252         Message to key mapping impacts design.
48253
48254 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48255
48256         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48257
48258         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48259
48260         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48261         * sysdeps/wordsize-64/glob64.c: ... here.
48262
48263         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48264         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48265         New macros.
48266
48267         * debug/getlogin_r_chk.c: Moved to ...
48268         * login/getlogin_r_chk.c: ... here.
48269         * debug/Makefile (routines): Move getlogin_r_chk to ...
48270         * login/Makefile (routines): ... here.
48271         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48272         * login/Versions (libc: GLIBC_2.4): ... here.
48273
48274         * io/poll.c (__poll): Renamed from poll.
48275         Add libc_hidden_def.
48276         (poll): Define as weak alias.
48277
48278         * debug/ptsname_r_chk.c: Moved to ...
48279         * login/ptsname_r_chk.c: ... here.
48280         * debug/Makefile (routines): Move ptsname_r_chk to ...
48281         * login/Makefile (routines): ... here.
48282         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48283         * login/Versions (libc: GLIBC_2.4): ... here.
48284
48285         * posix/getlogin.c: Moved to ...
48286         * login/getlogin.c: ... here.
48287         * posix/getlogin_r.c: Moved to ...
48288         * login/getlogin_r.c: ... here.
48289         * posix/getlogin_r.c: Moved to ...
48290         * login/getlogin_r.c: ... here.
48291         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48292         * login/Makefile (routines): ... here.
48293         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48294         * login/Versions (libc: GLIBC_2.0): ... here.
48295
48296         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48297         (setrlimit): Define as weak alias.
48298
48299         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48300         Call __ names for open, ftruncate, and close.
48301         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48302         (truncate): Define as weak alias.
48303
48304 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48305
48306         * math/gen-libm-test.pl (parse_args): Initialize x before each
48307         test of frexp, modf and remquo.
48308
48309         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48310         test signgam value.
48311
48312 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48313
48314         [BZ #15418]
48315         [BZ #15419]
48316         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48317         internal tests.
48318         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48319
48320 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48321
48322         * elf/dl-writev.h: New file.
48323         * elf/dl-misc.c: Include it.
48324         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48325         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48326
48327 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48328
48329         * math/libm-test.inc (noXFails): Remove variable.
48330         (noXPasses): Likewise.
48331         (BUILD_COMPLEX_INT): Remove macro.
48332         (print_screen): Remove xfail argument.
48333         (print_screen_max_error): Likewise.
48334         (update_stats): Likewise.
48335         (print_max_error): Likewise.  Update calls to other affected
48336         functions.
48337         (print_complex_max_error): Likewise.
48338         (test_single_exception): Update calls to print_screen.
48339         (test_single_errno): Likewise.
48340         (check_float_internal): Remove xfail argument.  Update calls to
48341         other affected functions.
48342         (check_float): Likewise.
48343         (check_complex): Likewise.
48344         (check_int): Likewise.
48345         (check_long): Likewise.
48346         (check_bool): Likewise.
48347         (check_longlong): Likewise.
48348         (main): Don't print noXFails and noXPasses.
48349         * math/gen-libm-test.pl (top level): Don't mention expected
48350         failure handling in comment.
48351         (new_test): Don't handle expected failures.
48352         (parse_args): Don't mention expected failure handling in comment.
48353         (generate_testfile): Don't handle expected failures.
48354         (parse_ulps): Likewise.
48355         (print_ulps_file): Likewise.
48356         (get_failure): Remove function.
48357         (output_test): Don't handle expected failures.
48358         * make/README.libm-test: Don't mention expected failure handling.
48359
48360         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48361         (minus_zero): Likewise.
48362         (plus_infty): Likewise.
48363         (minus_infty): Likewise.
48364         (qnan_value): Likewise.
48365         (max_value): Likewise.
48366         (min_value): Likewise.
48367         (min_subnorm_value): Likewise.
48368         (initialize): Do not initialize those variables dynamically.
48369
48370 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48371
48372         * io/open.c (__open_2): Moved to ...
48373         * io/open_2.c: ... this new file.
48374         * io/open64.c (__open64_2): Moved to ...
48375         * io/open64_2.c: ... this new file.
48376         * io/openat.c (__openat_2): Moved to ...
48377         * io/openat_2.c: ... this new file.
48378         * io/openat64.c (__openat64_2): Moved to ...
48379         * io/openat64_2.c: ... this new file.
48380         * io/Makefile (routines): Add them.
48381         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48382         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48383         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48384         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48385         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48386         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48387         (__openat64): Add hidden_ver.
48388         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48389         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48390
48391         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48392         Separately conditionalize setting of GLRO(dl_sysinfo) so
48393         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48394         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48395
48396 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48397
48398         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48399         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48400         definition.
48401         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48402         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48403         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48404         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48405         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48406
48407 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48408
48409         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48410         test signgam value.
48411
48412         * math/libm-test.inc (hypot_test): Do not use
48413         IGNORE_ZERO_INF_SIGN.
48414
48415 2013-05-03  Andreas Jaeger  <aj@suse.de>
48416
48417         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48418         Linux 3.9.
48419         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48420         (PF_MAX): Adjust for VSOCK change.
48421
48422 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48423
48424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48425
48426 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48427
48428         [BZ #15264]
48429         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48430         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48431         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48432
48433 2013-05-02  David S. Miller  <davem@davemloft.net>
48434
48435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48436
48437 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48438
48439         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48440
48441 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48442
48443         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48444
48445 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48446
48447         [BZ #14952]
48448         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48449         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48450         Use __attribute__ ((__gnu_inline__)).
48451         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48452         Don't use __attribute__ ((__gnu_inline__)).
48453
48454 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48455
48456         [BZ #15423]
48457         * math/s_catan.c (__catan): Handle small real or imaginary part of
48458         input specially to avoid spurious underflow.
48459         * math/s_catanf.c (__catanf): Likewise.
48460         * math/s_catanh.c (__catanh): Likewise.
48461         * math/s_catanhf.c (__catanhf): Likewise.
48462         * math/s_catanhl.c (__catanhl): Likewise.
48463         * math/s_catanl.c (__catanl): Likewise.
48464         * math/libm-test.inc (catan_test): Add more tests.
48465         (catanh_test): Likewise.
48466         * sysdeps/i386/fpu/libm-test-ulps: Update.
48467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48468
48469 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48470
48471         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48472
48473 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48474
48475         [BZ #15416]
48476         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48477         accurately for denominator in atan2.
48478         * math/s_catanf.c (__catanf): Likewise.
48479         * math/s_catanh.c (__catanh): Likewise.
48480         * math/s_catanhf.c (__catanhf): Likewise.
48481         * math/s_catanhl.c (__catanhl): Likewise.
48482         * math/s_catanl.c (__catanl): Likewise.
48483         * math/libm-test.inc (catan_test): Add more tests.
48484         (catanh_test): Likewise.
48485         * sysdeps/i386/fpu/libm-test-ulps: Update.
48486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48487
48488 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48489
48490         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48491
48492         * benchtests/Makefile (bench): Remove slow benchmarks.
48493         * benchtests/atan-inputs: Add slow benchmark inputs.
48494         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48495         (BENCH_FUNC): Accept variant offset.
48496         (VARIANT): Define.
48497         * benchtests/bench-skeleton.c (main): Run benchmark for each
48498         variant.
48499         * benchtests/cos-inputs: Add slow benchmark inputs.
48500         * benchtests/exp-inputs: Likewise.
48501         * benchtests/pow-inputs: Likewise.
48502         * benchtests/sin-inputs: Likewise.
48503         * benchtests/slowatan-inputs: Remove.
48504         * benchtests/slowatan.c: Remove.
48505         * benchtests/slowcos-inputs: Remove.
48506         * benchtests/slowcos.c: Remove.
48507         * benchtests/slowexp-inputs: Remove.
48508         * benchtests/slowexp.c: Remove.
48509         * benchtests/slowpow-inputs: Remove.
48510         * benchtests/slowpow.c: Remove.
48511         * benchtests/slowsin-inputs: Remove.
48512         * benchtests/slowsin.c: Remove.
48513         * benchtests/slowtan-inputs: Remove.
48514         * benchtests/slowtan.c: Remove.
48515         * benchtests/tan-inputs: Add slow benchmark inputs.
48516         * scripts/bench.pl: Parse comments and directives.
48517
48518         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48519         in CPPFLAGS.
48520         ($(objpfx)bench-%.c): Remove *-ITER.
48521         * benchtests/bench-modf.c: Remove definition of ITER.
48522         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48523         (main): Loop for DURATION seconds instead of fixed number of
48524         iterations.
48525         * scripts/bench.pl: Don't expect iterations in parameters.
48526
48527 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48528
48529         * io/fchdir.c (__fchdir): Renamed from fchdir.
48530         (fchdir): Define as weak alias.
48531
48532 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48533
48534         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48535         (ERRNO_EDOM): Likewise.
48536         (ERRNO_ERANGE): Likewise.
48537         (noErrnoTests): New variable.
48538         (init_max_error): Set errno to 0.
48539         (test_single_errno): New function.
48540         (test_errno): Likewise.
48541         (check_float_internal): Call test_errno.  Set errno to 0.
48542         (check_complex): Refer to errno tests in comment.
48543         (check_int): Call test_errno.  Set errno to 0.
48544         (check_long): Likewise.
48545         (check_bool): Likewise.
48546         (check_longlong): Likewise.
48547         (cos_test): Use ERRNO_* flags for errno tests instead of
48548         check_int.
48549         (expm1_test): Likewise.
48550         (fmod_test): Likewise.
48551         (ilogb_test): Likewise.
48552         (lgamma_test): Likewise.
48553         (pow_test): Likewise.
48554         (remainder_test): Likewise.
48555         (sin_test): Likewise.
48556         (tan_test): Likewise.
48557         (yn_test): Likewise.
48558         (initialize): Set errno to 0.
48559         (main): Print number of errno tests.
48560         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48561
48562 2013-04-29  Andreas Jaeger  <aj@suse.de>
48563
48564         [BZ #15084]
48565         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48566         and RES_USEVC.
48567
48568         [BZ #15085]
48569         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48570         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48571         unimplemented.
48572
48573         [BZ #15380]
48574         * stdlib/random.c (__initstate): Return NULL if
48575         __initstate fails.
48576
48577         [BZ #15086]
48578         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48579         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48580         RES_SNGLKUPREOP.
48581
48582 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48583
48584         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48585
48586 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48587
48588         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48589         of individual tests.
48590         (casin_test): Likewise.
48591         (casinh_test): Likewise.
48592
48593 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48594
48595         [BZ #15409]
48596         * math/s_catan.c (__catan): Handle arguments with large real or
48597         imaginary part separately without squaring.
48598         * math/s_catanf.c (__catanf): Likewise.
48599         * math/s_catanh.c (__catanh): Likewise.
48600         * math/s_catanhf.c (__catanhf): Likewise.
48601         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48602         and redefine.
48603         (__catanhl): Handle arguments with large real or imaginary part
48604         separately without squaring.
48605         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48606         and redefine.
48607         (__catanl): Handle arguments with large real or imaginary part
48608         separately without squaring.
48609         * math/libm-test.inc (catan_test): Add more tests.
48610         (catanh_test): Likewise.
48611         * sysdeps/i386/fpu/libm-test-ulps: Update.
48612         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48613
48614 2013-04-27  Andreas Jaeger  <aj@suse.de>
48615
48616         [BZ #15007]
48617         * stdlib/stdlib.h: Update guards for qecvt.
48618         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48619         <stdlib.h>.
48620
48621 2013-04-27  Allan McRae  <allan@archlinux.org>
48622
48623         * sysdeps/i386/fpu/libm-test-ulps: Update.
48624
48625 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48626
48627         [BZ #15406]
48628         * math/s_catan.c: Include <float.h>.
48629         (__catan): Ensure underflow exception occurs for underflowed
48630         result.
48631         * math/s_catanf.c: Include <float.h>.
48632         (__catanf): Ensure underflow exception occurs for underflowed
48633         result.
48634         * math/s_catanh.c: Include <float.h>.
48635         (__catanh): Ensure underflow exception occurs for underflowed
48636         result.
48637         * math/s_catanhf.c: Include <float.h>.
48638         (__catanhf): Ensure underflow exception occurs for underflowed
48639         result.
48640         * math/s_catanhl.c: Include <float.h>.
48641         (__catanhl): Ensure underflow exception occurs for underflowed
48642         result.
48643         * math/s_catanl.c: Include <float.h>.
48644         (__catanl): Ensure underflow exception occurs for underflowed
48645         result.
48646         * math/libm-test.inc (catan_test): Add more tests.
48647         (catanh_test): Likewise.
48648
48649         [BZ #15405]
48650         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48651         underflowed result.
48652         * math/s_ccoshf.c (__ccoshf): Likewise.
48653         * math/s_ccoshl.c (__ccoshl): Likewise.
48654         * math/s_csin.c (__csin): Likewise.
48655         * math/s_csinf.c (__csinf): Likewise.
48656         * math/s_csinh.c (__csinh): Likewise.
48657         * math/s_csinhf.c (__csinhf): Likewise.
48658         * math/s_csinhl.c (__csinhl): Likewise.
48659         * math/s_csinl.c (__csinl): Likewise.
48660         * math/libm-test.inc (ccos_test): Add more tests.
48661         (ccosh_test): Likewise.
48662         (csin_test): Likewise.
48663         (csinh_test): Likewise.
48664
48665 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48666
48667         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48668         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48669         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48670         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48671         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48672         powerpc/power5+/fpu folders.
48673         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48674
48675
48676 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48677
48678         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48679
48680 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48681
48682         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48683         additions to variable.
48684         [$(config-machine) = x86_64] (modules-names): Likewise.
48685         ($(objpfx)tst-audit3): Remove dependency.
48686         ($(objpfx)tst-audit3.out): Likewise.
48687         ($(objpfx)tst-audit4): Likewise.
48688         ($(objpfx)tst-audit4.out): Likewise.
48689         ($(objpfx)tst-audit5): Likewise.
48690         ($(objpfx)tst-audit5.out): Likewise.
48691         ($(objpfx)tst-audit6): Likewise.
48692         ($(objpfx)tst-audit6.out): Likewise.
48693         ($(objpfx)tst-audit7): Likewise.
48694         ($(objpfx)tst-audit7.out): Likewise.
48695         (tst-audit3-ENV): Remove variable.
48696         (tst-audit4-ENV): Likewise.
48697         (tst-audit5-ENV): Likewise.
48698         (tst-audit6-ENV): Likewise.
48699         (tst-audit7-ENV): Likewise.
48700         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48701         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48702         addition to variable.
48703         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48704         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48705         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48706         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48707         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48708         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48709         tst-audit3, tst-audit4 and tst-audit5.
48710         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48711         tst-audit6 and tst-audit7.
48712         [$(subdir) = elf] (modules-names): Add audit modules for those
48713         tests.
48714         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48715         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48716         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48717         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48718         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48719         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48720         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48721         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48722         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48723         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48724         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48725         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48726         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48727         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48728         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48729         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48730         Likewise.
48731         [$(subdir) = elf && $(config-cflags-avx) = yes]
48732         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48733         [$(subdir) = elf && $(config-cflags-avx) = yes]
48734         (CFLAGS-tst-auditmod4a.c): Likewise.
48735         [$(subdir) = elf && $(config-cflags-avx) = yes]
48736         (CFLAGS-tst-auditmod4b.c): Likewise.
48737         [$(subdir) = elf && $(config-cflags-avx) = yes]
48738         (CFLAGS-tst-auditmod6b.c): Likewise.
48739         [$(subdir) = elf && $(config-cflags-avx) = yes]
48740         (CFLAGS-tst-auditmod6c.c): Likewise.
48741         [$(subdir) = elf && $(config-cflags-avx) = yes]
48742         (CFLAGS-tst-auditmod7b.c): Likewise.
48743         * elf/tst-audit3.c: Move to ...
48744         * sysdeps/x86_64/tst-audit3.c: ... here.
48745         * elf/tst-audit4.c: Move to ...
48746         * sysdeps/x86_64/tst-audit4.c: ... here.
48747         * elf/tst-audit5.c: Move to ...
48748         * sysdeps/x86_64/tst-audit5.c: ... here.
48749         * elf/tst-audit6.c: Move to ...
48750         * sysdeps/x86_64/tst-audit6.c: ... here.
48751         * elf/tst-audit7.c: Move to ...
48752         * sysdeps/x86_64/tst-audit7.c: ... here.
48753         * elf/tst-auditmod3a.c: Move to ...
48754         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48755         * elf/tst-auditmod3b.c: Move to ...
48756         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48757         * elf/tst-auditmod4a.c: Move to ...
48758         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48759         * elf/tst-auditmod4b.c: Move to ...
48760         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48761         * elf/tst-auditmod5a.c: Move to ...
48762         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48763         * elf/tst-auditmod5b.c: Move to ...
48764         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48765         * elf/tst-auditmod6a.c: Move to ...
48766         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48767         * elf/tst-auditmod6b.c: Move to ...
48768         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48769         * elf/tst-auditmod6c.c: Move to ...
48770         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48771         * elf/tst-auditmod7a.c: Move to ...
48772         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48773         * elf/tst-auditmod7b.c: Move to ...
48774         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48775
48776 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
48777
48778         [BZ #15366]
48779         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
48780         define unconditionally.
48781         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
48782         define unconditionally.
48783         (INT8_C, INT16_C, etc.): Likewise.
48784
48785 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
48786
48787         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
48788         __ehdr_start with hidden visibility.
48789
48790         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
48791
48792 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
48793
48794         * math/libm-test.inc (cos_test): Use accurate hex constants.
48795         (sincost_test): Likewise.
48796
48797 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
48798
48799         * math/libm-test.inc (catan_test): Add more tests.
48800         (catanh_test): Likewise.
48801
48802         * math/s_catanf.c (__catanf): Use suffixed floating-point
48803         constants.
48804         * math/s_catanhf.c (__catanhf): Likewise.
48805         * math/s_catanhl.c (__catanhl): Likewise.
48806         * math/s_catanl.c (__catanl): Likewise.
48807
48808         [BZ #15394]
48809         * math/s_catan.c (__catan): Calculate imaginary part of result
48810         with log1p not log unless computing log of number close to 0.
48811         * math/s_catanf.c (__catanf): Likewise.
48812         * math/s_catanl.c (__catanl): Likewise.
48813         * math/s_catanh.c (__catanh): Calculate real part of result with
48814         log1p not log unless computing log of number close to 0.
48815         * math/s_catanhf.c (__catanhf): Likewise.
48816         * math/s_catanhl.c (__catanhl): Likewise.
48817         * math/libm-test.inc (catan_test): Add more tests.
48818         (catanh_test): Likewise.
48819         * sysdeps/i386/fpu/libm-test-ulps: Update.
48820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48821
48822 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48823
48824         * benchtests/Makefile: Mention files in which fast and slow
48825         paths of math functions are implemented.
48826
48827 2013-04-23  Roland McGrath  <roland@hack.frob.com>
48828
48829         * sysdeps/posix/timespec_get.c: New file.
48830
48831 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48832
48833         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
48834         POWER.
48835         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
48836         for POWER.
48837         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
48838         powerpc/power5/fpu folders.
48839         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
48840         * benchtests/Makefile: Add modf testcase.
48841         * benchtests/bench-modf.c: New file: Benchmark test for mo
48842
48843 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48844
48845         [BZ #14888]
48846         * time/Makefile (tests): Add tst-strptime-whitespace.
48847         * time/strptime_l.c (get_number): Use ISSPACE.
48848         (__strptime_internal): Likewise.
48849         * time/tst-strptime-whitespace.c: New test case.
48850
48851 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
48852
48853         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
48854         member.
48855         (_nss_files_init): Set it here.
48856
48857 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
48858
48859         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
48860         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
48861         unsigned.
48862
48863 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
48864
48865         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
48866
48867 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48868
48869         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
48870         size just once.
48871
48872 2013-04-21  David S. Miller  <davem@davemloft.net>
48873
48874         * po/ru.po: Update Russion translation from translation project.
48875
48876 2013-04-17  Adam Conrad  <adconrad@0c3.net>
48877
48878         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
48879         and setfsgid.
48880
48881 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
48882
48883         * configure.in: Remove i386 configure warning. Remove i386 case.
48884         * configure: Regenerate.
48885         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
48886         Add example to error message.
48887         * sysdeps/i386/configure: Regenerate.
48888
48889 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48890
48891         * benchtests/Makefile (bench): Add cos, tan, slowcos and
48892         slowtan.
48893         * benchtests/cos-inputs: New file.
48894         * benchtests/slowcos-inputs: New file.
48895         * benchtests/slowcos.c: New file.
48896         * benchtests/slowtan-inputs: New file.
48897         * benchtests/slowtan.c: New file.
48898         * benchtests/tan-inputs: New file.
48899
48900 2013-04-16  Roland McGrath  <roland@hack.frob.com>
48901
48902         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
48903         considered kosher.
48904
48905 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
48906
48907         * benchtests/Makefile: Include cppflags-iterator.mk to add
48908         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
48909
48910         * Makefile.in (bench-clean): New target.
48911         * benchtests/Makefile (bench-clean): Likewise.
48912
48913 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
48914
48915         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
48916
48917 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
48918
48919         * stdio-common/tstdiomisc.c: Fix coding-style violation.
48920
48921 2013-04-15  Andreas Schwab  <schwab@suse.de>
48922
48923         * nscd/grpcache.c (cache_addgr): Properly check for short write.
48924         * nscd/initgrcache.c (addinitgroupsX): Likewise.
48925         * nscd/pwdcache.c (cache_addpw): Likewise.
48926         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
48927         more than recsize.
48928
48929 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48930
48931         * benchtests/Makefile (bench): Write all output to
48932         bench-out.tmp together.
48933
48934 2013-04-15  Andreas Schwab  <schwab@suse.de>
48935
48936         * nscd/nscd.c (main): Don't fork again after closing files.
48937
48938 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48939
48940         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
48941
48942         * benchtests/Rules (bench-deps): Collect dependencies into a
48943         single variable.  Add Makefile to dependencies.
48944         ($(objpfx)bench-%.c): Depend on bench-deps.
48945
48946 2013-04-12  Roland McGrath  <roland@hack.frob.com>
48947             Xavier Roche  <roche+kml2@exalead.com>
48948
48949         [BZ #15361]
48950         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
48951         just that it's a file descriptor.
48952         * manual/llio.texi (Synchronizing AIO Operations): Update description
48953         for EBADF error from aio_fsync.
48954
48955 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48956
48957         * Rules (bench): Move target definition...
48958         * benchtests/Makefile: ... here.
48959
48960 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
48961
48962         * math/libm-test.inc (cos_test): Fix PI/2 test.
48963         (sincos_test): Likewise.
48964         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
48965         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
48966
48967 2013-04-11  Andreas Schwab  <schwab@suse.de>
48968
48969         [BZ #13988]
48970         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
48971         accept exponent character only when digits were seen.
48972         * stdio-common/Makefile (tests): Add bug26.
48973         * stdio-common/bug26.c: New file.
48974
48975         [BZ #14293]
48976         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
48977         non-freeable.
48978
48979 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48980
48981         * Makeconfig (rtld-prefix): Define built linker prefix.
48982         * Rules (run-bench): Use it.
48983         * math/Makefile (run-regen-ulps): Likewise.
48984
48985         * Rules (bench): Remove eval.
48986
48987 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48988             Roland McGrath  <roland@hack.frob.com>
48989             Ondrej Bilka  <neleai@seznam.cz>
48990
48991         [BZ #15346]
48992         * time/getdate.c: Include ctype.h and alloca.h.
48993         (__getdate_r): Trim leading and trailing spaces of input.
48994         * time/tst-getdate.c (tests): Add tests with leading and
48995         trailing spaces.
48996
48997 2013-04-08  Roland McGrath  <roland@hack.frob.com>
48998
48999         [BZ #14280]
49000         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49001         when computing value.
49002
49003 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49004
49005         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49006         Use testrun.sh to run libm tests.
49007
49008         [BZ #15309]
49009         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49010
49011 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49012
49013         [BZ #15264]
49014         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49015
49016 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49017
49018         * Makefile.in (regen-ulps): New target.
49019         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49020         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49021         [ifneq (no,$(PERL)] (regen-ulps): New target.
49022         [ifeq (no,$(PERL)] (regen-ulps): New target.
49023         * math/libm-test.inc (ulps_file_name): Define.
49024         (output_dir): New variable.
49025         (options): Add "output-dir" option.
49026         (parse_opt): Handle 'o' case.
49027         (main): If output_dir is non-NULL use it as a prefix
49028         otherwise use "".
49029         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49030
49031 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49032
49033         [BZ #10060, #10062]
49034         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49035         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49036         fail configure if __sync_val_compare_and_swap is not inlined.
49037         * sysdeps/i386/configure: Regenerate.
49038         * configure.in: Build for i686 when configured for i386.
49039         * configure: Regenerate.
49040         * README: Remove i386 reference.
49041
49042 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49043
49044         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49045         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49046
49047 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49048
49049         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49050         (lmsnanval): New variables.
49051         (F): Add conversion tests.
49052         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49053         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49054
49055         * stdio-common/tstdiomisc.c (F): Properly collect individual
49056         tests' results.
49057
49058         [BZ #14686, #15336]
49059         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49060         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49061         Instead, use input NaN values or generate a qNaN by arithmetic
49062         operation.  Also fix bugs to comply with the standard.
49063         * math/libm-test.inc (remainder_test): Add more tests.
49064
49065         [BZ #15335, #15342]
49066         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49067         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49068         input NaN values or generate a qNaN by arithmetic operation.
49069
49070         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49071         unreachable code.
49072
49073         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49074         definitions.
49075
49076 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49077
49078         [BZ #14478]
49079         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49080         underflowed result.
49081         * math/s_cexpf.c (__cexpf): Likewise.
49082         * math/s_cexpl.c (__cexpl): Likewise.
49083         * math/libm-test.inc (cexp_test): Add more tests.
49084
49085 2013-04-03  Andreas Schwab  <schwab@suse.de>
49086
49087         [BZ #15330]
49088         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49089         order arrays from heap if bigger than alloca cutoff.
49090
49091 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49092
49093         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49094         (SNAN_TESTS_double): Refer to GCC PR56831.
49095         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49096         GCC PR56828.
49097
49098 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49099
49100         * Rules (bench): Move bench.out after the run is complete.
49101
49102         * Rules (bench): Echo currently running benchmark.
49103
49104         * benchtests/Makefile (bench): Add atan and slowatan.
49105         * benchtests/atan-inputs: New file.
49106         * benchtests/slowatan-inputs: New file.
49107         * benchtests/slowatan.c: New file.
49108
49109         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49110         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49111         its value.
49112
49113         [BZ #15305]
49114         * sysdeps/unix/sysv/linux/kernel-features.h
49115         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49116         __ASSUME_XFS_RESTRICTED_CHOWN.
49117         * sysdeps/unix/sysv/linux/pathconf.c
49118         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49119         Save and restore errno.
49120
49121 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49122
49123         [BZ #15327]
49124         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49125         arguments using __kernel_casinh.
49126         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49127         arguments using __kernel_casinhf.
49128         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49129         arguments using __kernel_casinhl.
49130         * math/libm-test.inc (cacosh_test): Add more tests.
49131         * sysdeps/i386/fpu/libm-test-ulps: Update.
49132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49133
49134 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49135
49136         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49137         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49138
49139         * bench/Makefile (bench): Add sin and slowsin.
49140         * benchtests/sin-inputs: New file.
49141         * benchtests/slowsin-inputs: New file.
49142         * benchtests/slowsin.c: New file.
49143
49144         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49145         (bench): Add slowexp and slowpow.
49146         (exp-ITER): Increase iterations.
49147         (pow-ITER): Likewise.
49148         * benchtests/exp-inputs: Change input.
49149         * benchtests/pow-inputs: Likewise.
49150         * benchtests/slowexp-inputs: New file.
49151         * benchtests/slowexp.c: New file.
49152         * benchtests/slowpow-inputs: New file.
49153         * benchtests/slowpow.c: New file.
49154
49155 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49156
49157         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49158         instructions.
49159         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49160         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49161         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49162         * benchtests/Makefile: Add rint benchtest.
49163         * benchtests/rint-inputs: Input for rint benchtest.
49164
49165 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49166
49167         * Versions.def (libm): Add GLIBC_2.18.
49168         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49169         hidden libm prototypes.
49170         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49171         * math/Makefile (libm-calls): Add s_issignaling.
49172         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49173         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49174         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49175         declaration.
49176         * math/math.h [__USE_GNU] (issignaling): New macro.
49177         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49178         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49179         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49180         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49181         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49182         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49183         * manual/arith.texi (issignaling): New section.
49184         * manual/libm-err-tab.pl (@all_functions): Update comment.
49185         * math/gen-libm-test.pl (parse_args): Apply special handling for
49186         issignaling.
49187         * math/libm-test.inc (print_float, issignaling_test): New
49188         functions.
49189         (check_float_internal): Add issignaling checks.
49190         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49191         default definition.
49192         * sysdeps/powerpc/math-tests.h: New file.
49193         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49194         tests.
49195         * math/test-snan.c (TEST_FUNC): Likewise.
49196
49197 2013-03-30  David S. Miller  <davem@davemloft.net>
49198
49199         * po/de.po: Update from translation team.
49200
49201 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49202
49203         [BZ #10357]
49204         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49205         imaginary part less than 1.0 and real part less than 0.5
49206         specially.
49207         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49208         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49209         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49210         (cacos_test): Add more tests.
49211         (casin_test): Likewise.
49212         (casinh_test): Likewise.
49213         * sysdeps/i386/fpu/libm-test-ulps: Update.
49214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49215
49216 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49217
49218         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49219         ONE with its value.
49220
49221         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49222         (__pow_mp): Replace ONE and MONE with their values.
49223         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49224         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49225         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49226         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49227         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49228         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49229
49230         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49231
49232         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49233         (__pow_mp): Replace ZERO and MZERO with their values.
49234         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49235         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49236         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49237         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49238         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49239         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49240         (__sqr): Likewise.
49241
49242         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49243
49244         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49245
49246 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49247
49248         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49249         Declare with __attribute__ ((weak)).
49250         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49251         Call __call_tls_dtors only if it's not NULL.
49252
49253 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49254
49255         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49256         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49257         magic __ehdr_start linker symbol if it's defined.
49258         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49259         them up here if it was already done.
49260
49261         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49262         (_dl_aux_init): Use const in cast when setting it.
49263         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49264         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49265         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49266
49267         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49268         Declare them here.
49269         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49270         * csu/libc-tls.c: Nor here.
49271         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49272
49273         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49274         (__libc_message): Never call vsyslog.
49275
49276 2013-03-28  Alan Modra  <amodra@gmail.com>
49277
49278         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49279         Define as empty.
49280         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49281         Likewise.
49282
49283 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49284
49285         [BZ #15214]
49286         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49287         underflow.
49288         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49289
49290 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49291
49292         [BZ #15304]
49293         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49294         Don't add gid passed as argument.
49295
49296         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49297
49298 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49299
49300         [BZ #15307]
49301         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49302         imaginary part between 1.0 and 1.5 and real part less than 0.5
49303         specially.
49304         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49305         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49306         * math/libm-test.inc (cacos_test): Add more tests.
49307         (casin_test): Likewise.
49308         (casinh_test): Likewise.
49309         * sysdeps/i386/fpu/libm-test-ulps: Update.
49310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49311
49312 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49313
49314         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49315         constants.
49316         (norm): Likewise.
49317         (denorm): Likewise.
49318         (__dbl_mp): Likewise.
49319         (add_magnitudes): Likewise.
49320         (sub_magnitudes): Likewise.
49321         (__add): Likewise.
49322         (__sub): Likewise.
49323         (__mul): Likewise.
49324         (__sqr): Likewise.
49325         (__inv): Likewise.
49326         (__dvd): Likewise.
49327
49328         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49329         commented code.
49330         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49331         (__dubcos): Likewise.
49332         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49333         (__ieee754_acos): Likewise.
49334         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49335         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49336         (__exp1): Likewise.
49337         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49338         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49339         (log1): Likewise.
49340         (my_log2): Likewise.
49341         (checkint): Likewise.
49342         * sysdeps/ieee754/dbl-64/e_remainder.c
49343         (__ieee754_remainder): Likewise.
49344         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49345         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49346         (bsloww): Likewise.
49347         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49348
49349         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49350         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49351         MANTISSA_STORE_T to store computations on mantissa.  Use
49352         macros for rounding and division.
49353         (denorm): Likewise.
49354         (__dbl_mp): Likewise.
49355         (add_magnitudes): Likewise.
49356         (sub_magnitudes): Likewise.
49357         (__mul): Likewise.
49358         (__sqr): Likewise.
49359         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49360         powers of two in terms of TWOPOW macro.
49361         (mp_no): Make type of mantissa as MANTISSA_T.
49362         [!RADIXI]: Define RADIXI.
49363         [!TWO52]: Define TWO52.
49364         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49365
49366 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49367
49368         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49369         llroundl symbol when building for PPC32.
49370
49371 2013-03-24  Mark H Weaver  <mhw@netris.org>
49372
49373         * manual/arith.texi (Normalization Functions): Fix prototypes for
49374         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49375
49376 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49377
49378         [BZ #13889]
49379         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49380         high value to check if expl overflow.
49381         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49382         to check for underflow and overflow.
49383         * math/libm-test.inc: Add exp test.
49384
49385 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49386
49387         [BZ #11120]
49388         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49389         with NOT_IN_libc.
49390
49391 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49392
49393         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49394         symbol.
49395
49396 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49397
49398         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49399         wrap blocks consisting of several statements.
49400
49401         * sysdeps/generic/math-tests.h: New file.
49402         * sysdeps/i386/fpu/math-tests.h: Likewise.
49403         * math/test-snan.c: Include it.
49404         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49405
49406 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49407
49408         [BZ #15285]
49409         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49410         (__ieee754_j0l): Do not improve calculations using cos of twice
49411         input for inputs above LDBL_MAX / 2.0L.
49412         (__ieee754_y0l): Likewise.
49413         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49414         (__ieee754_j1l): Do not improve calculations using cos of twice
49415         input for inputs above LDBL_MAX / 2.0L.
49416         (__ieee754_y1l): Likewise.
49417         * math/libm-test.inc (j0_test): Add another test.
49418         (j1_test): Likewise.
49419         (y0_test): Likewise.
49420         (y1_test): Likewise.
49421         * sysdeps/i386/fpu/libm-test-ulps: Update.
49422
49423 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49424
49425         * Rules ($(objpfx)bench-%.c): Include code from a C source
49426         file.
49427
49428 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49429
49430         [BZ #15287]
49431         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49432         imaginary part 1.0 and real part less than 0.5 specially.
49433         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49434         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49435         * math/libm-test.inc (cacos_test): Add more tests.
49436         (casin_test): Likewise.
49437         (casinh_test): Likewise.
49438         * sysdeps/i386/fpu/libm-test-ulps: Update.
49439         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49440
49441 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49442
49443         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49444         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49445
49446 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49447
49448         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49449         * config.make.in (config-cflags-sse4): Remove variable.
49450         (config-cflags-avx): Likewise.
49451         (config-cflags-sse2avx): Likewise.
49452         (config-cflags-novzeroupper): Likewise.
49453         (config-asflags-i686): Likewise.
49454         (have-mfma4): Likewise.
49455         (have-as-vis3): Likewise.
49456         (MIG): Likewise.
49457         * configure.in (MIG): Do not AC_SUBST.
49458         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49459         (libc_cv_cc_sse4): Do not AC_SUBST.
49460         (libc_cv_cc_avx): Likewise.
49461         (libc_cv_cc_sse2avx): Likewise.
49462         (libc_cv_cc_novzeroupper): Likewise.
49463         (libc_cv_cc_fma4): Likewise.
49464         (libc_cv_as_i686): Likewise.
49465         (libc_cv_sparc_as_vis3): Likewise.
49466         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49467         LIBC_CONFIG_VAR.
49468         (config-asflags-i686): Likewise.
49469         (config-cflags-avx): Likewise.
49470         (config-cflags-sse2avx): Likewise.
49471         (have-mfma4): Likewise.
49472         (config-cflags-novzeroupper): Likewise.
49473         * sysdeps/mach/configure.in (MIG): Likewise.
49474         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49475         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49476         LIBC_CONFIG_VAR.
49477         (config-cflags-avx): Likewise.
49478         (config-cflags-sse2avx): Likewise.
49479         (have-mfma4): Likewise.
49480         (config-cflags-novzeroupper): Likewise.
49481         * configure: Regenerated.
49482         * sysdeps/i386/configure: Likewise.
49483         * sysdeps/mach/configure: Likewise.
49484         * sysdeps/sparc/configure: Likewise.
49485         * sysdeps/x86_64/configure: Likewise.
49486
49487 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49488
49489         [BZ #14812]
49490         * locale/programs/localedef.c (options): Put N_ translation marker
49491         on argument names, not just descriptions.
49492
49493 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49494
49495         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49496
49497 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49498
49499         [BZ #14176]
49500         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49501
49502 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49503
49504         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49505         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49506         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49507         [!BEFORE_ABORT] (before_abort): New function.
49508         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49509         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49510         (writev_for_fatal): New function.
49511         (WRITEV_FOR_FATAL): New macro; call that.
49512         (backtrace_and_maps): New function.
49513         (BEFORE_ABORT): New macro; call that.
49514         (struct str_list): Type removed.
49515         (__libc_message, __libc_fatal): Functions removed.
49516         Include <sysdeps/posix/libc_fatal.c> instead.
49517
49518 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49519
49520         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49521         constants.
49522         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49523         double constants.
49524
49525 2013-03-19  Andreas Schwab  <schwab@suse.de>
49526
49527         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49528         * sysdeps/gnu/configure: Regenerate.
49529
49530         * configure.in: Substitute libc_cv_rtlddir.
49531         * configure: Regenerate.
49532         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49533         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49534         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49535         * elf/Makefile (install-others, CFLAGS-interp.c)
49536         (ldso_install, common-ldd-rewrite): Likewise.
49537         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49538         $(inst_slibdir)/$(rtld-installed-name).
49539         * scripts/rellns-sh: Add -p option.
49540         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49541         for source.
49542
49543 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49544
49545         * manual/nptl.texi: Renamed to ...
49546         * manual/threads.texi: ... this.
49547         * manual/Makefile (chapters): Update.
49548
49549 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49550
49551         [BZ #14812]
49552         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49553         on argument names, not just descriptions.
49554         * malloc/memusagestat.c (options): Likewise.
49555         * nss/getent.c (options): Likewise.
49556
49557 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49558
49559         [BZ #14812]
49560         * iconv/iconv_prog.c (options): Put N_ translation marker
49561         on argument names, not just descriptions.
49562         * iconv/iconvconfig.c (options): Likewise.
49563
49564 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49565
49566         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49567         implementation which is faster on all x86_64 architectures.
49568         Tested on AMD, Intel Nehalem, SNB, IVB.
49569         * sysdeps/x86_64/strnlen.S: Likewise.
49570
49571         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49572         Remove all multiarch strlen and strnlen versions.
49573         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49574         Remove strlen and strnlen related parts.
49575
49576         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49577         Inline strlen part.
49578         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49579
49580         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49581         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49582         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49583         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49584         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49585         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49586
49587 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49588
49589         * manual/memory.texi (Malloc Tunable Parameters):
49590         Sort parameters alphabetically. Add comments for missing entries.
49591
49592 2013-03-17  David S. Miller  <davem@davemloft.net>
49593
49594         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49595
49596 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49597
49598         [BZ #15283]
49599         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49600         for arguments at most half maximum finite value.
49601         * math/libm-test.inc (j0_test): Add more tests.
49602         (j1_test): Likewise.
49603         (y0_test): Likewise.
49604         (y1_test): Likewise.
49605         * sysdeps/i386/fpu/libm-test-ulps: Update.
49606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49607
49608         [BZ #14155]
49609         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49610         1 / x and functions P and Q for arguments above 0x1p256L.
49611         (__ieee754_y0l): Likewise.
49612         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49613         (__ieee754_y1l): Likewise.
49614         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49615         (j1_test): Likewise.
49616         (y0_test): Likewise.
49617         (y1_test): Likewise.
49618
49619 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49620
49621         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49622         variable.
49623
49624 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49625
49626         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49627         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49628         zero since it's initialized to EXEC_PAGESIZE.
49629
49630         * sysdeps/unix/sysv/linux/ldsodefs.h
49631         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49632         * sysdeps/generic/ldsodefs.h: ... here.
49633
49634 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49635
49636         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49637
49638         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49639         math/test-snan.c.
49640         * math/test-snan.c: Renamed from
49641         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49642         * math/Makefile (tests): Add test-snan.
49643         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49644         test-powerpc-snan.
49645
49646         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49647         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49648         functions.
49649         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49650         __builtin_nan family of functions.
49651         * math/libm-test.inc (initialize): Initialize qnan_value with
49652         __builtin_nan family of functions.
49653         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49654         Remove variables.
49655         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49656         Remove functions.
49657         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49658         storage class.  Initialize qNaN_var and sNaN_var with
49659         __builtin_nan and __builtin_nans families of functions,
49660         respectively.
49661
49662         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49663         (sqrt_test): Remove duplicate test with qNaN input.
49664         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49665         (round_test, signbit_test, significand_test): Note missing +/-Inf
49666         as well as qNaN tests.
49667
49668         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49669         qNaN_var.  Fix a few strings, too.
49670         * math/libm-test.inc (nan_value): Rename to qnan_value.
49671         * math/gen-libm-test.pl (%beautify): Adjust to that.
49672         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49673         * math/test-misc.c (main): Likewise.
49674         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49675         to __qnan_bytes, and __qnan_union, respectively.
49676         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49677         Likewise.
49678         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49679         and lqnanval, respectively.
49680         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49681         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49682         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49683         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49684
49685         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49686         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49687         doubles.
49688
49689         * math/test-misc.c (main): Fix copy'n'pastos.
49690         * misc/tst-efgcvt.c (special): Likewise.
49691
49692         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49693         Remove declarations.
49694
49695 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49696
49697         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49698         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49699         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49700         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49701
49702 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49703
49704         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49705         macro to return vdso values correctly in IFUNC implementations.
49706         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49707         Optimization by using IFUNC.
49708
49709 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49710             Richard Henderson  <rth@redhat.com>
49711             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49712
49713         * Makefile.in (bench): New target.
49714         * NEWS: Mention the benchmark framework.
49715         * Rules (bench): Likewise.
49716         (binaries-bench): Generate binaries for functions to
49717         benchmark.
49718         * benchtests/Makefile: New makefile for benchmark tests.
49719         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49720         programs.
49721         * benchtests/exp-inputs: New input file for EXP function.
49722         * benchtests/pow-inputs: New input file for POW function.
49723         * scripts/bench.pl: New script to generate source files for
49724         benchmark programs.
49725
49726 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49727
49728         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49729         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49730         computations on mantissa.  Use macros for rounding and
49731         division.
49732         (denorm): Likewise.
49733         (__dbl_mp): Likewise.
49734         (add_magnitudes): Likewise.
49735         (sub_magnitudes): Likewise.
49736         (__mul): Likewise.
49737         (__sqr): Likewise.
49738         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49739         powers of two in terms of TWOPOW macro.
49740         (mp_no): Make type of mantissa as MANTISSA_T.
49741         [!RADIXI]: Define RADIXI.
49742         [!TWO52]: Define TWO52.
49743         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49744
49745         * manual/nptl.texi (cindex): Modify threads to pthreads.
49746
49747 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49748
49749         * sysdeps/x86_64/preconfigure: Regenerated.
49750
49751 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49752
49753         [BZ #14155]
49754         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49755         0x1p28 and above.
49756         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49757         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49758         0x1p28 and above.
49759         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49760         * math/libm-test.inc (j0_test): Do not allow one spurious
49761         underflow exception.
49762         (y1_test): Likewise.
49763
49764 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49765
49766         * manual/Makefile (chapters): Add nptl.
49767         * manual/debug.texi (Debugging Support): Add link to Threads
49768         chapter.
49769         * manual/nptl.texi: New file.
49770
49771         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49772
49773 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49774
49775         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
49776         for non-NULL pointer before the memory validity test. Pointed
49777         out by Holger Brunck <holger.brunck@keymile.com>.
49778
49779 2013-03-13  Andreas Schwab  <schwab@suse.de>
49780
49781         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
49782         instead of .os.
49783
49784 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
49785
49786         * timezone/zic.c: Update from tzcode 2013b.
49787
49788 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
49789
49790         * manual/install.texi (Configuring and compiling):
49791         Mention i686 and i586.
49792         * INSTALL: Regenerate.
49793
49794 2013-03-12  Roland McGrath  <roland@hack.frob.com>
49795
49796         * sysdeps/init_array/elf-init.c: New file.
49797         * csu/elf-init.c
49798         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
49799         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
49800
49801         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
49802         __gmon_start__ as global, but as static with a .preinit_array pointer.
49803         * sysdeps/init_array/gmon-start.c: New file.  Use that.
49804         * sysdeps/init_array/crti.S: New file, empty except for comments.
49805         * sysdeps/init_array/crtn.S: Likewise.
49806
49807 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
49808
49809         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
49810         definining bcopy.
49811         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49812         Remove Prefer_SSE_for_memop.
49813         * sysdeps/x86_64/multiarch/init-arch.h: Remove
49814         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
49815         HAS_PREFER_SSE_FOR_MEMOP.
49816         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
49817         memset-x86-64.
49818         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
49819         Remove bzero, memset ifunc support.
49820         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
49821         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
49822         * sysdeps/x86_64/multiarch/memset.S: Likewise.
49823         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
49824
49825 2013-03-11  Andreas Schwab  <schwab@suse.de>
49826
49827         [BZ #15234]
49828         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
49829         by SHLIB_COMPAT.
49830         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
49831         (GLIBC_2.16): Remove pthread_atfork.
49832
49833 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
49834
49835         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
49836         (ptestcases.h): Likewise.
49837
49838 2013-03-08  Roland McGrath  <roland@hack.frob.com>
49839
49840         * Makeconfig ($(common-objpfx)config.status): Depend on
49841         sysdeps/*/preconfigure{,.in} too.
49842
49843 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
49844
49845         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
49846         (__free_hook): Use void * instead of __malloc_ptr_t.
49847         (__malloc_hook): Likewise.
49848         (__realloc_hook): Likewise.
49849         (__memalign_hook): Likewise.
49850         (__after_morecore_hook): Likewise.
49851         * malloc/arena.c (save_malloc_hook): Likewise.
49852         (save_free_hook): Likewise.
49853         * malloc/hooks.c (malloc_hook_ini): Likewise.
49854         (realloc_hook_ini): Likewise.
49855         (memalign_hook_ini): Likewise.
49856         * malloc/malloc.c (malloc_hook_ini): Likewise.
49857         (realloc_hook_ini): Likewise.
49858         (memalign_hook_ini): Likewise.
49859         (__free_hook): Likewise.
49860         (__malloc_hook): Likewise.
49861         (__realloc_hook): Likewise.
49862         (__memalign_hook): Likewise.
49863         (__libc_malloc): Likewise.
49864         (__libc_free): Likewise.
49865         (__libc_realloc): Likewise.
49866         (__libc_memalign): Likewise.
49867         (__libc_valloc): Likewise.
49868         (__libc_pvalloc): Likewise.
49869         (__libc_calloc): Likewise.
49870         (__posix_memalign): Likewise.
49871         * malloc/morecore.c (__sbrk): Likewise.
49872         (__default_morecore): Likewise.
49873
49874         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
49875
49876         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
49877         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
49878         __malloc_ptrdiff_t.
49879
49880         * malloc/malloc.h (__malloc_size_t): Remove macro.
49881         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
49882         __malloc_size_t.
49883         (old_memalign_hook): Likewise.
49884         (old_realloc_hook): Likewise.
49885         (struct hdr): Likewise.
49886         (flood): Likewise.
49887         (mallochook): Likewise.
49888         (memalignhook): Likewise.
49889         (reallochook): Likewise.
49890         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
49891         (tr_old_realloc_hook): Likewise.
49892         (tr_old_memalign_hook): Likewise.
49893         (tr_mallochook): Likewise.
49894         (tr_reallochook): Likewise.
49895         (tr_memalignhook): Likewise.
49896
49897 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49898
49899         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
49900         default_ldbl_pack and using as default implementation.
49901         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
49902         implementation.
49903         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
49904         redundant definition.
49905         (ldbl_insert_mantissa): Likewise.
49906         (ldbl_canonicalize): Likewise.
49907         (ldbl_nearbyint): Likewise.
49908         (ldbl_pack): Rename to ldbl_pack_ppc.
49909         (ldbl_unpack): Rename to ldbl_unpack_ppc.
49910         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
49911         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
49912
49913 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49914
49915         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
49916         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
49917         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
49918         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
49919         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
49920         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
49921         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
49922         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
49923
49924 2013-03-07  Andreas Jaeger  <aj@suse.de>
49925
49926         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
49927         bits/mman-linux.h.
49928
49929 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49930
49931         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
49932         Include mpa.h and declare __MPEXP.
49933         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
49934         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49935         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49936         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
49937         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49938         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49939         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
49940
49941         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
49942         (__slowpow): Use long double EXPL and LOGL functions to
49943         compute POW.
49944         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49945         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49946         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
49947         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49948         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49949         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
49950
49951         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
49952         intermediate variable to calculate exponent.
49953         (__sqr): Likewise.
49954         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
49955         Likewise.
49956         (__sqr): Likewise.
49957
49958         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
49959         [!NO__SQR]: Define __sqr.
49960         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
49961         and NO__SQR.  Remove all code except __mul and __sqr.  Include
49962         sysdeps/ieee754/dbl-64/mpa.c.
49963         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
49964
49965         [BZ #12723]
49966         * posix/Makefile (tests): Add tst-pathconf.
49967         * posix/tst-pathconf.c: New test case.
49968         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
49969         _PC_PIPE_BUF.
49970         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
49971
49972 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
49973
49974         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
49975
49976 2013-03-06  Andreas Jaeger  <aj@suse.de>
49977
49978         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
49979         definition via __MAP_ANONYMOUS.
49980
49981         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
49982         it's not part of Linux headers.
49983
49984         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
49985         (MAP_HUGE_MASK): Define.
49986
49987         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49988         Define.
49989         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49990         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49991         Define.
49992         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49993         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49994         Define.
49995         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49996         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
49997         Define.
49998         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49999
50000         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50001         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50002         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50003         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50004         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50005         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50006
50007         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50008         Handle f2fs.
50009
50010         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50011         Handle f2fs and efivarfs.
50012
50013         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50014         f2fs.
50015
50016         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50017         (EFIVARFS_MAGIC): Add.
50018         (F2FS_LINK_MAX): Add.
50019
50020 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50021
50022         * stdio-common/vfprintf.c: Replace __builtin_expect with
50023         __glibc_unlikely.
50024
50025 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50026
50027         [BZ #13550]
50028         * sysdeps/generic/bp-sym.h: Remove file.
50029         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50030         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50031         <bp-sym.h> and <bp-asm.h>.
50032         (__longjmp): Don't use BP_SYM.
50033         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50034         and <bp-asm.h>.
50035         (memcpy): Don't use BP_SYM.
50036         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50037         <bp-sym.h> and <bp-asm.h>.
50038         (memcpy): Don't use BP_SYM.
50039         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50040         <bp-asm.h>.
50041         (memcpy): Don't use BP_SYM.
50042         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50043         <bp-asm.h>.
50044         (memset): Don't use BP_SYM.
50045         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50046         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50047         (__bzero): Don't use BP_SYM.
50048         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50049         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50050         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50051         <bp-sym.h> and <bp-asm.h>.
50052         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50053         pointers.
50054         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50055         <bp-sym.h> and <bp-asm.h>.
50056         (memcpy): Don't use BP_SYM.
50057         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50058         <bp-sym.h> and <bp-asm.h>.
50059         (memset): Don't use BP_SYM.
50060         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50061         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50062         (__bzero): Don't use BP_SYM.
50063         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50064         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50065         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50066         <bp-sym.h> and <bp-asm.h>.
50067         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50068         pointers.
50069         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50070         <bp-sym.h> and <bp-asm.h>.
50071         (memcpy): Don't use BP_SYM.
50072         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50073         <bp-sym.h> and <bp-asm.h>.
50074         (memset): Don't use BP_SYM.
50075         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50076         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50077         (__bzero): Don't use BP_SYM.
50078         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50079         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50080         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50081         <bp-sym.h> and <bp-asm.h>.
50082         (__memchr): Don't use BP_SYM.
50083         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50084         <bp-sym.h> and <bp-asm.h>.
50085         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50086         pointers.
50087         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50088         <bp-sym.h> and <bp-asm.h>.
50089         (memcpy): Don't use BP_SYM.
50090         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50091         <bp-sym.h> and <bp-asm.h>.
50092         (__mempcpy): Don't use BP_SYM.
50093         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50094         <bp-sym.h> and <bp-asm.h>.
50095         (__memrchr): Don't use BP_SYM.
50096         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50097         <bp-sym.h> and <bp-asm.h>.
50098         (memset): Don't use BP_SYM.
50099         (__bzero): Likewise.
50100         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50101         <bp-sym.h> and <bp-asm.h>.
50102         (__rawmemchr): Don't use BP_SYM.
50103         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50104         <bp-sym.h> and <bp-asm.h>.
50105         (__STRCMP): Don't use BP_SYM.
50106         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50107         <bp-sym.h> and <bp-asm.h>.
50108         (strchr): Don't use BP_SYM.
50109         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50110         <bp-sym.h> and <bp-asm.h>.
50111         (__strchrnul): Don't use BP_SYM.
50112         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50113         <bp-sym.h> and <bp-asm.h>.
50114         (strlen): Don't use BP_SYM.
50115         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50116         <bp-sym.h> and <bp-asm.h>.
50117         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50118         pointers.
50119         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50120         <bp-sym.h> and <bp-asm.h>.
50121         (__strnlen): Don't use BP_SYM.
50122         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50123         <bp-sym.h> and <bp-asm.h>.
50124         (__GI__setjmp): Don't use BP_SYM.
50125         (_setjmp): Likewise.
50126         (__sigsetjmp): Likewise.
50127         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50128         (L(start_addresses)): Don't use BP_SYM.
50129         (_start): Likewise.
50130         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50131         <bp-asm.h>.
50132         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50133         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50134         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50135         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50136         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50137         <bp-asm.h>.
50138         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50139         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50140         about bounded pointers.
50141         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50142         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50143         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50144         <bp-asm.h>.
50145         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50146         about bounded pointers.  Remove GKM FIXME comments.
50147         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50148         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50149         <bp-asm.h>.
50150         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50151         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50152         Remove GKM FIXME comments.
50153         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50154         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50155         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50156         <bp-asm.h>.
50157         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50158         about bounded pointers.  Remove GKM FIXME comment.
50159         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50160         and <bp-asm.h>.
50161         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50162         pointers.
50163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50164         <bp-sym.h> and <bp-asm.h>.
50165         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50167         <bp-sym.h> and <bp-asm.h>.
50168         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50169         comment.
50170
50171 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50172
50173         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50174         call free(NULL).
50175
50176 2013-03-05  David S. Miller  <davem@davemloft.net>
50177
50178         * po/es.po: Update from translation team.
50179
50180 2013-03-05  Andreas Jaeger  <aj@suse.de>
50181
50182         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50183         <bits/mman-linux.h>.
50184         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50185         is fine.
50186         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50187         <bits/mman-linux.h> to end of file.
50188         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50189         is fine.
50190         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50191         <bits/mman-linux.h> to end of file.
50192         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50193         is fine.
50194         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50195         <bits/mman-linux.h> to end of file.
50196
50197         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50198         (MCL_CURRENT, MCL_FUTURE): Define here.
50199
50200 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50201
50202         [BZ #15232]
50203         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50204         attribute_hidden.
50205         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50206
50207 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50208
50209         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50210         fourth parameter needed for rt_sigprocmask syscall.
50211         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50212         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50213         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50214         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50215         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50216         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50217
50218 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50219
50220         [BZ #13550]
50221         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50222         comment about bounded pointers.
50223         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50224         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50225
50226 2013-03-04  Andreas Jaeger  <aj@suse.de>
50227
50228         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50229         common definitions.
50230
50231         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50232         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50233         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50234         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50235         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50236         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50237
50238 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50239
50240         [BZ #15055]
50241         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50242         __ieee754_sqrl instead of __sqrl.
50243
50244 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50245
50246         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50247         * sysdeps/powerpc/fpu_control.h: ... here.
50248         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50249         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50250         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50251         * sysdeps/powerpc/bits/mathinline.h: ... here.
50252
50253 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50254
50255         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50256         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50257         to just [NEED_DL_SYSINFO_DSO].
50258         * elf/dl-support.c: Likewise.
50259         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50260         * elf/rtld.c (dl_main): Likewise.
50261         * elf/setup-vdso.h (setup_vdso): Likewise.
50262         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50263         * sysdeps/unix/sysv/linux/dl-sysdep.c
50264         (_dl_discover_osversion): Likewise.
50265
50266 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50267
50268         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50269         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50270
50271 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50272
50273         * NEWS: Mention libm performance improvements and non-x86 PI
50274         futex support.
50275
50276         * csu/libc-start.c (__pthread_initialize_minimal): Change
50277         function arguments.
50278         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50279
50280 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50281
50282         [BZ #13550]
50283         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50284         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50285         <bp-sym.h> and <bp-asm.h>.
50286         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50287         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50288         and <bp-asm.h>.
50289         (memcpy): Don't use BP_SYM.
50290         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50291         <bp-asm.h>.
50292         (__mpn_add_n): Don't use BP_SYM.
50293         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50294         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50295         and <bp-asm.h>.
50296         (__mpn_addmul_1): Don't use BP_SYM.
50297         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50298         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50299         <bp-sym.h>.
50300         (_setjmp): Don't use BP_SYM.
50301         (__novmx_setjmp): Likewise.
50302         (__GI__setjmp): Likewise.
50303         (__vmx_setjmp): Likewise.
50304         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50305         <bp-sym.h>.
50306         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50307         (__bzero): Don't use BP_SYM.
50308         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50309         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50310         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50311         <bp-sym.h> and <bp-asm.h>.
50312         (memcpy): Don't use BP_SYM.
50313         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50314         <bp-sym.h> and <bp-asm.h>.
50315         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50316         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50317         <bp-sym.h> and <bp-asm.h>.
50318         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50319         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50320         <bp-asm.h>.
50321         (__mpn_lshift): Don't use BP_SYM.
50322         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50323         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50324         <bp-asm.h>.
50325         (memset): Don't use BP_SYM.
50326         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50327         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50328         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50329         <bp-asm.h>.
50330         (__mpn_mul_1): Don't use BP_SYM.
50331         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50332         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50333         <bp-sym.h> and <bp-asm.h>.
50334         (memcmp): Don't use BP_SYM.
50335         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50336         <bp-sym.h> and <bp-asm.h>.
50337         (memcpy): Don't use BP_SYM.
50338         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50339         <bp-sym.h> and <bp-asm.h>.
50340         (memset): Don't use BP_SYM.
50341         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50342         <bp-sym.h> and <bp-asm.h>.
50343         (strncmp): Don't use BP_SYM.
50344         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50345         <bp-sym.h> and <bp-asm.h>.
50346         (memcpy): Don't use BP_SYM.
50347         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50348         <bp-sym.h> and <bp-asm.h>.
50349         (memset): Don't use BP_SYM.
50350         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50351         <bp-sym.h> and <bp-asm.h>.
50352         (__memchr): Don't use BP_SYM.
50353         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50354         <bp-sym.h> and <bp-asm.h>.
50355         (memcmp): Don't use BP_SYM.
50356         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50357         <bp-sym.h> and <bp-asm.h>.
50358         (memcpy): Don't use BP_SYM.
50359         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50360         <bp-sym.h> and <bp-asm.h>.
50361         (__mempcpy): Don't use BP_SYM.
50362         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50363         <bp-sym.h> and <bp-asm.h>.
50364         (__memrchr): Don't use BP_SYM.
50365         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50366         <bp-sym.h> and <bp-asm.h>.
50367         (memset): Don't use BP_SYM.
50368         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50369         <bp-sym.h> and <bp-asm.h>.
50370         (__rawmemchr): Don't use BP_SYM.
50371         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50372         <bp-sym.h> and <bp-asm.h>.
50373         (__STRCMP): Don't use BP_SYM.
50374         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50375         <bp-sym.h> and <bp-asm.h>.
50376         (strchr): Don't use BP_SYM.
50377         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50378         <bp-sym.h> and <bp-asm.h>.
50379         (__strchrnul): Don't use BP_SYM.
50380         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50381         <bp-sym.h> and <bp-asm.h>.
50382         (strlen): Don't use BP_SYM.
50383         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50384         <bp-sym.h> and <bp-asm.h>.
50385         (strncmp): Don't use BP_SYM.
50386         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50387         <bp-sym.h> and <bp-asm.h>.
50388         (__strnlen): Don't use BP_SYM.
50389         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50390         <bp-asm.h>.
50391         (__mpn_rshift): Don't use BP_SYM.
50392         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50393         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50394         <bp-sym.h> and <bp-asm.h>.
50395         (__sigsetjmp): Don't use BP_SYM.
50396         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50397         (L(start_addresses)): Don't use BP_SYM.
50398         (_start): Likewise.
50399         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50400         <bp-asm.h>.
50401         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50402         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50403         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50404         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50405         <bp-asm.h>.
50406         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50407         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50408         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50409         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50410         <bp-asm.h>.
50411         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50412         comments.
50413         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50414         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50415         <bp-asm.h>.
50416         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50417         FIXME comments.
50418         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50419         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50420         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50421         <bp-asm.h>.
50422         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50423         comment.
50424         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50425         and <bp-asm.h>.
50426         (strncmp): Don't use BP_SYM,
50427         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50428         <bp-asm.h>.
50429         (__mpn_sub_n): Don't use BP_SYM.
50430         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50431         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50432         and <bp-asm.h>.
50433         (__mpn_submul_1): Don't use BP_SYM.
50434         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50436         <bp-sym.h> and <bp-asm.h>.
50437         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50439         <bp-sym.h> and <bp-asm.h>.
50440         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50441         comment.
50442
50443 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50444
50445         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50446         Use ZK to minimize writes to Z.
50447         (sub_magnitudes): Simplify code a bit.
50448         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50449         Use ZK to minimize writes to Z.
50450         (sub_magnitudes): Simplify code a bit.
50451
50452 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50453
50454         * csu/gmon-start.c: Add special exception to license text.
50455
50456 2013-02-27  Richard Henderson  <rth@redhat.com>
50457
50458         * scripts/config.guess: Update from config.git.
50459         * scripts/config.sub: Likewise.
50460
50461 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50462
50463         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50464
50465         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50466
50467         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50468
50469         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50470
50471         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50472
50473 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50474
50475         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50476         [$(build-shared = yes].
50477
50478 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50479
50480         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50481         (__mul): Reduce iterations for calculating mantissa.
50482
50483         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50484         MPTWO.
50485         (__mpranred): Likewise.
50486
50487         [BZ #15160]
50488         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50489         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50490
50491 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50492
50493         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50494         Define __attribute__.
50495
50496 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50497
50498         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50499         unused.
50500         * posix/regex_internal.h (__attribute): Remove.
50501         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50502         (re_string_context_at): Likewise.
50503         (bitset_not): Use __attribute__ and mark function as possibly
50504         unused.
50505         (bitset_merge): Likewise.
50506         (bitset_mask): Likewise.
50507         (re_string_char_size_at): Likewise.
50508         (re_string_wchar_at): Likewise.
50509         (re_string_elem_size_at): Likewise.
50510
50511 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50512
50513         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50514         code.
50515         (cc32): Likewise.
50516
50517         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50518         (__acr): Likewise.
50519         (__cpy): Likewise.
50520         (norm): Likewise.
50521         (denorm): Likewise.
50522         (__dbl_mp): Likewise.
50523         (add_magnitudes): Likewise.
50524         (sub_magnitudes): Likewise.
50525         (__mul): Likewise.
50526         (__inv): Likewise.
50527
50528         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50529         style.
50530
50531         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50532         style.
50533
50534         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50535         code.
50536
50537         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50538         up changes with default code.
50539         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50540         Likewise.
50541
50542 2013-02-24  Allan McRae  <allan@archlinux.org>
50543
50544         * manual/socket.texi (The Internet Namespace): Order menu items
50545         to match that in the file.
50546
50547         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50548         node listing of the info page menu.
50549
50550 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50551
50552         [BZ #13550]
50553         * sysdeps/i386/bp-asm.h: Remove file.
50554         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50555         (PARMS): Do not use macros from bp-asm.h.
50556         (S1): Likewise.
50557         (S2): Likewise.
50558         (SIZE): Likewise.
50559         (__mpn_add_n): Do not use BP_SYM
50560         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50561         "bp-asm.h".
50562         (PARMS): Do not use macros from bp-asm.h.
50563         (S1): Likewise.
50564         (SIZE): Likewise.
50565         (__mpn_addmul_1): Do not use BP_SYM
50566         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50567         "bp-asm.h".
50568         (PARMS): Do not use macros from bp-asm.h.
50569         (SIGMSK): Likewise.
50570         (_setjmp): Likewise.  Do not use BP_SYM.
50571         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50572         "bp-asm.h".
50573         (PARMS): Do not use macros from bp-asm.h.
50574         (SIGMSK): Likewise.
50575         (setjmp): Likewise.  Do not use BP_SYM.
50576         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50577         "bp-asm.h".
50578         (PARMS): Do not use macros from bp-asm.h.
50579         (__frexp): Do not use BP_SYM.
50580         (frexp): Likewise.
50581         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50582         "bp-asm.h".
50583         (PARMS): Do not use macros from bp-asm.h.
50584         (__frexpf): Do not use BP_SYM.
50585         (frexpf): Likewise.
50586         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50587         "bp-asm.h".
50588         (PARMS): Do not use macros from bp-asm.h.
50589         (__frexpl): Do not use BP_SYM.
50590         (frexpl): Likewise.
50591         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50592         "bp-asm.h".
50593         (PARMS): Do not use macros from bp-asm.h.
50594         (__remquo): Do not use BP_SYM.
50595         (remquo): Likewise.
50596         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50597         "bp-asm.h".
50598         (PARMS): Do not use macros from bp-asm.h.
50599         (__remquof): Do not use BP_SYM.
50600         (remquof): Likewise.
50601         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50602         "bp-asm.h".
50603         (PARMS): Do not use macros from bp-asm.h.
50604         (__remquol): Do not use BP_SYM.
50605         (remquol): Likewise.
50606         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50607         "bp-asm.h".
50608         (PARMS): Do not use macros from bp-asm.h.
50609         (DEST): Likewise.
50610         (SRC): Likewise.
50611         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50612         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50613         "bp-asm.h".
50614         (PARMS): Do not use macros from bp-asm.h.
50615         (strlen): Do not use BP_SYM.
50616         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50617         "bp-asm.h".
50618         (PARMS): Do not use macros from bp-asm.h.
50619         (S1): Likewise.
50620         (S2): Likewise.
50621         (SIZE): Likewise.
50622         (__mpn_add_n): Do not use BP_SYM.
50623         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50624         "bp-asm.h".
50625         (PARMS): Do not use macros from bp-asm.h.
50626         (S1): Likewise.
50627         (SIZE): Likewise.
50628         (__mpn_addmul_1): Do not use BP_SYM.
50629         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50630         weak_alias.
50631         (bzero): Likewise.
50632         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50633         "bp-asm.h".
50634         (PARMS): Do not use macros from bp-asm.h.
50635         (S): Likewise.
50636         (SIZE): Likewise.
50637         (__mpn_lshift): Do not use BP_SYM.
50638         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50639         "bp-asm.h".
50640         (PARMS): Do not use macros from bp-asm.h.
50641         (DEST): Likewise.
50642         (SRC): Likewise.
50643         (LEN): Likewise.
50644         (memcpy): Likewise.  Do not use BP_SYM.
50645         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50646         libc_hidden_def and weak_alias.
50647         (mempcpy): Do not use BP_SYM in weak_alias.
50648         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50649         "bp-asm.h".
50650         (PARMS): Do not use macros from bp-asm.h.
50651         (DEST): Likewise.
50652         (LEN): Likewise.
50653         [!BZERO_P] (CHR): Likewise.
50654         (memset): Likewise.  Do not use BP_SYM.
50655         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50656         "bp-asm.h".
50657         (PARMS): Do not use macros from bp-asm.h.
50658         (S1): Likewise.
50659         (SIZE): Likewise.
50660         (__mpn_mul_1): Do not use BP_SYM.
50661         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50662         "bp-asm.h".
50663         (PARMS): Do not use macros from bp-asm.h.
50664         (S): Likewise.
50665         (SIZE): Likewise.
50666         (__mpn_rshift): Do not use BP_SYM.
50667         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50668         "bp-asm.h".
50669         (PARMS): Do not use macros from bp-asm.h.
50670         (STR): Likewise.
50671         (CHR): Likewise.
50672         (strchr): Likewise.  Do not use BP_SYM.
50673         (index): Do not use BP_SYM in weak_alias.
50674         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50675         "bp-asm.h".
50676         (PARMS): Do not use macros from bp-asm.h.
50677         (DEST): Likewise.
50678         (SRC): Likewise.
50679         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50680         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50681         "bp-asm.h".
50682         (PARMS): Do not use macros from bp-asm.h.
50683         (strlen): Do not use BP_SYM.
50684         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50685         "bp-asm.h".
50686         (PARMS): Do not use macros from bp-asm.h.
50687         (S1): Likewise.
50688         (S2): Likewise.
50689         (SIZE): Likewise.
50690         (__mpn_sub_n): Do not use BP_SYM.
50691         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50692         "bp-asm.h".
50693         (PARMS): Do not use macros from bp-asm.h.
50694         (S1): Likewise.
50695         (SIZE): Likewise.
50696         (__mpn_submul_1): Do not use BP_SYM.
50697         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50698         "bp-asm.h".
50699         (PARMS): Do not use macros from bp-asm.h.
50700         (S1): Likewise.
50701         (S2): Likewise.
50702         (SIZE): Likewise.
50703         (__mpn_add_n): Do not use BP_SYM.
50704         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50705         weak_alias.
50706         (bzero): Likewise.
50707         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50708         "bp-asm.h".
50709         (PARMS): Do not use macros from bp-asm.h.
50710         (BLK2): Likewise.
50711         (LEN): Likewise.
50712         (memcmp): Do not use BP_SYM.
50713         (bcmp): Do not use BP_SYM in weak_alias.
50714         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50715         "bp-asm.h".
50716         (PARMS): Do not use macros from bp-asm.h.
50717         (DEST): Likewise.
50718         (SRC): Likewise.
50719         (LEN): Likewise.
50720         (memcpy): Likewise.  Do not use BP_SYM.
50721         * sysdeps/i386/i686/memmove.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         (memmove): Likewise.  Do not use BP_SYM.
50728         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50729         "bp-asm.h".
50730         (PARMS): Do not use macros from bp-asm.h.
50731         (DEST): Likewise.
50732         (SRC): Likewise.
50733         (LEN): Likewise.
50734         (__mempcpy): Likewise.  Do not use BP_SYM.
50735         (mempcpy): Do not use BP_SYM in weak_alias.
50736         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50737         "bp-asm.h".
50738         (PARMS): Do not use macros from bp-asm.h.
50739         (DEST): Likewise.
50740         (LEN): Likewise.
50741         [!BZERO_P] (CHR): Likewise.
50742         (memset): Likewise.  Do not use BP_SYM.
50743         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50744         "bp-asm.h".
50745         (PARMS): Do not use macros from bp-asm.h.
50746         (STR2): Likewise.
50747         (strcmp): Do not use BP_SYM.
50748         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50749         "bp-asm.h".
50750         (PARMS): Do not use macros from bp-asm.h.
50751         (STR): Likewise.
50752         (DELIM): Likewise.
50753         [USE_AS_STRTOK_R] (SAVE): Likewise.
50754         (FUNCTION): Likewise.  Do not use BP_SYM.
50755         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50756         aliases.
50757         (strtok_r): Likewise.
50758         (__GI___strtok_r): Likewise.
50759         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50760         (PARMS): Do not use macros from bp-asm.h.
50761         (S): Likewise.
50762         (SIZE): Likewise.
50763         (__mpn_lshift): Do not use BP_SYM.
50764         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50765         (PARMS): Do not use macros from bp-asm.h.
50766         (STR): Likewise.
50767         (CHR): Likewise.
50768         (__memchr): Do not use BP_SYM.
50769         (memchr): Do not use BP_SYM in weak_alias.
50770         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50771         (PARMS): Do not use macros from bp-asm.h.
50772         (BLK2): Likewise.
50773         (LEN): Likewise.
50774         (memcmp): Do not use BP_SYM.
50775         (bcmp): Do not use BP_SYM in weak_alias.
50776         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
50777         (PARMS): Do not use macros from bp-asm.h.
50778         (S1): Likewise.
50779         (SIZE): Likewise.
50780         (__mpn_mul_1): Do not use BP_SYM.
50781         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
50782         "bp-asm.h".
50783         (PARMS): Do not use macros from bp-asm.h.
50784         (STR): Likewise.
50785         (CHR): Likewise.
50786         (__rawmemchr): Do not use BP_SYM.
50787         (rawmemchr): Do not use BP_SYM in weak_alias.
50788         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50789         (PARMS): Do not use macros from bp-asm.h.
50790         (S): Likewise.
50791         (SIZE): Likewise.
50792         (__mpn_rshift): Do not use BP_SYM.
50793         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50794         (PARMS): Do not use macros from bp-asm.h.
50795         (SIGMSK): Likewise.
50796         (__sigsetjmp): Likewise.  Do not use BP_SYM.
50797         * sysdeps/i386/start.S: Do not include "bp-sym.h".
50798         (_start): Do not use BP_SYM.
50799         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
50800         (PARMS): Do not use macros from bp-asm.h.
50801         (DEST): Likewise.
50802         (SRC): Likewise.
50803         (__stpcpy): Likewise.  Do not use BP_SYM.
50804         (stpcpy): Do not use BP_SYM in weak_alias.
50805         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
50806         "bp-asm.h".
50807         (PARMS): Do not use macros from bp-asm.h.
50808         (DEST): Likewise.
50809         (SRC): Likewise.
50810         (LEN): Likewise.
50811         (__stpncpy): Likewise.  Do not use BP_SYM.
50812         (stpncpy): Do not use BP_SYM in weak_alias.
50813         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50814         (PARMS): Do not use macros from bp-asm.h.
50815         (STR): Likewise.
50816         (CHR): Likewise.
50817         (strchr): Likewise.  Do not use BP_SYM.
50818         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
50819         "bp-asm.h".
50820         (PARMS): Do not use macros from bp-asm.h.
50821         (STR): Likewise.
50822         (CHR): Likewise.
50823         (__strchrnul): Likewise.  Do not use BP_SYM.
50824         (strchrnul): Do not use BP_SYM in weak_alias.
50825         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
50826         "bp-asm.h".
50827         (PARMS): Do not use macros from bp-asm.h.
50828         (STOP): Likewise.
50829         (strcspn): Do not use BP_SYM.
50830         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
50831         "bp-asm.h".
50832         (PARMS): Do not use macros from bp-asm.h.
50833         (STR): Likewise.
50834         (STOP): Likewise.
50835         (strpbrk): Likewise.  Do not use BP_SYM.
50836         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
50837         "bp-asm.h".
50838         (PARMS): Do not use macros from bp-asm.h.
50839         (STR): Likewise.
50840         (CHR): Likewise.
50841         (strrchr): Likewise.  Do not use BP_SYM.
50842         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
50843         (PARMS): Do not use macros from bp-asm.h.
50844         (SKIP): Likewise.
50845         (strspn): Do not use BP_SYM.
50846         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
50847         (PARMS): Do not use macros from bp-asm.h.
50848         (STR): Likewise.
50849         (DELIM): Likewise.
50850         (SAVE): Likewise.
50851         (FUNCTION): Likewise.  Do not use BP_SYM.
50852         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
50853         aliases.
50854         (strtok_r): Likewise.
50855         (__GI___strtok_r): Likewise.
50856         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50857         (PARMS): Do not use macros from bp-asm.h.
50858         (S1): Likewise.
50859         (S2): Likewise.
50860         (SIZE): Likewise.
50861         (__mpn_sub_n): Do not use BP_SYM.
50862         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
50863         "bp-asm.h".
50864         (PARMS): Do not use macros from bp-asm.h.
50865         (S1): Likewise.
50866         (SIZE): Likewise.
50867         (__mpn_submul_1): Do not use BP_SYM.
50868         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
50869         <bp-sym.h>.
50870         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
50871         and <bp-asm.h>.
50872         (PARMS): Do not use macros from bp-asm.h.
50873         (FLAGS): Likewise.
50874         (PTID): Likewise.
50875         (TLS): Likewise.
50876         (CTID): Likewise.
50877         (__clone): Do not use BP_SYM.
50878         (clone): Do not use BP_SYM in weak_alias.
50879         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
50880         and <bp-asm.h>.
50881         (PARMS): Do not use macros from bp-asm.h.
50882         (LEN): Likewise.
50883         (__mmap64): Do not use BP_SYM.
50884         (mmap64): Do not use BP_SYM in weak_alias.
50885         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
50886         <bp-sym.h> and <bp-asm.h>.
50887         (PARMS): Do not use macros from bp-asm.h.
50888         (__posix_fadvise64_l64): Do not use BP_SYM.
50889         * sysdeps/unix/sysv/linux/i386/semtimedop.S
50890         (PARMS): Do not use macros from bp-asm.h.
50891         (NSOPS): Likewise.
50892         (semtimedop): Do not use BP_SYM.
50893         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
50894         and <bp-asm.h>.
50895
50896 2013-02-21  Allan McRae  <allan@archlinux.org>
50897
50898         * manual/message.texi (Charset conversion in gettext):
50899         Move @end statement to beginning of line.
50900
50901 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50902
50903         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
50904         static.
50905         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
50906         Likewise.
50907
50908         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
50909         (denorm): Likewise.
50910         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
50911         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
50912
50913 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50914
50915         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
50916         tail-call to the resolved function if pltexit isn't needed.
50917
50918 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50919
50920         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
50921         or Y being zero as being unlikely.
50922         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50923         Likewise.
50924
50925 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
50926
50927         * manual/nss.texi (System Databases and Name Service Switch):
50928         Remove frobnicate @pxref.
50929
50930 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50931
50932         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50933         __attribute__ ((unused)) to __attribute__ ((__unused__)).
50934
50935 2013-02-20  Petr Machata  <pmachata@redhat.com>
50936
50937         * elf/elf.h (R_ARM_TARGET1): New macro.
50938         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
50939         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
50940         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
50941         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
50942         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
50943         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
50944         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
50945         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
50946         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
50947         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
50948         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
50949         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
50950         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
50951         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
50952         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
50953         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
50954         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
50955         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
50956         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
50957         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
50958         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
50959         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
50960         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
50961         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
50962         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
50963         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
50964         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
50965         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
50966         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
50967         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
50968         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
50969         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
50970         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
50971         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
50972         (R_ARM_THM_GOT_BREL12): Likewise.
50973         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
50974         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
50975         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
50976         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
50977         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
50978         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
50979         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
50980         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
50981         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
50982
50983 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50984
50985         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50986         __attribute_used__ to __attribute__ ((unused)).
50987
50988 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
50989
50990         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
50991         powerpc mpa.c.
50992         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
50993         comment formatting.
50994         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
50995
50996 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
50997
50998         [BZ #13550]
50999         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51000         Remove macro.
51001         (ENTER): Remove both macro definitions.
51002         (LEAVE): Likewise.
51003         (CHECK_BOUNDS_LOW): Likewise.
51004         (CHECK_BOUNDS_HIGH): Likewise.
51005         (CHECK_BOUNDS_BOTH): Likewise.
51006         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51007         (RETURN_BOUNDED_POINTER): Likewise.
51008         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51009         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51010         (POP_ERRNO_LOCATION_RETURN): Likewise.
51011         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51012         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51013         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51014         macros.
51015         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51016         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51017         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51018         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51019         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51020         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51021         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51022         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51023         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51024         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51025         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51026         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51027         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51028         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51029         removed macros.
51030         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51031         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51032         macros.
51033         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51034         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51035         * sysdeps/i386/i586/memset.S (memset): Likewise.
51036         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51037         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51038         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51039         macros.
51040         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51041         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51042         Change uses of L(2) to L(out).
51043         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51044         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51045         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51046         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51047         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51048         removed macros.
51049         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51050         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51051         macros.
51052         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51053         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51054         (RETURN): Do not use macro LEAVE.
51055         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51056         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51057         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51058         * sysdeps/i386/i686/memset.S (memset): Likewise.
51059         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51060         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51061         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51062         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51063         Likewise.
51064         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51065         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51066         L(1_2) and L(1_3) into L(1).
51067         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51068         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51069         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51070         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51071         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51072         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51073         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51074         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51075         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51076         macros.
51077         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51078         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51079         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51080         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51081         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51082         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51083         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51084         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51085         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51086         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51087         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51088         * sysdeps/i386/strspn.S (strspn): Likewise.
51089         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51090         conditional code.
51091         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51092         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51093         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51094         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51095         L(1_3) into L(1_1).
51096         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51097         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51098         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51099         macros.
51100         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51101
51102 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51103
51104         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51105         macro.
51106
51107 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51108
51109         * math/atest-exp.c (exp_mpn): Remove ROUND.
51110         * math/atest-exp2.c (exp_mpn): Likewise.
51111         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51112
51113         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51114         * stdlib/tst-tls-atexit-lib.c: Likewise.
51115         * stdlib/tst-tls-atexit.c: Likewise.
51116
51117 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51118
51119         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51120         and __attribute_alloc_size__.
51121
51122 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51123
51124         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51125         __attribute_alloc_size__.
51126         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51127         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51128
51129 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51130
51131         * include/programs/xmalloc.h: New file.
51132         * catgets/gencat.c: Include it.
51133         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51134         * elf/pldd.c: Likewise.
51135         * iconv/iconv_charmap.c: Likewise.
51136         * iconv/iconvconfig.c: Likewise.
51137         * iconv/strtab.c: Likewise.
51138         * locale/programs/locale.c: Likewise.
51139         * locale/programs/localedef.h: Likewise.
51140         * locale/programs/simple-hash.c: Likewise.
51141         * nscd/nscd.h: Likewise.
51142         * nss/makedb.c: Likewise.
51143         * sysdeps/generic/ldconfig.h: Likewise.
51144
51145 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51146
51147         * Versions.def: Add GLIBC_2.18.
51148         * include/link.h (struct link_map): New member l_tls_dtor_count.
51149         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51150         (__call_tls_dtors): Likewise.
51151         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51152         __cxa_thread_atexit_impl.
51153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51154         Likewise.
51155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51156         Likewise.
51157         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51158         Likewise.
51159         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51160         Likewise.
51161         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51162         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51163         Likewise.
51164         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51165         Likewise.
51166         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51167         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51168         Likewise.
51169         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51170         (tests): Add test case tst-tls-atexit.
51171         (modules-names): Add shared library for tst-tls-atexit.
51172         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51173         (GLIBC_PRIVATE): Add __call_tls_dtors.
51174         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51175         for libstdc++.
51176         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51177         * stdlib/tst-tls-atexit.c: New test case.
51178         * stdlib/tst-tls-atexit-lib.c: New test case.
51179
51180         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51181
51182         * elf/Versions (ld): Add _dl_find_dso_for_object.
51183         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51184         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51185         (dl_open_worker): Use _dl_find_dso_for_object.
51186         * elf/dl-sym.c (do_sym): Likewise.
51187         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51188
51189 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51190
51191         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51192         Syntactic changes only.
51193         (_dl_runtime_profile): Do a tail-call to the resolved function.
51194
51195 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51196
51197         [BZ #13550]
51198         * sysdeps/x86_64/bp-asm.h: Remove file.
51199         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51200         <bp-sym.h> and <bp-asm.h>.
51201         (__clone): Do not use BP_SYM.
51202         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51203         <bp-sym.h> and <bp-asm.h>.
51204         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51205         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51206         "bp-asm.h".
51207         (_setjmp): Do not use BP_SYM.
51208         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51209         "bp-asm.h".
51210         (setjmp): Do not use BP_SYM.
51211         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51212         libc_hidden_def.
51213         (mempcpy): Do not use BP_SYM in weak_alias.
51214         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51215         "bp-asm.h".
51216         (strchr): Do not use BP_SYM.
51217         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51218         "bp-asm.h".
51219         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51220         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51221         (_start): Do not use BP_SYM.
51222         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51223         "bp-asm.h".
51224         (strcat): Do not use BP_SYM.
51225         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51226         "bp-asm.h".
51227         (STRCMP): Do not use BP_SYM.
51228         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51229         "bp-asm.h".
51230         (STRCPY): Do not use BP_SYM.
51231         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51232         "bp-asm.h".
51233         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51234         "bp-asm.h".
51235         (FUNCTION): Do not use BP_SYM.
51236         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51237         weak_alias.
51238         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51239
51240 2013-02-17  Andreas Jaeger  <aj@suse.de>
51241
51242         * time/Versions: Sort entries.
51243         * string/Versions: Likewise.
51244         * resolv/Versions: Likewise.
51245         * posix/Versions: Likewise.
51246         * iconv/Versions: Likewise.
51247         * elf/Versions: Likewise.
51248         * wcsmbs/Versions: Likewise.
51249
51250 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51251
51252         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51253         loop termination condition.
51254
51255         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51256         variable to calculate EZ.
51257         (__sqr): Likewise.
51258
51259         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51260         the lower precision input.
51261
51262 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51263
51264         [BZ #13550]
51265         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51266         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51267         (run-via-rtld-prefix): Do not handle %-bp tests.
51268         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51269         (all-object-suffixes): Remove .ob.
51270         (bppfx): Remove variable.
51271         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51272         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51273         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51274         [$(build-bounded) = yes] (libtype.ob): Likewise.
51275         * Makerules (elide-routines.ob): Remove variable.
51276         (do-tests-clean): Do not handle *-bp.out.
51277         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51278         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51279         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51280         (tests): Do not include $(tests-bp.out).
51281         (xtests): Do not include $(xtests-bp.out).
51282         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51283         [$(build-bounded) = yes] ($(addprefix
51284         $(objpfx),$(binaries-bounded))): Remove rule.
51285         ($(objpfx)%-bp.out): Remove rule.
51286         * config.make.in (build-bounded): Remove variable.
51287         * crypt/Makefile [$(build-bounded) = yes]
51288         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51289         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51290         append to variable.
51291         [$(build-bounded) = yes] (install-lib): Likewise.
51292         [$(build-bounded) = yes] (generated): Likewise.
51293         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51294         Remove rule.
51295         * intl/Makefile [$(build-bounded) = yes]
51296         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51297         * math/Makefile [$(build-bounded) = yes]
51298         ($(tests:%=$(objpfx)%-bp): Likewise.
51299         * misc/Makefile [$(build-bounded) = yes]
51300         ($(objpfx)tst-tsearch-bp): Likewise.
51301         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51302         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51303         Remove dependency.
51304         * string/Makefile (o-objects.ob): Remove variable.
51305         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51306         (CFLAGS-.ob): Remove variable.
51307         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51308         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51309         both definitions of variable.
51310         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51311         (ASFLAGS-.ob): Remove variable.
51312
51313 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51314
51315         [BZ #13550]
51316         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51317         Remove __BOUNDED_POINTERS__ from condition.
51318         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51319         * string/bits/string2.h [!__NO_STRING_INLINES &&
51320         !__BOUNDED_POINTERS__]: Likewise.
51321         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51322         Likewise.
51323         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51324         Remove conditional code.
51325         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51326         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51327         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51328         condition.
51329
51330         [BZ #13550]
51331         * csu/libc-start.c: Do not include <bp-sym.h>.
51332         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51333         * elf/dl-open.c: Do not include <bp-sym.h>.
51334         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51335         * math/fegetenv.c: Do not include <bp-sym.h>.
51336         (fegetenv): Do not use BP_SYM in versioned symbols.
51337         * nptl/sysdeps/pthread/bits/libc-lockP.h
51338         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51339         <bp-sym.h>.
51340         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51341         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51342         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51343         (__pthread_mutex_destroy): Likewise.
51344         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51345         (__pthread_mutex_lock): Likewise.
51346         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51347         (__pthread_mutex_trylock): Likewise.
51348         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51349         (__pthread_mutex_unlock): Likewise.
51350         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51351         (__pthread_mutexattr_init): Likewise.
51352         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51353         (__pthread_mutexattr_destroy): Likewise.
51354         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51355         (__pthread_mutexattr_settype): Likewise.
51356         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51357         (__pthread_rwlock_init): Likewise.
51358         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51359         (__pthread_rwlock_destroy): Likewise.
51360         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51361         (__pthread_rwlock_rdlock): Likewise.
51362         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51363         (__pthread_rwlock_tryrdlock): Likewise.
51364         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51365         (__pthread_rwlock_wrlock): Likewise.
51366         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51367         (__pthread_rwlock_trywrlock): Likewise.
51368         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51369         (__pthread_rwlock_unlock): Likewise.
51370         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51371         (__pthread_key_create): Likewise.
51372         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51373         (__pthread_setspecific): Likewise.
51374         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51375         (__pthread_getspecific): Likewise.
51376         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51377         Likewise.
51378         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51379         (_pthread_cleanup_push_defer): Likewise.
51380         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51381         (_pthread_cleanup_pop_restore): Likewise.
51382         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51383         (pthread_setcancelstate): Likewise.
51384         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51385         <bp-sym.h>.
51386         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51387         (memchr): Do not use BP_SYM in weak_alias.
51388         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51389         (fegetenv): Do not use BP_SYM in versioned symbols.
51390         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51391         (fesetenv): Do not use BP_SYM in versioned symbols.
51392         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51393         (feupdateenv): Do not use BP_SYM in versioned symbols.
51394         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51395         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51396         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51397         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51398         (open64): Do not use BP_SYM in weak_alias.
51399         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51400         (fegetenv): Do not use BP_SYM in versioned symbols.
51401         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51402         (fesetenv): Do not use BP_SYM in versioned symbols.
51403         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51404         (feupdateenv): Do not use BP_SYM in versioned symbols.
51405         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51406         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51407         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51408         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51409         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51410         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51411         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51412         <bp-sym.h>.
51413         (__libc_start_main): Do not use BP_SYM.
51414
51415 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51416
51417         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51418         redundant return line.
51419         (norm): Likewise.
51420         (denorm): Likewise.
51421         (dbl_mp): Likewise.
51422         (sub_magnitudes): Likewise.
51423         (__add): Likewise.
51424         (__sub): Likewise.
51425         (__mul): Likewise.
51426         (__inv): Likewise.
51427         (__dvd): Likewise.
51428         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51429         (norm): Likewise.
51430         (denorm): Likewise.
51431         (dbl_mp): Likewise.
51432         (sub_magnitudes): Likewise.
51433         (__add): Likewise.
51434         (__sub): Likewise.
51435         (__mul): Likewise.
51436         (__inv): Likewise.
51437         (__dvd): Likewise.
51438
51439         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51440         instead of __mul.
51441         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51442         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51443         (cc32): Likewise.
51444
51445         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51446         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51447         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51448         of __mul for squares.
51449         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51450         function
51451         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51452         Likewise.
51453         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51454         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51455
51456 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51457
51458         [BZ #13550]
51459         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51460         code.
51461         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51462         prototype or function definition.  Rename ubp_* variables and
51463         parameters.  Remove argv definitions conditional on
51464         [__BOUNDED_POINTERS__].
51465         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51466         * elf/dl-runtime.c (_dl_fixup): Likewise.
51467         * include/set-hooks.h (RUN_HOOK): Likewise.
51468         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51469         definition.
51470         * string/strcpy.c (strcpy): Do not use __unbounded.
51471         * sysdeps/generic/frame.h (struct layout): Likewise.
51472         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51473         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51474         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51475         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51476         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51477         (__backtrace): Likewise.
51478         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51479         use __ptrvalue.
51480         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51481         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51482         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51483         Likewise.
51484         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51485         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51486         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51487         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51488         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51489         Do not use __unbounded.
51490         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51491         Rename __unboundedrlimits parameter to rlimits in prototype.
51492         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51493         Do not use __unbounded.
51494         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51495         not use __ptrvalue.
51496         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51497         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51498         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51499         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51500         __ptrvalue or __unbounded.
51501         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51502         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51503         use __unbounded.
51504         (__new_msgctl): Do not use __ptrvalue.
51505         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51506         __unbounded.
51507         (__libc_msgrcv): Do not use __ptrvalue.
51508         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51509         startup_info): Do not use __unbounded.
51510         (__libc_start_main): Likewise.  Rename ubp_* variables and
51511         parameters.  Remove argv definitions conditional on
51512         [__BOUNDED_POINTERS__].
51513         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51514         __ptrvalue.
51515         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51516         use __unbounded.
51517         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51518         or __ptrvalue.
51519         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51520         use __unbounded.
51521         (__new_shmctl): Do not use __ptrvalue.
51522         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51523         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51524         Likewise.
51525         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51526         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51527         (__libc_sigaction): Likewise.
51528         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51529         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51530         Likewise.
51531         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51532
51533 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51534
51535         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51536
51537         * string/mempcpy.c: Implement by calling memcpy.
51538
51539 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51540
51541         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51542
51543         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51544         evaluation.
51545
51546         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51547         values in the mantissa.
51548
51549         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51550         minimize writes to Z.
51551         (sub_magnitudes): Simplify code a bit.
51552
51553 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51554
51555         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51556         from the message.  The linker prefixes all warnings with that already.
51557
51558 2013-02-12  Andreas Schwab  <schwab@suse.de>
51559
51560         [BZ #15078]
51561         * posix/regexec.c (extend_buffers): Add parameter min_len.
51562         (check_matching): Pass minimum needed length.
51563         (clean_state_log_if_needed): Likewise.
51564         (get_subexp): Likewise.
51565         * posix/Makefile (tests): Add bug-regex34.
51566         (bug-regex34-ENV): Define.
51567         * posix/bug-regex34.c: New file.
51568
51569         [BZ #11561]
51570         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51571         elements compare against the byte sequence of it, not its name.
51572         * posix/Makefile (tests): Add bug-regex35.
51573         (bug-regex35-ENV): Define.
51574         * posix/bug-regex35.c: New file.
51575
51576 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51577
51578         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51579         comment.
51580         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51581         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51582         (CHECK_EOL): Add undef.
51583
51584 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51585
51586         * bits/stdlib-bsearch.h: New file.
51587         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51588         * stdlib/stdlib.h: Likewise.
51589
51590 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51591
51592         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51593         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51594         declaration.
51595         * manual/search.texi (Array Search Function): Add missing const in
51596         lfind prototype.
51597         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51598         declaration to use rlim_t.
51599         (Basic Scheduling Functions): Remove erroneous const from
51600         sched_getparam prototype.  Remove erroneous * from
51601         sched_get_priority_max and sched_get_priority_min prototypes.
51602         (Resource Usage): Fix summary @comment on vtimes to refer to
51603         sys/vtimes.h rather than vtimes.h.
51604         Add missing *s in vtimes prototype.
51605         (Limits on Resources): Fix ulimit prototype to return long int.
51606         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51607         prototypes to use long int rather than double.
51608         (BSD Random): Fix initstate and setstate to use char *, not void *.
51609         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51610         prototype to make second argument 'struct aiocb64 *const[]'.
51611         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51612         (Status of AIO Operations): Remove erroneous const in aio_return and
51613         aio_return64 prototypes.
51614         (Synchronizing I/O): Fix sync prototype to return void.
51615         * manual/startup.texi (Suboptions): Remove an erroneous const in
51616         getsubopt prototype.
51617         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51618         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51619         use size_t rather than int.
51620         (Scanning All Users): Likewise for getpwent_r.
51621         (Setting Groups): Add missing const to setgroups prototype.
51622         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51623         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51624         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51625         'const void *' rather than 'const char *'.
51626         (Host Address Functions): Likewise for inet_ntop.
51627         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51628         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51629         ssize_t for return value.
51630         (Sending Data): Likewise for send, sendto, sendmsg.
51631         (Socket Option Functions): Add a missing const in setsockopt prototype.
51632         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51633         use wchar_t for the argument.
51634         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51635         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51636         take no arguments.
51637         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51638         double/float/long double for second argument.
51639         Fix return types of significand, significandf, significandl.
51640         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51641         argument in fchmod prototype.
51642         (File Owner): Use uid_t and gid_t in fchown prototype.
51643         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51644         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51645         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51646         use 'const struct dirent **' as argument types to CMP function pointer
51647         argument.
51648         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51649         (File Times): Fix summary magic @comment for struct utimbuf and utime
51650         to refer to utime.h, not time.h.
51651         * manual/string.texi (Argz Functions): Add missing const in
51652         argz_extract and argz_next prototypes.
51653         (Finding Tokens in a String): Likewise for basename.
51654         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51655         (Copying and Concatenation): Fix typo in wmemmove prototype.
51656         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51657         (Signal Stack): Remove erroneous const in sigstack prototype.
51658         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51659         prototype.
51660         (Simple Calendar Time): Likewise for stime.
51661         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51662         prototype.
51663         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51664         say sys/sysctl.h instead.
51665         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51666         and vsyslog prototypes.
51667
51668 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51669
51670         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51671         Remove.
51672
51673 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51674
51675         * misc/sys/mman.h: Fix typo in mremap comment.
51676
51677 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51678
51679         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51680         the '\0' terminator.
51681
51682 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51683
51684         [BZ #13550]
51685         * debug/segfault.c: Don't include <bp-checks.h>.
51686         * sysdeps/generic/bp-checks.h: Remove file.
51687         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51688         (__GETDENTS): Don't use CHECK_N.
51689         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51690         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51691         (__getgroups): Don't use CHECK_N.
51692         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51693         (setgroups): Don't use CHECK_N.
51694         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51695         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51696         (__libc_msgrcv): Don't use CHECK_N.
51697         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51698         (__libc_msgsnd): Don't use CHECK_N.
51699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51700         <bp-checks.h>.
51701         (__libc_pread): Don't use CHECK_N.
51702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51703         include <bp-checks.h>.
51704         (__libc_pread64): Don't use CHECK_N.
51705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51706         include <bp-checks.h>.
51707         (__libc_pwrite): Don't use CHECK_N.
51708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51709         include <bp-checks.h>.
51710         (__libc_pwrite64): Don't use CHECK_N.
51711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51712         <bp-checks.h>.
51713         (__libc_pread): Don't use CHECK_N.
51714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51715         include <bp-checks.h>.
51716         (__libc_pread64): Don't use CHECK_N.
51717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51718         include <bp-checks.h>.
51719         (__libc_pwrite): Don't use CHECK_N.
51720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51721         include <bp-checks.h>.
51722         (__libc_pwrite64): Don't use CHECK_N.
51723         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51724         (do_pread): Don't use CHECK_N.
51725         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51726         (do_pread64): Don't use CHECK_N.
51727         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51728         (do_pwrite): Don't use CHECK_N.
51729         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51730         (do_pwrite64): Don't use CHECK_N.
51731         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51732         (__libc_readv): Don't use CHECK_N.
51733         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51734         (semop): Don't use CHECK_N.
51735         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51736         <bp-checks.h>.
51737         (semtimedop): Don't use CHECK_N.
51738         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51739         (__libc_pread): Don't use CHECK_N.
51740         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51741         <bp-checks.h>.
51742         (__libc_pread64): Don't use CHECK_N.
51743         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51744         <bp-checks.h>.
51745         (__libc_pwrite): Don't use CHECK_N.
51746         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51747         <bp-checks.h>.
51748         (__libc_pwrite64): Don't use CHECK_N.
51749         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51750         <bp-checks.h>.
51751         (__libc_msgrcv): Don't use CHECK_N.
51752         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51753         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51754         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51755         (__libc_writev): Don't use CHECK_N.
51756
51757 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51758
51759         * string/strcpy.c: Removed unused variable.
51760
51761         * Makeconfig (+sysdep-includes): Define with := rather than =.
51762         Use an existing include/ subdir of each sysdeps dir before it.
51763
51764 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51765
51766         * nscd/connection.c (register_traced_file): Comment function.
51767         [HAVE_INOTIFY] (union __inev): Define.
51768         [HAVE_INOTIFY] (inotify_check_files): New function.
51769         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51770         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51771         clear_db_cache.
51772         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51773
51774 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51775
51776         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
51777         loaded if not already and that a failure is permanent.
51778
51779 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51780
51781         [BZ #15006]
51782         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
51783         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
51784
51785 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51786
51787         [BZ #13550]
51788         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
51789         (CHECK_1_NULL_OK): Likewise.
51790         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
51791         (__fxstat): Do not use CHECK_1.
51792         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
51793         <bp-checks.h>.
51794         (___fxstat64): Do not use CHECK_1.
51795         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
51796         <bp-checks.h>.
51797         (__fxstatat): Do not use CHECK_1.
51798         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
51799         <bp-checks.h>.
51800         (__fxstatat64): Do not use CHECK_1.
51801         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
51802         <bp-checks.h>.
51803         (__fxstat): Do not use CHECK_1.
51804         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
51805         <bp-checks.h>.
51806         (__fxstatat): Do not use CHECK_1.
51807         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
51808         <bp-checks.h>.
51809         (__getresgid): Do not use CHECK_1.
51810         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
51811         <bp-checks.h>.
51812         (__getresuid): Do not use CHECK_1.
51813         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
51814         <bp-checks.h>.
51815         (__lxstat): Do not use CHECK_1.
51816         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
51817         <bp-checks.h>.
51818         (__old_msgctl): Do not use CHECK_1.
51819         (__new_msgctl): Likewise.
51820         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
51821         <bp-checks.h>.
51822         (__new_setrlimit): Do not use CHECK_1.
51823         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
51824         <bp-checks.h>.
51825         (__old_shmctl): Do not use CHECK_1.
51826         (__new_shmctl): Likewise.
51827         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
51828         <bp-checks.h>.
51829         (__xstat): Do not use CHECK_1.
51830         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
51831         (__lxstat): Do not use CHECK_1.
51832         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
51833         <bp-checks.h>.
51834         (___lxstat64): Do not use CHECK_1.
51835         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
51836         (__old_msgctl): Do not use CHECK_1.
51837         (__new_msgctl): Likewise.
51838         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
51839         <bp-checks.h>.
51840         (__gettimeofday): Do not use CHECK_1.
51841         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
51842         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
51843         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
51844         <bp-checks.h>.
51845         (__gettimeofday): Do not use CHECK_1.
51846         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
51847         (__old_shmctl): Do not use CHECK_1_NULL_OK.
51848         (__new_shmctl): Do not use CHECK_1.
51849         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
51850         <bp-checks.h>.
51851         (do_sigtimedwait): Do not use CHECK_1.
51852         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
51853         <bp-checks.h>.
51854         (do_sigwaitinfo): Do not use CHECK_1.
51855         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
51856         <bp-checks.h>.
51857         (msgctl): Do not use CHECK_1.
51858         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
51859         <bp-checks.h>.
51860         (shmctl): Do not use CHECK_1.
51861         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
51862         (ustat): Do not use CHECK_1.
51863         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
51864         <bp-checks.h>.
51865         (__fxstat): Do not use CHECK_1.
51866         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
51867         <bp-checks.h>.
51868         (__fxstatat): Do not use CHECK_1.
51869         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
51870         <bp-checks.h>.
51871         (__lxstat): Do not use CHECK_1.
51872         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
51873         <bp-checks.h>.
51874         (__xstat): Do not use CHECK_1.
51875         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
51876         (__xstat): Do not use CHECK_1.
51877         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
51878         (___xstat64): Do not use CHECK_1.
51879
51880         [BZ #13550]
51881         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
51882         definitions.
51883         (CHECK_BOUNDS_HIGH): Likewise.
51884         * string/strcpy.c: Do not include <bp-checks.h>.
51885         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
51886
51887 2013-02-07  Roland McGrath  <roland@hack.frob.com>
51888
51889         * nscd/nscd-client.h (__nscd_drop_map_ref):
51890         Add __attribute__ ((unused)).
51891         * nis/nss-nisplus.h (niserr2nss): Likewise.
51892
51893         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
51894         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
51895
51896         * csu/libc-tls.c (init_static_tls, init_slotinfo):
51897         Remove inline keyword.
51898         * include/rounding-mode.h (round_away): Likewise.
51899         * libio/wfileops.c (adjust_wide_data): Likewise.
51900         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
51901         (__m128i_strloadu_tolower): Likewise.
51902         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
51903         (__m128i_strloadu_tolower): Likewise.
51904         * time/mktime.c (ydhms_diff): Likewise.
51905         * locale/elem-hash.h (elem_hash): Likewise.
51906         * locale/setlocale.c (setdata): Likewise.
51907         * posix/regex_internal.h (re_string_char_size_at): Likewise.
51908         (re_string_wchar_at): Likewise.
51909         (bitset_not, bitset_merge, bitset_mask): Likewise.
51910         [!(__GNUC__ > 3)] (inline): Remove macro.
51911         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
51912         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
51913         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
51914         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
51915         * string/memcmp.c (memcmp_bytes): Likewise.
51916         * locale/programs/locarchive.c (compute_hashval): Likewise.
51917         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
51918         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
51919         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
51920         * nss/getent.c (print_rpc, print_protocols): Likewise.
51921         (print_passwd, print_group, print_aliases): Likewise.
51922         * nis/nss-nisplus.h (niserr2nss): Likewise.
51923         * nscd/connections.c (restart_p): Likewise.
51924         Change return type to bool.
51925
51926 2013-02-05  Roland McGrath  <roland@hack.frob.com>
51927
51928         * Makeconfig (all-Depend-files): Add existing
51929         $(sorted-subdirs:=/Depend) files.
51930         (all-subdirs): Remove nss.
51931         * sysdeps/unix/inet/Subdirs: Add it here instead.
51932         * hesiod/Depend: New file.
51933
51934         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
51935         instead of calling alloca.
51936
51937         * io/lseek.c (__lseek): Rename to __libc_lseek.
51938         Define __lseek as an alias.
51939
51940         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
51941
51942 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
51943
51944         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
51945         else clause and remove check for non-standard endianness.
51946
51947 2013-02-04  David S. Miller  <davem@davemloft.net>
51948
51949         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51950
51951 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
51952
51953         [BZ #13550]
51954         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
51955         (__ubp_memchr): Remove prototype.
51956         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
51957         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51958         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
51959         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51960         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
51961         Remove alias.
51962         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
51963         (__ubp_memchr): Likewise.
51964         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
51965         (__ubp_memchr): Likewise.
51966         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
51967         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
51968         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
51969         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
51970         CHECK_STRING.
51971         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51972         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
51973         (__getcwd): Do not use CHECK_STRING.
51974         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
51975         <bp-checks.h>.
51976         (__real_chown): Do not use CHECK_STRING.
51977         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
51978         <bp-checks.h>.
51979         (fchownat): Do not use CHECK_STRING.
51980         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
51981         CHECK_STRING.
51982         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
51983         <bp-checks.h>.
51984         (__lchown): Do not use CHECK_STRING.
51985         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51986         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51987         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51988         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
51989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
51990         include <bp-checks.h>.
51991         (truncate64): Do not use CHECK_STRING.
51992         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
51993         <bp-checks.h>.
51994         (__real_chown): Do not use CHECK_STRING.
51995         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
51996         <bp-checks.h>.
51997         (__lchown): Do not use CHECK_STRING.
51998         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
51999         <bp-checks.h>.
52000         (__chown): Do not use CHECK_STRING.
52001         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52002         <bp-checks.h>.
52003         (truncate64): Do not use CHECK_STRING.
52004         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52005         Likewise.
52006         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52007         (__xmknod): Do not use CHECK_STRING.
52008         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52009         <bp-checks.h>.
52010         (__xmknodat): Do not use CHECK_STRING.
52011         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52012         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52013
52014 2013-02-04  Andreas Schwab  <schwab@suse.de>
52015
52016         [BZ #14142]
52017         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52018         * include/netdb.h: Likewise for h_errno.
52019         * elf/tst-stackguard1.c: Include <tls.h>.
52020
52021 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52022
52023         * elf/link.h (struct link_map): Extend the l_addr comment.
52024         * include/link.h (struct link_map): Likewise.
52025
52026 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52027
52028         [BZ #13550]
52029         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52030         (BOUNDED_1): Remove macro.
52031         * debug/backtrace.c: Don't include <bp-checks.h>.
52032         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52033         (__backtrace): Likewise.
52034         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52035         <bp-checks.h>.
52036         (__backtrace): Don't use BOUNDED_1.
52037         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52038         <bp-checks.h>.
52039         (__backtrace): Don't use BOUNDED_1.
52040         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52041         (__backtrace): Don't use BOUNDED_1.
52042         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52043         (shmat): Don't use BOUNDED_N.
52044
52045 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52046
52047         [BZ #13550]
52048         * sysdeps/generic/bp-start.h: Remove file.
52049         * csu/libc-start.c: Don't include <bp-start.h>.
52050         (LIBC_START_MAIN): Set up __environ directly instead of using
52051         INIT_ARGV_and_ENVIRON.
52052         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52053         <bp-start.h>.
52054
52055         [BZ #13550]
52056         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52057         definitions.
52058         (CHECK_FCNTL): Likewise.
52059         (CHECK_N_PAGES): Likewise.
52060
52061         [BZ #13550]
52062         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52063         definitions.
52064         (CHECK_SIGSET_NULL_OK): Likewise.
52065         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52066         <bp-checks.h>.
52067         (sigpending): Don't use CHECK_SIGSET.
52068         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52069         <bp-checks.h>.
52070         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52071         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52072         <bp-checks.h>.
52073         (do_sigsuspend): Don't use CHECK_SIGSET.
52074         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52075         use CHECK_SIGSET.
52076         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52077         (do_sigwait): Don't use CHECK_SIGSET.
52078         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52079         use CHECK_SIGSET.
52080         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52081         include <bp-checks.h>.
52082         (sigpending): Don't use CHECK_SIGSET.
52083         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52084         include <bp-checks.h>.
52085         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52086         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52087         <bp-checks.h>.
52088         (sigpending): Don't use CHECK_SIGSET.
52089         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52090         <bp-checks.h>.
52091         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52092
52093         [BZ #13550]
52094         * sysdeps/generic/bp-semctl.h: Remove file.
52095         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52096         <bp-checks.h> and <bp-semctl.h>.
52097         (__old_semctl): Don't use CHECK_SEMCTL.
52098         (__new_semctl): Likewise.
52099         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52100         and <bp-semctl.h>.
52101         (__old_semctl): Don't use CHECK_SEMCTL.
52102         (__new_semctl): Likewise.
52103         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52104         <bp-checks.h> and <bp-semctl.h>.
52105         (__old_semctl): Don't use CHECK_SEMCTL.
52106         (__new_semctl): Likewise.
52107         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52108         <bp-checks.h> and <bp-semctl.h>.
52109         (semctl): Don't use CHECK_SEMCTL.
52110
52111         [BZ #13550]
52112         * Makerules (elide-bp-thunks): Remove variable.
52113         (elide-routines.oS): Don't use $(elide-bp-thunks).
52114         (elide-routines.os): Likewise.
52115         (elide-routines.o): Likewise.
52116         (elide-routines.op): Likewise.
52117         (elide-routines.og): Likewise.
52118         (objects): Don't use $(bp-thunks).
52119         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52120         include.
52121         (common-generated): Do not add s-proto-bp.d.
52122         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52123         (int): Likewise.
52124         (typ): Likewise.
52125         Do not generate makefile rules for bounded-pointer thunks.
52126         * sysdeps/generic/bp-thunks.h: Remove file.
52127         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52128         * sysdeps/unix/s-proto-bp.S: Likewise.
52129
52130         [BZ #15062]
52131         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52132         parts of result separately when argument is not close to line from
52133         -i to i and one part of argument is small.
52134         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52135         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52136         * math/libm-test.inc (cacos_test): Add more tests.
52137         (casin_test): Likewise.
52138         (casinh_test): Likewise.
52139         * sysdeps/i386/fpu/libm-test-ulps: Update.
52140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52141
52142 2013-01-31  David S. Miller  <davem@davemloft.net>
52143
52144         * po/de.po: Update from translation team.
52145
52146 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52147
52148         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52149
52150 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52151
52152         * configure.in (_AC_PROG_CC_C89): New definition.
52153         * configure: Regenerate.
52154
52155         * configure.in (AC_PROG_CPP): New definition.
52156         * configure: Regenerate.
52157
52158 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52159
52160         * debug/tst-backtrace.h: New file.
52161         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52162         (ret): Remove variable.
52163         (x): Likewise.
52164         (FAIL): Remove macro.
52165         (NO_INLINE): Likewise.
52166         (fn1): Use match function instead of strstr.
52167         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52168         (ret): Remove variable.
52169         (x): Likewise.
52170         (FAIL): Remove macro.
52171         (NO_INLINE): Likewise.
52172         (fn): Use match function instead of strstr.
52173         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52174         (ret): Remove variable.
52175         (x): Likewise.
52176         (FAIL): Remove macro.
52177         (NO_INLINE): Likewise.
52178         (handle_signal): Use match function instead of strstr.
52179         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52180         (ret): Remove variable.
52181         (x): Likewise.
52182         (FAIL): Remove macro.
52183         (NO_INLINE): Likewise.
52184         (handle_signal): Use match function instead of strstr.
52185
52186 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52187
52188         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52189
52190 2013-01-23  David S. Miller  <davem@davemloft.net>
52191
52192         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52193         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52194         argument of CAS if possible.
52195         * sysdeps/sparc/sparc64/bits/atomic.h
52196         (__arch_compare_and_exchange_val_32_acq): Likewise.
52197         (__arch_compare_and_exchange_val_64_acq): Likewise.
52198
52199 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52200
52201         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52202         * sysdeps/posix/ulimit.c: ... this.
52203         Include <limits.h>.
52204         * sysdeps/unix/bsd/ulimit.c: Remove file.
52205
52206 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52207
52208         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52209         (LDFLAGS-tst-array5): Likewise.
52210
52211 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52212
52213         [BZ #15036]
52214         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52215         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52216         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52217         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52218
52219 2013-01-21  David S. Miller  <davem@davemloft.net>
52220
52221         * sysdeps/sparc/backtrace.c: New file.
52222         * sysdeps/sparc/sparc32/backtrace.h: New file.
52223         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52224         * sysdeps/sparc/sparc64/backtrace.h: New file.
52225         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52226         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52227         -funwind-tables.
52228
52229 2013-01-21  Andreas Schwab  <schwab@suse.de>
52230
52231         [BZ #15020]
52232         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52233         closed its stdout.
52234
52235 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52236
52237         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52238         "mpa2.h".
52239         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52240
52241 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52242             Mark Mitchell  <mark@codesourcery.com>
52243             Tom de Vries  <tom@codesourcery.com>
52244             Paul Pluzhnikov  <ppluzhnikov@google.com>
52245
52246         * debug/tst-backtrace2.c: New file.
52247         * debug/tst-backtrace3.c: Likewise.
52248         * debug/tst-backtrace4.c: Likewise.
52249         * debug/tst-backtrace5.c: Likewise.
52250         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52251         (CFLAGS-tst-backtrace3.c): Likewise.
52252         (CFLAGS-tst-backtrace4.c): Likewise.
52253         (CFLAGS-tst-backtrace5.c): Likewise.
52254         (LDFLAGS-tst-backtrace2): Likewise.
52255         (LDFLAGS-tst-backtrace3): Likewise.
52256         (LDFLAGS-tst-backtrace4): Likewise.
52257         (LDFLAGS-tst-backtrace5): Likewise.
52258         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52259         tst-backtrace4 and tst-backtrace5.
52260
52261 2013-01-18  Anton Blanchard  <anton@samba.org>
52262             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52263
52264         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52265         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52266         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52267         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52269         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52270         "+r" and remove output regs list as redundant.  Add explicit inline
52271         asm to specify register of return val to work around compiler codegen
52272         bug.  Remove (int) cast on return value.  Add return type parameter to
52273         use in macro so that this macro does not truncate return value for
52274         64-bit values.
52275         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52276         pass to INTERNAL_VSYSCALL_NCS.
52277         (INLINE_VSYSCALL): Add 'long int' as return type to
52278         INTERNAL_VSYSCALL_NCS macro invocation.
52279         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52280         INTERNAL_VSYSCALL_NCS macro invocation.
52281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52282
52283 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52284
52285         [BZ #14496]
52286         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52287         Fix application of SIMD FP exception mask.
52288
52289         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52290         mp_no from a power of two.
52291         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52292         __mpexp_twomm1.  Use __pow_mp.
52293
52294         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52295         multiplication.
52296
52297 2013-01-17  David S. Miller  <davem@davemloft.net>
52298
52299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52300
52301 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52302
52303         [BZ #15023]
52304         * include/complex.h: Condition contents on [!_COMPLEX_H].
52305         (__kernel_casinhf): New prototype.
52306         (__kernel_casinh): Likewise.
52307         (__kernel_casinhl): Likewise.
52308         * math/Makefile (libm_calls): Add k_casinh.
52309         * math/k_casinh.c: New file.
52310         * math/k_casinhf.c: Likewise.
52311         * math/k_casinhl.c: Likewise.
52312         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52313         finite nonzero arguments.
52314         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52315         finite nonzero arguments.
52316         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52317         finite nonzero arguments.
52318         * math/s_casinh.c: Do not include <float.h>.
52319         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52320         * math/s_casinhf.c: Do not include <float.h>.
52321         (__casinhf): Move code for finite nonzero arguments to
52322         k_casinhf.c.
52323         * math/s_casinhl.c: Do not include <float.h>.
52324         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52325         redefine.
52326         (__casinhl): Move code for finite nonzero arguments to
52327         k_casinhl.c.
52328         * math/libm-test.inc (cacos_test): Add more tests.
52329         * sysdeps/i386/fpu/libm-test-ulps: Update.
52330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52331
52332 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52333
52334         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52335         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52336         [!HAVE_MREMAP]: Remove [defined linux] case.
52337         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52338
52339 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52340
52341         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52342
52343 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52344
52345         * elf/elf.h (R_386_SIZE32): New relocation.
52346         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52347         R_386_SIZE32.
52348         (elf_machine_rela): Likewise.
52349         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52350         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52351
52352 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52353
52354         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52355         (FP_FAST_FMA): Do not define.
52356         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52357         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52358         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52359         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52360         !_SOFT_FLOAT]: Likewise.
52361         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52362         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52363         value.
52364         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52365         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52366         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52367         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52368         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52369         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52370         file.
52371
52372 2013-01-16  Andreas Schwab  <schwab@suse.de>
52373
52374         [BZ #14327]
52375         * include/stdlib.h (__mktemp): Add declaration.
52376         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52377         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52378
52379 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52380
52381         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52382         definitions.
52383         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52384         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52385         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52386         definitions here.
52387         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52388         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52389         definitions.
52390         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52391         and ONE.
52392         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52393         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52394         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52395         definitions.
52396         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52397         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52398         definitions.
52399         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52400
52401         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52402
52403 2013-01-15  David S. Miller  <davem@davemloft.net>
52404
52405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52406         trunc{,f} to libm-sysdep_routes.
52407         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52409         file.
52410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52412         file.
52413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52414         file.
52415         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52416         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52417         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52418         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52419         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52420         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52421         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52422         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52423
52424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52425         nearbyint{,f} to libm-sysdep_routes.
52426         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52428         New file.
52429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52430         file.
52431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52432         New file.
52433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52434         file.
52435         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52436         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52437         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52438         file.
52439         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52440         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52441         file.
52442         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52443         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52444         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52445
52446         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52447         libc_feholdexcept and libc_fesetenv.
52448
52449 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52450
52451         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52452
52453 2013-01-14  David S. Miller  <davem@davemloft.net>
52454
52455         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52456         (SPARC_ASM_VIS2_IFUNC): Likewise.
52457         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52459         use of 'siam' instruction.
52460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52461         Likewise.
52462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52463         Likewise.
52464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52465         Likewise.
52466         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52468         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52469         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52471         file.
52472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52473         file.
52474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52475         file.
52476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52477         file.
52478         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52479         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52480         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52481         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52483         new VIS2 routines.
52484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52487         Likewise.
52488         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52489         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52490         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52491         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52493         routines to libm-sysdep_routines.
52494         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52495
52496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52497         fdim/fdimf to libm-sysdep_routines.
52498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52499         file.
52500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52502         file.
52503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52505         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52506         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52507         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52508         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52509         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52510
52511 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52512
52513         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52514         to optimize copies.
52515
52516         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52517         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52518         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52519
52520         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52521         local variable MPTWO.
52522         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52523         Likewise.
52524
52525 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52526
52527         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52528         GLOB_NOESCAPE.
52529
52530 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52531
52532         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52533
52534 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52535
52536         * manual/pattern.texi (glob_t): Document gl_flags.
52537         (glob64_t): Likewise.
52538
52539 2013-01-11  David S. Miller  <davem@davemloft.net>
52540
52541         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52542         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52543         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52544         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52545         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52546         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52547         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52548         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52549         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52550         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52551         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52552         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52553         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52554
52555         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52556         sparc V9 rather than using V8 code.
52557         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52558         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52559
52560         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52561         Move to...
52562         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52563         Here.
52564
52565 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52566
52567         [BZ #14941]
52568         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52569         not in the main loop.
52570         * configure: Regenerated.
52571
52572 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52573
52574         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52575         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52576         to just #else.
52577         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52578         [!__GLIBC_HAVE_LONG_LONG] case.
52579         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52580         condition to just #else.
52581         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52582         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52583         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52584         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52585         unconditional.
52586         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52587         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52588         #elif condition to just #else.
52589         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52590         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52591         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52592         #elif condition to just #else.
52593
52594 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52595
52596         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52597         (EF_MIPS_ARCH_64): Fix value.
52598         (EF_MIPS_ARCH_32R2): New.
52599         (EF_MIPS_ARCH_64R2): New.
52600
52601 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52602
52603         * Makeconfig (+link-pie-before-libc): New.
52604         (+link-pie-after-libc): Likewise.
52605         (+link-pie-tests): Likewise.
52606         (+link-pie): Rewritten.
52607         (link-before-libc): Remove $(config-LDFLAGS).
52608         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52609         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52610         (config-LDFLAGS): Renamed to ...
52611         (rtld-LDFLAGS): This.
52612         (rtld-tests-LDFLAGS): New macro.
52613         (link-libc-rpath-link): Likewise.
52614         (link-libc-tests-rpath-link): Likewise.
52615         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52616         (link-libc): Prepand $(link-libc-rpath-link).
52617         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52618         (test-program-prefix): New macro.
52619         (test-via-rtld-prefix): Likewise.
52620         (test-program-cmd): Likewise.
52621         (host-test-program-cmd): Likewise.
52622         * Makefile ($(common-objpfx)testrun.sh): Replace
52623         $(run-program-prefix) with $(test-program-prefix).
52624         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52625         $(rtld-LDFLAGS).
52626         ($(common-objpfx)shlib.lds): Likewise.
52627         (build-module-helper): Likewise.
52628         ($(common-objpfx)format.lds): Likewise.
52629         * Rules (binaries-pie-tests): New.
52630         (binaries-pie-notests): Likewise.
52631         (binaries-pie): Rewritten.
52632         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52633         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52634         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52635         (make-test-out): Replace $(host-built-program-cmd) with
52636         $(host-test-program-cmd).
52637         * config.make.in (build-hardcoded-path-in-tests): New variable.
52638         * configure.in (--enable-hardcoded-path-in-tests): New configure
52639         option.
52640         (hardcoded_path_in_tests): New AC_SUBST.
52641         * configure: Regenerated.
52642         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52643         $(built-program-cmd) with $(test-program-cmd).
52644         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52645         (test_program_cmd): This.
52646         * elf/Makefile ($(objpfx)order.out): Run test with
52647         $(test-program-prefix).
52648         ($(objpfx)order2.out): Likewise.
52649         ($(objpfx)tst-initorder.out): Likewise.
52650         ($(objpfx)tst-initorder2.out): Likewise.
52651         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52652         $(test-program-cmd).
52653         ($(objpfx)tst-array1-static.out): Likewise.
52654         ($(objpfx)tst-array2.out): Likewise.
52655         ($(objpfx)tst-array3.out): Likewise.
52656         ($(objpfx)tst-array4.out): Likewise.
52657         ($(objpfx)tst-array5.out): Likewise.
52658         ($(objpfx)tst-array5-static.out): Likewise.
52659         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52660         $(test-program-cmd).
52661         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52662         $(run-program-prefix) with $(test-program-prefix).
52663         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52664         (test_program_prefix): This.
52665         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52666         $(run-program-prefix) with $(test-program-prefix).
52667         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52668         (test_program_prefix): This.
52669         * iconvdata/tst-tables.sh: Likewise.
52670         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52671         $(run-program-prefix) with $(test-program-prefix).
52672         ($(objpfx)tst-translit.out): Likewise.
52673         ($(objpfx)tst-gettext2.out): Likewise.
52674         ($(objpfx)tst-gettext4.out): Likewise.
52675         ($(objpfx)tst-gettext6.out): Likewise.
52676         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52677         (test_program_prefix): This.
52678         * intl/tst-gettext2.sh: Likewise.
52679         * intl/tst-gettext4.sh  Likewise.
52680         * intl/tst-gettext6.sh: Likewise.
52681         * intl/tst-translit.sh: Likewise.
52682         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52683         with $(test-program-cmd).
52684         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52685         $(run-program-prefix) with $(test-program-prefix).
52686         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52687         (test_program_prefix): This.
52688         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52689         $(run-program-prefix) with $(test-program-prefix).
52690         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52691         (test_program_prefix): This.
52692         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52693         * posix/Makefile ($(objpfx)globtest.out): Replace
52694         $(run-via-rtld-prefix) and $(test-wrapper) with
52695         $(test-program-prefix) and $(test-via-rtld-prefix).
52696         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52697         $(test-program-prefix).
52698         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52699         $(host-test-program-cmd).
52700         (tst-spawn-ARGS): Likewise.
52701         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52702         $(test-program-prefix).
52703         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52704         (test_via_rtld_prefix): This.
52705         (test_wrapper): Renamed to ...
52706         (test_program_prefix): This.
52707         (run_program_prefix): Replaced by test_program_prefix.
52708         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52709         (test_program_prefix): This.
52710         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52711         with $(host-test-program-cmd).
52712         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52713         $(run-program-prefix) with $(test-program-prefix).
52714         ($(objpfx)tst-printf.out): Likewise.
52715         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52716         $(test-program-cmd).
52717         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52718         (test_program_prefix): This.
52719         * stdio-common/tst-unbputc.sh: Likewise.
52720         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52721         $(run-program-prefix) with $(test-program-prefix).
52722         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52723         (test_program_prefix): This.
52724         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52725         $(built-program-cmd) with $(test-program-cmd).
52726
52727 2013-01-11  Andreas Jaeger  <aj@suse.de>
52728
52729         [BZ #15003]
52730         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52731         value. Sync with Linux 3.7.
52732
52733 2013-01-10  David S. Miller  <davem@davemloft.net>
52734
52735         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52736         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52737         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52738
52739 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52740
52741         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52742         never set.
52743         * configure: Regenerated.
52744
52745 2013-01-10  David S. Miller  <davem@davemloft.net>
52746
52747         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52748         sparc V9 rather than using V8 code.
52749         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52750         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52751
52752 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52753
52754         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52755         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52756         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52757         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52758         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52759         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52760         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52761         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52762         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52763         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52764         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52765         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52766         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52767         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52768         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52769         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52770         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52771         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52772         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52773         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52774         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52775         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
52776         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
52777         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
52778         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
52779         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
52780         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
52781
52782 2013-01-10  David S. Miller  <davem@davemloft.net>
52783
52784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52785
52786 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52787
52788         * posix/Makefile (tests-static): New variable.
52789         (tests): Add $(tests-static).
52790         (tst-exec-static-ARGS): New variable.
52791         (tst-spawn-static-ARGS): Likewise.
52792         * posix/tst-exec-static.c: New file.
52793         * posix/tst-spawn-static.c: Likewise.
52794         * posix/tst-exec.c: Support run directly.
52795         * posix/tst-spawn.c: Likewise.
52796
52797 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
52798
52799         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
52800         long.
52801         * math/bits/mathcalls.h (llrint): Likewise.
52802         (llround): Likewise.
52803         * stdlib/stdlib.h (struct drand48_data): Likewise.
52804         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
52805         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
52806         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
52807         Likewise.
52808         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
52809         Likewise.
52810         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
52811         (elf_greg_t): Likewise.
52812         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
52813         (__jmp_buf): Likewise.
52814         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
52815         definitions.
52816         (llrint): Likewise, for all definitions.
52817         (llrintl): Likewise.
52818
52819         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
52820         Remove [__GNUC__] condition.
52821         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
52822         condition to just [__USE_ISOC99].
52823         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
52824
52825 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52826
52827         [BZ #14200]
52828         * sysdeps/unix/sysv/linux/x86/bits/environments.h
52829         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
52830         defined.
52831         (_POSIX_V6_ILP32_OFF32): Likewise.
52832         (_XBS5_ILP32_OFF32): Likewise.
52833         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
52834         (__ILP32_OFFBIG_LDFLAGS): Likewise.
52835
52836 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52837
52838         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
52839
52840         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
52841         doubles __mpexp_twomm1.  Adjust usage.
52842         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
52843         Remove.
52844
52845 2013-01-10  Andreas Schwab  <schwab@suse.de>
52846
52847         [BZ #14964]
52848         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
52849         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
52850
52851 2013-01-09  David S. Miller  <davem@davemloft.net>
52852
52853         [BZ #15003]
52854         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
52855         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
52856         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
52857         (TCP_FASTOPEN): Define.
52858         (tcp_repair_opt): New structure.
52859         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
52860         enum values.
52861         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
52862         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
52863         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
52864         (tcp_cookie_transactions): New structure.
52865
52866 2013-01-09  Anton Blanchard  <anton@samba.org>
52867
52868         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
52869         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
52870         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
52871         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
52872
52873 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
52874
52875         * include/features.h (__USE_ANSI): Remove.
52876
52877 2013-01-09  Roland McGrath  <roland@hack.frob.com>
52878
52879         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
52880
52881         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
52882
52883 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
52884
52885         * sysdeps/s390/fpu/libm-test-ulps: Update.
52886
52887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52888
52889         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
52890         (__acr): Likewise.
52891         (__cpy): Likewise.
52892         (norm): Likewise.
52893         (denorm): Likewise.
52894         (__mp_dbl): Likewise.
52895         (__dbl_mp): Likewise.
52896         (add_magnitudes): Likewise.
52897         (sub_magnitudes): Likewise.
52898         (__add): Likewise.
52899         (__sub): Likewise.
52900         (__mul): Likewise.
52901         (__inv): Likewise.
52902         (__dvd): Likewise.
52903         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
52904         (__acr): Likewise.
52905         (__cpy): Likewise.
52906         (norm): Likewise.
52907         (denorm): Likewise.
52908         (__mp_dbl): Likewise.
52909         (__dbl_mp): Likewise.
52910         (add_magnitudes): Likewise.
52911         (sub_magnitudes): Likewise.
52912         (__add): Likewise.
52913         (__sub): Likewise.
52914         (__mul): Likewise.
52915         (__inv): Likewise.
52916         (__dvd): Likewise.
52917         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
52918         (__acr): Likewise.
52919         (__cpy): Likewise.
52920         (norm): Likewise.
52921         (denorm): Likewise.
52922         (__mp_dbl): Likewise.
52923         (__dbl_mp): Likewise.
52924         (add_magnitudes): Likewise.
52925         (sub_magnitudes): Likewise.
52926         (__add): Likewise.
52927         (__sub): Likewise.
52928         (__mul): Likewise.
52929         (__inv): Likewise.
52930         (__dvd): Likewise.
52931
52932 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
52933
52934         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
52935         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
52936         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
52937         2 && __USE_EXTERN_INLINES]: Likewise.
52938
52939 2013-01-08  Andreas Jaeger  <aj@suse.de>
52940
52941         [BZ# 14985]
52942         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
52943         Remove.
52944         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52945         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52946
52947 2013-01-07  Anton Blanchard  <anton@samba.org>
52948
52949         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
52950         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52951         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
52952         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52953         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
52954         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52955         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
52956         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
52957         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52958         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
52959         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52960         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52961         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
52962         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52963         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
52964         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52965         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52966         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52967         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
52968         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
52969         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
52970         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
52971         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
52972         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
52973         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
52974         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
52975         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
52976         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52977         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
52978         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
52979         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
52980         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52981         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
52982         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52983         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52984         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
52985         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52986         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
52987         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
52988         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52989         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
52990         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
52991         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52992
52993 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
52994
52995         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
52996         (__MALLOC_PMT): Likewise.
52997         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
52998         [__GNUC__], only on [_LIBC].
52999         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53000         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53001         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53002         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53003         forward declaration.
53004         (realloc_hook_ini): Likewise.
53005         (memalign_hook_ini): Likewise.
53006         (__libc_memalign): Do not use __MALLOC_PMT in variable
53007         declaration.
53008         (__libc_valloc): Likewise.
53009         (__libc_pvalloc): Likewise.
53010         (__libc_calloc): Likewise.
53011         (__posix_memalign): Likewise.
53012
53013         [BZ #14996]
53014         * math/s_casinh.c: Include <float.h>.
53015         (__casinh): Do not do computation with squaring and square root
53016         for large arguments.
53017         * math/s_casinhf.c: Include <float.h>.
53018         (__casinhf): Do not do computation with squaring and square root
53019         for large arguments.
53020         * math/s_casinhl.c: Include <float.h>.
53021         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53022         (__casinhl): Do not do computation with squaring and square root
53023         for large arguments.
53024         * math/libm-test.inc (casin_test): Add more tests.
53025         (casinh_test): Likewise.
53026         * sysdeps/i386/fpu/libm-test-ulps: Update.
53027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53028
53029 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53030
53031         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53032         (__x86_64_raw_data_cache_size): Likewise.
53033         (__x86_64_data_cache_size_half): Likewise.
53034         (__x86_64_raw_data_cache_size_half): Likewise.
53035         (__x86_64_shared_cache_size): Likewise.
53036         (__x86_64_raw_shared_cache_size): Likewise.
53037         (__x86_64_shared_cache_size_half): Likewise.
53038         (__x86_64_raw_shared_cache_size_half): Likewise.
53039         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53040         to ...
53041         (__x86_data_cache_size): This.
53042         (__x86_64_raw_data_cache_size): Renamed to ...
53043         (__x86_raw_data_cache_size): This.
53044         (__x86_64_data_cache_size_half): Renamed to ...
53045         (__x86_data_cache_size_half): This.
53046         (__x86_64_raw_data_cache_size_half): Renamed to ...
53047         (__x86_raw_data_cache_size_half): This.
53048         (__x86_64_shared_cache_size): Renamed to ...
53049         (__x86_shared_cache_size): This.
53050         (__x86_64_raw_shared_cache_size): Renamed to ...
53051         (__x86_raw_shared_cache_size): This.
53052         (__x86_64_shared_cache_size_half): Renamed to ...
53053         (__x86_shared_cache_size_half): This.
53054         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53055         (__x86_raw_shared_cache_size_half): This.
53056         * sysdeps/x86_64/memcpy.S: Updated.
53057         * sysdeps/x86_64/memset.S: Likewise.
53058         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53059         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53060         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53061
53062 2013-01-04  David S. Miller  <davem@davemloft.net>
53063
53064         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53065
53066 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53067
53068         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53069         1 to avoid redefinition warning.
53070         (__USE_GNU): Don't define.
53071         (init_signaling_nan): Protoize.
53072
53073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53074
53075 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53076
53077         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53078         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53079         (__cpymn): Likewise.
53080         (norm): Remove commented code.
53081         (denorm): Likewise.
53082         (__mp_dbl): Likewise.
53083         (__inv): Likewise.
53084         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53085         (__cpymn): Likewise.
53086         (norm): Remove commented code.
53087         (denorm): Likewise.
53088         (__mp_dbl): Likewise.
53089         (__inv): Likewise.
53090
53091         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53092         mp_no value for 1.0 and 2.0.
53093         (norm): Use RADIXI instead of radixi.d.
53094         (denorm): Likewise.
53095         (__mul): Use 0.0 instead of zero.d.
53096         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53097         mp_no value for 1.0 and 2.0.
53098         (norm): Use RADIXI instead of radixi.d.
53099         (denorm): Likewise.
53100         (__mul): Use 0.0 instead of zero.d.
53101
53102 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53103
53104         [BZ #14994]
53105         * math/s_casinh.c (__casinh): Reduce finite argument to first
53106         quadrant then set signs of results at the end.
53107         * math/s_casinhf.c (__casinhf): Likewise.
53108         * math/s_casinhl.c (__casinhl): Likewise.
53109         * math/libm-test.inc (casin_test): Add more tests.
53110         (casinh_test): Likewise.
53111         * sysdeps/i386/fpu/libm-test-ulps: Update.
53112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53113
53114 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53115
53116         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53117
53118         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53119
53120         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53121         declarations.
53122         (denorm): Likewise.
53123         (__mp_dbl): Likewise.
53124         (__inv): Likewise.
53125
53126         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53127         and adjust the header comment.
53128
53129         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53130         variable name from declaration.
53131
53132 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53133
53134         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53135         Initialize COMMON_CPUID_INDEX_7 element.
53136         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53137         (CPUID_RTM): Likewise.
53138         (HAS_RTM): Likewise.
53139         (COMMON_CPUID_INDEX_7): New enum.
53140
53141 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53142
53143         [BZ #14981]
53144         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53145         size is zero, record memory as freed.
53146
53147 2013-01-03  Andreas Jaeger  <aj@suse.de>
53148
53149         * po/ia.po: Add new Interlingua translation.
53150
53151 2012-01-03  Allan McRae  <allan@archlinux.org>
53152
53153         * locale/programs/localedef.c: Fix description of '--posix' flag.
53154
53155 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53156
53157         * NEWS: Update dates in second copyright notice.
53158         * README: Update copyright dates in example.
53159         * manual/libc.texinfo: Update copyright dates.
53160         * scripts/test-installation.pl: Update copyright date in --version
53161         output.
53162
53163         * hurd/ctty-input.c: Fix copyright notice formatting.
53164         * hurd/ctty-output.c: Likewise.
53165         * hurd/dtable.c: Likewise.
53166         * hurd/hurd-raise.c: Likewise.
53167         * hurd/hurdprio.c: Likewise.
53168         * hurd/msgportdemux.c: Likewise.
53169         * misc/sys/file.h: Likewise.
53170         * misc/sys/ioctl.h: Likewise.
53171         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53172         * sysdeps/mach/hurd/chdir.c: Likewise.
53173         * sysdeps/mach/hurd/fchdir.c: Likewise.
53174         * sysdeps/mach/hurd/rename.c: Likewise.
53175         * sysdeps/mach/hurd/rmdir.c: Likewise.
53176         * sysdeps/mach/hurd/seekdir.c: Likewise.
53177         * sysdeps/mach/hurd/setsid.c: Likewise.
53178         * sysdeps/posix/wait3.c: Likewise.
53179
53180         * All files with FSF copyright notices: Update copyright dates
53181         using scripts/update-copyrights.
53182         * intl/plural.c: Regenerated.
53183         * locale/programs/charmap-kw.h: Likewise.
53184         * locale/programs/locfile-kw.h: Likewise.
53185
53186 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53187
53188         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53189         four values.
53190
53191         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53192         calculation loop and add branch prediction.
53193
53194         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53195         check access beyond bounds of m1np.
53196
53197         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53198         MPTWO.
53199         (__inv): Remove local variable MPTWO to use the global
53200         constant.
53201         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53202         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53203         variable MPTWO.
53204         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53205         MP3HALFS static const.
53206
53207 2013-01-01  David S. Miller  <davem@davemloft.net>
53208
53209         * po/ca.po: Update from translation team.
53210
53211 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53212
53213         * scripts/update-copyrights: New file.
53214         * Makeconfig: Reformat copyright notice.
53215         * ctype/ctype.h: Likewise.
53216         * debug/swprintf_chk.c: Likewise.
53217         * elf/dl-cache.c: Likewise.
53218         * elf/dl-debug.c: Likewise.
53219         * elf/dl-object.c: Likewise.
53220         * grp/initgroups.c: Likewise.
53221         * hurd/Makefile: Likewise.
53222         * hurd/hurd/signal.h: Likewise.
53223         * hurd/hurdfault.c: Likewise.
53224         * hurd/hurdioctl.c: Likewise.
53225         * hurd/hurdlookup.c: Likewise.
53226         * hurd/intr-msg.c: Likewise.
53227         * iconv/gconv_open.c: Likewise.
53228         * libio/swprintf.c: Likewise.
53229         * locale/lc-ctype.c: Likewise.
53230         * locale/nl_langinfo.c: Likewise.
53231         * mach/Machrules: Likewise.
53232         * mach/Makefile: Likewise.
53233         * malloc/obstack.h: Likewise.
53234         * manual/Makefile: Likewise.
53235         * manual/tsort.awk: Likewise.
53236         * misc/bits/stab.def: Likewise.
53237         * nis/nis_print_group_entry.c: Likewise.
53238         * nis/nis_table.c: Likewise.
53239         * nis/nss_compat/compat-pwd.c: Likewise.
53240         * nis/nss_compat/compat-spwd.c: Likewise.
53241         * po/Makefile: Likewise.
53242         * posix/fnmatch.c: Likewise.
53243         * posix/regex.h: Likewise.
53244         * resolv/Makefile: Likewise.
53245         * resolv/nss_dns/dns-network.c: Likewise.
53246         * resolv/res_hconf.c: Likewise.
53247         * scripts/gen-sorted.awk: Likewise.
53248         * soft-fp/soft-fp.h: Likewise.
53249         * stdio-common/printf.h: Likewise.
53250         * stdlib/monetary.h: Likewise.
53251         * stdlib/random.c: Likewise.
53252         * stdlib/random_r.c: Likewise.
53253         * sysdeps/generic/Makefile: Likewise.
53254         * sysdeps/gnu/Makefile: Likewise.
53255         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53256         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53257         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53258         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53259         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53260         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53261         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53262         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53263         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53264         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53265         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53266         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53267         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53268         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53269         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53270         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53271         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53272         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53273         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53274         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53275         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53276         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53277         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53278         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53279         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53280         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53281         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53282         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53283         * sysdeps/mach/hurd/errnos.awk: Likewise.
53284         * sysdeps/mach/hurd/fork.c: Likewise.
53285         * sysdeps/mach/hurd/getcwd.c: Likewise.
53286         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53287         * sysdeps/mach/hurd/mmap.c: Likewise.
53288         * sysdeps/mach/hurd/utimes.c: Likewise.
53289         * sysdeps/mach/hurd/xmknod.c: Likewise.
53290         * sysdeps/posix/profil.c: Likewise.
53291         * sysdeps/posix/readdir_r.c: Likewise.
53292         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53293         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53294         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53295         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53296         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53297         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53298         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53299         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53300         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53301         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53302         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53303         * sysdeps/pthread/lio_listio.c: Likewise.
53304         * sysdeps/sparc/dl-procinfo.h: Likewise.
53305         * sysdeps/unix/i386/sysdep.S: Likewise.
53306         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53307         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53308         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53309         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53311         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53312         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53313         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53314         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53315         * sysdeps/wordsize-32/divdi3.c: Likewise.
53316         * time/sys/time.h: Likewise.
53317         * wcsmbs/Makefile: Likewise.
53318
53319 2013-01-01  David S. Miller  <davem@davemloft.net>
53320
53321         * po/fr.po: Update from translation team.
53322
53323         * catgets/gencat.c: Update copyright year.
53324         * csu/version.c: Likewise.
53325         * debug/catchsegv.sh: Likewise.
53326         * debug/pcprofiledump.c: Likewise.
53327         * debug/xtrace.sh: Likewise.
53328         * elf/ldconfig.c: Likewise.
53329         * elf/ldd.bash.in: Likewise.
53330         * elf/pldd.c: Likewise.
53331         * elf/sotruss.ksh: Likewise.
53332         * elf/sprof.c: Likewise.
53333         * iconv/iconv_prog.c: Likewise.
53334         * iconv/iconvconfig.c: Likewise.
53335         * locale/programs/locale.c: Likewise.
53336         * locale/programs/localedef.c: Likewise.
53337         * login/programs/pt_chown.c: Likewise.
53338         * malloc/memusage.sh: Likewise.
53339         * malloc/memusagestat.c: Likewise.
53340         * malloc/mtrace.pl: Likewise.
53341         * nscd/nscd.c: Likewise.
53342         * nss/getent.c: Likewise.
53343         * nss/makedb.c: Likewise.
53344         * posix/getconf.c: Likewise.
53345
53346 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53347
53348         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53349         numbers.
53350
53351 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53352
53353         * math/bits/mathcalls.h (modf): Use __nonnull.
53354
53355 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53356
53357         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53358         (split): Use macro CN instead of the bare value.
53359         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53360         could be used.
53361         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53362         instead of the bare value.
53363         (power1): Likewise.
53364
53365 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53366
53367         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53368         __ATAN_TWOM.
53369         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53370
53371         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53372         their values.
53373         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53374         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53375         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53376         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53377
53378 2012-12-28  Andreas Jaeger  <aj@suse.de>
53379
53380         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53381         values are from Linux 3.7.
53382
53383         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53384         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53385
53386 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53387
53388         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53389         TRUE case.
53390
53391         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53392         (norm): Likewise.
53393         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53394         variables with preprocessor constants.
53395         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53396         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53397         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53398
53399 2012-12-27  Bruno Haible  <bruno@clisp.org>
53400
53401         [BZ #14317]
53402         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53403         only if needed.
53404
53405 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53406
53407         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53408         and use variable directly.
53409         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53410
53411         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53412         MPONE.
53413         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53414         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53415         variable MPONE.
53416         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53417         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53418         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53419         include directive.  Remove local variable MPONE.
53420         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53421         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53422         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53423
53424 2012-12-25  David S. Miller  <davem@davemloft.net>
53425
53426         * version.h (RELEASE): Set to "development".
53427         (VERSION): Set to "2.17.90".
53428         * NEWS: Add 2.18 section.
53429
53430 2012-12-21  David S. Miller  <davem@davemloft.net>
53431
53432         * po/hr.po: Update from translation team.
53433
53434 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53435
53436         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53437
53438 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53439
53440         * NEWS:  Mention new memcpy for MIPS.
53441
53442 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53443
53444         * manual/contrib.texi (Contributors): Spelling correction.
53445
53446 2012-12-15  David S. Miller  <davem@davemloft.net>
53447
53448         * po/ru.po: Update from translation team.
53449
53450 2012-12-13  David S. Miller  <davem@davemloft.net>
53451
53452         * NEWS: Mention IFUNC testsuite enhancements.
53453
53454         * po/pl.po: Update from translation team.
53455         * po/bg.po: Likewise.
53456
53457         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53458         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53459
53460 2012-12-11  David S. Miller  <davem@davemloft.net>
53461
53462         * po/sv.po: Update from translation team.
53463
53464         * po/vi.po: Update from translation team.
53465
53466         * po/cs.po: Update from translation team.
53467
53468         * po/de.po: Update from translation team.
53469         * po/eo.po: Likewise.
53470         * po/nl.po: Likewise.
53471
53472 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53473
53474         [BZ #14246]
53475         * manual/argp.texi (Argp Helper Functions): Move node to follow
53476         Argp Parsing State.
53477
53478         [BZ #14872]
53479         * manual/conf.texi (Limits on File System Capacity): Mention if
53480         terminating null is included in the max size.
53481
53482 2012-12-10  Andreas Jaeger  <aj@suse.de>
53483
53484         * po/cs.po: Update from translation team.
53485
53486 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53487
53488         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53489         void pointer and cast to uintptr_t.
53490         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53491         path.
53492         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53493         * sysdeps/s390/s390-64/memset.S: Likewise.
53494
53495 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53496
53497         [BZ #14833]
53498         * menual/message.texi (Message Translation): Fix typos.
53499         (Helper programs for gettext): Likewise.
53500
53501 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53502
53503         [BZ #14898]
53504         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53505         Change to -1.
53506
53507 2012-12-07  David S. Miller  <davem@davemloft.net>
53508
53509         * po/libc.pot: Update.
53510
53511 2012-12-07  Richard Henderson  <rth@redhat.com>
53512
53513         [BZ #10114]
53514         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53515         normal/normal case to before the switch.
53516         (_FP_DIV): Likewise.
53517
53518 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53519             Mike Frysinger  <vapier@gentoo.org>
53520
53521         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53522         check for __NR_fadvise64_64.
53523
53524 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53525
53526         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53527         0, not just to plain "0" as a statement.
53528         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53529         with cw.
53530
53531 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53532
53533         * NEWS: Use sourceware.org in Bugzilla URL.
53534
53535 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53536
53537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53538         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53539
53540         * stdio-common/tst-put-error.c (do_test): Add newline to the
53541         padded test to ensure flush.
53542
53543 2012-12-05  Jeff Law  <law@redhat.com>
53544
53545         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53546
53547 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53548
53549         * README: Don't refer to ports add-on as distributed separately.
53550         Mention AArch64 in list of systems supported in the ports add-on.
53551
53552         * LICENSES: Add more non-FSF copyright and license notices.
53553
53554         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53555         ((unused)).
53556
53557         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53558
53559         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53560         10000 as width of padded output.
53561
53562 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53563
53564         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53565
53566         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53567         variable LX with __attribute__ ((unused)).
53568         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53569         Likewise.
53570         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53571         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53572         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53573         with __attribute__ ((unused)).
53574
53575 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53576
53577         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53578
53579 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53580
53581         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53582         (CFLAGS-nldbl-acos.c): New variable.
53583         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53584         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53585         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53586         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53587         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53588         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53589         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53590         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53591         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53592         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53593         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53594         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53595         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53596         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53597         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53598         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53599         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53600         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53601         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53602         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53603         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53604         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53605         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53606         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53607         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53608         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53609         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53610         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53611         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53612         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53613         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53614         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53615         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53616         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53617         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53618         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53619         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53620         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53621         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53622         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53623         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53624         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53625         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53626         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53627         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53628         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53629         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53630         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53631         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53632         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53633         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53634         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53635         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53636         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53637         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53638         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53639         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53640         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53641         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53642         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53643         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53644         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53645         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53646         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53647         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53648         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53649         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53650         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53651         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53652         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53653         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53654         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53655         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53656         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53657         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53658         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53659         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53660         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53661         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53662         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53663         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53664         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53665         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53666         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53667         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53668         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53669         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53670         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53671         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53672         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53673         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53674         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53675         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53676         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53677         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53678         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53679         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53680
53681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53682         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53683
53684         [BZ #14914]
53685         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53686         whole low double instead of just low 47 bits when splitting values
53687         into two parts.
53688
53689 2012-12-03  Allan McRae  <allan@archlinux.org>
53690
53691         * manual/stdio.texi (Predefined Printf Handlers): Remove
53692         @hsep and @vsep usage.
53693
53694 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53695
53696         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53697         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53698
53699 2012-12-03  Jeff Law  <law@redhat.com>
53700
53701         * time/sys/time.h (settimeofday): Do not mark TV argument
53702         as __nonnull.
53703
53704 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53705
53706         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53707         when currently writing and seek to current position when not.
53708         * libio/Makefile (tests): Remove bug-fclose1.
53709         * libio/bug-fclose1.c: Delete.
53710
53711 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53712
53713         * manual/arith.texi (feenableexcept): Fix typo.
53714         (fedisableexcept): Likewise.
53715
53716 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53717
53718         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53719         second, differently-typed declaration, rather than a cast.
53720
53721 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53722
53723         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53724         * include/rpc/svc.h: ... here.
53725
53726 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53727
53728         [BZ #13013]
53729         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53730         depending n and resplen2 to catch cases where answer
53731         equals answerp2.
53732
53733 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53734
53735         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53736         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53737
53738 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53739
53740         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53741
53742 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53743
53744         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53745
53746 2012-11-28  Jeff Law  <law@redhat.com>
53747
53748         [BZ #13761]
53749         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53750         dataset_temporary.  Track alloca usage into alloca_used.
53751         If dataset is large allocate and release it via malloc/free.
53752
53753 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53754
53755         [BZ #14197]
53756         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53757
53758 2012-11-28  David S. Miller  <davem@davemloft.net>
53759
53760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53761
53762 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53763
53764         [BZ #14803]
53765         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53766         of pi/2 rounded to nearest to 64 bits.
53767         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53768         nearest to 64 bits.
53769         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53770         bits.
53771
53772 2012-11-28  Jeff Law <law@redhat.com>
53773             Martin Osvald <mosvald@redhat.com>
53774
53775         [BZ #14889]
53776         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
53777         * sunrpc/svc.c: Include time.h.
53778         (__svc_accept_failed): New function.
53779         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
53780         any reason other than EINTR, call __svc_accept_failed.
53781         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
53782         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
53783
53784 2012-11-28  Andreas Schwab  <schwab@suse.de>
53785
53786         * scripts/abilist.awk: Also handle indirect functions in .opd
53787         section.
53788
53789 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53790
53791         [BZ #13881]
53792         * sysdeps/x86/fpu/powl_helper.c: New file.
53793         * sysdeps/x86/fpu/Makefile: Likewise.
53794         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
53795         (p3): New object.
53796         (__ieee754_powl): Use __powl_helper for finite arguments except
53797         integer exponents below 8.
53798         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
53799         (p3): New object.
53800         (__ieee754_powl): Use __powl_helper for finite arguments except
53801         integer exponents below 8.
53802         * math/libm-test.inc (pow_test): Add more tests and enable some
53803         previously disabled tests.
53804         * sysdeps/i386/fpu/libm-test-ulps: Update.
53805         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53806
53807 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53808             Carlos O'Donell  <carlos_odonell@mentor.com>
53809
53810         * nss/makedb.c (is_prime): Assert that input is odd and greater
53811         than 4.  Note that fact in a comment too.
53812         (next_prime): Add 4 to input.
53813
53814 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53815
53816         [BZ #11741]
53817         * libio/Makefile (tests): Add test case tst-fwrite-error.
53818         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
53819         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
53820         * libio/tst-fwrite-error.c: New test case.
53821
53822 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
53823
53824         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
53825         before casting to void *.
53826         * include/libc-internal.h (__pointer_type): New macro.
53827         (__integer_if_pointer_type_sub): Likewise.
53828         (__integer_if_pointer_type): Likewise.
53829         (cast_to_integer): Likewise.
53830         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
53831         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
53832         before casting to atomic64_t.
53833         (atomic_exchange_acq): Likewise.
53834         (__arch_exchange_and_add_body): Likewise.
53835         (__arch_add_body): Likewise.
53836         (atomic_add_negative): Likewise.
53837         (atomic_add_zero): Likewise.
53838
53839 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
53840
53841         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
53842         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
53843         (add_fdes): Likewise.
53844         (linear_search_fdes): Likewise.
53845         (binary_search_unencoded_fdes): Likewise.
53846
53847 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
53848
53849         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
53850
53851 2012-11-24  Adam Conrad  <adconrad@0c3.net>
53852
53853         * configure.in: Autodetect C++ header directories.
53854         * configure: Regenerated.
53855
53856 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
53857
53858         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
53859
53860 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
53861
53862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53863
53864 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
53865
53866         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
53867         LDBL_MANT_DIG == 106]: Disable some tests.
53868         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53869         Likewise.
53870         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53871         Likewise.
53872
53873         [BZ #14871]
53874         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
53875         input for small inputs.  Return +/- pi/2 for large inputs.
53876         * math/libm-test.inc (atan_test): Add more tests.
53877
53878         * sysdeps/generic/unwind-dw2-fde-glibc.c
53879         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
53880         __attribute__ ((unused)).
53881
53882         [BZ #14645]
53883         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
53884         x * y if x and y are nonzero and z is zero.
53885
53886         [BZ #14811]
53887         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
53888         nonzero exponents with absolute value below 0x1p-117 to +/-
53889         0x1p-117.
53890
53891         [BZ #14869]
53892         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
53893         up arguments below 2**-450, not just those below 2**-500.
53894         * math/libm-test.inc (hypot_test): Add another test.
53895
53896         [BZ #14868]
53897         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
53898         Return a+b for ratio over 2**120, not 2**60.
53899         * math/libm-test.inc (hypot_test): Add another test.
53900
53901         * math/libm-test.inc (clog_test): Use
53902         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
53903         (clog10_test): Likewise.
53904
53905         [BZ #6778]
53906         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
53907
53908 2012-11-22  Andreas Schwab  <schwab@suse.de>
53909
53910         * sysdeps/i386/fpu/libm-test-ulps: Update.
53911
53912 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
53913
53914         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
53915         printf output with newline.
53916
53917 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
53918
53919         [BZ #14865]
53920         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
53921         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
53922         -z nodlopen, -z initfirst and -z execstack support.
53923         * configure: Regenerated.
53924
53925         * elf/elf.h (DF_1_NODIRECT): New macro.
53926         (DF_1_IGNMULDEF): Likewise.
53927         (DF_1_NOKSYMS): Likewise.
53928         (DF_1_NOHDR): Likewise.
53929         (DF_1_EDITED): Likewise.
53930         (DF_1_NORELOC): Likewise.
53931         (DF_1_SYMINTPOSE): Likewise.
53932         (DF_1_GLOBAUDIT): Likewise.
53933         (DF_1_SINGLETON): Likewise.
53934         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
53935         DT_1_SUPPORTED_MASK bits.
53936         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
53937
53938 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
53939
53940         * sysdeps/unix/make-syscalls.sh: Document prefixes.
53941
53942 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
53943
53944         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
53945         macro.
53946
53947         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
53948         (sendmmsg): Move declarations...
53949         * socket/sys/socket.h: ... here.
53950         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
53951         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
53952         include it from...
53953         * socket/recvmmsg.c: ... this new file.
53954         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
53955         (sendmmsg): Rename to __sendmmsg, create weak alias and make
53956         definition of __sendmmsg hidden.
53957         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
53958         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
53959         Move ENOSYS stub into and include it from...
53960         * socket/sendmmsg.c: ... this new file.
53961         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
53962         (sysdep_routines): Move recvmmsg and sendmmsg...
53963         * socket/Makefile (routines): ... here.
53964         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
53965         (GLIBC_PRIVATE): Add __sendmmsg.
53966         * include/sys/socket.h (__sendmmsg): Add declarations.
53967         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
53968         sendmmsg.
53969
53970 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
53971
53972         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
53973         variable I1 with __attribute__ ((unused)).
53974         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
53975
53976 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53977
53978         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
53979         DUMMY variables with __attribute__ ((unused)).
53980
53981         * bits/byteswap.h: Include <bits/types.h>.
53982         (__bswap_64): Use __uint64_t instead of unsigned long long int.
53983
53984 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
53985
53986         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
53987         string_t.  Do not manually set errno.
53988         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
53989         length with __strnlen.  Make sure to both set errno and return it on
53990         failure.
53991
53992 2012-11-19  David S. Miller  <davem@davemloft.net>
53993
53994         With help from Joseph Myers.
53995         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
53996         very large arguments properly.
53997         * math/libm-test.inc (atan_test): New tests.
53998         (atan2_test): New tests.
53999         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54000         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54001
54002 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54003
54004         [BZ #14856]
54005         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54006         Define to 3.
54007
54008         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54009         [POSIX] (EADDRNOTAVAIL): Likewise.
54010         [POSIX] (EAFNOSUPPORT): Likewise.
54011         [POSIX] (EALREADY): Likewise.
54012         [POSIX] (ECONNABORTED): Likewise.
54013         [POSIX] (ECONNREFUSED): Likewise.
54014         [POSIX] (ECONNRESET): Likewise.
54015         [POSIX] (EDESTADDRREQ): Likewise.
54016         [POSIX] (EDQUOT): Likewise.
54017         [POSIX] (EHOSTUNREACH): Likewise.
54018         [POSIX] (EIDRM): Likewise.
54019         [POSIX] (EISCONN): Likewise.
54020         [POSIX] (ELOOP): Likewise.
54021         [POSIX] (EMULTIHOP): Likewise.
54022         [POSIX] (ENETDOWN): Likewise.
54023         [POSIX] (ENETUNREACH): Likewise.
54024         [POSIX] (ENOBUFS): Likewise.
54025         [POSIX] (ENODATA): Likewise.
54026         [POSIX] (ENOLINK): Likewise.
54027         [POSIX] (ENOMSG): Likewise.
54028         [POSIX] (ENOPROTOOPT): Likewise.
54029         [POSIX] (ENOSR): Likewise.
54030         [POSIX] (ENOSTR): Likewise.
54031         [POSIX] (ENOTCONN): Likewise.
54032         [POSIX] (ENOTSOCK): Likewise.
54033         [POSIX] (EOPNOTSUPP): Likewise.
54034         [POSIX] (EOVERFLOW): Likewise.
54035         [POSIX] (EPROTO): Likewise.
54036         [POSIX] (EPROTONOSUPPORT): Likewise.
54037         [POSIX] (EPROTOTYPE): Likewise.
54038         [POSIX] (ESTALE): Likewise.
54039         [POSIX] (ETIME): Likewise.
54040         [POSIX] (ETXTBSY): Likewise.
54041         [POSIX] (EWOULDBLOCK): Likewise.
54042         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54043         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54044         [POSIX] (SEEK_CUR): Likewise.
54045         [POSIX] (SEEK_END): Likewise.
54046         [POSIX || UNIX98] (mode_t): Do not require.
54047         [POSIX] (off_t): Likewise.
54048         [POSIX] (pid_t): Likewise.
54049         [POSIX] (sys/stat.h): Do not allow header.
54050         [POSIX] (unistd.h): Likewise.
54051         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54052         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54053         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54054         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54055         require.
54056         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54057         sigevent): Specify elements.
54058         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54059         entry.
54060         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54061         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54062
54063         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54064         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54065         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54066         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54067         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54068         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54069         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54070         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54071         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54072         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54073         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54074         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54075         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54076         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54077         Likewise.
54078         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54079         Likewise.
54080         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54081         Likewise.
54082         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54083         Likewise.
54084         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54085         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54086         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54087         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54088         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54089         Specify lower bound on value.
54090         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54091         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54092         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54093         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54094         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54095         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54096         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54097         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54098         value.
54099         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54100         as optional.
54101         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54102         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54103         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54104         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54105         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54106         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54107         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54108         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54109         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54110         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54111         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54112         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54113         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54114         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54115         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54116         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54117         entry.
54118         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54119         optional.
54120         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54121         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54122         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54123         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54124         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54125         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54126         Likewise.
54127         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54128         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54129         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54130         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54131         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54132         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54133         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54134         as optional.
54135         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54136         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54137         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54138         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54139         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54140         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54141         specify as optional.
54142         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54143         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54144         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54145         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54146         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54147         [XPG3] (NL_LANGMAX): Likewise.
54148         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54149         [POSIX || XPG3] (NL_NMAX): Likewise.
54150         [POSIX || XPG3] (NL_SETMAX): Likewise.
54151         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54152         [XPG3] (NZERO): Likewise.
54153         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54154         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54155         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54156         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54157         (REG_ERANGE): Expect.
54158         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54159         optional-constant.
54160         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54161         Use (void) in prototype.
54162         [POSIX] (*_t): Allow.
54163         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54164         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54165         (WRDE_BADVAL): Expect.
54166
54167         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54168         expect.
54169         [XPG3 || XPG4] (O_RSYNC): Likewise.
54170         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54171         Likewise.
54172         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54173         [XPG3 || XPG4] (sigqueue): Likewise.
54174         [XPG3 || XPG4] (sigtimedwait): Likewise.
54175         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54176         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54177         [XPG3 || XPG4] (vsnprintf): Likewise.
54178         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54179         Likewise.
54180         [XPG3 || XPG4] (blksize_t): Likewise.
54181         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54182         Likewise.
54183         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54184         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54185         [XPG3 || XPG4] (struct itimerspec): Likewise.
54186         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54187         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54188         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54189         [XPG3 || XPG4] (clockid_t): Likewise.
54190         [XPG3 || XPG4] (timer_t): Likewise.
54191         [XPG3 || XPG4] (clock_getres): Likewise.
54192         [XPG3 || XPG4] (clock_gettime): Likewise.
54193         [XPG3 || XPG4] (clock_settime): Likewise.
54194         [XPG3 || XPG4] (nanosleep): Likewise.
54195         [XPG3 || XPG4] (timer_create): Likewise.
54196         [XPG3 || XPG4] (timer_delete): Likewise.
54197         [XPG3 || XPG4] (timer_gettime): Likewise.
54198         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54199         [XPG3 || XPG4] (timer_settime): Likewise.
54200         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54201         [XPG3 || XPG4] (getlogin_r): Likewise.
54202         [XPG3 || XPG4] (pread): Likewise.
54203         [XPG3 || XPG4] (pthread_atfork): Likewise.
54204         [XPG3 || XPG4] (pwrite): Likewise.
54205
54206         [BZ #14835]
54207         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54208         <bits/siginfo.h>.
54209
54210 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54211
54212         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54213         finalizing MALLSTREAM.
54214
54215         * sysdeps/mach/hurd/syncfs.c: New file.
54216
54217 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54218
54219         [BZ #14719]
54220         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54221         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54222         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54223         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54224         (_nss_dns_gethostbyname4_r): Likewise.
54225         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54226         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54227
54228 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54229
54230         [BZ #13763]
54231         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54232
54233 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54234
54235         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54236         * elf/cache.c (print_entry): Print ",AArch64" for
54237         FLAG_AARCH64_LIB64
54238
54239         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54240         * elf/cache.c (print_entry): Print ",hard-float" for
54241         FLAG_ARM_LIBHF.
54242
54243 2012-11-18  David S. Miller  <davem@davemloft.net>
54244
54245         With help from Joseph Myers.
54246         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54247         cutoff to 2**-13.
54248         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54249         cutoff to 2**-25.
54250         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54251         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54252         small.
54253         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54254         * math/libm-test.inc (y0_test): New tests.
54255         (y1_test): New tests.
54256         * sysdeps/i386/fpu/libm-test-ulps: Update.
54257         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54258         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54259
54260 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54261
54262         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54263         64-bit targets.
54264         * configure: Regenerated.
54265
54266 2012-11-17  David S. Miller  <davem@davemloft.net>
54267
54268         [BZ #14811]
54269         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54270         nonzero exponents with absolute value below 0x1p-128 to +/-
54271         0x1p-128.
54272
54273 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54274
54275         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54276
54277         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54278
54279         * posix/getconf-speclist.c: New file.
54280         * posix/posix-envs.def: Likewise.
54281         * posix/confstr.c (START_ENV_GROUP): New macro.
54282         (END_ENV_GROUP): Likewise.
54283         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54284         (KNOWN_PRESENT_ENV_STRING): Likewise.
54285         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54286         (UNKNOWN_ENVIRONMENT): Likewise.
54287         (confstr): Include posix-envs.def instead of handling
54288         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54289         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54290         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54291         (END_ENV_GROUP): Likewise.
54292         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54293         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54294         (UNKNOWN_ENVIRONMENT): Likewise.
54295         (__sysconf): Include posix-envs.def instead of handling associated
54296         cases directly here.
54297         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54298         preprocessing getconf-speclist.c rather than running getconf or
54299         generating empty file.
54300
54301 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54302
54303         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54304
54305 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54306
54307         [BZ #14672]
54308         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54309
54310 2012-11-16  David S. Miller  <davem@davemloft.net>
54311
54312         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54313         smaller than LDBL_EPSILON/2.0L, just return xm1.
54314
54315 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54316
54317         * elf/tst-array1.c (init): Set constructor priority to 1000.
54318         (fini): Set destructor priority to 1000.
54319         * elf/tst-array2dep.c: Likewise.
54320
54321 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54322
54323         [BZ #11741]
54324         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54325         (_IO_new_file_xsputn): Also return EOF if none of the input
54326         data was written when overflow failed.
54327         * libio/iopadn.c (_IO_padn): Likewise.
54328         * libio/iowpadn.c (_IO_wpadn): Likewise.
54329         * stdio-common/tst-put-error.c: Add copyright notice.
54330         (do_test): Add case for printing padded string.
54331         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54332         _IO_padn returned error.
54333         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54334         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54335         return EOF.
54336
54337 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54338
54339         * libio/libioP.h: Add comment note that the references to C++
54340         bits are now obsolete.
54341
54342 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54343
54344         * math/libm-test.inc (check_complex): Use asprintf.
54345
54346 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54347
54348         * debug/pcprofiledump.c (print_version): Update copyright year.
54349         * malloc/memusagestat.c (print_version): Likewise.
54350
54351 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54352
54353         [BZ #14831]
54354         * elf/Makefile (tests): Add tst-audit8.
54355         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54356         ($(objpfx)tst-audit8.out): New target.
54357         (tst-audit8-ENV): New variable.
54358         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54359         audit if l_reloc_result is NULL.
54360         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54361         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54362         * elf/tst-audit8.c: New file.
54363
54364 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54365
54366         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54367         * misc/Makefile (CFLAGS-select.c): Define.
54368         * posix/Makefile (CFLAGS-pause.c): Define.
54369
54370 2012-11-13  David S. Miller  <davem@davemloft.net>
54371
54372         * crypt/Makefile: Move test targets after toplevel Rules
54373         inclusion.  Grab any necessary sysdep routines when linking.
54374         * crypt/md5.c (md5_process_block): Remove define, we will always
54375         name it __md5_process_block.
54376         (md5_finish_ctx): Update md5_process_block call.
54377         (md5_stream): Likewise.
54378         (md5_process_bytes): Likewise.
54379         (md5_process_block): Rename to __md5_process_block and move to ...
54380         * crypt/md5-block.c: ... here.
54381         * crypt/sha256.c (sha256_process_block): Move to ...
54382         * crypt/sha256-block.c: ... here.
54383         * crypt/sha512.c (sha512_process_block): Move to ...
54384         * crypt/sha512-block.c: ... here.
54385         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54386         path.
54387         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54388         * sysdeps/sparc/sparc64/multiarch/Makefile
54389         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54390         crypt subdir.
54391         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54392         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54393         multiarch changes.
54394         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54395         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54396         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54397         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54398         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54399         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54400         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54401         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54402         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54403         file.
54404         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54405         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54406         file.
54407         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54408
54409 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54410
54411         * timezone/tzselect.ksh: Update from tzcode git revision
54412         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54413         * timezone/zdump.c: Likewise.
54414         * timezone/zic.c: Likewise.
54415         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54416         in TZVERSION setting, not $(PKGVERSION).
54417         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54418         REPORT_BUGS_TO settings.
54419
54420         [BZ #14838]
54421         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54422         macro.
54423
54424 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54425
54426         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54427         detection to immediately after _FP_ROUND().
54428         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54429         bits are 0.
54430
54431 2012-11-11  David S. Miller  <davem@davemloft.net>
54432
54433         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54434         inttypes.h
54435         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54436         __close rather than their public counterparts.
54437
54438 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54439
54440         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54441         file.
54442         [UNIX98] (sem_timedwait): Do not expect.
54443         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54444         [XPG4 || UNIX98] (sockatmark): Do not expect.
54445         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54446         (clock_getcpuclockid): Do not expect.
54447         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54448         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54449         Do not expect.
54450         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54451         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54452         [UNIX98] (vwscanf): Likewise.
54453         [UNIX98] (vswscanf): Likewise.
54454
54455 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54456
54457         * timezone/version.h: Remove file.
54458         * timezone/README: Do not refer to version.h.
54459         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54460         $(objpfx)version.h.
54461         ($(objpfx)zdump.o): Likewise.
54462         ($(objpfx)version.h): New target.
54463
54464         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54465         2012i.
54466         * timezone/README: Don't mention modification to tzselect.ksh.
54467         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54468         work on unmodified tzselect.ksh.  Substitute version numbers in
54469         tzselect.ksh.
54470
54471         * Makefile (format-me): Remove.
54472         (INSTALL): Adjust indentation.  Use commands directly instead of
54473         using $(format-me).
54474
54475         * aclocal.m4 (ACX_PKGVERSION): New macro.
54476         (ACX_BUGURL): Likewise.
54477         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54478         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54479         (REPORT_BUGS_TO): Likewise.
54480         * configure: Regenerated.
54481         * config.h.in (PKGVERSION): New macro.
54482         (REPORT_BUGS_TO): Likewise.
54483         * config.make.in (PKGVERSION): New variable.
54484         (PKGVERSION_TEXI): Likewise.
54485         (REPORT_BUGS_TO): Likewise.
54486         (REPORT_BUGS_TEXI): Likewise.
54487         * Makefile (format-me): Use -I$(common-objpfx)manual.
54488         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54489         ($(common-objpfx)manual/%): New target.
54490         (manual/%): Remove target.
54491         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54492         (print_version): Use PKGVERSION.
54493         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54494         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54495         and REPORT_BUGS_TO.
54496         ($(objpfx)xtrace): Likewise.
54497         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54498         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54499         (print_version): Use PKGVERSION.
54500         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54501         (do_version): Use PKGVERSION.
54502         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54503         REPORT_BUGS_TO.
54504         (common-ldd-rewrite): Likewise.
54505         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54506         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54507         (print_version): Use PKGVERSION.
54508         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54509         * elf/pldd.c (argp_program_bug_address): Remove variable.
54510         (more_help): New function.
54511         (argp): Use more_help.
54512         (print_version): Use PKGVERSION.
54513         * elf/sln.c (main): Use PKGVERSION.
54514         (usage): Use REPORT_BUGS_TO.
54515         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54516         (top level): Use PKGVERSION.
54517         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54518         (print_version): Use PKGVERSION.
54519         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54520         (print_version): Use PKGVERSION.
54521         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54522         (print_version): Use PKGVERSION.
54523         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54524         (print_version): Use PKGVERSION.
54525         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54526         (print_version): Use PKGVERSION.
54527         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54528         (print_version): Use PKGVERSION.
54529         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54530         and BUGURL.
54531         ($(objpfx)memusage): Likewise.
54532         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54533         (do_version): Use PKGVERSION.
54534         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54535         (print_version): Use PKGVERSION.
54536         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54537         ($PKGVERSION): New variable.
54538         ($REPORT_BUGS_TO): Likewise.
54539         (usage): Use $REPORT_BUGS_TO.
54540         (top level): Use $PKGVERSION.
54541         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54542         ($(objpfx)pkgvers.texi): New rule.
54543         ($(objpfx)stamp-pkgvers): Likewise.
54544         * manual/install.texi: Include pkgvers.texi.
54545         (--with-pkgversion): Document new configure option.
54546         (--with-bugurl): Likewise.
54547         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54548         than necessarily for this particular distribution.  Use
54549         REPORT_BUGS_TO for where to report bugs.
54550         * INSTALL: Regenerated.
54551         * manual/libc.texinfo: Include pkgvers.texi.
54552         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54553         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54554         (print_version): Use PKGVERSION.
54555         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54556         (print_version): Use PKGVERSION.
54557         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54558         (print_version): Use PKGVERSION.
54559         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54560         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54561         macro.
54562         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54563         (print_version): Use PKGVERSION.
54564         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54565         (print_version): Use PKGVERSION.
54566         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54567         and PKGVERSION.
54568
54569         * timezone/checktab.awk: Update from tzcode 2012i.
54570         * timezone/ialloc.c: Likewise.
54571         * timezone/private.h: Likewise.
54572         * timezone/scheck.c: Likewise.
54573         * timezone/tzfile.h: Likewise.
54574         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54575         (TZVERSION): Hardcode tzcode version number.
54576         * timezone/zdump.c: Update from tzcode 2012i.
54577         * timezone/zic.c: Likewise.
54578         * timezone/version.h: New file.
54579         * timezone/README: Describe version.h.  Update upstream location.
54580
54581         [BZ #14824]
54582         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54583         (mktemp): Enable declaration.
54584         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54585         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54586         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54587         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54588         Likewise.
54589         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54590         Likewise.
54591         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54592         Likewise.
54593         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54594         Likewise.
54595         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54596         Likewise.
54597         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54598         Likewise.
54599
54600         [BZ #14821]
54601         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54602         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54603         for copies of such integer values.
54604         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54605         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54606
54607 2012-11-09  Andreas Jaeger  <aj@suse.de>
54608
54609         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54610         definitions and declarations that are provided by
54611         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54612
54613 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54614
54615         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54616         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54617         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54618         definition.
54619
54620 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54621
54622         * elf/elf.h: Update comment before AArch64 relocations.
54623
54624 2012-11-07  David S. Miller  <davem@davemloft.net>
54625
54626         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54627         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54628         (__start_context): Declare.
54629         (__makecontext_ret): Delete.
54630         (__makecontext): Hook up __start_context instead of
54631         __makecontext_ret.
54632         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54633         (sysdep_routines): Add __start_context when in stdlib.
54634
54635 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54636
54637         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54638         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54639         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54640         hardcoded "nm".
54641         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54642         (READELF): New variable.  Use it instead of hardcoded "readelf".
54643
54644 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54645
54646         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54647         * sysdeps/x86/Makefile: Here.
54648         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54649         * sysdeps/x86/tst-xmmymm.sh: This.
54650
54651 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54652
54653         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54654         expectations.
54655         [UNIX98] (pthread_barrier_t): Do not expect.
54656         [UNIX98] (pthread_barrierattr_t): Likewise.
54657         [UNIX98] (pthread_spinlock_t): Likewise.
54658         [UNIX98] (pthread_barrier_destroy): Likewise.
54659         [UNIX98] (pthread_barrier_init): Likewise.
54660         [UNIX98] (pthread_barrier_wait): Likewise.
54661         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54662         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54663         [UNIX98] (pthread_barrierattr_init): Likewise.
54664         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54665         [UNIX98] (pthread_getcpuclockid): Likewise.
54666         [UNIX98] (pthread_mutex_timedlock): Likewise.
54667         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54668         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54669         [UNIX98] (pthread_sigmask): Likewise.
54670         [UNIX98] (pthread_spin_destroy): Likewise.
54671         [UNIX98] (pthread_spin_init): Likewise.
54672         [UNIX98] (pthread_spin_lock): Likewise.
54673         [UNIX98] (pthread_spin_trylock): Likewise.
54674         [UNIX98] (pthread_spin_unlock): Likewise.
54675         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54676         Do not expect.
54677         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54678         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54679         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54680         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54681         [XPG3 || XPG4] (pthread_key_t): Likewise.
54682         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54683         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54684         [XPG3 || XPG4] (pthread_once_t): Likewise.
54685         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54686         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54687         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54688         [XPG3 || XPG4] (pthread_t): Likewise.
54689
54690         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54691         not expect.
54692         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54693
54694         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54695         Change function return type to int.
54696
54697         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54698         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54699         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54700         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54701         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54702         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54703         [!POSIX] (posix_madvise): Likewise.
54704         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54705         && !UNIX98].
54706         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54707         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54708         (mode_t): Likewise.
54709         (posix_mem_offset): Likewise.
54710         (posix_typed_mem_get_info): Likewise.
54711         (posix_typed_mem_open): Likewise.
54712
54713         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54714         Change condition to [XOPEN2K8].
54715
54716         * conform/conformtest.pl: Preprocess allow-header data with -x c
54717         instead of from stdin.
54718         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54719         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54720         [C99-based standards] (cerfc): Likewise.
54721         [C99-based standards] (cexp2): Likewise.
54722         [C99-based standards] (cexpm1): Likewise.
54723         [C99-based standards] (clog10): Likewise.
54724         [C99-based standards] (clog1p): Likewise.
54725         [C99-based standards] (clog2): Likewise.
54726         [C99-based standards] (clgamma): Likewise.
54727         [C99-based standards] (ctgamma): Likewise.
54728         [C99-based standards] (cerff): Likewise.
54729         [C99-based standards] (cerfcf): Likewise.
54730         [C99-based standards] (cexp2f): Likewise.
54731         [C99-based standards] (cexpm1f): Likewise.
54732         [C99-based standards] (clog10f): Likewise.
54733         [C99-based standards] (clog1pf): Likewise.
54734         [C99-based standards] (clog2f): Likewise.
54735         [C99-based standards] (clgammaf): Likewise.
54736         [C99-based standards] (ctgammaf): Likewise.
54737         [C99-based standards] (cerfl): Likewise.
54738         [C99-based standards] (cerfcl): Likewise.
54739         [C99-based standards] (cexp2l): Likewise.
54740         [C99-based standards] (cexpm1l): Likewise.
54741         [C99-based standards] (clog10l): Likewise.
54742         [C99-based standards] (clog1pl): Likewise.
54743         [C99-based standards] (clog2l): Likewise.
54744         [C99-based standards] (clgammal): Likewise.
54745         [C99-based standards] (ctgammal): Likewise.
54746         * conform/data/inttypes.h-data [C99-based standards]: Include
54747         stdint.h-data.  Remove all expectations for stdint.h contents.
54748         [C99-based standards] (PRI*): Do not allow.
54749         [C99-based standards] (SCN*): Likewise.
54750         [C99-based standards] (*_t): Likewise.
54751         [C99-based-standards] (PRId8): Expect macro.
54752         [C99-based-standards] (PRIi8): Likewise.
54753         [C99-based-standards] (PRIo8): Likewise.
54754         [C99-based-standards] (PRIu8): Likewise.
54755         [C99-based-standards] (PRIx8): Likewise.
54756         [C99-based-standards] (PRIX8): Likewise.
54757         [C99-based-standards] (SCNd8): Likewise.
54758         [C99-based-standards] (SCNi8): Likewise.
54759         [C99-based-standards] (SCNo8): Likewise.
54760         [C99-based-standards] (SCNu8): Likewise.
54761         [C99-based-standards] (SCNx8): Likewise.
54762         [C99-based-standards] (PRIdLEAST8): Likewise.
54763         [C99-based-standards] (PRIiLEAST8): Likewise.
54764         [C99-based-standards] (PRIoLEAST8): Likewise.
54765         [C99-based-standards] (PRIuLEAST8): Likewise.
54766         [C99-based-standards] (PRIxLEAST8): Likewise.
54767         [C99-based-standards] (PRIXLEAST8): Likewise.
54768         [C99-based-standards] (SCNdLEAST8): Likewise.
54769         [C99-based-standards] (SCNiLEAST8): Likewise.
54770         [C99-based-standards] (SCNoLEAST8): Likewise.
54771         [C99-based-standards] (SCNuLEAST8): Likewise.
54772         [C99-based-standards] (SCNxLEAST8): Likewise.
54773         [C99-based-standards] (PRIdFAST8): Likewise.
54774         [C99-based-standards] (PRIiFAST8): Likewise.
54775         [C99-based-standards] (PRIoFAST8): Likewise.
54776         [C99-based-standards] (PRIuFAST8): Likewise.
54777         [C99-based-standards] (PRIxFAST8): Likewise.
54778         [C99-based-standards] (PRIXFAST8): Likewise.
54779         [C99-based-standards] (SCNdFAST8): Likewise.
54780         [C99-based-standards] (SCNiFAST8): Likewise.
54781         [C99-based-standards] (SCNoFAST8): Likewise.
54782         [C99-based-standards] (SCNuFAST8): Likewise.
54783         [C99-based-standards] (SCNxFAST8): Likewise.
54784         [C99-based-standards] (PRId16): Likewise.
54785         [C99-based-standards] (PRIi16): Likewise.
54786         [C99-based-standards] (PRIo16): Likewise.
54787         [C99-based-standards] (PRIu16): Likewise.
54788         [C99-based-standards] (PRIx16): Likewise.
54789         [C99-based-standards] (PRIX16): Likewise.
54790         [C99-based-standards] (SCNd16): Likewise.
54791         [C99-based-standards] (SCNi16): Likewise.
54792         [C99-based-standards] (SCNo16): Likewise.
54793         [C99-based-standards] (SCNu16): Likewise.
54794         [C99-based-standards] (SCNx16): Likewise.
54795         [C99-based-standards] (PRIdLEAST16): Likewise.
54796         [C99-based-standards] (PRIiLEAST16): Likewise.
54797         [C99-based-standards] (PRIoLEAST16): Likewise.
54798         [C99-based-standards] (PRIuLEAST16): Likewise.
54799         [C99-based-standards] (PRIxLEAST16): Likewise.
54800         [C99-based-standards] (PRIXLEAST16): Likewise.
54801         [C99-based-standards] (SCNdLEAST16): Likewise.
54802         [C99-based-standards] (SCNiLEAST16): Likewise.
54803         [C99-based-standards] (SCNoLEAST16): Likewise.
54804         [C99-based-standards] (SCNuLEAST16): Likewise.
54805         [C99-based-standards] (SCNxLEAST16): Likewise.
54806         [C99-based-standards] (PRIdFAST16): Likewise.
54807         [C99-based-standards] (PRIiFAST16): Likewise.
54808         [C99-based-standards] (PRIoFAST16): Likewise.
54809         [C99-based-standards] (PRIuFAST16): Likewise.
54810         [C99-based-standards] (PRIxFAST16): Likewise.
54811         [C99-based-standards] (PRIXFAST16): Likewise.
54812         [C99-based-standards] (SCNdFAST16): Likewise.
54813         [C99-based-standards] (SCNiFAST16): Likewise.
54814         [C99-based-standards] (SCNoFAST16): Likewise.
54815         [C99-based-standards] (SCNuFAST16): Likewise.
54816         [C99-based-standards] (SCNxFAST16): Likewise.
54817         [C99-based-standards] (PRId32): Likewise.
54818         [C99-based-standards] (PRIi32): Likewise.
54819         [C99-based-standards] (PRIo32): Likewise.
54820         [C99-based-standards] (PRIu32): Likewise.
54821         [C99-based-standards] (PRIx32): Likewise.
54822         [C99-based-standards] (PRIX32): Likewise.
54823         [C99-based-standards] (SCNd32): Likewise.
54824         [C99-based-standards] (SCNi32): Likewise.
54825         [C99-based-standards] (SCNo32): Likewise.
54826         [C99-based-standards] (SCNu32): Likewise.
54827         [C99-based-standards] (SCNx32): Likewise.
54828         [C99-based-standards] (PRIdLEAST32): Likewise.
54829         [C99-based-standards] (PRIiLEAST32): Likewise.
54830         [C99-based-standards] (PRIoLEAST32): Likewise.
54831         [C99-based-standards] (PRIuLEAST32): Likewise.
54832         [C99-based-standards] (PRIxLEAST32): Likewise.
54833         [C99-based-standards] (PRIXLEAST32): Likewise.
54834         [C99-based-standards] (SCNdLEAST32): Likewise.
54835         [C99-based-standards] (SCNiLEAST32): Likewise.
54836         [C99-based-standards] (SCNoLEAST32): Likewise.
54837         [C99-based-standards] (SCNuLEAST32): Likewise.
54838         [C99-based-standards] (SCNxLEAST32): Likewise.
54839         [C99-based-standards] (PRIdFAST32): Likewise.
54840         [C99-based-standards] (PRIiFAST32): Likewise.
54841         [C99-based-standards] (PRIoFAST32): Likewise.
54842         [C99-based-standards] (PRIuFAST32): Likewise.
54843         [C99-based-standards] (PRIxFAST32): Likewise.
54844         [C99-based-standards] (PRIXFAST32): Likewise.
54845         [C99-based-standards] (SCNdFAST32): Likewise.
54846         [C99-based-standards] (SCNiFAST32): Likewise.
54847         [C99-based-standards] (SCNoFAST32): Likewise.
54848         [C99-based-standards] (SCNuFAST32): Likewise.
54849         [C99-based-standards] (SCNxFAST32): Likewise.
54850         [C99-based-standards] (PRId64): Likewise.
54851         [C99-based-standards] (PRIi64): Likewise.
54852         [C99-based-standards] (PRIo64): Likewise.
54853         [C99-based-standards] (PRIu64): Likewise.
54854         [C99-based-standards] (PRIx64): Likewise.
54855         [C99-based-standards] (PRIX64): Likewise.
54856         [C99-based-standards] (SCNd64): Likewise.
54857         [C99-based-standards] (SCNi64): Likewise.
54858         [C99-based-standards] (SCNo64): Likewise.
54859         [C99-based-standards] (SCNu64): Likewise.
54860         [C99-based-standards] (SCNx64): Likewise.
54861         [C99-based-standards] (PRIdLEAST64): Likewise.
54862         [C99-based-standards] (PRIiLEAST64): Likewise.
54863         [C99-based-standards] (PRIoLEAST64): Likewise.
54864         [C99-based-standards] (PRIuLEAST64): Likewise.
54865         [C99-based-standards] (PRIxLEAST64): Likewise.
54866         [C99-based-standards] (PRIXLEAST64): Likewise.
54867         [C99-based-standards] (SCNdLEAST64): Likewise.
54868         [C99-based-standards] (SCNiLEAST64): Likewise.
54869         [C99-based-standards] (SCNoLEAST64): Likewise.
54870         [C99-based-standards] (SCNuLEAST64): Likewise.
54871         [C99-based-standards] (SCNxLEAST64): Likewise.
54872         [C99-based-standards] (PRIdFAST64): Likewise.
54873         [C99-based-standards] (PRIiFAST64): Likewise.
54874         [C99-based-standards] (PRIoFAST64): Likewise.
54875         [C99-based-standards] (PRIuFAST64): Likewise.
54876         [C99-based-standards] (PRIxFAST64): Likewise.
54877         [C99-based-standards] (PRIXFAST64): Likewise.
54878         [C99-based-standards] (SCNdFAST64): Likewise.
54879         [C99-based-standards] (SCNiFAST64): Likewise.
54880         [C99-based-standards] (SCNoFAST64): Likewise.
54881         [C99-based-standards] (SCNuFAST64): Likewise.
54882         [C99-based-standards] (SCNxFAST64): Likewise.
54883         [C99-based-standards] (PRIdMAX): Likewise.
54884         [C99-based-standards] (PRIiMAX): Likewise.
54885         [C99-based-standards] (PRIoMAX): Likewise.
54886         [C99-based-standards] (PRIuMAX): Likewise.
54887         [C99-based-standards] (PRIxMAX): Likewise.
54888         [C99-based-standards] (PRIXMAX): Likewise.
54889         [C99-based-standards] (SCNdMAX): Likewise.
54890         [C99-based-standards] (SCNiMAX): Likewise.
54891         [C99-based-standards] (SCNoMAX): Likewise.
54892         [C99-based-standards] (SCNuMAX): Likewise.
54893         [C99-based-standards] (SCNxMAX): Likewise.
54894         [C99-based-standards] (PRIdPTR): Likewise.
54895         [C99-based-standards] (PRIiPTR): Likewise.
54896         [C99-based-standards] (PRIoPTR): Likewise.
54897         [C99-based-standards] (PRIuPTR): Likewise.
54898         [C99-based-standards] (PRIxPTR): Likewise.
54899         [C99-based-standards] (PRIXPTR): Likewise.
54900         [C99-based-standards] (SCNdPTR): Likewise.
54901         [C99-based-standards] (SCNiPTR): Likewise.
54902         [C99-based-standards] (SCNoPTR): Likewise.
54903         [C99-based-standards] (SCNuPTR): Likewise.
54904         [C99-based-standards] (SCNxPTR): Likewise.
54905         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
54906         allow.
54907         * conform/data/stdint.h-data: Update comments to clarify
54908         requirements.
54909         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
54910         type.
54911         [C99-based standards] (INT8_MAX): Likewise.
54912         [C99-based standards] (INT16_MIN): Likewise.
54913         [C99-based standards] (INT16_MAX): Likewise.
54914         [C99-based standards] (INT32_MIN): Likewise.
54915         [C99-based standards] (INT32_MAX): Likewise.
54916         [C99-based standards] (INT64_MIN): Likewise.
54917         [C99-based standards] (INT64_MAX): Likewise.
54918         [C99-based standards] (UINT8_MAX): Likewise.
54919         [C99-based standards] (UINT16_MAX): Likewise.
54920         [C99-based standards] (UINT32_MAX): Likewise.
54921         [C99-based standards] (UINT64_MAX): Likewise.
54922         [C99-based standards] (INT_LEAST8_MIN): Likewise.
54923         [C99-based standards] (INT_LEAST8_MAX): Likewise.
54924         [C99-based standards] (INT_LEAST16_MIN): Likewise.
54925         [C99-based standards] (INT_LEAST16_MAX): Likewise.
54926         [C99-based standards] (INT_LEAST32_MIN): Likewise.
54927         [C99-based standards] (INT_LEAST32_MAX): Likewise.
54928         [C99-based standards] (INT_LEAST64_MIN): Likewise.
54929         [C99-based standards] (INT_LEAST64_MAX): Likewise.
54930         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
54931         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
54932         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
54933         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
54934         [C99-based standards] (INT_FAST8_MIN): Likewise.
54935         [C99-based standards] (INT_FAST8_MAX): Likewise.
54936         [C99-based standards] (INT_FAST16_MIN): Likewise.
54937         [C99-based standards] (INT_FAST16_MAX): Likewise.
54938         [C99-based standards] (INT_FAST32_MIN): Likewise.
54939         [C99-based standards] (INT_FAST32_MAX): Likewise.
54940         [C99-based standards] (INT_FAST64_MIN): Likewise.
54941         [C99-based standards] (INT_FAST64_MAX): Likewise.
54942         [C99-based standards] (UINT_FAST8_MAX): Likewise.
54943         [C99-based standards] (UINT_FAST16_MAX): Likewise.
54944         [C99-based standards] (UINT_FAST32_MAX): Likewise.
54945         [C99-based standards] (UINT_FAST64_MAX): Likewise.
54946         [C99-based standards] (INTPTR_MIN): Likewise.
54947         [C99-based standards] (INTPTR_MAX): Likewise.
54948         [C99-based standards] (UINTPTR_MAX): Likewise.
54949         [C99-based standards] (INTMAX_MIN): Likewise.
54950         [C99-based standards] (INTMAX_MAX): Likewise.
54951         [C99-based standards] (UINTMAX_MAX): Likewise.
54952         [C99-based standards] (PTRDIFF_MIN): Likewise.
54953         [C99-based standards] (PTRDIFF_MAX): Likewise.
54954         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
54955         [C99-based standards] (SIZE_MAX): Likewise.
54956         [C99-based standards] (WCHAR_MAX): Likewise.
54957         [C99-based standards] (WINT_MAX): Likewise.
54958         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
54959         constraint on value.
54960         [C99-based standards] (WCHAR_MIN): Likewise.
54961         [C99-based standards] (WINT_MIN): Likewise.
54962         [C99-based standards] (*_t): Allow.
54963         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
54964         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
54965         Include math.h-data and complex.h-data.  Remove all expectations
54966         of math.h and complex.h contents.
54967         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
54968         at end of line.
54969         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
54970         (struct tm): Expect tag.
54971         [C99-based-standards] (wcstof): Expect function.
54972         [C99-based-standards] (wcstold): Likewise.
54973         [C99-based-standards] (wcstoll): Likewise.
54974         [C99-based-standards] (wcstoull): Likewise.
54975         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
54976         macro-int-constant.  Specify type.
54977         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
54978         constraint on value.
54979         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54980         Specify type.
54981         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
54982         Specify value.
54983         [ISO C standards]: Do not allow headers.
54984         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
54985         wcs[abcdefghijklmnopqrstuvwxyz]*.
54986         [ISO C standards] (*_t): Do not allow.
54987         * conform/data/wctype.h-data [C99-based standards] (iswblank):
54988         Expect function.
54989         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
54990         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54991         Specify type.
54992         [ISO C standards]: Do not allow headers.
54993         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
54994         is[abcdefghijklmnopqrstuvwxyz]*.
54995         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
54996         to[abcdefghijklmnopqrstuvwxyz]*.
54997         [ISO C standards] (*_t): Do not allow.
54998         * conform/data/stdalign.h-data: New file.
54999         * conform/data/stdbool.h-data: Likewise.
55000         * conform/data/stdnoreturn.h-data: Likewise.
55001
55002 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55003
55004         [BZ #14815]
55005         * manual/filesys.texi (Directory Entries): Typo fix.
55006         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55007
55008 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55009
55010         * elf/elf.h (EM_AARCH64): New macro.
55011         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55012         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55013         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55014         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55015         (R_AARCH64_TLSDESC): Likewise.
55016         (NT_ARM_TLS): Likewise.
55017         (NT_ARM_HW_BREAK): Likewise.
55018         (NT_ARM_HW_WATCH): Likewise.
55019
55020 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55021
55022         [BZ #14811]
55023         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55024         (__ieee754_powl): Saturate nonzero exponents with absolute value
55025         below 0x1p-79 to +/- 0x1p-79.
55026         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55027         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55028         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55029         nonzero exponents with absolute value below 0x1p-32 to +/-
55030         0x1p-32.
55031         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55032         (__ieee754_powl): Saturate nonzero exponents with absolute value
55033         below 0x1p-79 to +/- 0x1p-79.
55034         * math/libm-test.inc (pow_test): Add more tests.
55035
55036 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55037
55038         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55039         _dl_s390_cap_flags with kernel. Increase string length.
55040         (_dl_s390_platforms): Add z196 and zEC12.
55041
55042 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55043
55044         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55045         Change XOPEN21K to XOPEN2K.
55046
55047 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55048
55049         * string/memmove.c: Use memcpy when possible.
55050
55051 2012-11-06  Andreas Jaeger  <aj@suse.de>
55052
55053         * po/eo.po: Update from translation team.
55054
55055 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55056
55057         [BZ #14793]
55058         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55059         exponent and small x and y exponents, scale x or y up.  Increase
55060         by 2 the exponent used in scaling up.
55061         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55062         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55063         * math/libm-test.inc (fma_test): Add more tests.
55064         (fma_test_towardzero): Likewise.
55065         (fma_test_downward): Likewise.
55066         (fma_test_upward): Likewise.
55067
55068 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55069
55070         [BZ #14805]
55071         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55072         fenv_t *.
55073
55074         [BZ #14801]
55075         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55076         namespace for names of struct fields.
55077         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55078         fenv_t fields.
55079         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55080         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55081
55082 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55083
55084         [BZ #3665]
55085         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55086
55087 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55088
55089         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55090         PTR_DEMANGLE.
55091
55092         [BZ #5246]
55093         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55094         PTR_DEMANGLE.
55095
55096 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55097
55098         [BZ #14797]
55099         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55100         definitely overflow as x * y not x * y + z.
55101         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55102         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55103         * math/libm-test.inc (fma_test): Add more tests.
55104         (fma_test_towardzero): Likewise.
55105         (fma_test_downward): Likewise.
55106         (fma_test_upward): Likewise.
55107
55108 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55109
55110         [BZ #157]
55111
55112         * include/stub-tag.h: Remove file.
55113         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55114         '#include' of it.
55115         * manual/maint.texi (Porting): Don't reference it.
55116         * Makerules ($(objpfx)stubs): Likewise.
55117         * dirent/closedir.c: Don't include <stub-tag.h>.
55118         * dirent/dirfd.c: Likewise.
55119         * dirent/fdopendir.c: Likewise.
55120         * dirent/getdents.c: Likewise.
55121         * dirent/getdents64.c: Likewise.
55122         * dirent/opendir.c: Likewise.
55123         * dirent/readdir.c: Likewise.
55124         * dirent/readdir64.c: Likewise.
55125         * dirent/readdir64_r.c: Likewise.
55126         * dirent/readdir_r.c: Likewise.
55127         * dirent/rewinddir.c: Likewise.
55128         * dirent/seekdir.c: Likewise.
55129         * dirent/telldir.c: Likewise.
55130         * gmon/profil.c: Likewise.
55131         * grp/setgroups.c: Likewise.
55132         * inet/if_index.c: Likewise.
55133         * io/access.c: Likewise.
55134         * io/chdir.c: Likewise.
55135         * io/chmod.c: Likewise.
55136         * io/chown.c: Likewise.
55137         * io/close.c: Likewise.
55138         * io/dup.c: Likewise.
55139         * io/dup2.c: Likewise.
55140         * io/dup3.c: Likewise.
55141         * io/euidaccess.c: Likewise.
55142         * io/faccessat.c: Likewise.
55143         * io/fchdir.c: Likewise.
55144         * io/fchmod.c: Likewise.
55145         * io/fchmodat.c: Likewise.
55146         * io/fchown.c: Likewise.
55147         * io/fchownat.c: Likewise.
55148         * io/fcntl.c: Likewise.
55149         * io/flock.c: Likewise.
55150         * io/fstatfs.c: Likewise.
55151         * io/fstatfs64.c: Likewise.
55152         * io/fstatvfs.c: Likewise.
55153         * io/fstatvfs64.c: Likewise.
55154         * io/futimens.c: Likewise.
55155         * io/fxstat.c: Likewise.
55156         * io/fxstat64.c: Likewise.
55157         * io/fxstatat.c: Likewise.
55158         * io/fxstatat64.c: Likewise.
55159         * io/getcwd.c: Likewise.
55160         * io/isatty.c: Likewise.
55161         * io/lchmod.c: Likewise.
55162         * io/lchown.c: Likewise.
55163         * io/link.c: Likewise.
55164         * io/linkat.c: Likewise.
55165         * io/lseek.c: Likewise.
55166         * io/lseek64.c: Likewise.
55167         * io/lxstat64.c: Likewise.
55168         * io/mkdir.c: Likewise.
55169         * io/mkdirat.c: Likewise.
55170         * io/mkfifo.c: Likewise.
55171         * io/mkfifoat.c: Likewise.
55172         * io/open.c: Likewise.
55173         * io/open64.c: Likewise.
55174         * io/openat.c: Likewise.
55175         * io/openat64.c: Likewise.
55176         * io/pipe.c: Likewise.
55177         * io/pipe2.c: Likewise.
55178         * io/poll.c: Likewise.
55179         * io/posix_fadvise.c: Likewise.
55180         * io/posix_fadvise64.c: Likewise.
55181         * io/posix_fallocate.c: Likewise.
55182         * io/posix_fallocate64.c: Likewise.
55183         * io/read.c: Likewise.
55184         * io/readlink.c: Likewise.
55185         * io/readlinkat.c: Likewise.
55186         * io/rmdir.c: Likewise.
55187         * io/sendfile.c: Likewise.
55188         * io/sendfile64.c: Likewise.
55189         * io/statfs.c: Likewise.
55190         * io/statfs64.c: Likewise.
55191         * io/statvfs.c: Likewise.
55192         * io/statvfs64.c: Likewise.
55193         * io/symlink.c: Likewise.
55194         * io/symlinkat.c: Likewise.
55195         * io/ttyname.c: Likewise.
55196         * io/ttyname_r.c: Likewise.
55197         * io/umask.c: Likewise.
55198         * io/unlink.c: Likewise.
55199         * io/unlinkat.c: Likewise.
55200         * io/utime.c: Likewise.
55201         * io/utimensat.c: Likewise.
55202         * io/write.c: Likewise.
55203         * io/xmknod.c: Likewise.
55204         * io/xmknodat.c: Likewise.
55205         * io/xstat.c: Likewise.
55206         * io/xstat64.c: Likewise.
55207         * login/getpt.c: Likewise.
55208         * login/grantpt.c: Likewise.
55209         * login/unlockpt.c: Likewise.
55210         * math/e_acoshl.c: Likewise.
55211         * math/e_acosl.c: Likewise.
55212         * math/e_asinl.c: Likewise.
55213         * math/e_atan2l.c: Likewise.
55214         * math/e_atanhl.c: Likewise.
55215         * math/e_coshl.c: Likewise.
55216         * math/e_expl.c: Likewise.
55217         * math/e_fmodl.c: Likewise.
55218         * math/e_gammal_r.c: Likewise.
55219         * math/e_hypotl.c: Likewise.
55220         * math/e_j0l.c: Likewise.
55221         * math/e_j1l.c: Likewise.
55222         * math/e_jnl.c: Likewise.
55223         * math/e_lgammal_r.c: Likewise.
55224         * math/e_log10l.c: Likewise.
55225         * math/e_log2l.c: Likewise.
55226         * math/e_logl.c: Likewise.
55227         * math/e_powl.c: Likewise.
55228         * math/e_rem_pio2l.c: Likewise.
55229         * math/e_sinhl.c: Likewise.
55230         * math/e_sqrtl.c: Likewise.
55231         * math/fclrexcpt.c: Likewise.
55232         * math/fedisblxcpt.c: Likewise.
55233         * math/feenablxcpt.c: Likewise.
55234         * math/fegetenv.c: Likewise.
55235         * math/fegetexcept.c: Likewise.
55236         * math/fegetround.c: Likewise.
55237         * math/feholdexcpt.c: Likewise.
55238         * math/fesetenv.c: Likewise.
55239         * math/fesetround.c: Likewise.
55240         * math/feupdateenv.c: Likewise.
55241         * math/fgetexcptflg.c: Likewise.
55242         * math/fraiseexcpt.c: Likewise.
55243         * math/fsetexcptflg.c: Likewise.
55244         * math/ftestexcept.c: Likewise.
55245         * math/k_cosl.c: Likewise.
55246         * math/k_rem_pio2l.c: Likewise.
55247         * math/k_sinl.c: Likewise.
55248         * math/k_tanl.c: Likewise.
55249         * math/s_asinhl.c: Likewise.
55250         * math/s_atanl.c: Likewise.
55251         * math/s_cbrtl.c: Likewise.
55252         * math/s_erfl.c: Likewise.
55253         * math/s_expm1l.c: Likewise.
55254         * math/s_log1pl.c: Likewise.
55255         * math/s_tanhl.c: Likewise.
55256         * misc/acct.c: Likewise.
55257         * misc/brk.c: Likewise.
55258         * misc/chflags.c: Likewise.
55259         * misc/chroot.c: Likewise.
55260         * misc/fchflags.c: Likewise.
55261         * misc/fgetxattr.c: Likewise.
55262         * misc/flistxattr.c: Likewise.
55263         * misc/fremovexattr.c: Likewise.
55264         * misc/fsetxattr.c: Likewise.
55265         * misc/fsync.c: Likewise.
55266         * misc/ftruncate.c: Likewise.
55267         * misc/futimes.c: Likewise.
55268         * misc/futimesat.c: Likewise.
55269         * misc/getdomain.c: Likewise.
55270         * misc/getdtsz.c: Likewise.
55271         * misc/gethostid.c: Likewise.
55272         * misc/gethostname.c: Likewise.
55273         * misc/getloadavg.c: Likewise.
55274         * misc/getpagesize.c: Likewise.
55275         * misc/getsysstats.c: Likewise.
55276         * misc/getxattr.c: Likewise.
55277         * misc/gtty.c: Likewise.
55278         * misc/ioctl.c: Likewise.
55279         * misc/lgetxattr.c: Likewise.
55280         * misc/listxattr.c: Likewise.
55281         * misc/llistxattr.c: Likewise.
55282         * misc/lremovexattr.c: Likewise.
55283         * misc/lsetxattr.c: Likewise.
55284         * misc/lutimes.c: Likewise.
55285         * misc/madvise.c: Likewise.
55286         * misc/mincore.c: Likewise.
55287         * misc/mlock.c: Likewise.
55288         * misc/mlockall.c: Likewise.
55289         * misc/mmap.c: Likewise.
55290         * misc/mprotect.c: Likewise.
55291         * misc/msync.c: Likewise.
55292         * misc/munlock.c: Likewise.
55293         * misc/munlockall.c: Likewise.
55294         * misc/munmap.c: Likewise.
55295         * misc/preadv.c: Likewise.
55296         * misc/preadv64.c: Likewise.
55297         * misc/ptrace.c: Likewise.
55298         * misc/pwritev.c: Likewise.
55299         * misc/pwritev64.c: Likewise.
55300         * misc/readv.c: Likewise.
55301         * misc/reboot.c: Likewise.
55302         * misc/remap_file_pages.c: Likewise.
55303         * misc/removexattr.c: Likewise.
55304         * misc/revoke.c: Likewise.
55305         * misc/select.c: Likewise.
55306         * misc/setdomain.c: Likewise.
55307         * misc/setegid.c: Likewise.
55308         * misc/seteuid.c: Likewise.
55309         * misc/sethostid.c: Likewise.
55310         * misc/sethostname.c: Likewise.
55311         * misc/setregid.c: Likewise.
55312         * misc/setreuid.c: Likewise.
55313         * misc/setxattr.c: Likewise.
55314         * misc/sstk.c: Likewise.
55315         * misc/stty.c: Likewise.
55316         * misc/swapoff.c: Likewise.
55317         * misc/swapon.c: Likewise.
55318         * misc/sync.c: Likewise.
55319         * misc/syncfs.c: Likewise.
55320         * misc/syscall.c: Likewise.
55321         * misc/truncate.c: Likewise.
55322         * misc/ualarm.c: Likewise.
55323         * misc/usleep.c: Likewise.
55324         * misc/ustat.c: Likewise.
55325         * misc/utimes.c: Likewise.
55326         * misc/vhangup.c: Likewise.
55327         * misc/writev.c: Likewise.
55328         * posix/_exit.c: Likewise.
55329         * posix/alarm.c: Likewise.
55330         * posix/execve.c: Likewise.
55331         * posix/fexecve.c: Likewise.
55332         * posix/fork.c: Likewise.
55333         * posix/fpathconf.c: Likewise.
55334         * posix/getaddrinfo.c: Likewise.
55335         * posix/getegid.c: Likewise.
55336         * posix/geteuid.c: Likewise.
55337         * posix/getgid.c: Likewise.
55338         * posix/getgroups.c: Likewise.
55339         * posix/getlogin.c: Likewise.
55340         * posix/getlogin_r.c: Likewise.
55341         * posix/getpgid.c: Likewise.
55342         * posix/getpid.c: Likewise.
55343         * posix/getppid.c: Likewise.
55344         * posix/getresgid.c: Likewise.
55345         * posix/getresuid.c: Likewise.
55346         * posix/getsid.c: Likewise.
55347         * posix/getuid.c: Likewise.
55348         * posix/glob64.c: Likewise.
55349         * posix/nanosleep.c: Likewise.
55350         * posix/pathconf.c: Likewise.
55351         * posix/pause.c: Likewise.
55352         * posix/posix_madvise.c: Likewise.
55353         * posix/pread.c: Likewise.
55354         * posix/pread64.c: Likewise.
55355         * posix/pwrite.c: Likewise.
55356         * posix/pwrite64.c: Likewise.
55357         * posix/sched_getaffinity.c: Likewise.
55358         * posix/sched_getp.c: Likewise.
55359         * posix/sched_gets.c: Likewise.
55360         * posix/sched_primax.c: Likewise.
55361         * posix/sched_primin.c: Likewise.
55362         * posix/sched_rr_gi.c: Likewise.
55363         * posix/sched_setaffinity.c: Likewise.
55364         * posix/sched_setp.c: Likewise.
55365         * posix/sched_sets.c: Likewise.
55366         * posix/sched_yield.c: Likewise.
55367         * posix/setgid.c: Likewise.
55368         * posix/setlogin.c: Likewise.
55369         * posix/setpgid.c: Likewise.
55370         * posix/setresgid.c: Likewise.
55371         * posix/setresuid.c: Likewise.
55372         * posix/setsid.c: Likewise.
55373         * posix/setuid.c: Likewise.
55374         * posix/sleep.c: Likewise.
55375         * posix/spawni.c: Likewise.
55376         * posix/sysconf.c: Likewise.
55377         * posix/times.c: Likewise.
55378         * posix/wait.c: Likewise.
55379         * posix/wait3.c: Likewise.
55380         * posix/wait4.c: Likewise.
55381         * posix/waitpid.c: Likewise.
55382         * resolv/gai_sigqueue.c: Likewise.
55383         * resource/getpriority.c: Likewise.
55384         * resource/getrlimit.c: Likewise.
55385         * resource/getrusage.c: Likewise.
55386         * resource/nice.c: Likewise.
55387         * resource/setpriority.c: Likewise.
55388         * resource/setrlimit.c: Likewise.
55389         * resource/ulimit.c: Likewise.
55390         * rt/aio_cancel.c: Likewise.
55391         * rt/aio_fsync.c: Likewise.
55392         * rt/aio_read.c: Likewise.
55393         * rt/aio_sigqueue.c: Likewise.
55394         * rt/aio_suspend.c: Likewise.
55395         * rt/aio_write.c: Likewise.
55396         * rt/clock_getres.c: Likewise.
55397         * rt/clock_gettime.c: Likewise.
55398         * rt/clock_nanosleep.c: Likewise.
55399         * rt/clock_settime.c: Likewise.
55400         * rt/lio_listio.c: Likewise.
55401         * rt/mq_close.c: Likewise.
55402         * rt/mq_getattr.c: Likewise.
55403         * rt/mq_notify.c: Likewise.
55404         * rt/mq_open.c: Likewise.
55405         * rt/mq_receive.c: Likewise.
55406         * rt/mq_send.c: Likewise.
55407         * rt/mq_setattr.c: Likewise.
55408         * rt/mq_timedreceive.c: Likewise.
55409         * rt/mq_timedsend.c: Likewise.
55410         * rt/mq_unlink.c: Likewise.
55411         * rt/shm_open.c: Likewise.
55412         * rt/shm_unlink.c: Likewise.
55413         * rt/timer_create.c: Likewise.
55414         * rt/timer_delete.c: Likewise.
55415         * rt/timer_getoverr.c: Likewise.
55416         * rt/timer_gettime.c: Likewise.
55417         * rt/timer_settime.c: Likewise.
55418         * setjmp/__longjmp.c: Likewise.
55419         * setjmp/setjmp.c: Likewise.
55420         * signal/kill.c: Likewise.
55421         * signal/killpg.c: Likewise.
55422         * signal/raise.c: Likewise.
55423         * signal/sigaction.c: Likewise.
55424         * signal/sigaltstack.c: Likewise.
55425         * signal/sigblock.c: Likewise.
55426         * signal/sigignore.c: Likewise.
55427         * signal/sigintr.c: Likewise.
55428         * signal/signal.c: Likewise.
55429         * signal/sigpause.c: Likewise.
55430         * signal/sigpending.c: Likewise.
55431         * signal/sigqueue.c: Likewise.
55432         * signal/sigreturn.c: Likewise.
55433         * signal/sigset.c: Likewise.
55434         * signal/sigsetmask.c: Likewise.
55435         * signal/sigstack.c: Likewise.
55436         * signal/sigsuspend.c: Likewise.
55437         * signal/sigtimedwait.c: Likewise.
55438         * signal/sigvec.c: Likewise.
55439         * signal/sigwait.c: Likewise.
55440         * signal/sigwaitinfo.c: Likewise.
55441         * signal/sysv_signal.c: Likewise.
55442         * socket/accept.c: Likewise.
55443         * socket/accept4.c: Likewise.
55444         * socket/bind.c: Likewise.
55445         * socket/connect.c: Likewise.
55446         * socket/getpeername.c: Likewise.
55447         * socket/getsockname.c: Likewise.
55448         * socket/getsockopt.c: Likewise.
55449         * socket/isfdtype.c: Likewise.
55450         * socket/listen.c: Likewise.
55451         * socket/recv.c: Likewise.
55452         * socket/recvfrom.c: Likewise.
55453         * socket/recvmsg.c: Likewise.
55454         * socket/send.c: Likewise.
55455         * socket/sendmsg.c: Likewise.
55456         * socket/sendto.c: Likewise.
55457         * socket/setsockopt.c: Likewise.
55458         * socket/shutdown.c: Likewise.
55459         * socket/sockatmark.c: Likewise.
55460         * socket/socket.c: Likewise.
55461         * socket/socketpair.c: Likewise.
55462         * stdio-common/ctermid.c: Likewise.
55463         * stdio-common/cuserid.c: Likewise.
55464         * stdio-common/remove.c: Likewise.
55465         * stdio-common/rename.c: Likewise.
55466         * stdio-common/renameat.c: Likewise.
55467         * stdio-common/tempname.c: Likewise.
55468         * stdlib/getcontext.c: Likewise.
55469         * stdlib/makecontext.c: Likewise.
55470         * stdlib/setcontext.c: Likewise.
55471         * stdlib/swapcontext.c: Likewise.
55472         * stdlib/system.c: Likewise.
55473         * streams/fattach.c: Likewise.
55474         * streams/fdetach.c: Likewise.
55475         * streams/getmsg.c: Likewise.
55476         * streams/getpmsg.c: Likewise.
55477         * streams/putmsg.c: Likewise.
55478         * streams/putpmsg.c: Likewise.
55479         * sysdeps/unix/bsd/getpt.c: Likewise.
55480         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55481         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55482         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55484         Likewise.
55485         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55486         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55487         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55488         * sysvipc/msgctl.c: Likewise.
55489         * sysvipc/msgget.c: Likewise.
55490         * sysvipc/msgrcv.c: Likewise.
55491         * sysvipc/msgsnd.c: Likewise.
55492         * sysvipc/semctl.c: Likewise.
55493         * sysvipc/semget.c: Likewise.
55494         * sysvipc/semop.c: Likewise.
55495         * sysvipc/semtimedop.c: Likewise.
55496         * sysvipc/shmat.c: Likewise.
55497         * sysvipc/shmctl.c: Likewise.
55498         * sysvipc/shmdt.c: Likewise.
55499         * sysvipc/shmget.c: Likewise.
55500         * termios/tcdrain.c: Likewise.
55501         * termios/tcflow.c: Likewise.
55502         * termios/tcflush.c: Likewise.
55503         * termios/tcgetattr.c: Likewise.
55504         * termios/tcgetpgrp.c: Likewise.
55505         * termios/tcsendbrk.c: Likewise.
55506         * termios/tcsetattr.c: Likewise.
55507         * termios/tcsetpgrp.c: Likewise.
55508         * time/adjtime.c: Likewise.
55509         * time/clock.c: Likewise.
55510         * time/getitimer.c: Likewise.
55511         * time/gettimeofday.c: Likewise.
55512         * time/setitimer.c: Likewise.
55513         * time/settimeofday.c: Likewise.
55514         * time/stime.c: Likewise.
55515         * time/time.c: Likewise.
55516
55517 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55518
55519         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55520         /usr/old/bin.
55521
55522         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55523         instead of spaces.
55524         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55525
55526 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55527
55528         [BZ #14796]
55529         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55530         FE_TONEAREST before applying Dekker multiplication and Knuth
55531         addition.  Clear inexact exceptions and check for exact zero
55532         results afterwards.
55533         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55534         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55535         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55536         * math/libm-test.inc (fma_test): Add more tests.
55537         (fma_test_towardzero): Likewise.
55538         (fma_test_downward): Likewise.
55539         (fma_test_upward): Likewise.
55540         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55541         function.
55542         (libc_fesetround): New macro.
55543         (libc_fesetroundf): Likewise.
55544         (libc_fesetroundl): Likewise.
55545         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55546         function.
55547         (libc_fesetround_387): Likewise.
55548         (libc_fesetroundf): New macro.
55549         (libc_fesetround): Likewise.
55550         (libc_fesetroundl): Likewise.
55551         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55552         function.
55553         (libc_fesetroundf): New macro.
55554         (libc_fesetround): Likewise.
55555         (libc_fesetroundl): Likewise.
55556         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55557         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55558         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55559         libm_hidden_ver.
55560         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55561         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55562         libm_hidden_def.
55563         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55564         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55565         libm_hidden_ver.
55566         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55567         libm_hidden_def.
55568
55569         [BZ #3439]
55570         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55571         integer constant usable in #if and use that to give value to enum
55572         constant.
55573         (FE_DIVBYZERO): Likewise.
55574         (FE_UNDERFLOW): Likewise.
55575         (FE_OVERFLOW): Likewise.
55576         (FE_INVALID): Likewise.
55577         (FE_INVALID_SNAN): Likewise.
55578         (FE_INVALID_ISI): Likewise.
55579         (FE_INVALID_IDI): Likewise.
55580         (FE_INVALID_ZDZ): Likewise.
55581         (FE_INVALID_IMZ): Likewise.
55582         (FE_INVALID_COMPARE): Likewise.
55583         (FE_INVALID_SOFTWARE): Likewise.
55584         (FE_INVALID_SQRT): Likewise.
55585         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55586         (FE_TONEAREST): Likewise.
55587         (FE_TOWARDZERO): Likewise.
55588         (FE_UPWARD): Likewise.
55589         (FE_DOWNWARD): Likewise.
55590         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55591         (FE_DIVBYZERO): Likewise.
55592         (FE_OVERFLOW): Likewise.
55593         (FE_UNDERFLOW): Likewise.
55594         (FE_INEXACT): Likewise.
55595         (FE_TONEAREST): Likewise.
55596         (FE_DOWNWARD): Likewise.
55597         (FE_UPWARD): Likewise.
55598         (FE_TOWARDZERO): Likewise.
55599         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55600         (FE_UNDERFLOW): Likewise.
55601         (FE_OVERFLOW): Likewise.
55602         (FE_DIVBYZERO): Likewise.
55603         (FE_INVALID): Likewise.
55604         (FE_TONEAREST): Likewise.
55605         (FE_TOWARDZERO): Likewise.
55606         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55607         (FE_OVERFLOW): Likewise.
55608         (FE_UNDERFLOW): Likewise.
55609         (FE_DIVBYZERO): Likewise.
55610         (FE_INEXACT): Likewise.
55611         (FE_TONEAREST): Likewise.
55612         (FE_TOWARDZERO): Likewise.
55613         (FE_UPWARD): Likewise.
55614         (FE_DOWNWARD): Likewise.
55615         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55616         (FE_DIVBYZERO): Likewise.
55617         (FE_OVERFLOW): Likewise.
55618         (FE_UNDERFLOW): Likewise.
55619         (FE_INEXACT): Likewise.
55620         (FE_TONEAREST): Likewise.
55621         (FE_DOWNWARD): Likewise.
55622         (FE_UPWARD): Likewise.
55623         (FE_TOWARDZERO): Likewise.
55624
55625 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55626
55627         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55628
55629 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55630
55631         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55632         commands.  Quote $PWD.
55633         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55634         -x" by "export".
55635         (remove_newlines): Remove.
55636
55637 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55638
55639         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55640         * stdlib/stdlib.h (atof): Moved to ...
55641         * include/bits/stdlib-float.h: Here.  New file.
55642         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55643         * stdlib/bits/stdlib-float.h: New file.
55644         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55645         -mno-sse -mno-mmx.
55646         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55647         <xmmintrin.h>.
55648
55649 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55650
55651         * conform/conformtest.pl (@headers): Add fenv.h.
55652         * conform/data/fenv.h-data: New file.
55653         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55654         include of <math/fenv.h>.
55655
55656         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55657         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55658         && !UNIX98].  Enables tests for XOPEN2K8.
55659         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55660         POSIX2008]: Likewise.
55661
55662         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55663         (struct rusage): Do not expect type or its members.
55664
55665         [BZ #3439]
55666         * math/math.h (FP_NAN): Define macro to integer constant usable in
55667         #if and use that to give value to enum constant.
55668         (FP_INFINITE): Likewise.
55669         (FP_ZERO): Likewise.
55670         (FP_SUBNORMAL): Likewise.
55671         (FP_NORMAL): Likewise.
55672
55673 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55674
55675         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55676         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55677         arguments.
55678
55679 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55680
55681         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55682         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55683         autoconf-time if not.
55684         * configure.in: Remove AC_PREREQ.
55685
55686 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55687
55688         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55689         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55690         of the internal implementation.
55691
55692 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55693
55694         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55695         except include of <misc/sys/syslog.h>.
55696
55697 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55698
55699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55700         function returns with a NULL context exit with zero.
55701
55702 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55703
55704         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55705
55706 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55707
55708         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55709         (run_program_cmd): This.
55710         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55711         (tst_langinfo): New variable.  Use it.
55712
55713 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55714
55715         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55716         floating point opcodes.
55717
55718 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55719
55720         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55721         variable.
55722
55723         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55724
55725         * sysdeps/mach/hurd/powerpc: Remove directory.
55726         * sysdeps/mach/powerpc: Likewise.
55727
55728 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55729
55730         * scripts/check-local-headers.sh: Ignore c++ headers.
55731
55732 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55733
55734         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55735         __libc_cleanup_region_start argument.
55736
55737 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55738
55739         [BZ #14784]
55740         [BZ #14785]
55741         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55742         x * y using scaling, not as x * y + z.
55743         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55744         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55745         * math/libm-test.inc (fma_test): Add more tests.
55746         (fma_test_towardzero): Likewise.
55747         (fma_test_downward): Likewise.
55748         (fma_test_upward): Likewise.
55749
55750 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55751
55752         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55753
55754 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55755
55756         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55757         New variable.
55758
55759 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55760
55761         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55762
55763 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55764
55765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55766         Fix sort order.
55767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55768         Likewise.
55769
55770 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55771
55772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55773         Fix the order of the list for glibc 2.17.
55774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55775         Likewise.
55776
55777 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55778
55779         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55780
55781 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55782
55783         [BZ #14610]
55784         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
55785         for low part of x being zero before using __atanl (y).
55786         * math/libm-test.inc (atan2_test): Add another test.
55787
55788         * manual/install.texi (Configuring and compiling): Document
55789         general use of test-wrapper and test-wrapper-env.
55790         * INSTALL: Regenerated.
55791
55792         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
55793         (__fma): Do not extract and scale down low bits on after-rounding
55794         systems when result rounded to normal precision would have normal
55795         exponent.
55796         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
55797         (__fmal): Do not extract and scale down low bits on after-rounding
55798         systems when result rounded to normal precision would have normal
55799         exponent.
55800         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
55801         (__fmal): Do not extract and scale down low bits on after-rounding
55802         systems when result rounded to normal precision would have normal
55803         exponent.
55804         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
55805         macro.
55806         (fma_test): Add more tests.
55807         (fma_test_towardzero): Likewise.
55808         (fma_test_downward): Likewise.
55809         (fma_test_upward): Likewise.
55810
55811 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
55812
55813         * sysdeps/i386/tininess.h: Renamed to ...
55814         * sysdeps/x86/tininess.h: This.
55815         * sysdeps/x86_64/tininess.h: Removed.
55816
55817 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55818
55819         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
55820         input.  Use $(build-program-cmd).
55821         ($(objpfx)tst-array1-static.out): Likewise.
55822         ($(objpfx)tst-array2.out): Likewise.
55823         ($(objpfx)tst-array3.out): Likewise.
55824         ($(objpfx)tst-array4.out): Likewise.
55825         ($(objpfx)tst-array5.out): Likewise.
55826         ($(objpfx)tst-array5-static.out): Likewise.
55827
55828 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
55829
55830         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55831         if defined.
55832
55833         * nss/nsswitch.h (nss_interface_function): Provide new
55834         macro for use with NSS functions.
55835         * grp/initgroups.c: Use new macro.
55836         * nss/getXXbyYY.c: Likewise.
55837         * nss/getXXbyYY_r.c: Likewise.
55838         * nss/getXXent.c: Likewise.
55839         * nss/getXXent_r.c: Likewise.
55840         * sysdeps/posix/getaddrinfo.c: Likewise.
55841
55842 2012-10-30  Andreas Jaeger  <aj@suse.de>
55843
55844         * po/ru.po: Update Russion translation from translation project.
55845
55846 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55847
55848         [BZ #14152]
55849         [BZ #14783]
55850         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
55851         result and shift together with sticky bit instead of replicating
55852         round-to-nearest rounding.
55853         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55854         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55855         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
55856         missing underflow exceptions.
55857         (fma_test_towardzero): Add more tests.
55858         (fma_test_downward): Likewise.
55859         (fma_test_upward): Likewise.
55860
55861         [BZ #14047]
55862         * sysdeps/generic/tininess.h: New file.
55863         * sysdeps/i386/tininess.h: Likewise.
55864         * sysdeps/sh/tininess.h: Likewise.
55865         * sysdeps/x86_64/tininess.h: Likewise.
55866         * stdlib/tst-strtod-underflow.c: Likewise.
55867         * stdlib/tst-tininess.c: Likewise.
55868         * stdlib/strtod_l.c: Include <tininess.h>.
55869         (round_and_return): Do not set errno for exact underflow cases.
55870         Force an underflow exception when setting errno for underflow.
55871         Determine underflow based on rounding to normal precision if
55872         TININESS_AFTER_ROUNDING.
55873         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
55874         ERANGE for exact underflow cases.
55875         * stdlib/Makefile (tests): Add tst-tininess and
55876         tst-strtod-underflow.
55877         ($(objpfx)tst-tininess): Use $(link-libm).
55878         ($(objpfx)tst-strtod-underflow): Likewise.
55879
55880 2012-10-30  Andreas Jaeger  <aj@suse.de>
55881
55882         [BZ#14767]
55883         * elf/Makefile (tests): Remove conditional for have-initfini-array
55884         since this is now always required and the variable does not exist
55885         anymore.
55886         (tests-static): Likewise.
55887         (modules-names): Likewise.
55888
55889         * po/eo.po: Add Esperanto translation from translation project.
55890
55891         * elf/tst-array1.c (fini_array): Make writeable so that it can be
55892         merged with constructor/destructor.
55893         (init_array): Likewise.
55894         * elf/tst-array2dep.c (fini_array): Likewise.
55895         (init_array): Likewise.
55896
55897 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
55898
55899         * manual/message.texi: Delete @cartouche tags.
55900
55901 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
55902
55903         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
55904         EOPNOTSUPP.
55905         * sysdeps/mach/hurd/fsync.c: Likewise.
55906
55907         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
55908         [_POSIX_REALTIME_SIGNALS]: Change condition to
55909         [_POSIX_REALTIME_SIGNALS > 0].
55910
55911 2012-10-27  Andreas Jaeger  <aj@suse.de>
55912
55913         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
55914         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
55915         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
55916         [__WORDSIZE != 64]: Likewise.
55917
55918 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
55919
55920         *  iconvdata/tst-table.sh: Remove ${SHELL}.
55921         *  iconvdata/tst-tables.sh: Likewise.
55922
55923 2012-10-25  David S. Miller  <davem@davemloft.net>
55924
55925         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55926         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
55927         of strtoull.
55928
55929         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
55930         ifunc-impl-list.c
55931         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
55932         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
55933         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
55934         file.
55935
55936 2012-10-25  Roland McGrath  <roland@hack.frob.com>
55937
55938         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55939         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
55940         __getdirentries.
55941
55942 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55943             Jim Blandy  <jimb@codesourcery.com>
55944
55945         * scripts/cross-test-ssh.sh: New file.
55946         * manual/install.texi (Configuring and compiling): Document use of
55947         cross-test-ssh.sh.
55948         * INSTALL: Regenerated.
55949
55950 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
55951
55952         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
55953         EOPNOTSUPP.
55954
55955 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55956
55957         * Makeconfig (run-program-prefix): Fix comment.
55958
55959 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55960             Jim Blandy  <jimb@codesourcery.com>
55961
55962         * Makeconfig (test-wrapper): New variable,
55963         (test-wrapper-env): Likewise.
55964         [$(cross-compiling) = yes && $(test-wrapper) != ""]
55965         (run-built-tests): Define to yes.
55966         (run-program-prefix): Use $(test-wrapper).
55967         (built-program-cmd): Likewise.
55968         * Rules (make-test-out): Use $(test-wrapper-env) and
55969         $(host-built-program-cmd).
55970         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
55971         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
55972         tst-pathopt.sh.
55973         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
55974         $(test-wrapper-env) to tst-rtld-load-self.sh.
55975         ($(objpfx)order2.out): Use $(test-wrapper).
55976         ($(objpfx)tst-initorder.out): Likewise.
55977         ($(objpfx)tst-initorder2.out): Likewise.
55978         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
55979         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
55980         (test_wrapper_env): New variable.  Use it to run ld.so.
55981         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
55982         Use it to run ld.so.
55983         (test_wrapper_env): Likewise.
55984         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
55985         $(test-wrapper) to run-iconv-test.sh.
55986         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
55987         (ICONV): Use $test_wrapper.
55988         * posix/Makefile ($(objpfx)globtest.out): Pass
55989         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
55990         globtest.sh, not $(run-program-prefix).
55991         * posix/globtest.sh (run_via_rtld_prefix): New variable.
55992         (test_wrapper): Likewise.
55993         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
55994         set together with run_via_rtld_prefix.
55995         (run_program_prefix): Define in terms of test_wrapper and
55996         run_via_rtld_prefix.
55997
55998 2012-10-24  Roland McGrath  <roland@hack.frob.com>
55999
56000         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56001         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56002         Targets removed.
56003
56004         [BZ #14743]
56005         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56006         Declare __clock_getres, __clock_gettime, __clock_settime,
56007         __clock_nanosleep, and __clock_getcpuclockid.
56008         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56009         Remove librt_hidden_def (clock_gettime).
56010         * sysdeps/unix/clock_gettime.c: Likewise.
56011         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56012         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56013         * rt/clock_getres.c: Define __clock_getres as an alias.
56014         * sysdeps/posix/clock_getres.c: Likewise.
56015         * rt/clock_settime.c: Define __clock_settime as an alias.
56016         * sysdeps/unix/clock_settime.c: Likewise.
56017         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56018         * sysdeps/unix/clock_nanosleep.c: Likewise.
56019         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56020         * rt/clock-compat.c: New file.
56021         * rt/Makefile (librt-routines): Add clock-compat and move
56022         $(clock-routines) to ...
56023         (routines): ... here, new variable.
56024         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56025         Don't add get_clockfreq here.
56026         * rt/Versions (libc: GLIBC_2.17): New version set.
56027         Add clock_* symbols here.
56028         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56029         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56030         (GLIBC_2.17): Add clock_* symbols.
56031         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56032         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56033         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56035         Likewise.
56036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56037         Likewise.
56038         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56039         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56041         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56042         * NEWS: Mention the move.
56043
56044         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56045         Use __open, __read, __close rather than their public counterparts.
56046         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56047         (__get_clockfreq_via_cpuinfo): Likewise.
56048         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56049         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56050
56051         * config.h.in (HAVE_IFUNC): New #undef.
56052         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56053         was successful.
56054         * configure: Regenerated.
56055
56056 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56057
56058         * configure.in: Move READELF check to start of file.
56059         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56060         libc_cv_asm_gnu_indirect_function in the process.
56061         * configure: Regenerated.
56062
56063 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56064
56065         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56066         send the output to /dev/null.
56067         (libc_cv_cc_with_libunwind): Likewise.
56068         (libc_cv_as_noexecstack): Likewise.
56069         * configure: Regenerate.
56070
56071 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56072
56073         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56074
56075         * posix/globtest.sh (TMPDIR): Do not set.
56076         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56077         (testout): Likewise.
56078
56079 2012-10-24  Andreas Jaeger  <aj@suse.de>
56080
56081         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56082         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56083         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56084         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56085         posix_fadvise64, posix_fallocate64.
56086
56087         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56088         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56089         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56090         Likewise.
56091         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56092         Likewise.
56093         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56094
56095         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56096         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56097         <bits/fcntl-linux.h>.
56098         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56099
56100         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56101         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56102         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56103         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56104         [__WORDSIZE != 64]: Likewise.
56105
56106 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56107
56108         * Makeconfig (run-built-tests): New variable.
56109         * Rules [$(cross-compiling) = yes]: Change condition to
56110         [$(run-built-tests) = no].
56111         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56112         to [$(run-built-tests) = yes].
56113         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56114         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56115         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56116         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56117         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56118         * io/Makefile [$(cross-compiling) = no]: Likewise.
56119         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56120         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56121         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56122         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56123         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56124         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56125         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56126         * string/Makefile [$(cross-compiling) = no]: Likewise.
56127
56128         * posix/Makefile ($(objpfx)globtest.out): Pass
56129         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56130         $(rtld-installed-name).
56131         * posix/globtest.sh (elf_objpfx): Remove variable.
56132         (rtld_installed_name): Likewise.
56133         (library_path): Likewise.
56134         (run_program_prefix): New variable.  Use for running globtest
56135         binary.
56136
56137 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56138             Joseph Myers  <joseph@codesourcery.com>
56139
56140         * Makeconfig (host-built-program-cmd): New variable.
56141         * elf/Makefile (tst-stackguard1-ARGS): Use
56142         $(host-built-program-cmd).
56143         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56144         (tst-spawn-ARGS): Likewise.
56145         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56146
56147 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56148             Jim Blandy  <jimb@codesourcery.com>
56149
56150         * Makeconfig (run-via-rtld-prefix): New variable.
56151         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56152         (built-program-cmd): Likewise.
56153
56154 2012-10-22  Andreas Jaeger  <aj@suse.de>
56155
56156         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56157         __O_RSYNC if it exists, otherwise to O_SYNC.
56158
56159 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56160             Joseph Myers  <joseph@codesourcery.com>
56161
56162         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56163         /dev/null.
56164         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56165         from /dev/null
56166         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56167         /dev/null.
56168
56169 2012-10-22  Andreas Jaeger  <aj@suse.de>
56170
56171         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56172         Define always.
56173         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56174
56175         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56176         bits/fcntl-linux.h.
56177
56178         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56179         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56180
56181         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56182         to __O_LARGEFILE.
56183         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56184         to __O_LARGEFILE.
56185
56186 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56187             Joseph Myers  <joseph@codesourcery.com>
56188
56189         * config.make.in (NM): New variable.
56190
56191 2012-10-21  Andreas Jaeger  <aj@suse.de>
56192
56193         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56194         definitions and declarations that are provided by
56195         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56196
56197 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56198
56199         [BZ #14683]
56200         * elf/Makefile (tests-static): Add tst-leaks1-static.
56201         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56202         ($(objpfx)tst-leaks1-static): New rule.
56203         ($(objpfx)tst-leaks1-static-mem): Likewise.
56204         (tst-leaks1-static-ENV): New macro.
56205         * elf/dl-open.c (dl_open_worker): Check the main application
56206         only if SHARED is defined.
56207         * elf/tst-leaks1-static.c: New file.
56208
56209 2012-10-20  Andreas Jaeger  <aj@suse.de>
56210
56211         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56212         generic values for Linux.
56213         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56214         and declarations that are provided by <bits/fcntl-linux.h> and
56215         include <bits/fcntl-linux.h>.
56216         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56217         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56218
56219 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56220
56221         * io/fcntl.h: Move include of <bits/types.h> to the top and
56222         include it unconditionally.
56223
56224 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56225
56226         * wcsmbs/Makefile (tests-ifunc): New variable.
56227         (tests): Add $(tests-ifunc).
56228         * wcsmbs/test-wcschr-ifunc.c: New file.
56229         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56230         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56231         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56232         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56233         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56234
56235         * string/Makefile (tests-ifunc): New variable.
56236         (tests): Add $(tests-ifunc).
56237         * string/test-memccpy.c (TEST_NAME): New macro.
56238         * string/test-memchr.c (TEST_NAME): Likewise.
56239         * string/test-memcmp.c (TEST_NAME): Likewise.
56240         * string/test-memcpy.c (TEST_NAME): Likewise.
56241         * string/test-memmem.c (TEST_NAME): Likewise.
56242         * string/test-memmove.c (TEST_NAME): Likewise.
56243         * string/test-memset.c (TEST_NAME): Likewise.
56244         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56245         * string/test-stpcpy.c (TEST_NAME): Likewise.
56246         * string/test-stpncpy.c (TEST_NAME): Likewise.
56247         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56248         * string/test-strcasestr.c (TEST_NAME): Likewise.
56249         * string/test-strcat.c (TEST_NAME): Likewise.
56250         * string/test-strchr.c (TEST_NAME): Likewise.
56251         * string/test-strcmp.c(TEST_NAME): Likewise.
56252         * string/test-strcpy.c (TEST_NAME): Likewise.
56253         * string/test-strcspn.c (TEST_NAME): Likewise.
56254         * string/test-strlen.c (TEST_NAME): Likewise.
56255         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56256         * string/test-strncmp.c (TEST_NAME): Likewise.
56257         * string/test-strncpy.c (TEST_NAME): Likewise.
56258         * string/test-strnlen.c (TEST_NAME): Likewise.
56259         * string/test-strpbrk.c (TEST_NAME): Likewise.
56260         * string/test-strrchr.c (TEST_NAME): Likewise.
56261         * string/test-strspn.c (TEST_NAME): Likewise.
56262         * string/test-strstr.c (TEST_NAME): Likewise.
56263         * string/test-bcopy-ifunc.c: New file.
56264         * string/test-bzero-ifunc.c: Likewise.
56265         * string/test-memccpy-ifunc.c: Likewise.
56266         * string/test-memchr-ifunc.c: Likewise.
56267         * string/test-memcmp-ifunc.c: Likewise.
56268         * string/test-memcpy-ifunc.c: Likewise.
56269         * string/test-memmem-ifunc.c: Likewise.
56270         * string/test-memmove-ifunc.c: Likewise.
56271         * string/test-mempcpy-ifunc.c: Likewise.
56272         * string/test-memset-ifunc.c: Likewise.
56273         * string/test-rawmemchr-ifunc.c: Likewise.
56274         * string/test-stpcpy-ifunc.c: Likewise.
56275         * string/test-stpncpy-ifunc.c: Likewise.
56276         * string/test-strcasecmp-ifunc.c: Likewise.
56277         * string/test-strcasestr-ifunc.c: Likewise.
56278         * string/test-strcat-ifunc.c: Likewise.
56279         * string/test-strchr-ifunc.c: Likewise.
56280         * string/test-strchrnul-ifunc.c: Likewise.
56281         * string/test-strcmp-ifunc.c: Likewise.
56282         * string/test-strcpy-ifunc.c: Likewise.
56283         * string/test-strcspn-ifunc.c: Likewise.
56284         * string/test-strlen-ifunc.c: Likewise.
56285         * string/test-strncasecmp-ifunc.c: Likewise.
56286         * string/test-strncat-ifunc.c: Likewise.
56287         * string/test-strncmp-ifunc.c: Likewise.
56288         * string/test-strncpy-ifunc.c: Likewise.
56289         * string/test-strnlen-ifunc.c: Likewise.
56290         * string/test-strpbrk-ifunc.c: Likewise.
56291         * string/test-strrchr-ifunc.c: Likewise.
56292         * string/test-strspn-ifunc.c: Likewise.
56293         * string/test-strstr-ifunc.c: Likewise.
56294
56295         * debug/Makefile (tests-ifunc): New variable.
56296         (tests): Add $(tests-ifunc).
56297         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56298         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56299         * debug/test-stpcpy_chk-ifunc.c: New file.
56300         * debug/test-strcpy_chk-ifunc.c: Likewise.
56301
56302 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56303
56304         [BZ #13601]
56305         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56306         header is not read in.
56307
56308 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56309
56310         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56311         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56312         directly.  Pass built executable to script as
56313         $(built-program-cmd).
56314         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56315         $testprogram without using LD_LIBRARY_PATH and $ldso.
56316
56317         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56318         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56319         $(rtld-installed-name).
56320         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56321         (rtld_installed_name): Likewise.
56322         (library_path): Likewise.
56323         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56324         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56325         $(run-program-prefix) to tst-tables.sh.
56326         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56327         it to run tst-table-from and tst-table-to.
56328         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56329         Pass it to tst-table.sh.
56330         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56331         $(run-program-prefix) to tst-gettext.sh.
56332         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56333         tst-translit.sh.
56334         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56335         tst-gettext2.sh.
56336         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56337         to run tst-gettext.
56338         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56339         to run tst-gettext2.
56340         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56341         to run tst-translit.
56342         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56343         $(run-program-prefix) to tst-mtrace.sh.
56344         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56345         to run tst-mtrace.
56346         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56347         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56348         $(rtld-installed-name).
56349         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56350         (rtld_installed_name): Likewise.
56351         (run_program_prefix): New variable.  Use it to run wordexp-test.
56352
56353         * Makeconfig (ARCH): Remove all definitions.
56354         (machine): Likewise.
56355         [ARCH]: Remove conditional code.
56356         [!objdir]: Give error.
56357         [!objdir] (objpfx): Remove.
56358         [!objdir] (common-objpfx): Likewise.
56359         [!objdir] (common-objdir): Likewise.
56360         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56361         AC_CONFIG_FILES call.
56362         * configure: Regenerated.
56363
56364         [BZ #13888]
56365         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56366         or TMPDIR.
56367         (testout): Likewise.
56368
56369         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56370         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56371         $(rtld-installed-name).
56372         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56373         (rtld_installed_name): Likwise.
56374         (runit): Remove function.
56375         (run_getconf): New variable,  Use it for running getconf binary.
56376
56377 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56378
56379         [BZ #14716]
56380         * string/test-memmem.c (check_result): New function.
56381         (do_one_test): Use it.
56382         (check1): New function.
56383         (test_main): Use it.
56384
56385 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56386
56387         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56388
56389 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56390
56391         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56392         (_G_LSEEK64): Likewise.
56393         (_G_MMAP64): Likewise.
56394         (_G_FSTAT64): Likewise.
56395         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56396         (_G_LSEEK64): Likewise.
56397         (_G_MMAP64): Likewise.
56398         (_G_FSTAT64): Likewise.
56399         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56400         unconditional.  Call __mmap64 directly.
56401         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56402         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56403         __lseek64 directly.
56404         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56405         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56406         __mmap64 directly.
56407         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56408         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56409         __lseek64 directly.
56410         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56411         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56412         __lseek64 directly.
56413         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56414         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56415         __lseek64 directly.
56416         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56417         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56418         __fxstat64 directly.
56419         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56420         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56421         unconditional.
56422         (freopen64) [!_G_OPEN64]: Remove conditional code.
56423         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56424         unconditional.
56425         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56426         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56427         unconditional.
56428         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56429         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56430         unconditional.
56431         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56432         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56433         unconditional.
56434         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56435         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56436         unconditional.
56437         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56438         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56439         unconditional.
56440         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56441         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56442         unconditional.
56443         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56444
56445 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56446
56447         [BZ #12140]
56448         * manual/memory.texi (Malloc Tunable Parameters): Add note
56449         about free list pointers overwriting some perturb bytes.
56450         Wording suggested by Roland McGrath.
56451
56452 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56453
56454         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56455         (lgamma_test): Likewise.
56456         (tgamma_test): Likewise.
56457
56458 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56459
56460         [BZ #14700]
56461         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56462         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56463
56464 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56465
56466         * NEWS: Mention BZ #14716.
56467         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56468         when removing AVAILABLE1_USES_J macro.
56469
56470 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56471
56472         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56473         (__bswap_64): __uint64_t for unsigned 64-bit int.
56474
56475 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56476
56477         * include/string.h (memmem): Declare libc hidden alias.
56478         * string/memmem.c (memmem): Define libc hidden alias.
56479         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56480         __read, __close instead of open, read, close.
56481
56482 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56483
56484         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56485         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56486         global and hidden.
56487         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56488         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56489         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56490         Likewise.
56491         (__rawmemchr_sse2): Likewise.
56492         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56493         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56494         (__strchr_sse2): Likewise.
56495         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56496         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56497         (__strcasecmp_sse2): Likewise.
56498         (__strncasecmp_sse2): Likewise.
56499         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56500         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56501         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56502         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56503         (__strrchr_sse2): Likewise.
56504         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56505         ifunc-impl-list.c.
56506         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56507         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56508         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56509         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56510         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56511         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56512         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56513         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56514         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56515         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56516         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56517         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56518         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56519         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56520         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56521         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56522         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56523         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56524         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56525         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56526         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56527         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56528         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56529         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56530         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56531         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56532         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56533         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56534         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56535         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56536
56537         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56538         global and hidden.
56539         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56540         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56541         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56542         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56543         Likewise.
56544         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56545         Likewise.
56546         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56547         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56548         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56549         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56550         ifunc-impl-list.c.
56551         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56552         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56553         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56554         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56555         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56556         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56557         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56558         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56559         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56560         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56561         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56562         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56563         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56564         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56565         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56566         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56567         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56568         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56569         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56570         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56571         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56572         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56573         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56574         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56575         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56576         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56577         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56578         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56579         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56580         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56581         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56582         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56583         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56584         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56585         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56586         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56587         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56588         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56589         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56590         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56591         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56592
56593         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56594         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56595         * include/ifunc-impl-list.h: New file.
56596         * misc/ifunc-impl-list.c: Likewise.
56597         * misc/Makefile (routines): Add ifunc-impl-list.
56598         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56599         * string/test-string.h: Include <ifunc-impl-list.h>.
56600         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56601         TEST_NAME]: New variables.
56602         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56603         are defined.
56604         (test_init): Call __libc_ifunc_impl_list to initialize
56605         func_list if TEST_IFUNC and TEST_NAME are defined.
56606
56607         * string/Makefile (strop-tests): Add bcopy and bzero.
56608         * string/test-bcopy.c: New file.
56609         * string/test-bzero.c: Likewise.
56610         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56611         defined.
56612         * string/test-memset.c: Support bzero test if TEST_BZERO is
56613         defined.
56614         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56615         __libc_memmove.
56616         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56617         __libc_memset.
56618         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56619         of memset.
56620
56621 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56622
56623         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56624         * configure: Regenerated.
56625
56626         * Makeconfig (+link-static-before-libc): Don't include
56627         $(link-static-libc).
56628
56629         * libio/libio.h (_IO_pos_t): Remove.
56630
56631 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56632
56633         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56634         McGrath.
56635
56636 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56637
56638         * crypt/crypt-entry.c: Include fips-private.h.
56639         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56640         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56641         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56642         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56643
56644 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56645
56646         * crypt/crypt-private.h: Include stdbool.h.
56647         (_ufc_setup_salt_r): Return bool.
56648         * crypt/crypt-entry.c: Include errno.h.
56649         (__crypt_r): Return NULL with EINVAL for bad salt.
56650         * crypt/crypt_util.c (bad_for_salt): New.
56651         (_ufc_setup_salt_r): Check that salt is long enough and within
56652         the specified alphabet.
56653         * crypt/badsalttest.c: New file.
56654         * crypt/Makefile (tests): Add it.
56655         ($(objpfx)badsalttest): New.
56656
56657 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56658
56659         * NEWS: Add entry for BZ #14602.
56660
56661 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56662
56663         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56664         type-generic.
56665         * math/libm-test.inc: Update comment listing what functions and
56666         macros are tested.
56667         (isgreater_test): New function.
56668         (isgreaterequal_test): Likewise.
56669         (isless_test): Likewise.
56670         (islessequal_test): Likewise.
56671         (islessgreater_test): Likewise.
56672         (isunordered_test): Likewise.
56673         (main): Call the new functions.
56674
56675 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56676
56677         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56678         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56679         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56680         * sysdeps/i386/configure: Regenerated.
56681         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56682         * sysdeps/mach/configure: Regenerated.
56683         * sysdeps/mach/hurd/configure: Regenerated.
56684         * sysdeps/powerpc/configure: Regenerated.
56685         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56686         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56687         * sysdeps/s390/s390-32/configure: Regenerated.
56688         * sysdeps/s390/s390-64/configure: Regenerated.
56689         * sysdeps/sh/configure: Regenerated.
56690         * sysdeps/sparc/configure: Regenerated.
56691         * sysdeps/unix/sysv/linux/configure: Regenerated.
56692         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56693         * sysdeps/x86_64/configure: Regenerated.
56694
56695         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56696         defined.  Don't check if MAP is NULL.
56697
56698 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56699
56700         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56701         (_G_stat64): Likewise.
56702         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56703         (_G_stat64): Likewise.
56704         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56705         instead of struct _G_stat64.
56706         * libio/fileops.c (mmap_remap_check): Likewise.
56707         (decide_maybe_mmap): Likewise.
56708         (_IO_new_file_seekoff): Likewise.
56709         (_IO_file_stat): Likewise.
56710         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56711         _G_off64_t.
56712         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56713         instead of struct _G_stat64.
56714         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56715
56716 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56717
56718         [BZ #14602]
56719         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56720         Replace with ...
56721         (CHECK_EOL): New macro.
56722         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56723         CHECK_EOL.
56724         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56725         Replace with CHECK_EOL.
56726         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56727         Replace with CHECK_EOL.
56728
56729 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56730
56731         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56732         type-generic.
56733         * math/libm-test.inc: Update comment listing what functions and
56734         macros are tested.
56735         (finite_test): New function.
56736         (isinf_test): Likewise.
56737         (isnan_test): Likewise.
56738         (fpclassify_test): Test subnormal input.
56739         (isfinite_test): Likewise.
56740         (isnormal_test): Likewise.
56741         (main): Call the new functions.
56742
56743 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56744
56745         [BZ #14660]
56746         * Makerules (%.dynsym): Force C locale when running
56747         $(OBJDUMP) --dynamic-syms.
56748
56749 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56750
56751         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56752         <stdint.h>.
56753
56754 2012-10-06  David S. Miller  <davem@davemloft.net>
56755
56756         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56757         upper 32-bits of the length value in %o2 since we use branch-on-register
56758         tests which consider the entire 64-bit register.
56759
56760 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56761
56762         * string/test-strstr.c (check2): Add a test for page boundary.
56763
56764 2012-10-05  David S. Miller  <davem@davemloft.net>
56765
56766         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56767         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56768         file.
56769         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56770         sysdep_routines.
56771         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56772         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56773         and bzero when HWCAP_SPARC_CRYPTO is present.
56774
56775 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
56776
56777         [BZ #14602]
56778         * string/test-strstr.c (check2): New function.
56779         (test_main): Call check2.
56780
56781         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
56782         and bug-strchr1.
56783         * string/bug-strcasestr1.c (do_test): Moved to ...
56784         * string/test-strcasestr.c (check1): Here.  New function.
56785         (do_one_test): Break out result checking code into ...
56786         (check_result): This.  New function.
56787         (do_one_test): Call check_result.
56788         (test_main): Call check1.
56789         * string/bug-strchr1.c (do_test): Moved to ...
56790         * string/test-strchr.c (check1): Here.  New function.
56791         (do_one_test): Break out result checking code into ...
56792         (check_result): This.  New function.
56793         (do_one_test): Call check_result.
56794         (test_main): Call check1.
56795         * string/bug-strstr1.c (main): Moved to ...
56796         * string/test-strstr.c (check1): Here.  New function.
56797         (do_one_test): Break out result checking code into ...
56798         (check_result): This.  New function.
56799         (do_one_test): Call check_result.
56800         (test_main): Call check1.
56801         * string/bug-strcasestr1.c: Removed.
56802         * string/bug-strchr1.c: Likewise.
56803         * string/bug-strstr1.c: Likewise.
56804
56805         * elf/Makefile (dl-routines): Add hwcaps.
56806         * elf/dl-support.c (_dl_important_hwcaps): Removed.
56807         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
56808         (_dl_important_hwcaps): Moved to ...
56809         * elf/dl-hwcaps.c: Here.  New file.
56810         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
56811
56812         [BZ #14557]
56813         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
56814         if IS_IN_rtld isn't defined.
56815
56816         * elf/dl-support.c (_dl_sysinfo_map): New.
56817         Include "get-dynamic-info.h" and "setup-vdso.h".
56818         (_dl_non_dynamic_init): Call setup_vdso.
56819         * elf/dynamic-link.h: Don't include <assert.h>.
56820         (elf_get_dynamic_info): Moved to ...
56821         * elf/get-dynamic-info.h: Here.  New file.
56822         * elf/dynamic-link.h: Include "get-dynamic-info.h".
56823         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
56824         * elf/setup-vdso.h: Here.  New file.
56825         * elf/rtld.c: Include "setup-vdso.h".
56826         (dl_main): Call setup_vdso.
56827
56828 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
56829
56830         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
56831         creal in comment listing functions tested.  List finite, isinf,
56832         isnan, isless, islessequal, isgreater, isgreaterequal,
56833         islessgreater, isunordered, lgamma_r and pow10 as functions and
56834         macros not tested.  Mention which functions not tested are aliases
56835         for other functions.  Fix typo.  Note that signs of NaNs are not
56836         tested.
56837
56838         * scripts/config.guess: Update from config.git.
56839         * scripts/config.sub: Likewise.
56840
56841 2012-10-04  Roland McGrath  <roland@hack.frob.com>
56842
56843         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
56844         * misc/madvise.c (madvise): Renamed to __madvise.
56845         Make madvise a weak alias.
56846         * include/sys/mman.h: Declare __madvise.
56847         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
56848         * sysdeps/unix/syscalls.list
56849         (madvise): Make __madvise the strong name, and madvise a weak alias.
56850         * sysdeps/unix/sysv/linux/syscalls.list
56851         (madvise, mmap): Remove redundant entries.
56852         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
56853         * malloc/malloc.c (mtrim): Likewise.
56854         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
56855
56856 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56857
56858         * sysdeps/mach/hurd/dl-cache.c: File removed.
56859         * config.h.in (USE_LDCONFIG): New #undef.
56860         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
56861         * configure: Regenerated.
56862         * elf/Makefile (dl-routines): Add dl-cache only under
56863         [$(use-ldconfig) = yes].
56864         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
56865         cache on [USE_LDCONFIG].
56866         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
56867         [USE_LDCONFIG].
56868         * elf/rtld.c (dl_main): Likewise.
56869
56870 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
56871
56872         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
56873         _SC_LEVEL4_CACHE_LINESIZE.
56874
56875 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56876
56877         * sysdeps/unix/bsd/confstr.h: File removed.
56878
56879 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
56880
56881         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
56882         sys/sdt-config.h.
56883
56884 2012-10-02  Roland McGrath  <roland@hack.frob.com>
56885
56886         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
56887         Make 'mapoff' field ElfW(Off) rather than off_t.
56888
56889 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56890
56891         * nscd/Makefile: Remove nscd-cflags and all its users.
56892         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
56893         (CFLAGS-nonlib): Add compiler flags for nscd modules.
56894
56895         [BZ #10631]
56896         * malloc.c (malloc_printerr): Clarify error message.
56897
56898 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
56899
56900         [BZ #14648]
56901         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56902         Set bit_FMA_Usable if FMA is supported.
56903         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
56904         macro.
56905         (bit_FMA4_Usable): Updated.
56906         (index_FMA_Usable): New macro.
56907         (CPUID_FMA): Likewise.
56908         (HAS_FMA): Defined with bit_FMA_Usable.
56909
56910 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56911
56912         * bits/types.h (__swblk_t): Type removed.
56913         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
56914         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
56915         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
56916         (__SWBLK_T_TYPE): Likewise.
56917         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
56918         (__SWBLK_T_TYPE): Likewise.
56919         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
56920         (__SWBLK_T_TYPE): Likewise.
56921         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
56922         (__SWBLK_T_TYPE): Likewise.
56923
56924 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
56925             Honza Horak <hhorak@redhat.com>
56926
56927         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
56928         (xdr_mapname): Use YPMAXMAP as maxsize.
56929         (xdr_peername): Use YPMAXPEER as maxsize.
56930         (xdr_keydat): Use YPAXRECORD as maxsize.
56931         (xdr_valdat): Use YPMAXRECORD as maxsize.
56932
56933 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56934
56935         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
56936
56937         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
56938         * csu/init-first.c: ... here.
56939         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
56940         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
56941         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
56942         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
56943         * sysdeps/i386/init-first.c: File removed.
56944         * sysdeps/sh/init-first.c: File removed.
56945
56946 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
56947
56948         [BZ #14645]
56949         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
56950         if x * y might underflow to zero and z is zero.
56951         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56952         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56953         * math/libm-test.inc (min_subnorm_value): New variable.
56954         (fma_test): Add more tests.
56955         (fma_test_towardzero): Likewise.
56956         (fma_test_downward): Likewise.
56957         (fma_test_upward): Likewise.
56958         (initialize): Set min_subnorm_value.
56959
56960 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
56961
56962         [BZ #14638]
56963         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
56964         0 + 0.
56965         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
56966         mode for addition resulting in exact zero.
56967         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
56968         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
56969         exact 0 + 0.
56970         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56971         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56972         * math/libm-test.inc (fma_test): Add more tests.
56973         (fma_test_towardzero): New function.
56974         (fma_test_downward): Likewise.
56975         (fma_test_upward): Likewise.
56976         (main): Call the new functions.
56977
56978 2012-09-28  David S. Miller  <davem@davemloft.net>
56979
56980         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
56981
56982 2012-09-28  Roland McGrath  <roland@hack.frob.com>
56983
56984         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
56985         instead of SIGALRM.
56986
56987         * sysdeps/gnu/_G_config.h: Moved to ...
56988         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
56989         * sysdeps/mach/hurd/_G_config.h: Moved to ...
56990         * sysdeps/generic/_G_config.h: ... here.
56991
56992         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
56993
56994         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
56995
56996         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
56997         Conditionalize target on [libnss_test1.so-version].
56998
56999         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57000
57001         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57002         (elfobjdir): Move out of conditionals.
57003
57004         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57005         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57006         (__nss_lookup_function): Conditionalize label remove_from_tree on
57007         [!DO_STATIC_NSS || SHARED], matching its only use.
57008
57009 2012-09-28  David S. Miller  <davem@davemloft.net>
57010
57011         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57012         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57013         file.
57014         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57015         sysdep_routines.
57016         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57017         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57018         when HWCAP_SPARC_CRYPTO is present.
57019
57020 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57021
57022         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57023
57024 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57025
57026         [BZ #6530]
57027         * stdio-common/vfprintf.c (process_string_arg): Revert
57028         2000-07-22 change.
57029
57030 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57031
57032         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57033         for testcase.
57034         * stdio-common/tst-sprintf.c: Include <locale.h>
57035         (main): Test sprintf's handling of incomplete multibyte
57036         characters.
57037
57038 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57039
57040         * elf/dl-runtime.c (VERSYMIDX): Removed.
57041         * elf/dl-version.c (VERSYMIDX): Likewise.
57042         * elf/do-rel.h (VERSYMIDX): Likewise.
57043         (VALIDX): Likewise.
57044         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57045         * elf/rtld.c (VALIDX): Likewise.
57046         (ADDRIDX): Likewise.
57047         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57048         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57049         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57050         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57051         (VALIDX): Likewise.
57052         (ADDRIDX): Likewise.
57053
57054 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57055
57056         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57057
57058 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57059
57060         [BZ #11438]
57061         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57062         to global scope.
57063         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57064         addresses are in the same scope as 192.0.2/24.
57065         * posix/gai.conf: Document new scope table defaults.
57066
57067 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57068
57069         [BZ #5298]
57070         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57071         for ftell.  Compute offsets from write pointers instead.
57072         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57073
57074 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57075
57076         [BZ #14543]
57077         * libio/Makefile (tests): New test case tst-fseek.
57078         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57079         combination works in wide mode.
57080         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57081         state when the external buffer state changes.
57082
57083 2012-09-27  David S. Miller  <davem@davemloft.net>
57084
57085         [BZ #14376]
57086         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57087         pass reloc->r_addend in as the 'high' argument to
57088         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57089
57090         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57091
57092 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57093
57094         * rt/tst-aio2.c: Include <pthread.h>.
57095         * rt/tst-aio3.c: Likewise.
57096
57097 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57098
57099         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57100
57101 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57102
57103         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57104         contents on [SHARED].
57105
57106 2012-09-26  Marek Polacek  <polacek@redhat.com>
57107
57108         [BZ #14530]
57109         [BZ #13741]
57110         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57111         for C++ and GCC <4.3 as well as for non GCC compilers.
57112
57113 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57114
57115         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57116
57117 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57118
57119         * Makefile.in (all, install): Declare with .PHONY.
57120         Reported by Michael Hope <michael.hope@linaro.org>.
57121
57122 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57123
57124         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57125         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57126         system header.
57127         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57128         Likewise.
57129         (sydep_routines): Add the new and the internal functions.
57130         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57131         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57133         (GLIBC_2.17): Add the new function.
57134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57135         (GLIBC_2.17): Likewise.
57136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57137         (GLIBC_2.17): Likewise.
57138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57139         (GLIBC_2.17): Likewise.
57140         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57141
57142 2012-09-25  Alan Modra  <amodra@gmail.com>
57143
57144         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57145         Add release barrier before setting once_control to say
57146         initialisation is done.  Add hints on lwarx.  Use macro in
57147         place of isync.
57148         (clear_once_control): Add release barrier.
57149
57150 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57151
57152         [BZ #13629]
57153         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57154         specially.
57155         * math/s_clog10.c (__clog10): Likewise.
57156         * math/s_clog10f.c (__clog10f): Likewise.
57157         * math/s_clog10l.c (__clog10l): Likewise.
57158         * math/s_clogf.c (__clogf): Likewise.
57159         * math/s_clogl.c (__clogl): Likewise.
57160         * math/Makefile (libm-calls): Add x2y2m1.
57161         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57162         (__x2y2m1): Likewise.
57163         (__x2y2m1l): Likewise.
57164         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57165         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57166         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57167         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57168         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57169         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57170         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57171         * sysdeps/i386/fpu/libm-test-ulps: Update.
57172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57173
57174         [BZ #14621]
57175         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57176         int as type of variable DEPTH.
57177         (glob): Use size_t instead of int as type of variables NEWCOUNT
57178         and OLD_PATHC.
57179
57180 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57181
57182         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57183         Add s_sincosf-sse2.
57184         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57185         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57186         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57187         macros for using routine as __sincosf_ia32.
57188         Use macro for function declaration and weak_alias.
57189         * sysdeps/i386/fpu/libm-test-ulps: Update.
57190
57191         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57192         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57193
57194         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57195         subnormal argument.
57196         * math/s_cexpf.c (__cexpf): Likewise.
57197         * math/s_csinf.c (__csinf): Likewise.
57198         * math/s_csinhf.c (__csinhf): Likewise.
57199         * math/s_ctanf.c (__ctanf): Likewise.
57200         * math/s_ctanhf.c (__ctanhf): Likewise.
57201         * math/s_ccosh.c (__ccoshf): Likewise.
57202         * math/s_cexp.c (__cexpl): Likewise.
57203         * math/s_csin.c (__csin): Likewise.
57204         * math/s_csinh.c (__csinh): Likewise.
57205         * math/s_ctan.c (__ctan): Likewise.
57206         * math/s_ctanh.c (ctanh): Likewise.
57207         * math/s_ccoshl.c (__ccoshl): Likewise.
57208         * math/s_cexpl.c (__cexpl): Likewise.
57209         * math/s_csinl.c (__csinl): Likewise.
57210         * math/s_csinhl.c (__csinhl): Likewise.
57211         * math/s_ctanl.c (__ctanl): Likewise.
57212         * math/s_ctanhl.c (__ctanhl): Likewise.
57213
57214 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57215
57216         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57217         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57218         (_IO_off_t): Define to __off_t, not _G_off_t.
57219         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57220         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57221         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57222         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57223         type of __dummy and __dummy2 fields.
57224         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57225         (_G_ssize_t): Likewise.
57226         (_G_off_t): Likewise.
57227         (_G_pid_t): Likewise.
57228         (_G_uid_t): Likewise.
57229         (_G_wchar_t): Likewise.
57230         (_G_wint_t): Likewise.
57231         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57232         (_G_ssize_t): Likewise.
57233         (_G_off_t): Likewise.
57234         (_G_pid_t): Likewise.
57235         (_G_uid_t): Likewise.
57236         (_G_wchar_t): Likewise.
57237         (_G_wint_t): Likewise.
57238         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57239         (_G_ssize_t): Likewise.
57240         (_G_off_t): Likewise.
57241         (_G_pid_t): Likewise.
57242         (_G_uid_t): Likewise.
57243         (_G_wchar_t): Likewise.
57244         (_G_wint_t): Likewise.
57245
57246 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57247
57248         * malloc/arena.c: Include malloc-sysdep.h.
57249         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57250         is sufficient to shrink the heap or an unmap is needed.
57251         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57252         new function check_may_shrink_heap.
57253         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57254         new function check_may_shrink_heap.
57255
57256 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57257
57258         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57259         comments.
57260
57261 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57262
57263         * catgets/test-gencat.sh: Add "set -e".
57264         * elf/tst-pathopt.sh: Likewise.
57265         * grp/tst_fgetgrent.sh: Likewise.
57266         * iconvdata/run-iconv-test.sh: Likewise.
57267         * intl/tst-gettext.sh: Likewise.
57268         * intl/tst-gettext2.sh: Likewise.
57269         * intl/tst-gettext4.sh: Likewise.
57270         * intl/tst-gettext6.sh: Likewise.
57271         * intl/tst-translit.sh: Likewise.
57272         * io/ftwtest-sh: Likewise.
57273         * libio/test-freopen.sh: Likewise.
57274         * malloc/tst-mtrace.sh: Likewise.
57275         * posix/globtest.sh: Likewise.
57276         * posix/tst-getconf.sh: Likewise.
57277         * posix/wordexp-tst.sh: Likewise.
57278         * stdio-common/tst-printf.sh: Likewise.
57279         * stdio-common/tst-unbputc.sh: Likewise.
57280         * stdlib/tst-fmtmsg.sh: Likewise.
57281         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57282         * catgets/Makefile: Do not specify -e option when running
57283         testsuite shell scripts.
57284         * elf/Makefile: Likewise.
57285         * grp/Makefile: Likewise.
57286         * iconvdata/Makefile: Likewise.
57287         * intl/Makefile: Likewise.
57288         * io/Makefile: Likewise.
57289         * libio/Makefile: Likewise.
57290         * malloc/Makefile: Likewise.
57291         * posix/Makefile: Likewise.
57292         * stdio-common/Makefile: Likewise.
57293         * stdlib/Makefile: Likewise.
57294         * sysdeps/x86_64/Makefile: Likewise.
57295
57296         * io/ftwtest-sh: Add copyright header.
57297         * posix/globtest.sh: Likewise.
57298         * posix/tst-getconf.sh: Likewise.
57299         * posix/wordexp-tst.sh: Likewise.
57300         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57301
57302 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57303
57304         [BZ #13679]
57305         * Makeconfig (+link): Defined as $(+link-static) if
57306         $(build-shared) isn't yes.
57307         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57308         isn't yes.
57309         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57310
57311         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57312
57313         [BZ #14562]
57314         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57315         new chunk size with MALLOC_ALIGN_MASK.
57316
57317 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57318
57319         [BZ #5044]
57320         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57321         <rounding-mode.h>.
57322         (__printf_fphex): Determine rounding using get_rounding_mode and
57323         round_away.
57324         * stdio-common/tst-printf-round.c (struct hex_test): New
57325         structure.
57326         (hex_tests): New variable.
57327         (test_hex_in_one_mode): New function.
57328         (do_test): Also run tests for hex float output.
57329
57330 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57331
57332         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57333         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57334         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57335         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57336         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57337         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57338         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57339         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57340
57341 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57342
57343         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57344         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57345         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57346         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57347
57348 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57349
57350         [BZ #14579]
57351         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57352         mode only.
57353         * elf/tst-rtld-load-self.sh: New test.
57354         * elf/Makefile: Run it.
57355
57356 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57357
57358         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57359         (tst-writev-ENV): Remove.
57360         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57361
57362 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57363
57364         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57365
57366 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57367
57368         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57369         unconditional.
57370         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57371         Likewise.
57372         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57373         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57374         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57375         Likewise.
57376
57377 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57378
57379         [BZ #14587]
57380         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57381         * config.make.in (have-cpp-asm-debuginfo): Removed.
57382         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57383         * configure: Regenerated.
57384
57385 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57386
57387         [BZ #5044]
57388         * stdio-common/printf_fp.c: Include <stdbool.h> and
57389         <rounding-mode.h>.
57390         (___printf_fp): Determine rounding using get_rounding_mode and
57391         round_away.
57392         * stdio-common/tst-printf-round.c: New file.
57393         * stdio-common/Makefile (tests): Add tst-printf-round.
57394         (link-libm): New variable.
57395         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57396
57397 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57398
57399         [BZ #14576]
57400         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57401         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57402         Likewise.
57403         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57404         Likewise.
57405
57406 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57407
57408         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57409         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57410         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57411         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57412
57413 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57414
57415         [BZ #14518]
57416         * include/rounding-mode.h: New file.
57417         * sysdeps/generic/get-rounding-mode.h: Likewise.
57418         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57419         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57420         (MAX_VALUE): New macro.
57421         (MIN_VALUE): Likewise.
57422         (overflow_value): New function.
57423         (underflow_value): Likewise.
57424         (round_and_return): Use overflow_value and underflow_value to
57425         determine return values in overflow and underflow cases.  Use
57426         round_away to determine rounding depending on rounding mode.
57427         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57428         determine return values in overflow and underflow cases.
57429         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57430         (struct test_results): New structure.
57431         (struct test): Use struct test_results to store expected results
57432         for all rounding modes.
57433         (TEST): Include expected results for all rounding modes.
57434         (test_in_one_mode): New function.
57435         (do_test): Use test_in_one_mode to compute and check results.
57436         Check results for all rounding modes.
57437         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57438         $(link-libm).
57439
57440 2012-12-09  Allan McRae  <allan@archlinux.org>
57441
57442         * sysdeps/i386/fpu/libm-test-ulps: Update
57443
57444 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57445
57446         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57447         (_G_int32_t): Likewise.
57448         (_G_uint16_t): Likewise.
57449         (_G_uint32_t): Likewise.
57450         (_G_HAVE_BOOL): Likewise.
57451         (_G_HAVE_ATEXIT): Likewise.
57452         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57453         (_G_HAVE_IO_FILE_OPEN): Likewise.
57454         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57455         (_G_int32_t): Likewise.
57456         (_G_uint16_t): Likewise.
57457         (_G_uint32_t): Likewise.
57458         (_G_HAVE_BOOL): Likewise.
57459         (_G_HAVE_ATEXIT): Likewise.
57460         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57461         (_G_HAVE_IO_FILE_OPEN): Likewise.
57462         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57463         (_G_int32_t): Likewise.
57464         (_G_uint16_t): Likewise.
57465         (_G_uint32_t): Likewise.
57466         (_G_HAVE_BOOL): Likewise.
57467         (_G_HAVE_ATEXIT): Likewise.
57468         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57469         (_G_HAVE_IO_FILE_OPEN): Likewise.
57470
57471 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57472
57473         * csu/libc-tls.c: Update copyright years.
57474
57475 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57476
57477         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57478         [!_G_USING_THUNKS]: Remove conditional code.
57479         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57480         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57481
57482         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57483         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57484         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57485         (_G_VTABLE_LABEL_PREFIX): Likewise.
57486         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57487         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57488         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57489         (_G_VTABLE_LABEL_PREFIX): Likewise.
57490         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57491         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57492         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57493         (_G_VTABLE_LABEL_PREFIX): Likewise.
57494         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57495
57496 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57497
57498         * libio/Makefile: Include ../Makeconfig before tests.
57499         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57500         only if $(build-shared) is yes.
57501
57502         * iconv/gconv_db.c: Update copyright years.
57503
57504 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57505
57506         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57507         unwind info if defined PIC. Fix special cases description.
57508         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57509
57510         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57511         DP_HI_MASK entry.
57512         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57513
57514 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57515
57516         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57517
57518         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57519         is NULL.
57520
57521         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57522         (LDLIBS-tst-chk4): This.
57523         (LDFLAGS-tst-chk5): Renamed to ...
57524         (LDLIBS-tst-chk5): This.
57525         (LDFLAGS-tst-chk6): Renamed to ...
57526         (LDLIBS-tst-chk6): This.
57527         (LDFLAGS-tst-lfschk4): Renamed to ...
57528         (LDLIBS-tst-lfschk4): This.
57529         (LDFLAGS-tst-lfschk5): Renamed to ...
57530         (LDLIBS-tst-lfschk5): This.
57531         (LDFLAGS-tst-lfschk6): Renamed to ...
57532         (LDLIBS-tst-lfschk6): This.
57533
57534         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57535         on $(common-objpfx)soversions.mk.
57536
57537 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57538
57539         [BZ #10014]
57540         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57541         example host name.
57542
57543 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57544
57545         * malloc/arena.c (arena_get_retry): New function that gets
57546         another arena for the caller to try its request on.
57547         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57548         current arena cannot fulfill the request.
57549         (__libc_memalign): Likewise.
57550         (__libc_memalign): Likewise.
57551         (__libc_pvalloc): Likewise.
57552         (__libc_calloc): Likewise.
57553
57554 2012-09-05  John Tobey  <john.tobey@gmail.com>
57555
57556         [BZ #13542]
57557         * manual/arith.texi (Operations on Complex): Fix description
57558         of carg branch cut.
57559
57560 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57561
57562         [BZ #10014]
57563         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57564         host name.
57565
57566         [BZ #10038]
57567         * manual/memory.texi (Memory): Make order of menu items match
57568         order of sections.
57569
57570 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57571
57572         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57573         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57574         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57575
57576 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57577
57578         * csu/libc-tls.c (static_dtv): Renamed to ...
57579         (_dl_static_dtv): This.  Make it global.
57580         (_dl_initial_dtv): Removed.
57581         (__libc_setup_tls): Updated.
57582         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57583         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57584         DL_INITIAL_DTV.
57585
57586 2012-09-06  Petr Machata  <pmachata@redhat.com>
57587
57588         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57589         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57590         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57591         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57592
57593 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57594
57595         [BZ #14545]
57596         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57597         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57598         freeing dtv[-1].
57599
57600 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57601
57602         [BZ #14544]
57603         * Makeconfig (link-static-before-libc): Replace $(+prector)
57604         with $(+prectorT).
57605         (link-static-after-libc): Replace $(+postctor) with
57606         $(+postctorT).
57607         (link-bounded): Replace $(+prector)/$(+postctor) with
57608         $(+prectorT)/$(+postctorT).
57609         (+prectorT): New macro.
57610         (+postctorT): Likewise.
57611
57612 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57613
57614         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57615         (round_str): Handle values above the maximum for IBM long double
57616         as inexact.
57617         * stdlib/tst-strtod-round.c (tests): Regenerated.
57618
57619 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57620
57621         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57622         assembler flag.
57623         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57624         zarch_nohighgprs around the zarch optimized routines.
57625         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57626         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57627         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57628         for zarch.
57629
57630 2012-09-05  David S. Miller  <davem@davemloft.net>
57631
57632         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57633
57634         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57635         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57636         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57637         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57638         entries.
57639
57640 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57641
57642         * malloc/arena.c: Fold copyright years.
57643         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57644
57645 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57646
57647         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57648
57649 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57650
57651         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57652
57653 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57654
57655         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57656         change internal state upon failure.
57657
57658 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57659
57660         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57661         * malloc/memusage.c (mmap): Likewise.
57662         (mmap64, mremap): Likewise.  Adjust name in comment.
57663
57664 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57665
57666         * libio/fileops.c: Fix typos in comments.
57667         * libio/oldfileops.c: Likewise.
57668         * libio/wfileops.c: Likewise.
57669
57670 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57671
57672         [BZ #1349]
57673         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57674         (tst-malloc-usable-ENV): Set environment for test case.
57675         * malloc/hooks.c (malloc_check_get_size): New function to get
57676         requested size.
57677         * malloc/malloc.c (musable): Use malloc_check_get_size.
57678         * malloc/tst-malloc-usable.c: New test case.
57679
57680 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57681
57682         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57683
57684 2012-09-05  Allan McRae  <allan@archlinux.org>
57685
57686         [BZ #13966]
57687         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57688         determine header location.
57689         * configure: Regenerated.
57690
57691 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57692
57693         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57694         float format.
57695         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57696         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57697         format.
57698         (test): Regenerate.
57699
57700 2012-09-04  David S. Miller  <davem@davemloft.net>
57701
57702         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57703         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57704         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57705
57706 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57707
57708         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57709         failures.
57710
57711         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57712
57713 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57714
57715         [BZ #9914]
57716         * libio/iogetdelim.c: Include <limits.h>.
57717         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57718         + len + 1 would overflow.
57719
57720 2012-09-03  Andreas Jaeger  <aj@suse.de>
57721
57722         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57723         * sysdeps/i386/fpu/libm-test-ulps: Update.
57724
57725 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57726
57727         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57728         Add s_sinf-sse2, s_conf-sse2.
57729
57730         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57731         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57732         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57733         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57734
57735         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57736         for using routine as __sinf_ia32.
57737         Use macro for function declaration and weak_alias.
57738         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57739         for using routine as __cosf_ia32.
57740         Use macro for function declaration and weak_alias.
57741
57742         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57743         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57744
57745         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57746         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57747         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57748
57749         * math/libm-test.inc (cos_test): Add more test cases.
57750         (sin_test): Likewise.
57751         (sincos_test): Likewise.
57752
57753 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57754
57755         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57756         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57757         hidden.
57758         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57759
57760 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57761
57762         [BZ #14538]
57763         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57764         first element of the GOT.
57765         (elf_machine_load_address): Return the difference between
57766         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57767
57768 2012-09-01  Allan McRae  <allan@archlinux.org>
57769
57770         [BZ #13412]
57771         * configure.in (AWK): Require gawk version 3.0 or later.
57772         * configure: Regenerated.
57773
57774 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57775
57776         * sysdeps/unix/sysv/linux/kernel-features.h
57777         (__ASSUME_POSIX_CPU_TIMERS): Remove.
57778         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
57779         [__NR_clock_getres]: Make code unconditional.
57780         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
57781         (clock_getcpuclockid): Remove code left unreachable by removal of
57782         conditionals.
57783         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
57784         code unconditional.
57785         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57786         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57787         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
57788         Make code unconditional.
57789         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57790         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57791         * sysdeps/unix/sysv/linux/clock_settime.c
57792         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
57793         conditional code.
57794         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
57795         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57796
57797 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
57798
57799         [BZ #14476]
57800         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
57801         scripts/test-installation.pl.
57802
57803         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
57804         and $ld_so_version if it is set.
57805
57806 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57807
57808         [BZ #14516]
57809         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
57810         failure if reading from procfs failed.
57811         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
57812
57813 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57814
57815         * sysdeps/unix/sysv/linux/kernel-features.h
57816         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
57817         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57818         Remove conditional code.
57819         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57820         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
57821         Remove conditional code.
57822         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57823         * sysdeps/unix/sysv/linux/i386/fxstat.c
57824         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57825         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57826         * sysdeps/unix/sysv/linux/i386/fxstatat.c
57827         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57828         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57829         * sysdeps/unix/sysv/linux/i386/lxstat.c
57830         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57831         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57832         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
57833         Remove conditional code.
57834         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57835         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57836         Remove conditional code.
57837         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57838         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
57839         <kernel-features.h>.
57840         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
57841         Remove.
57842         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
57843         Remove conditional code.
57844         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57845         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
57846         Remove conditional.
57847
57848 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
57849
57850         [BZ #5400]
57851         * NEWS: Add fixed bug number.
57852
57853 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57854
57855         [BZ #14519]
57856         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
57857         underflowing exponent in case of negative sign.
57858         * stdlib/tst-strtod-round-data: Add more tests.
57859         * stdlib/tst-strtod-round.c (tests): Regenerated.
57860
57861         [BZ #3479]
57862         * stdlib/strtod_l.c (NDIG): Remove.
57863         (HEXNDIG): Likewise.
57864         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
57865         smallest representable value.
57866         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
57867         lie within an exact representation of 1/2 ulp of the result.
57868         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
57869         unconditionally.
57870         (TENS_P9_IDX): Define unconditionally.
57871         (TENS_P9_SIZE): Likewise.
57872         (TENS_P10_IDX): Likewise.
57873         (TENS_P10_SIZE): Likewise.
57874         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
57875         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
57876         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
57877         entries for 10^2^13 and 10^2^14.
57878         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
57879         (TENS_P13_IDX): Define.
57880         (TENS_P13_SIZE): Likewise.
57881         (TENS_P14_IDX): Likewise.
57882         (TENS_P14_SIZE): Likewise.
57883         (_fpioconst_pow10): Change array size to
57884         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
57885         unconditional.
57886         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
57887         1024]: Add entries for 10^2^13 and 10^2^14.
57888         [LAST_POW10 > _LAST_POW10]: Remove #error.
57889         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
57890         (_fpioconst_pow10): Change array size to
57891         FPIOCONST_POW10_ARRAY_SIZE.
57892         * stdlib/gen-fpioconst.c: New file.
57893         * stdlib/gen-tst-strtod-round.c: Likewise.
57894         * stdlib/tst-strtod-round-data: Likewise.
57895         * stdlib/tst-strtod-round.c: Likewise.
57896         * stdlib/Makefile (tests): Add tst-strtod-round.
57897
57898         [BZ #14459]
57899         * stdlib/strtod_l.c: Include <stdint.h>.
57900         (NDEBUG): Do not define.
57901         (round_and_return): Change EXPONENT parameter to type intmax_t.
57902         Rearrange calculations to avoid internal overflow possibilities.
57903         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
57904         Rearrange calculations to avoid internal overflow possibilities.
57905         Assert that number fits inside MPNSIZE limbs.
57906         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
57907         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
57908         calculations and add assertions to avoid internal overflow
57909         possibilities.  Add casts to avoid signed/unsigned operations.
57910         * stdlib/tst-strtod-overflow.c: New file.
57911         * stdlib/Makefile (tests): Add tst-strtod-overflow.
57912
57913 2012-08-25  Marek Polacek  <polacek@redhat.com>
57914
57915         * time/time.h: Fix some typos in comments.
57916
57917 2012-08-23  Roland McGrath  <roland@hack.frob.com>
57918
57919         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
57920         * posix/tst-rfc3484-2.c: Likewise.
57921         * posix/tst-rfc3484-3.c: Likewise.
57922
57923 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
57924
57925         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
57926         (EF_ARM_ABI_FLOAT_HARD): Likewise.
57927
57928 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
57929
57930         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
57931         #include of fxstatat64.c.
57932
57933 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57934
57935         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
57936         * shadow/getspent_r.c: Likewise.
57937         * shadow/getspnam.c: Likewise.
57938         * shadow/getspnam_r.c: Likewise.
57939         * gshadow/getsgent.c: Likewise.
57940         * gshadow/getsgent_r.c: Likewise.
57941         * gshadow/getsgnam.c: Likewise.
57942         * gshadow/getsgnam_r.c: Likewise.
57943         * inet/getnetbyad.c: Likewise.
57944         * inet/getnetbyad_r.c: Likewise.
57945         * inet/getnetbynm.c: Likewise.
57946         * inet/getnetbynm_r.c: Likewise.
57947         * inet/getnetent.c: Likewise.
57948         * inet/getnetent_r.c: Likewise.
57949         * inet/getproto.c: Likewise.
57950         * inet/getproto_r.c: Likewise.
57951         * inet/getprtent.c: Likewise.
57952         * inet/getprtent_r.c: Likewise.
57953         * inet/getprtname.c: Likewise.
57954         * inet/getprtname_r.c: Likewise.
57955         * inet/getrpcbyname.c: Likewise.
57956         * inet/getrpcbyname_r.c: Likewise.
57957         * inet/getrpcbynumber.c: Likewise.
57958         * inet/getrpcbynumber_r.c: Likewise.
57959         * inet/getrpcent.c: Likewise.
57960         * inet/getrpcent_r.c: Likewise.
57961         * inet/getaliasent.c: Likewise.
57962         * inet/getaliasent_r.c: Likewise.
57963         * inet/getaliasname.c: Likewise.
57964         * inet/getaliasname_r.c: Likewise.
57965         * nscd/getgrgid_r.c: Likewise.
57966         * nscd/getgrnam_r.c: Likewise.
57967         * nscd/gethstbyad_r.c: Likewise.
57968         * nscd/gethstbynm3_r.c: Likewise.
57969         * nscd/getpwnam_r.c: Likewise.
57970         * nscd/getpwuid_r.c: Likewise.
57971         * nscd/getsrvbynm_r.c: Likewise.
57972         * nscd/getsrvbypt_r.c: Likewise.
57973         * nscd/gai.c: Likewise.
57974
57975         * configure.in (build_nscd): New substituted variable, set
57976         by --disable-build-nscd and defaults to $use_nscd.
57977         * configure: Regenerated.
57978         * config.make.in (build-nscd): New substituted variable.
57979         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
57980         Change conditional to require [$(build-nscd) = yes] as well.
57981         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
57982
57983         [BZ# 13696]
57984         * configure.in (use_nscd): New substituted variable, set by
57985         --disable-nscd.  If enabled, define USE_NSCD.
57986         * configure: Regenerated.
57987         * config.h.in: Add USE_NSCD.
57988         * config.make.in (use-nscd): New substituted variable.
57989         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
57990         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
57991         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
57992         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
57993         (CFLAGS-getgrnam_r.c): Likewise.
57994         (CFLAGS-initgroups.c): Likewise.
57995         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
57996         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
57997         Variables removed.
57998         * inet/getnetgrent_r.c
57999         (nscd_setnetgrent): New function, broken out of ...
58000         (setnetgrent): ... here.  Call it.
58001         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58002         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58003         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58004         * nscd/Makefile (routines, aux): Move definitions after include of
58005         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58006         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58007         Conditionalize on [USE_NSCD].
58008         (is_nscd, nscd_init_cb): Likewise.
58009         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58010         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58011         * nss/nss_db/db-init.c: Likewise.
58012         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58013         [USE_NSCD].
58014         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58015         (make_request): Use it.
58016         (cache_valid_p): New function.
58017         (__check_pf): Use it.
58018         * NEWS: Add item for --disable-nscd.
58019
58020 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58021
58022         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58023         to support sed >= 4.2.1-20-ga9bf076.
58024         * configure: Regenerated.
58025
58026 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58027
58028         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58029         Conditionalize whole body on [IREL].
58030
58031 2012-08-22  Jeff Law <law@redhat.com>
58032
58033         [BZ #14505]
58034         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58035         if the family is PF_UNSPEC.
58036
58037 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58038
58039         * Makerules (lib-version): Rename from V.
58040         (install-lib-nosubdir): Change V to lib-version.
58041
58042 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58043
58044         [BZ #14252]
58045         * powerpc32/power6/wcschr.c: New file.
58046         * powerpc32/power6/wcscpy.c: New file.
58047         * powerpc32/power6/wcsrchr.c: New file.
58048         * powerpc64/power6/wcschr.c: New file.
58049         * powerpc64/power6/wcscpy.c: New file.
58050         * powerpc64/power6/wcsrchr.c: New file.
58051
58052 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58053
58054         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58055         (two_way_short_needle): Use it.
58056         * string/strstr.c (AVAILABLE1_USES_J): Define.
58057         * string/strcasestr.c: Likewise.
58058
58059         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58060         array references.
58061         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58062
58063         [BZ #11607]
58064         * NEWS: Add an entry.
58065         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58066         define their defaults.
58067         (two_way_short_needle): Detect end-of-string on-the-fly.
58068         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58069         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58070         * string/bug-strcasestr1.c: New test.
58071         * string/Makefile: Run it.
58072
58073 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58074
58075         [BZ #11607]
58076         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58077         the first character.
58078
58079 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58080
58081         * csu/elf-init.c (__libc_csu_irel): Function removed.
58082         * csu/libc-start.c (apply_irel): New function.
58083         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58084
58085 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58086
58087         * sysdeps/unix/sysv/linux/kernel-features.h
58088         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58089         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58090         <kernel-features.h>.
58091         [__NR_fadvise64_64]: Make code unconditional.
58092         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58093         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58094         !__NR_fadvise64_64)]: Likewise.
58095         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58096         !__NR_fadvise64_64))]: Likewise.
58097         [__NR_fadvise64]: Make code unconditional.
58098         [!__NR_fadvise64]: Remove conditional code.
58099         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58100         <kernel-features.h>.
58101         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58102         unconditional.
58103         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58104         conditional code.
58105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58106         not include <kernel-features.h>.
58107         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58108         unconditional.
58109         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58110         conditional code.
58111         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58112         include <kernel-features.h>.
58113         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58114         unconditional.
58115         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58116         conditional code.
58117
58118 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58119
58120         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58121         slight instruction rearrangements per scrollpipe analysis.
58122         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58123
58124 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58125
58126         * manual/syslog.texi (syslog; vsyslog, closelog):
58127         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58128         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58129
58130         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58131         DSOCAPS to match condition on defining it.
58132
58133 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58134
58135         * sysdeps/unix/sysv/linux/kernel-features.h
58136         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58138         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58139         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58141         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58142         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58144         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58145         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58146
58147         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58148         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58149
58150         * sysdeps/unix/sysv/linux/kernel-features.h
58151         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58152         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58153         unconditional.
58154         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58155         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58156         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58157         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58158         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58159         Make code unconditional.
58160         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58161         (__mmap64) [!__NR_mmap2]: Likewise.
58162         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58163         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58164         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58165         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58166         [__NR_mmap2]: Make code unconditional.
58167         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58168         (__mmap64) [!__NR_mmap2]: Likewise.
58169
58170 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58171
58172         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58173
58174 2012-08-18  Andreas Jaeger  <aj@suse.de>
58175
58176         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58177
58178 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58179
58180         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58181         * include/unistd.h (__have_sock_cloexec): Likewise.
58182         (__have_pipe2): Likewise.
58183         (__have_dup3): Likewise.
58184
58185 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58186
58187         [BZ #9685]
58188         * include/unistd.h (__have_pipe2): Change define into an extern int.
58189         (__have_dup3): Likewise.
58190         * socket/have_sock_cloexec.c: Include fcntl.h.
58191         (__have_pipe2): New variable.
58192         (__have_dup3): Likewise.
58193
58194 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58195
58196         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58197
58198 2012-08-17  Marek Polacek  <polacek@redhat.com>
58199
58200         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58201         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58202
58203 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58204
58205         * configure.in: Add AC_SUBST for sysheaders.
58206         * configure: Regenerated.
58207         * config.make.in (sysheaders): New substituted variable.
58208
58209         * sysdeps/unix/mkfifo.c: Moved ...
58210         * sysdeps/posix/mkfifo.c: ... here.
58211         * sysdeps/unix/mkfifoat.c: Moved ...
58212         * sysdeps/posix/mkfifoat.c: ... here.
58213
58214         * sysdeps/unix/utime.c: Moved ...
58215         * sysdeps/posix/utime.c: ... here.
58216
58217         * sysdeps/unix/time.c: Moved ...
58218         * sysdeps/posix/time.c: ... here.
58219         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58220         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58221
58222         * sysdeps/unix/nice.c: Moved ...
58223         * sysdeps/posix/nice.c: ... here.
58224
58225         * sysdeps/unix/alarm.c: Moved ...
58226         * sysdeps/posix/alarm.c: ... here.
58227
58228         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58229
58230 2012-08-17  Jeff Law <law@redhat.com>
58231
58232         * intl/Makefile (codeset_mo): New variable.
58233         ($(codeset_mo)): New target.
58234         (tst-codeset.out): Depend on that.  Remove explicit rule.
58235         (tst-gettext3.out, tst-gettext5.out): Likewise.
58236         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58237         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58238         * intl/tst-codeset.sh: Remove.
58239         * intl/tst-gettext3.sh: Likewise.
58240         * intl/tst-gettext5.sh: Likewise.
58241
58242 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58243
58244         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58245         * sysdeps/unix/syscalls.list: ... here.
58246
58247         * sysdeps/posix/getaddrinfo.c
58248         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58249         (gaiconf_init, gaiconf_reload): Use them.
58250         [!_STATBUF_ST_NSEC]
58251         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58252         Define using time_t rather than struct timespec.
58253
58254         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58255         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58256         Macros removed.
58257         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58258         [!NO_THREADS].
58259         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58260         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58261         Likewise.
58262
58263         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58264         __libc_cleanup_push argument.
58265
58266         * bits/param.h: New file.
58267         * misc/sys/param.h: New file.
58268         * include/sys/param.h: New file.
58269         * misc/Makefile (headers): Add bits/param.h.
58270         * sysdeps/generic/sys/param.h: File removed.
58271         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58272         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58273         * sysdeps/mach/hurd/bits/param.h: New file.
58274         * sysdeps/mach/hurd/sys/param.h: File removed.
58275
58276         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58277         last change.
58278
58279         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58280         [_IO_MTSAFE_IO].
58281         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58282         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58283         New macros.
58284
58285         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58286         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58287         rather than -D_IO_MTSAFE_IO conditionally.
58288         * stdio-common/Makefile (CPPFLAGS): Likewise.
58289         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58290         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58291         Use $(libio-mtsafe).
58292         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58293         of -D_IO_MTSAFE_IO.
58294         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58295         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58296         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58297         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58298         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58299         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58300         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58301         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58302         (CFLAGS-fread_u_chk.c): Likewise.
58303         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58304         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58305         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58306         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58307         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58308         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58309         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58310         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58311         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58312
58313         * libio/Makefile: Test [$(libc-reentrant) = yes]
58314         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58315
58316         * Makeconfig
58317         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58318         * sysdeps/pthread/configure: File removed.
58319         * sysdeps/pthread/Makeconfig: New file.
58320         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58321         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58322
58323 2012-08-16  Gary Benson  <gbenson@redhat.com>
58324
58325         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58326         unmapping the first object in a namespace.
58327
58328 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58329
58330         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58331         (__internal_setnetgrent): ... this.  Add internal_function to
58332         definition.  Add libc_hidden_def.
58333         (setnetgrent): Update caller.
58334         (internal_endnetgrent): Renamed to ...
58335         (__internal_endnetgrent): ... this.  Add internal_function to
58336         definition.  Add libc_hidden_def.
58337         (endnetgrent): Update caller.
58338         (internal_getnetgrent_r): Renamed to ...
58339         (__internal_getnetgrent_r): ... this.  Add internal_function to
58340         definition.  Add libc_hidden_def.
58341         (__getnetgrent_r): Update caller.
58342         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58343
58344 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58345
58346         * stdlib/longlong.h: Update from GCC.
58347
58348 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58349
58350         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58351         on _QL, which is set by umul_ppmm but never used.
58352         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58353         variables, which are set by GMP macros but never used.
58354         * stdio-common/_itowa.c (_itowa): Likewise.
58355         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58356         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58357
58358 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58359
58360         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58361         struct La_sh_regs is not constant.
58362         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58363         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58364         and struct La_sparc64_regs are not constant.
58365
58366 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58367
58368         * sysdeps/unix/sysv/linux/kernel-features.h
58369         (__ASSUME_POSIX_TIMERS): Remove.
58370         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58371         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58372         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58373         Make code unconditional.
58374         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58375         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58376         Make code unconditional.
58377         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58378         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58379         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58380         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58381         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58382         Make code unconditional.
58383         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58384         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58385         (__libc_missing_posix_timers): Remove.
58386
58387 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58388
58389         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58390         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58391
58392         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58393
58394         * elf/dl-sym.c: Include <stdlib.h>.
58395
58396         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58397         constants, which avoids warnings in 32-bit builds.
58398
58399         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58400         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58401
58402         * misc/lseek.c: File moved to ...
58403         * io/lseek.c: ... here.
58404
58405         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58406
58407         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58408         shifting LEN more than 31 bits at once.
58409
58410 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58411
58412         [BZ #14195]
58413         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58414         segmentation fault for a case of two empty input strings.
58415         * string/test-strncasecmp.c (check1): Renamed to...
58416         (bz12205): ...this.
58417         (bz14195): Add new testcase for two empty input strings and N > 0.
58418         (test_main): Call new testcase, adapt for renamed function.
58419
58420 2012-08-15  Andreas Jaeger  <aj@suse.de>
58421
58422         [BZ #14090]
58423         * crypt/md5test2.c: New test, based on test supplied by Serge
58424         Belyshev <belyshev@depni.sinp.msu.ru>.
58425         * crypt/Makefile (xtests): Add md5test-giant..
58426         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58427
58428 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         [BZ #14090]
58431         * crypt/md5.c (md5_process_block): Don't assume the buffer
58432         length is less than 2**32.
58433         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58434         length is less than 2**64.
58435
58436 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58437
58438         * string/str-two-way.h: Include <sys/param.h>.
58439         (MAX): Macro removed.
58440
58441         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58442         Move #define and #undef of memmove to just before and after
58443         including <string.h>.
58444
58445         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58446         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58447         and after including <string.h>.  Move declarations of
58448         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58449         to before #include "string/memmove.c".
58450
58451         * include/dirent.h: Declare __getdirentries.
58452
58453         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58454         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58455
58456 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58457
58458         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58459         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58460         * sysdeps/i386/configure: Regenerated.
58461         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58462         STABS_CURRENT_FILE, and STABS_FUN.
58463         (END): Remove call to STABS_FUN_END.
58464         (STABS_CURRENT_FILE1): Delete.
58465         (STABS_CURRENT_FILE): Likewise.
58466         (STABS_FUN): Likewise.
58467         (STABS_FUN_END): Likewise.
58468         (STABS_FUN2): Likewise.
58469         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58470         * sysdeps/x86_64/configure: Regenerated.
58471
58472 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58473
58474         * elf/dl-open.c: Include <atomic.h>.
58475         * elf/dl-lookup.c: Likewise.
58476
58477 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58478
58479         * sysdeps/unix/sysv/linux/kernel-features.h
58480         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58481         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58482         unconditionally.
58483         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58484         unconditionally.
58485         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58486         condition on __ASSUME_CLONE_THREAD_FLAGS.
58487
58488 2012-08-14  Andreas Jaeger  <aj@suse.de>
58489
58490         * sysdeps/i386/fpu/libm-test-ulps: Update.
58491
58492 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58493
58494         * include/atomic.h (atomic_exchange_and_add): Split into ...
58495         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58496         New atomic macros.
58497
58498 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58499
58500         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58501
58502 2012-08-13  Jeff Law <law@redhat.com>
58503
58504         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58505         null byte in the output string.
58506
58507 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58508
58509         * sysdeps/unix/sysv/linux/kernel-features.h
58510         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58511         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58512         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58513         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58514         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58515         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58516         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58517
58518 2012-08-09  Jeff Law <law@redhat.com>
58519
58520         [BZ #13939]
58521         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58522         When avoid_arena is set, don't retry in the that arena.  Pick the
58523         next one, whatever it might be.
58524         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58525         (arena_lock): Pass in new parameter to arena_get2.
58526         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58527         arena_get2.
58528         (__libc_malloc): Unify retrying after main arena failure with
58529         __libc_memalign version.
58530         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58531
58532 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58533
58534         [BZ #14166]
58535         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58536         to __redirect_strstr.
58537         (__strstr_sse42): Use typeof __redirect_strstr.
58538         (__strstr_ia32): Likewise.
58539         (__libc_strstr): New prototype.
58540         (strstr): Renamed to ...
58541         (__libc_strstr): This.
58542         (strstr): New strong alias of __libc_strstr.
58543         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58544         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58545         __redirect_time.
58546         Include <time.h>.
58547         (__libc_time): New prototype.
58548         (time_ifunc): Replace time with __libc_time.
58549         (time): New strong alias and hidden definition of __libc_time.
58550         (__GI_time): Remove strong alias.
58551         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58552         Include <stddef.h>.
58553         (memmove): Redefined to __redirect_memmove.
58554         (__memmove_sse2): Use typeof __redirect_memmove.
58555         (__memmove_ssse3): Likewise.
58556         (__memmove_ssse3_back): Likewise.
58557         (__libc_memmove): New prototype.
58558         (memmove): Renamed to ...
58559         (__libc_memmove): This.
58560         (memmove): New strong alias of __libc_memmove.
58561
58562 2012-08-08  Mark Salter  <msalter@redhat.com>
58563
58564         * elf/elf.h
58565         (R_MN10300_TLS_GD): Define.
58566         (R_MN10300_TLS_LD): Likewise.
58567         (R_MN10300_TLS_LDO): Likewise.
58568         (R_MN10300_TLS_GOTIE): Likewise.
58569         (R_MN10300_TLS_IE): Likewise.
58570         (R_MN10300_TLS_LE): Likewise.
58571         (R_MN10300_TLS_DTPMOD): Likewise.
58572         (R_MN10300_TLS_DTPOFF): Likewise.
58573         (R_MN10300_TLS_TPOFF): Likewise.
58574         (R_MN10300_SYM_DIFF): Likewise.
58575         (R_MN10300_ALIGN): Likewise.
58576         (R_MN10300_NUM): Update.
58577
58578 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58579
58580         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58581         Remove.
58582
58583 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58584
58585         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58586
58587         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58588         sysdeps/unix -> sysdeps/posix move.
58589         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58590
58591 2012-08-07      Allan McRae     <allan@archlinux.org>
58592
58593         [BZ #14303]
58594         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58595         (SUNOS_CPP): Likewise.
58596         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58597         not found.
58598         (open_input): Call CPP using execvp.
58599
58600 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58601
58602         * sysdeps/unix/sysv/linux/kernel-features.h
58603         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58604         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58605         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58606         (__ASSUME_WAITID_SYSCALL): Likewise.
58607         * sysdeps/unix/sysv/linux/dl-execstack.c
58608         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58609         code unconditional.
58610         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58611         conditional code.
58612         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58613         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58614         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58615         code.
58616         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58617         unconditional.
58618         [__ASSUME_WAITID_SYSCALL]: Likewise.
58619         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58620
58621 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58622
58623         * sysdeps/unix/closedir.c: Renamed to ...
58624         * sysdeps/posix/closedir.c: ... here.
58625         * sysdeps/unix/dirfd.c: Renamed to ...
58626         * sysdeps/posix/dirfd.c: ... here.
58627         * sysdeps/unix/dirstream.h: Renamed to ...
58628         * sysdeps/posix/dirstream.h: ... here.
58629         * sysdeps/unix/fdopendir.c: Renamed to ...
58630         * sysdeps/posix/fdopendir.c: ... here.
58631         * sysdeps/unix/opendir.c: Renamed to ...
58632         * sysdeps/posix/opendir.c: ... here.
58633         * sysdeps/unix/readdir.c: Renamed to ...
58634         * sysdeps/posix/readdir.c: ... here.
58635         * sysdeps/unix/readdir_r.c: Renamed to ...
58636         * sysdeps/posix/readdir_r.c: ... here.
58637         * sysdeps/unix/rewinddir.c: Renamed to ...
58638         * sysdeps/posix/rewinddir.c: ... here.
58639         * sysdeps/unix/seekdir.c: Renamed to ...
58640         * sysdeps/posix/seekdir.c: ... here.
58641         * sysdeps/unix/telldir.c: Renamed to ...
58642         * sysdeps/posix/telldir.c: ... here.
58643         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58644         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58645         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58646         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58647
58648         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58649         * bits/fcntl.h: ... here.
58650
58651         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58652         not 0.
58653         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58654         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58655         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58656         (struct flock): Move l_start, l_len to the beginning.
58657         Use __pid_t for l_pid.
58658         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58659         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58660         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58661         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58662         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58663         [__USE_LARGEFILE64] (struct flock64): New type.
58664         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58665
58666         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58667         * bits/dirent.h: ... here.
58668
58669         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58670         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58671
58672 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58673
58674         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58675         Change from 2.6.0 to 2.6.16.
58676         * sysdeps/unix/sysv/linux/configure: Regenerated.
58677         * sysdeps/unix/sysv/linux/kernel-features.h
58678         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58679         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58680         version.
58681         (__ASSUME_UTIMES): Likewise.
58682         (__ASSUME_CLONE_STOPPED): Remove.
58683         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58684         architectures, not kernel version.
58685         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58686         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58687         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58688         (__ASSUME_WAITID_SYSCALL): Likewise.
58689         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58690         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58691         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58692         refer to older versions.
58693
58694 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58695
58696         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58697         Define alphasort64 as an alias.
58698         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58699         Define versionsort64 as an alias.
58700         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58701         Define scandir64 as an alias.
58702         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58703         Define scandirat64 as an alias.
58704         * dirent/alphasort64.c (alphasort64):
58705         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58706         * dirent/versionsort64.c: Likewise.
58707         * dirent/scandir64.c: Likewise.
58708         * dirent/scandirat64.c: Likewise.
58709         * sysdeps/wordsize-64/alphasort.c: File removed.
58710         * sysdeps/wordsize-64/alphasort64.c: File removed.
58711         * sysdeps/wordsize-64/scandir.c: File removed.
58712         * sysdeps/wordsize-64/scandir64.c: File removed.
58713         * sysdeps/wordsize-64/scandirat.c: File removed.
58714         * sysdeps/wordsize-64/scandirat64.c: File removed.
58715         * sysdeps/wordsize-64/versionsort.c: File removed.
58716         * sysdeps/wordsize-64/versionsort64.c: File removed.
58717         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58718         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58719         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58720         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58721         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58722         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58723         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58724         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58725
58726         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58727         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58728         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58729         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58730         [defined __arch64__ || defined __sparcv9]
58731         (__INO_T_MATCHES_INO64_T): New macro.
58732         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58733         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58734         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58735         * sysdeps/unix/sysv/linux/bits/dirent.h
58736         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58737         (_DIRENT_MATCHES_DIRENT64): New macro.
58738
58739         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58740         Define lockf64 as an alias.
58741         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58742         Define fseeko64 as an alias.
58743         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58744         Define ftello64 as an alias.
58745         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58746         Define _IO_fgetpos64 and fgetpos64 as aliases.
58747         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58748         Define _IO_fsetpos64 and fsetpos64 as aliases.
58749         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58750         Conditionalize body on this.
58751         * libio/fseeko64.c: Likewise.
58752         * libio/ftello64.c: Likewise.
58753         * libio/iofgetpos64.c: Likewise.
58754         * libio/iofsetpos64.c: Likewise.
58755         * sysdeps/wordsize-64/lockf.c: File removed.
58756         * sysdeps/wordsize-64/lockf64.c: File removed.
58757         * sysdeps/wordsize-64/fseeko.c: File removed.
58758         * sysdeps/wordsize-64/fseeko64.c: File removed.
58759         * sysdeps/wordsize-64/ftello.c: File removed.
58760         * sysdeps/wordsize-64/ftello64.c: File removed.
58761         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58762         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58763         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58764         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58765         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58766         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58767         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58768         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58769         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58770         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58771         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58772         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58773         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58774         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58775
58776         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58777         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58778         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
58779         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58780         [defined __arch64__ || defined __sparcv9]
58781         (__OFF_T_MATCHES_OFF64_T): New macro.
58782         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58783         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58784         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
58785         (__OFF_T_MATCHES_OFF64_T): New macro.
58786
58787 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58788
58789         * stdlib/secure-getenv.c (__secure_getenv): Replace
58790         GLIBC_2_16 with GLIBC_2_17.
58791
58792 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58793
58794         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
58795         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
58796
58797 2012-08-03  David S. Miller  <davem@davemloft.net>
58798
58799         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58800
58801 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58802
58803         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
58804         Remove.
58805         (__ASSUME_CORRECT_SI_PID): Likewise.
58806         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
58807         (__ASSUME_TMPFS_NAME): Likewise.
58808         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
58809         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
58810         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
58811         (HAVE_AUX_SECURE): Make definition unconditional.
58812         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
58813         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
58814
58815 2012-08-03  Roland McGrath  <roland@hack.frob.com>
58816
58817         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
58818         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
58819         * sysdeps/mach/hurd/eloop-threshold.h: New file.
58820         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
58821         __eloop_threshold instead of SYMLOOP_MAX.
58822
58823         * sysdeps/generic/eloop-threshold.h: New file.
58824         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
58825         of MAXSYMLINKS.
58826         * elf/chroot_canon.c (chroot_canon): Likewise.
58827
58828 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58829
58830         [BZ #13717]
58831         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58832         Change to 2.6.0 everywhere.
58833         * sysdeps/unix/sysv/linux/configure: Regenerated.
58834         * sysdeps/unix/sysv/linux/kernel-features.h
58835         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
58836         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
58837         kernel versions.
58838         (__ASSUME_POSIX_TIMERS): Define unconditionally.
58839         (__ASSUME_FUTEX_REQUEUE): Remove.
58840         (__ASSUME_STATFS64): Define unconditionally.
58841         (__ASSUME_AT_SECURE): Likewise.
58842         (__ASSUME_CORRECT_SI_PID): Likewise.
58843         (__ASSUME_TGKILL): Define without depending on kernel version for
58844         i386.
58845         (__ASSUME_UTIMES): Likewise.
58846         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
58847         kernel version.
58848         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
58849         (__ASSUME_TMPFS_NAME): Likewise.
58850         * README: Update reference to Linux kernel versions.
58851
58852 2012-08-02  Marek Polacek  <polacek@redhat.com>
58853
58854         [BZ# 14150]
58855         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
58856         libc_cv_asm_type_prefix with %.
58857         * configure: Regenerated.
58858         * include/libc-symbols.h: Remove comment about
58859         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58860         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
58861         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
58862         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
58863         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
58864         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58865         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
58866         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
58867         * elf/tst-unique2mod1.c: Likewise.
58868         * elf/tst-unique1mod2.c: Likewise.
58869         * elf/tst-unique1mod1.c: Likewise.
58870         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
58871         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58872         Replace ASM_TYPE_DIRECTIVE with .type.
58873         * sysdeps/s390/s390-64/sysdep.h: Likewise.
58874         * sysdeps/i386/sysdep.h: Likewise.
58875         * sysdeps/x86_64/sysdep.h: Likewise.
58876         * sysdeps/sh/sysdep.h: Likewise.
58877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
58878         Do not define ASM_TYPE_DIRECTIVE.
58879         * sysdeps/powerpc/sysdep.h: Likewise.
58880         * sysdeps/powerpc/powerpc32/sysdep.h:
58881         Replace ASM_TYPE_DIRECTIVE with .type.
58882         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
58883         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
58884         * sysdeps/i386/fpu/e_powf.S: Likewise.
58885         * sysdeps/i386/fpu/e_expl.S: Likewise.
58886         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
58887         * sysdeps/i386/fpu/e_acosh.S: Likewise.
58888         * sysdeps/i386/fpu/e_pow.S: Likewise.
58889         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
58890         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
58891         * sysdeps/i386/fpu/s_expm1.S: Likewise.
58892         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
58893         * sysdeps/i386/fpu/e_log2.S: Likewise.
58894         * sysdeps/i386/fpu/e_log2l.S: Likewise.
58895         * sysdeps/i386/fpu/e_scalb.S: Likewise.
58896         * sysdeps/i386/fpu/e_powl.S: Likewise.
58897         * sysdeps/i386/fpu/e_log10f.S: Likewise.
58898         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
58899         * sysdeps/i386/fpu/e_logl.S: Likewise.
58900         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
58901         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
58902         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
58903         * sysdeps/i386/fpu/e_log2f.S: Likewise.
58904         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
58905         * sysdeps/i386/fpu/e_log.S: Likewise.
58906         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
58907         * sysdeps/i386/fpu/e_logf.S: Likewise.
58908         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58909         * sysdeps/i386/fpu/e_atanh.S: Likewise.
58910         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
58911         * sysdeps/i386/fpu/e_log10.S: Likewise.
58912         * sysdeps/i386/fpu/s_frexp.S: Likewise.
58913         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
58914         * sysdeps/i386/fpu/s_asinh.S: Likewise.
58915         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
58916         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
58917         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
58918         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
58919         * sysdeps/i386/i686/strtok.S: Likewise.
58920         * sysdeps/i386/i386-mcount.S: Likewise.
58921         * sysdeps/i386/strtok.S: Likewise.
58922         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
58923         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
58924         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
58925         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
58926         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
58927         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
58928         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
58929         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
58930         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
58931         * sysdeps/x86_64/_mcount.S: Likewise.
58932         * sysdeps/x86_64/strtok.S: Likewise.
58933         * sysdeps/sh/_mcount.S: Likewise.
58934
58935 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58936
58937         * libio/iofopen.c: Include <fcntl.h>.
58938         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
58939         (_IO_fopen64, fopen64): Define as aliases.
58940         * libio/iofopen64.c: Include <fcntl.h>.
58941         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
58942         Conditionalize body on this.
58943         * sysdeps/wordsize-64/iofopen.c: File removed.
58944         * sysdeps/wordsize-64/iofopen64.c: File removed.
58945
58946 2012-08-01  Marek Polacek  <polacek@redhat.com>
58947
58948         * libc/Makeconfig: Use elf in place of binfmt-subdir.
58949         Use dlfcn directly instead of a variable.
58950         (binfmt-subdir): Do not define.
58951         (dlfcn): Likewise.
58952
58953 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
58954
58955         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
58956         Remove all definitions.
58957         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
58958         <kernel-features.h>.
58959         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58960         (miss_F_GETOWN_EX): Remove all definitions.
58961         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
58962         macro definition.
58963         [!__ASSUME_FCNTL64]: Remove conditional code.
58964         [__ASSUME_FCNTL64]: Make code unconditional.
58965         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
58966         <kernel-features.h>.
58967         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58968         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
58969         (lockf64) [__NR_fcntl64]: Make code unconditional.
58970         (lockf64) [__ASSUME_FCNTL64]: Likewise.
58971
58972         * sysdeps/unix/sysv/linux/kernel-features.h
58973         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
58974         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
58975         Make code unconditional.
58976         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58977         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
58979         [__NR_vfork]: Make code unconditional.
58980         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58981         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
58983         [__NR_vfork]: Make code unconditional.
58984         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58985         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58986
58987 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58988
58989         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
58990         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
58991
58992         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58993         Define mkstemp64 as an alias.
58994         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58995         Define mkstemps64 as an alias.
58996         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58997         Define mkostemp64 as an alias.
58998         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58999         Define mkostemps64 as an alias.
59000         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59001         Conditionalize body on this.
59002         * misc/mkostemp64.c: Likewise.
59003         * misc/mkostemps64.c: Likewise.
59004         * misc/mkstemps64.c: Likewise.
59005         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59006         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59007         * sysdeps/wordsize-64/mkostemp.c: File removed.
59008         * sysdeps/wordsize-64/mkstemp.c: File removed.
59009         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59010         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59011         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59012         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59013
59014         [BZ #14138]
59015         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59016         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59017         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59018         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59019
59020         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59021         compat_symbol macros from <shlib-compat.h> rather than the underlying
59022         default_symbol_version and symbol_version macros, so that DEFAULT
59023         lines in shlib-versions are respected.
59024         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59025
59026 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59027
59028         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59029         Declare with warn_unused_result.
59030         (setgid, setregid, setegid, setresgid): Likewise.
59031         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59032         Likewise.
59033         * WUR-REPORT: Remove set*id functions.
59034
59035 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59036
59037         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59038
59039 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59040
59041         [BZ #10191]
59042         * include/sys/socket.h (__libc_accept, __libc_accept4):
59043         Add attribute_hidden.
59044         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59045
59046         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59047         use of PTR_MANGLE.
59048         * inet/getnetgrent_r.c (setup): Likewise.
59049
59050         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59051
59052 2012-07-31  David S. Miller  <davem@davemloft.net>
59053
59054         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59055
59056 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59057
59058         [BZ #13629]
59059         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59060         value between 1.0 and 2.0 and smaller part has absolute value less
59061         than 1.0.
59062         * math/s_clog10.c (__clog10): Likewise.
59063         * math/s_clog10f.c (__clog10f): Likewise.
59064         * math/s_clog10l.c (__clog10l): Likewise.
59065         * math/s_clogf.c (__clogf): Likewise.
59066         * math/s_clogl.c (__clogl): Likewise.
59067         * math/libm-test.inc (clog_test): Add more tests.
59068         (clog10_test): Likewise.
59069         * sysdeps/i386/fpu/libm-test-ulps: Update.
59070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59071
59072 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59073
59074         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59075         Exit with zero in case no suitable GID is found, and write a
59076         message to standard error.
59077
59078 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59079
59080         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59081         rather than to 1.
59082         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59083         (MAXPATHLEN): Removed.
59084         (NOGROUP, NODEV): New macros.
59085         (setbit, clrbit, isset, isclr): New macros.
59086         (howmany, roundup, powerof2): New macros.
59087         (DEV_BSIZE): New macro.
59088
59089         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59090         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59091
59092         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59093         definition on [!__NO_LONG_DOUBLE_MATH].
59094
59095         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59096         PTR_MANGLE and PTR_DEMANGLE.
59097
59098         * socket/accept4.c (accept4): Rename to __libc_accept4.
59099         Define accept4 as a weak alias.
59100
59101         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59102         on [_DIRENT_HAVE_D_TYPE].
59103         * io/ftw.c (ftw_dir): Likewise.
59104
59105         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59106
59107         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59108
59109         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59110         Use the BSD numbers rather than the arbitrary ones we had.
59111         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59112         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59113         (SIGXCPU, SIGXFSZ): New macros.
59114         (_NSIG): Now 32.
59115
59116         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59117         initializer on [_LIBC_REENTRANT].
59118
59119         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59120         definitions inside [_POSIX_MAPPED_FILES].
59121
59122         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59123
59124         * dirent/opendir.c: Include <fcntl.h>.
59125
59126         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59127         (__libc_getspecific): Likewise.
59128         (__libc_key_create): Likewise.
59129
59130         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59131         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59132         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59133         (tmpfile64): Define as alias.
59134         * sysdeps/wordsize-64/tmpfile.c: File removed.
59135         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59136         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59137         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59138
59139         * stdio-common/vfscanf.c: Include <stdbool.h>.
59140         * nss/makedb.c: Likewise.
59141         * stdio-common/_i18n_number.h: Likewise.
59142         * argp/argp-help.c: Likewise.
59143         * posix/wordexp.c: Likewise.
59144         * sysdeps/posix/spawni.c: Likewise.
59145         * nss/nss_files/files-initgroups.c: Likewise.
59146         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59147         * nss/nss_files/files-initgroups.c: Likewise.
59148         * nss/nss_db/db-netgrp.c: Likewise.
59149         * nss/nss_db/db-initgroups.c: Likewise.
59150         * io/fchmodat.c: Include <sys/stat.h>.
59151
59152         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59153         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59154
59155         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59156         [HAVE_MMAP].
59157
59158         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59159         Add multiple inclusion protection.
59160
59161 2012-07-27  David S. Miller  <davem@davemloft.net>
59162
59163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59164
59165 2012-07-27  Gary Benson  <gbenson@redhat.com>
59166
59167         [BZ #14298]
59168         * elf/rtld.c: Include <stap-probe.h>.
59169         (dl_main): Added static probes "init_start" and "init_complete".
59170         * elf/dl-load.c: Include <stap-probe.h>.
59171         (lose): Take new parameter "nsid".
59172         Added static probe "map_failed".
59173         (_dl_map_object_from_fd): Pass namespace id to lose.
59174         Added static probe "map_start".
59175         (open_verify): Pass namespace id to lose.
59176         * elf/dl-open.c: Include <stap-probe.h>.
59177         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59178         and "reloc_complete".
59179         * elf/dl-close.c: Include <stap-probe.h>.
59180         (_dl_close_worker): Added static probes "unmap_start" and
59181         "unmap_complete".
59182         * elf/rtld-debugger-interface.txt: New file documenting the above.
59183
59184 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59185
59186         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59187         rather than a string variable.
59188         * sunrpc/rpc_main.c (h_output): Likewise.
59189         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59190
59191 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59192
59193         * inet/check_native.c: New file.
59194
59195 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59196
59197         [BZ #13629]
59198         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59199         if larger part has absolute value 1.0.
59200         * math/s_clog10.c (__clog10): Likewise.
59201         * math/s_clog10f.c (__clog10f): Likewise.
59202         * math/s_clog10l.c (__clog10l): Likewise.
59203         * math/s_clogf.c (__clogf): Likewise.
59204         * math/s_clogl.c (__clogl): Likewise.
59205         * math/libm-test.inc (clog_test): Add more tests.
59206         (clog10_test): Likewise.
59207         * sysdeps/i386/fpu/libm-test-ulps: Update.
59208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59209
59210         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59211         (pltexit): Likewise.
59212         (La_regs): Likewise.
59213         (La_retval): Likewise.
59214         (int_retval): Likewise.
59215         Update #error for removed macros to refer only to definitions in
59216         tst-audit.h.
59217         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59218         macro.
59219         (pltexit): Likewise.
59220         (La_regs): Likewise.
59221         (La_retval): Likewise.
59222         (int_retval): Likewise.
59223         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59224         macro.
59225         (pltexit): Likewise.
59226         (La_regs): Likewise.
59227         (La_retval): Likewise.
59228         (int_retval): Likewise.
59229         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59230         macro.
59231         (pltexit): Likewise.
59232         (La_regs): Likewise.
59233         (La_retval): Likewise.
59234         (int_retval): Likewise.
59235         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59236         macro.
59237         (pltexit): Likewise.
59238         (La_regs): Likewise.
59239         (La_retval): Likewise.
59240         (int_retval): Likewise.
59241         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59242         macro.
59243         (pltexit): Likewise.
59244         (La_regs): Likewise.
59245         (La_retval): Likewise.
59246         (int_retval): Likewise.
59247         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59248         macro.
59249         (pltexit): Likewise.
59250         (La_regs): Likewise.
59251         (La_retval): Likewise.
59252         (int_retval): Likewise.
59253         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59254         macro definitions in tst-audit.h.
59255         * sysdeps/i386/tst-audit.h: New file.
59256         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59257         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59258         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59259         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59260         * sysdeps/sh/tst-audit.h: Likewise.
59261         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59262         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59263         * sysdeps/x86_64/tst-audit.h: Likewise.
59264
59265 2012-07-26  Andreas Jaeger  <aj@suse.de>
59266
59267         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59268         ptrace.
59269
59270         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59271         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59272         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59273         PTRACE_O_MASK.
59274         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59275         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59276         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59277
59278         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59279         value.
59280
59281         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59282         _sigsys.
59283         (si_call_addr, si_syscall, si_arch): Define new macro.
59284         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59285         _sigsys.
59286         (si_call_addr, si_syscall, si_arch): Define new marcro.
59287         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59288         _sigsys.
59289         (si_call_addr, si_syscall, si_arch): Define new macro.
59290         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59291         _sigsys.
59292         (si_call_addr, si_syscall, si_arch): Define new macro.
59293
59294 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59295
59296         [BZ #13717]
59297         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59298         Change to 2.4.21 where previously 2.4.1.
59299         * sysdeps/unix/sysv/linux/configure: Regenerated.
59300         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59301         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59302         Linux kernel version.
59303         (__ASSUME_STD_AUXV): Remove.
59304         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59305         kernel version.
59306         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59307         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59308         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59309         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59310         (__ASSUME_NETLINK_SUPPORT): Likewise.
59311         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59312         (__no_netlink_support): Remove conditional definition.
59313         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59314         Remove.
59315         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59316         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59317         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59318         (if_nameindex_ioctl): Remove.
59319         (if_nameindex_netlink): Do not handle __no_netlink_support.
59320         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59321         code.
59322         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59323         Remove conditional code.
59324         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59325         code.
59326         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59327         unconditional.
59328         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59329         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59330         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59331         Remove.
59332         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59333         [!__ASSUME_STD_AUXV]: Remove conditional code.
59334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59335         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59336         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59338         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59339         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59340         code.
59341         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59343         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59344         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59345         conditional code.
59346         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59348         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59349         code.
59350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59351         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59352         conditional code.
59353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59354         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59355         code unconditional.
59356         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59357         conditional code.
59358         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59359         unconditional.
59360         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59361         conditional code.
59362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59363         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59364         unconditional.
59365         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59366         conditional code.
59367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59368         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59369         code unconditional.
59370         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59371         conditional code.
59372         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59373         unconditional.
59374         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59375         conditional code.
59376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59377         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59378         code unconditional.
59379         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59380         conditional code.
59381         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59382         unconditional.
59383         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59384         conditional code.
59385
59386 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59387
59388         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59389         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59390         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59391         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59392         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59393         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59394         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59395         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59396         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59397         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59398         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59399         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59400         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59401         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59402         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59403         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59404         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59405         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59406         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59407         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59408         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59409         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59410         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59411
59412 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59413
59414         * Versions.def: Add GLIBC_2.17.
59415         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59416         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59417         Introduce __libc_secure_getenv.
59418         * stdlib/Versions (2.17): Add secure_getenv
59419         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59420         * stdlib/secure-getenv.c: Rename __secure_getenv to
59421         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59422         symbol __secure_getenv for GLIBC_2.0.
59423         * stdlib/tst-secure-getenv.c: New.
59424         * stdlib/Makefile (tests): Add testcase.
59425         * manual/startup.texi (Environment Access): Document
59426         secure_getenv.
59427         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59428         __libc_secure_getenv.
59429         * inet/ruserpass.c (ruserpass): Likewise.
59430         * malloc/mtrace.c (mtrace): Likewise.
59431         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59432         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59433         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59434         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59435         HAVE_SECURE_GETENV.
59436         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59437         __secure_getenv to __libc_secure_getenv.
59438         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59440         Likewise.
59441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59442         Likewise.
59443         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59444         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59445         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59446         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59447         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59448         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59450
59451 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59452
59453         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59454         (struct La_i86_retval): Likewise.
59455         (struct La_x86_64_regs): Likewise.
59456         (struct La_x86_64_retval): Likewise.
59457         (struct La_x32_regs): Likewise.
59458         (struct La_x32_retval): Likewise.
59459         (struct La_ppc32_regs): Likewise.
59460         (struct La_ppc32_retval): Likewise.
59461         (struct La_ppc64_regs): Likewise.
59462         (struct La_ppc64_retval): Likewise.
59463         (struct La_sh_regs): Likewise.
59464         (struct La_sh_retval): Likewise.
59465         (struct La_s390_32_regs): Likewise.
59466         (struct La_s390_32_retval): Likewise.
59467         (struct La_s390_64_regs): Likewise.
59468         (struct La_s390_64_retval): Likewise.
59469         (struct La_sparc32_regs): Likewise.
59470         (struct La_sparc32_retval): Likewise.
59471         (struct La_sparc64_regs): Likewise.
59472         (struct La_sparc64_retval): Likewise.
59473         (struct audit_ifaces): Remove architecture-specific pltenter and
59474         pltexit members.
59475         * sysdeps/i386/ldsodefs.h: New file.
59476         * sysdeps/powerpc/ldsodefs.h: Likewise.
59477         * sysdeps/s390/ldsodefs.h: Likewise.
59478         * sysdeps/sh/ldsodefs.h: Likewise.
59479         * sysdeps/sparc/ldsodefs.h: Likewise.
59480         * sysdeps/x86_64/ldsodefs.h: Likewise.
59481
59482 2012-07-25  Marek Polacek  <polacek@redhat.com>
59483
59484         [BZ #6808]
59485         * math/libm-test.inc (yn_test): Add another test.
59486         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59487         to ERANGE when the result is +-Inf.
59488         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59489         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59490         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59491         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59492
59493 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59494
59495         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59496         equal to 0.
59497         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59498         clock_t.
59499         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59500
59501 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59502
59503         * configure.in <sysdeps resolving>: Correct printing
59504         Implies_before.
59505         * configure: Regenerate.
59506
59507 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59508
59509         * math/w_ilogb.c: Include <limits.h>.
59510         * math/w_ilogbl.c: Likewise.
59511
59512 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59513
59514         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59515         va_copy.  Document allowing for unavailable va_copy only as
59516         pre-C99 compatibility.
59517         * manual/string.texi (Copying and Concatenation): Use va_copy
59518         instead of __va_copy in concat example.
59519
59520 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59521
59522         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59523         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59524         it if not null.
59525
59526         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59527         with O_NOLINK passed to __file_name_lookup.
59528
59529         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59530         with O_NOLINK passed to __file_name_lookup.
59531
59532         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59533         negative N or less than NGIDS.
59534
59535         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59536         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59537         enough.  Use memcpy instead of strncpy.
59538
59539 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59540
59541         * elf/Makefile (check-data): Remove.
59542         (localplt.data): New vpath directive.
59543         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59544         instead of $(check-data).
59545         * scripts/data/localplt-generic.data: Move to ...
59546         * sysdeps/generic/localplt.data: ... here.
59547         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59548         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59549         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59551         ... here.
59552         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59554         ... here.
59555         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59556         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59557         ... here.
59558         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59559         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59560         ... here.
59561         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59563         ... here.
59564         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59565         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59566         ... here.
59567
59568 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59569
59570         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59571         PPC32 and PPC64 files.
59572         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59573         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59574
59575 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59576
59577         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59578         __makecontext_ret to ...
59579         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59580         ... here and call exit if uc_link is NULL.  New file.
59581         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59582         __makecontext_ret.S.
59583         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59584         __makecontext_ret to ...
59585         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59586         ... here and call exit if uc_link is NULL.  New file.
59587         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59588         __makecontext_ret.S.
59589
59590 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59591
59592         * elf/elf.h (R_390_IRELATIVE): New definition.
59593         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59594         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59595         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59596         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59597         (elf_machine_lazy_rel): Likewise.
59598         * sysdeps/s390/dl-irel.h: New file.
59599         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59600         * sysdeps/s390/s390-64/memset.S: New asm code.
59601         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59602         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59603         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59604         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59605         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59606         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59607         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59608         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59609         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59610         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59611         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59612         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59613         * sysdeps/s390/s390-32/memset.S: New asm code.
59614         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59615
59616 2012-07-17  Marek Polacek  <polacek@redhat.com>
59617
59618         [BZ #14349]
59619         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59620         * sysdeps/s390/s390-64/configure.in: Likewise.
59621         * sysdeps/sparc/configure.in: Likewise.
59622         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59623         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59624         * sysdeps/i386/configure.in: Likewise.
59625         * sysdeps/x86_64/configure.in: Likewise.
59626         * sysdeps/sh/configure.in: Likewise.
59627         * sysdeps/s390/s390-32/configure: Regenerated.
59628         * sysdeps/s390/s390-64/configure: Likewise.
59629         * sysdeps/x86_64/configure: Likewise.
59630         * sysdeps/sh/configure: Likewise.
59631         * sysdeps/powerpc/powerpc64/configure: Likewise.
59632         * sysdeps/powerpc/powerpc32/configure: Likewise.
59633         * sysdeps/sparc/configure: Likwise.
59634         * sysdeps/i386/configure: Likewise.
59635
59636         * elf/dl-open.c: Comment fixes.
59637
59638 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59639
59640         * Makefile [CXX] (check-data): Remove.
59641         [CXX] (c++-types.data): New vpath directive.
59642         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59643         vpath.  Do not allow for C++ type data being missing.
59644         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59645         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59646         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59647         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59648         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59649         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59650         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59652         ... here.
59653         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59655         ... here.
59656         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59658         ... here.
59659         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59660         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59661         ... here.
59662         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59663         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59664         ... here.
59665         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59666         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59667         ... here.
59668         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59669         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59670         ... here.
59671         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59673
59674         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59675         definitions to architecture-specific files.
59676         (TLS_IE): Likewise.
59677         (TLS_LD): Likewise.
59678         (TLS_GD): Likewise.
59679         * sysdeps/i386/tls-macros.h: New file.
59680         * sysdeps/powerpc/tls-macros.h: Likewise.
59681         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59682         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59683         * sysdeps/sh/tls-macros.h: Likewise.
59684         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59685         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59686         * sysdeps/x86_64/tls-macros.h: Likewise.
59687
59688 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59689
59690         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59691         zero value for regular exit case.
59692
59693         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59694         (__start_context): Preserve zero value for regular exit case.
59695
59696 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59697             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59698
59699         * manual/setjmp.texi (setcontext): Clarify normal process
59700         termination when uc_link is the null pointer.
59701         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59702         exit call.
59703
59704 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59705
59706         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59707         preprocessor.  Test for each exception mask separately.
59708
59709 2012-07-16  Andreas Jaeger  <aj@suse.de>
59710
59711         * po/ru.po: Update from translation team.
59712
59713 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59714
59715         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59716         equal to 0.
59717         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59718         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59719         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59720         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59721         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59722
59723 2012-07-13  Andreas Jaeger  <aj@suse.de>
59724
59725         * po/fr.po: Update from translation team.
59726
59727 2012-07-12  Marek Polacek  <polacek@redhat.com>
59728
59729         [BZ #14173]
59730         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59731         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59732         loop condition.
59733
59734 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59735
59736         [BZ #13717]
59737         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59738         Change to 2.4.1 where previously 2.4.0.
59739         * sysdeps/unix/sysv/linux/configure: Regenerated.
59740         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59741         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59742         version.
59743         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59744         (__ASSUME_AT_CLKTCK): Remove.
59745         (__ASSUME_AT_PAGESIZE): Likewise.
59746         (__ASSUME_AT_XID): Likewise.
59747         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59748         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59749         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59750         unconditionally.
59751         (HAVE_AUX_PAGESIZE): Likewise.
59752         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59753         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59754         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59755
59756 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59757
59758         [BZ #14307]
59759         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59760         the temporary buffer used to invoke __gethostbyname2_r,
59761         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59762         host_data / struct gaih_addrtuple.
59763         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59764         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59765         header file nss/nsswitch.h.
59766         * nss/nsswitch.h (global scope): Add definition of implementation
59767         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59768         resolv/nss_dns/dns-host.c).
59769
59770 2012-07-11  Andreas Jaeger  <aj@suse.de>
59771
59772         * po/fr.po: Update from translation team.
59773
59774         * po/sv.po: Update from translation team
59775         * po/fr.po: Another update from translation team.
59776
59777 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59778
59779         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
59780         for subnormals or multiply small sinh result by itself.
59781         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
59782         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59783
59784 2012-07-11  David S. Miller  <davem@davemloft.net>
59785
59786         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59787
59788 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
59789
59790         [BZ #14347]
59791         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59792         (INTERNAL_MARK): Shift it here.
59793
59794 2012-07-10  Marek Polacek  <polacek@redhat.com>
59795
59796         [BZ #14151]
59797         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
59798         libc_cv_asm_global_directive with .globl.
59799         * configure: Regenerated.
59800         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
59801         with .globl.
59802         * sysdeps/i386/configure: Regenerated.
59803         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
59804         with .globl.
59805         * sysdeps/x86_64/configure: Regenerated.
59806         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
59807         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
59808         * elf/tst-unique2mod2.c: Likewise.
59809         * elf/tst-unique2mod1.c: Likewise.
59810         * elf/tst-unique1mod2.c: Likewise.
59811         * elf/tst-unique1mod1.c: Likewise.
59812         * sysdeps/s390/s390-32/sysdep.h: Likewise.
59813         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59814         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59815         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59816         * sysdeps/mach/sysdep.h: Likewise.
59817         * sysdeps/i386/sysdep.h: Likewise.
59818         * sysdeps/i386/i386-mcount.S: Likewise.
59819         * sysdeps/x86_64/_mcount.S: Likewise.
59820         * sysdeps/x86_64/sysdep.h: Likewise.
59821         * sysdeps/sh/_mcount.S: Likewise.
59822         * sysdeps/sh/sysdep.h: Likewise.
59823         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
59824         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
59825         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
59826         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59827         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
59828         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
59829         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
59830         * locale/localeinfo.h: Likewise.
59831         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
59832         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
59833
59834 2012-07-09  Roland McGrath  <roland@hack.frob.com>
59835
59836         [BZ #14336]
59837         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
59838         system".
59839         * manual/message.texi (The Uniforum approach): Likewise.
59840         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
59841         (glibc iconv Implementation): Likewise.
59842
59843 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
59844
59845         [BZ #14337]
59846         * math/s_clog.c (__clog): Avoid scaling a value down where that
59847         could result in underflow.
59848         * math/s_clog10.c (__clog10): Likewise.
59849         * math/s_clog10f.c (__clog10f): Likewise.
59850         * math/s_clog10l.c (__clog10l): Likewise.
59851         * math/s_clogf.c (__clogf): Likewise.
59852         * math/s_clogl.c (__clogl): Likewise.
59853         * math/libm-test.inc (clog_test): Add more tests.
59854         (clog10_test): Likewise.
59855         * sysdeps/i386/fpu/libm-test-ulps: Update.
59856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59857
59858 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
59859
59860         [BZ #14283]
59861         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
59862         by 7 not 8 to examine high bit of fractional part.
59863
59864         [BZ #14042]
59865         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
59866         for call to __mcount_internal.
59867         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
59868         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
59869         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
59870
59871 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
59872
59873         [BZ #14154]
59874         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
59875         approximation for values within 0x1p-13f of an odd multiple of
59876         pi/4.
59877         * math/libm-test.inc (tan_test): Do not allow spurious underflow
59878         exception.  Add more tests.
59879         * sysdeps/i386/fpu/libm-test-ulps: Update.
59880
59881         [BZ #6778]
59882         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
59883         inputs and return -1 for them.  Do not check for +Inf in case not
59884         reachable for +Inf.
59885         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
59886         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
59887         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59888         and return -1 for them.  Do not check for +Inf in case not
59889         reachable for +Inf.
59890         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
59891         define.
59892         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59893         and return -1 for them.  Do not check for +Inf in case not
59894         reachable for +Inf.
59895         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
59896         spurious underflow.
59897         * sysdeps/i386/fpu/libm-test-ulps: Update.
59898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59899
59900 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
59901
59902         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
59903
59904 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
59905
59906         [BZ #14157]
59907         [BZ #14331]
59908         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
59909         could result in spurious underflow.  Scale down values above
59910         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
59911         * math/s_csqrtf.c (__csqrtf): Likewise.
59912         * math/s_csqrtl.c (__csqrtl): Likewise.
59913         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
59914         spurious underflow.
59915         * sysdeps/i386/fpu/libm-test-ulps: Update.
59916         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59917
59918 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
59919
59920         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
59921         xopen-msg.sed.
59922         * catgets/xopen-msg.awk: New file.
59923         * catgets/xopen-msg.sed: Removed.
59924
59925         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
59926         po2text.sed.
59927         * intl/po2test.awk: New file.
59928         * intl/po2test.sed: Removed.
59929
59930 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
59931
59932         [BZ #14328]
59933         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
59934         or multiply small sinh result by itself.
59935         * math/s_ctanf.c (__ctanf): Likewise.
59936         * math/s_ctanh.c (__ctanh): Likewise.
59937         * math/s_ctanhf.c (__ctanhf): Likewise.
59938         * math/s_ctanhl.c (__ctanhl): Likewise.
59939         * math/s_ctanl.c (__ctanl): Likewise.
59940         * math/libm-test.inc (ctan_test_tonearest): New function.
59941         (ctan_test_towardzero): Likewise.
59942         (ctan_test_downward): Likewise.
59943         (ctan_test_upward): Likewise.
59944         (ctanh_test_tonearest): Likewise.
59945         (ctanh_test_towardzero): Likewise.
59946         (ctanh_test_downward): Likewise.
59947         (ctanh_test_upward): Likewise.
59948         (main): Call these new functions.
59949         * sysdeps/i386/fpu/libm-test-ulps: Update.
59950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59951
59952 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
59953
59954         * .gitignore: Delete /ports entry.
59955
59956 2012-07-03  Andreas Jaeger  <aj@suse.de>
59957
59958         * po/bg.po: Update from translation team.
59959         * po/cs.po: Likewise.
59960         * po/de.po: Likewise.
59961         * po/hr.po: Likewise.
59962         * po/nl.pl: Likewise.
59963         * po/pl.po: Likewise.
59964         * po/vi.po: Likewise.
59965
59966 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
59967
59968         * Makeconfig [!+link] (+link-before-libc): New variable.
59969         [!+link] (+link-after-libc): Likewise.
59970         [!+link] (+link-tests): Likewise.
59971         [!+link] (+link): Define in terms of $(+link-before-libc) and
59972         $(+link-after-libc).
59973         [!+link-static] (+link-static-before-libc): New variable.
59974         [!+link-static] (+link-static-after-libc): Likewise.
59975         [!+link-static] (+link-static-tests): Likewise.
59976         [!+link-static] (+link-static): Define in terms of
59977         $(+link-static-before-libc) and $(+link-static-after-libc).
59978         [build-shared] (link-libc-before-gnulib): New variable.
59979         [build-shared] (link-libc-tests): Likewise.
59980         [build-shared] (link-libc): Define in terms of
59981         $(link-libc-before-gnulib).
59982         [!build-shared] (link-libc-tests): New variable.
59983         (link-libc-static-tests): New variable.
59984         [!gnulib] (gnulib-arch): New variable.
59985         [!gnulib] (gnulib-tests): Likewise.
59986         [!gnulib] (static-gnulib-arch): Likewise.
59987         [!gnulib] (static-gnulib-tests): Likewise.
59988         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
59989         Define with "=" instead of ":=".
59990         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
59991         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
59992         * Rules (binaries-all-notests): New variable.
59993         (binaries-all-tests): Likewise.
59994         (binaries-static-notests): Likewise.
59995         (binaries-static-tests): Likewise.
59996         (binaries-all): Define using $(binaries-all-notests) and
59997         $(binaries-all-tests).
59998         (binaries-static): Define using $(binaries-static-notests) and
59999         $(binaries-static-tests).
60000         (binaries-shared-tests): New variable.
60001         (binaries-shared-notests): Likewise.
60002         (binaries-shared): Remove variable.
60003         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60004         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60005         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60006         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60007         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60008         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60009         * elf/Makefile (sln-modules): New variable.
60010         (extra-objs): Add $(sln-modules:=.o).
60011         (ldconfig-modules): Add static-stubs.
60012         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60013         * elf/static-stubs.c: New file.
60014
60015         [BZ #14283]
60016         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60017         by 7 not 8 to examine high bit of fractional part.  Use volatile
60018         variables when splitting into final array of floats if
60019         __FLT_EVAL_METHOD__ != 0.
60020         * math/libm-test.inc (cos_test): Add another test.
60021         (sin_test): Likewise.
60022         * sysdeps/i386/fpu/libm-test-ulps: Update.
60023
60024         [BZ #14273]
60025         * math/libm-test.inc (cosh_test): Add more tests.
60026
60027         * version.h (RELEASE): Set to "development".
60028         (VERSION): Set to "2.16.90".
60029
60030 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60031
60032         * NEWS: Update copyright. Remove last-updated date.
60033         Mention math library bug fixes and timezone data changes.
60034         * README: Mention GNU/Hurd, x32, and HPPA support status.
60035
60036 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60037
60038         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60039
60040 2012-06-27  Andreas Jaeger  <aj@suse.de>
60041
60042         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60043
60044 2012-06-25  Andreas Jaeger  <aj@suse.de>
60045
60046         * sysdeps/s390/fpu/libm-test-ulps: Update.
60047
60048 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60049             Thomas Schwinge  <thomas@codesourcery.com>
60050
60051         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60052         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60053         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60054         fanotify_mark.
60055
60056 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60057
60058         * sysdeps/mach/start.c: Remove file.
60059         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60060         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60061         * sysdeps/sh/init-first.c: Likewise.
60062
60063         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60064         registers for frame unwinding purposes, add CFI directives.
60065         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60066         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60067         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60068         Likewise.
60069
60070         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60071         __fortify_fail returning.
60072         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60073
60074         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60075         sysdeps/sh/____longjmp_chk.S.
60076         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60077         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60078         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60079         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60080
60081         * sysdeps/sh/abort-instr.h: New file.
60082         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60083         process in case exit returns.
60084
60085         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60086         initialize the GOT register before use.
60087
60088         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60089         calculation of ARGC > 4.
60090
60091         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60092         meaningful names to some local labels.
60093
60094 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60095             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60096
60097         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60098         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60099         (__arch_compare_and_exchange_val_16_acq): Likewise.
60100         (__arch_compare_and_exchange_val_32_acq): Likewise.
60101         (atomic_exchange_and_add): Fix gUSA sequence.
60102         (atomic_add): Likewise.
60103         (atomic_add_negative): Likewise.
60104         (atomic_add_zero): Likewise.
60105         (atomic_bit_test_set): Likewise.
60106
60107 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60108
60109         [BZ #13579]
60110         * include/link.h (struct link_map): Add l_free_initfini.
60111         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60112         l_initfini.
60113         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60114         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60115         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60116         set.
60117
60118 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60119
60120         * configure.in: Use AC_LANG_SOURCE.
60121         * configure: Regenerate.
60122
60123 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60124
60125         * configure.in (libc_cv_localstatedir): New substituted variable.
60126         * configure: Regenerated.
60127         * config.make.in (localstatedir): New variable, substituted from
60128         libc_cv_localstatedir.
60129         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60130         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60131         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60132         * sysdeps/gnu/configure: Regenerated.
60133
60134 2012-06-21  Jeff Law  <law@redhat.com>
60135
60136         [BZ #14277]
60137         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60138         free.  Simplify list management for _LIBC case.
60139
60140 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60141
60142         [BZ #14273]
60143         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60144         Clear sign bit of 64-bit integer value before comparing against
60145         overflow value.
60146
60147         * sysdeps/mach/configure: Regenerated.
60148
60149 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60150
60151         [BZ #14278]
60152         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60153
60154 2012-06-21  Jeff Law  <law@redhat.com>
60155
60156         [BZ #13882]
60157         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60158         uint16_t for elements in the "seen" array to avoid char overflows.
60159         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60160         * elf/dl-open.c (dl_open_worker): Likewise.
60161
60162 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60163
60164         * scripts/list-sources.sh: Scan PORTS for translations.
60165         * po/libc.pot: Regenerated.
60166
60167 2012-06-21  Andreas Jaeger  <aj@suse.de>
60168
60169         [BZ #12194]
60170         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60171         warning.
60172         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60173         * bits/byteswap-16.h (__bswap_16): Likewise.
60174         * bits/byteswap.h (__bswap_constant_16): Likewise.
60175
60176 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60177
60178         [BZ #14117]
60179         * sysdeps/i386/fpu_control.h: Removed.
60180         * sysdeps/x86_64/fpu_control.h: Moved to ...
60181         * sysdeps/x86/fpu_control.h: Here.
60182
60183         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60184         (_FPU_SETCW): Likewise.
60185
60186 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60187
60188         [BZ #14117]
60189         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60190         * sysdeps/x86/fpu/bits/mathinline.h: This.
60191         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60192
60193         [BZ #14050]
60194         [BZ #14117]
60195         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60196         functions if __x86_64__ is defined.
60197
60198 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60199
60200         * string/endian.h: Add !__ASSEMBLER__ condition for including
60201         conversion interfaces.
60202
60203 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60204
60205         [BZ #14241]
60206         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60207         of ABS(x) in calculating zero to negative powers other than odd
60208         integers.
60209         * math/libm-test.inc (pow_test): Add more tests.
60210
60211 2012-06-15  Andreas Jaeger  <aj@suse.de>
60212
60213         * manual/contrib.texi (Contributors): Update entry of Liubov
60214         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60215         Machado Filho.
60216
60217 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60218
60219         * string/string.h: Add __wur to GNU version of strerror_r.
60220
60221 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60222
60223         [BZ #14229]
60224         * string/Makefile (tests): Add tst-strtok_r.
60225         * string/tst-strtok_r.c: New file.
60226         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60227         RAX_LP/RDX_LP on SAVE_PTR.
60228
60229 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60230
60231         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60232
60233 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60234
60235         * libm_test.inc (csqrt_test): Allow more spurious underflow
60236         exceptions.
60237         (j0_test): Likewise.
60238         (j1_test): Likewise.
60239         (y0_test): Likewise.
60240         (y1_test): Likewise.
60241
60242 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60243
60244         * po/Makefile (libc.pot): Use UTF-8 charset.
60245
60246 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60247
60248         [BZ #14210]
60249         Suppress sign-conversion warning from FD_SET.
60250         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60251         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60252         not unsigned long int.
60253         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60254
60255 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60256
60257         [BZ #14050]
60258         [BZ #14117]
60259         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60260         __extern_always_inline instead of __extern_inline.
60261         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60262         (__signbit): Likewise.
60263         (__signbitl): Support C++ namespace.
60264         (lrintf): New inline function.
60265         (lrint): Likewise.
60266         (llrintf): Likewise.
60267         (llrint): Likewise.
60268         (fmaxf): Likewise.
60269         (fmax): Likewise.
60270         (fminf): Likewise.
60271         (fmin): Likewise.
60272         (rint): Likewise.
60273         (rintf): Likewise.
60274         (ceil): Likewise.
60275         (ceilf): Likewise.
60276         (floor): Likewise.
60277         (floorf): Likewise.
60278         (nearbyint): Likewise.
60279         (nearbyintf): Likewise.
60280
60281 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60282
60283         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60284         non-default versions.
60285
60286 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60287
60288         [BZ #14218]
60289         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60290
60291 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60292
60293         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60294         (FE_UPWARD, FE_DOWNWARD): Don't define.
60295         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60296         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60297
60298         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60299         reading it.
60300         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60301         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60302
60303 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60304
60305         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60306         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60307         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60308         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60309
60310 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60311
60312         [BZ #14117]
60313         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60314         * sysdeps/i386/fpu/Implies: New file.
60315         * sysdeps/x86_64/fpu/Implies: Likewise.
60316         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60317         * sysdeps/x86/fpu/bits/fenv.h: This.
60318
60319         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60320         __SSE_MATH__.
60321
60322 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60323
60324         [BZ #14134]
60325         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60326         character 0xffff that matches the last element of the
60327         conversion table.
60328
60329 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60330
60331         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60332         fmodl commit.
60333
60334 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60335
60336         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60337         values higher than 25.6283.
60338
60339 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60340
60341         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60342         subnormal exponent extraction and add some __builtin_expect.
60343         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60344         Fix for subnormal mantissa calculation.
60345
60346 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60347
60348         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60349         cpu2 is -1 and errno is not ENOSYS.
60350
60351 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60352
60353         [BZ #14117]
60354         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60355         * sysdeps/x86/bits/string.h: This.
60356         * sysdeps/x86_64/bits/string.h: Removed.
60357
60358         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60359         if not compiling for x86-64, but compiling for >= i486.
60360
60361         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60362         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60363
60364         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60365         New macro from Linux kernel 3.4.0.
60366         (FP_XSTATE_MAGIC2): Likewise.
60367         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60368         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60369         (struct _fpx_sw_bytes): New struct.
60370         (struct _xsave_hdr): Likewise.
60371         (struct _ymmh_state): Likewise.
60372         (struct _xstate): Likewise.
60373
60374         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60375         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60376         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60377         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60378         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60379         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60380
60381         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60382         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60383         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60384         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60385         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60386         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60387
60388 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60389
60390         [BZ #13743]
60391         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60392         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60393         (sysdep_headers): Include sys/platform/ppc.h.
60394         * sysdeps/powerpc/test-gettimebase.c: Test for
60395         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60396         * manual/Makefile (appendices): Include platform.texi.
60397         * manual/contrib.texi (Contributors): Update @node pointers.
60398         * manual/maint.texi (Maintenance): Likewise.
60399         (Platform): New node.
60400         * manual/platform.texi: New file.  Document the new features.
60401
60402 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60403             Jakub Jelinek  <jakub@redhat.com>
60404
60405         [BZ #14188]
60406         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60407         where __builtin_expect is unavailable.
60408
60409 2012-06-03  David S. Miller  <davem@davemloft.net>
60410
60411         * stdlib/longlong.h: Updated from GCC.
60412
60413 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60414
60415         [BZ #14042]
60416         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60417         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60418         __mcount_internal.
60419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60420         (GLIBC_2.16): Likewise.
60421
60422 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60423
60424         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60425
60426 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60427
60428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60429         (default-abi): New variable.
60430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60431         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60432         variable.
60433         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60434         Likewise.
60435         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60436         Likewise.
60437         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60438         Likewise.
60439
60440         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60441         definition.  Document in comment.
60442
60443 2012-06-01  David S. Miller  <davem@davemloft.net>
60444
60445         * stdlib/longlong.h: Updated from GCC.
60446
60447 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60448
60449         [BZ #14117]
60450         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60451         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60452         sys/debugreg.h sys/io.h here.
60453         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60454         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60455         sys/io.h.
60456         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60457         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60458         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60459         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60460         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60461         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60462
60463         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60464         Define only if __x86_64__ is defined.
60465
60466 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60467
60468         [BZ #14048]
60469         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60470         Use int64_t for variable i.
60471         * math/libm-test.inc (fmod_test): Add more tests.
60472
60473         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60474         z computation is not scheduled after fetestexcept.
60475         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60476         Use math_force_eval instead of asm to ensure calculation scheduled
60477         before exception test.
60478         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60479         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60480
60481 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60482
60483         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60484         computation is not scheduled after fetestexcept.
60485
60486 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60487
60488         [BZ #14117]
60489         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60490         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60491
60492 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60493
60494         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60495         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60496
60497 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60498
60499         [BZ #14117]
60500         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60501         <bits/wordsize.h>.
60502         (__WCHAR_MIN): Support __WORDSIZE == 64.
60503         (__WCHAR_MAX): Likewise.
60504
60505         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60506         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60507
60508         [BZ #14183]
60509         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60510         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60511
60512         [BZ #14117]
60513         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60514         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60515
60516         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60517         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60518
60519         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60520         Defined to 1 if __x86_64__ isn't defined.
60521         (_STAT_VER_LINUX_OLD): New.
60522         (st_atime): Remove duplicate.
60523         (st_mtime): Likewise.
60524         (st_ctime): Likewise.
60525
60526 2012-05-31  David S. Miller  <davem@davemloft.net>
60527
60528         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60529         entries.
60530
60531 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60532
60533         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60534         gen-libm-test.pl.
60535
60536         [BZ #14132]
60537         * elf/dl-reloc.c: Include <_itoa.h>.
60538         (_dl_reloc_bad_type): Remove use of INTUSE.
60539         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60540         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60541         * stdio-common/psiginfo.c (psiginfo): Likewise.
60542         * stdio-common/psignal.c (psignal): Likewise.
60543         * string/strsignal.c (strsignal): Likewise.
60544         * include/signal.h (_sys_siglist): Declare hidden proto.
60545         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60546         INTVARDEF with libc_hidden_data_def.
60547         * stdio-common/itoa-udigits.c: Likewise.
60548         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60549         (_itoa_lower_digits_internal): Remove declaration.
60550         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60551         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60552         (_sys_sigabbrev_internal): Remove aliases.
60553         (_sys_siglist): Define hidden alias.
60554
60555 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60556
60557         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60558         bits/sysctl.h.
60559
60560 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60561
60562         [BZ #14117]
60563         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60564         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60565
60566         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60567         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60568         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60569         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60570         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60571         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60572
60573         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60574         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60575         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60576
60577         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60578         with __addr.
60579         (insw): Likewise.
60580         (insl): Likewise.
60581         (outsb): Likewise.
60582         (outsw): Likewise.
60583         (outsl): Likewise.
60584
60585         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60586         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60587         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60588
60589         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60590         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60591         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60592         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60593         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60594         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60595
60596         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60597         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60598
60599         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60600         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60601
60602         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60603         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60604         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60605
60606         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60607         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60608         to ...
60609         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60610
60611         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60612         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60613         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60614
60615         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60616         for x86-64.
60617         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60618
60619 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60620
60621         * math/math.h (M_El): Use two more decimal places.
60622         (M_LOG2El): Likewise.
60623         (M_LOG10El): Likewise.
60624         (M_LN2l): Likewise.
60625         (M_LN10l): Likewise.
60626         (M_PIl): Likewise.
60627         (M_PI_2l): Likewise.
60628         (M_PI_4l): Likewise.
60629         (M_1_PIl): Likewise.
60630         (M_2_PIl): Likewise.
60631         (M_2_SQRTPIl): Likewise.
60632         (M_SQRT2l): Likewise.
60633         (M_SQRT1_2l): Likewise.
60634
60635 2012-05-31  David S. Miller  <davem@davemloft.net>
60636
60637         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60638         values between float registers.
60639         * sysdeps/sparc/sparc64/memset.S: Likewise.
60640         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60641
60642 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60643
60644         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60645         -D_FORTIFY_SOURCE=1.
60646         (CPPFLAGS-tst-longjmp_chk.c): Define.
60647         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60648         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60649         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60650         CFLAGS-tst-wchar-h.c.
60651
60652 2012-05-31  Marek Polacek  <polacek@redhat.com>
60653
60654         [BZ #14132]
60655         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60656         __endmntent_internal): Remove declaration.
60657         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60658         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60659         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60660
60661 2012-05-30  David S. Miller  <davem@davemloft.net>
60662
60663         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60664         (___Q_simulate_exceptions): Use real FP ops rather than writing
60665         into the %fsr.
60666         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60667         Likewise.
60668
60669 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60670
60671         [BZ #14117]
60672         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60673         * sysdeps/x86/bits/xtitypes.h: This.
60674
60675         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60676         * sysdeps/x86/bits/wordsize.h: This.
60677
60678         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60679         * sysdeps/x86/bits/huge_vall.h: This.
60680
60681         * sysdeps/i386/bits/select.h: Removed.
60682         * sysdeps/x86_64/bits/select.h: Renamed to ...
60683         * sysdeps/x86/bits/select.h: This.
60684
60685         * sysdeps/i386/bits/setjmp.h: Removed.
60686         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60687         * sysdeps/x86/bits/setjmp.h: This.
60688
60689         * sysdeps/i386/bits/mathdef.h: Removed.
60690         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60691         * sysdeps/x86/bits/mathdef.h: This.
60692
60693 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60694
60695         [BZ #14132]
60696         * include/sys/socket.h (__connect_internal)
60697         (__libc_sa_len_internal): Remove declaration.
60698         (__connect, __libc_sa_len): Declare hidden_proto.
60699         (SA_LEN): Remove use of INTUSE.
60700         * socket/connect.c: Add libc_hidden_def.
60701         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60702         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60703         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60704         alias.
60705         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60706         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60707         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60708         of adding _internal alias.
60709
60710 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60711
60712         [BZ #14117]
60713         * sysdeps/i386/bits/link.h: Removed.
60714         * sysdeps/i386/bits/linkmap.h: Likewise.
60715         * sysdeps/x86_64/bits/link.h: Renamed to ...
60716         * sysdeps/x86/bits/link.h: This.
60717         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60718         * sysdeps/x86/bits/linkmap.h: This.
60719
60720         * sysdeps/i386/bits/endian.h: Removed.
60721         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60722         * sysdeps/x86/bits/endian.h: This.
60723
60724         * sysdeps/i386/bits/byteswap.h: Removed.
60725         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60726         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60727         * sysdeps/x86/bits/byteswap.h: This.
60728         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60729         * sysdeps/x86/bits/byteswap-16.h: This.
60730         * sysdeps/i386/Implies: Add x86.
60731         * sysdeps/x86_64/Implies: Likewise.
60732
60733 2012-05-30  David S. Miller  <davem@davemloft.net>
60734
60735         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60736         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60737         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60738         (FP_TRAPPING_EXCEPTIONS): Define.
60739         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60740         (FP_TRAPPING_EXCEPTIONS): Define.
60741         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60742         subnormals only when inexact has been signalled or underflow
60743         exceptions are enabled.
60744         (_FP_PACK_CANONICAL): Likewise.
60745
60746 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60747
60748         [BZ #14183]
60749         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60750         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60751
60752 2012-05-30  Richard Henderson  <rth@twiddle.net>
60753
60754         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60755         with #ifndef NOT_IN_libc.
60756
60757         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60758         marked to avoid plt entry.
60759
60760 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60761
60762         [BZ #14112]
60763         * Makeconfig (default-abi): New macro.
60764         (abi-includes): Likewise.
60765         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60766         $(abi-$(default-abi)-lib-soname) for soname if defined.
60767         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60768         abi-variants.
60769         * Makefile (installed-stubs): Likewise.
60770         * include/stubs-biarch.h: Removed.
60771         * scripts/lib-names.awk: Only handle one library at a time.
60772         * scripts/soversions.awk: Remove WORDSIZE support.
60773         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60774         entries.
60775         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
60776         Removed.
60777         (syscall-list-default-condition): Likewise.
60778         (syscall-list-default-condition): Likewise.
60779         (syscall-list-includes): Likewise.
60780         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
60781         syscall-list-* with abi-*.  Handle undefined abi-variants.
60782         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
60783         * sysdeps/unix/sysv/linux/i386/Implies: New file.
60784         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
60785         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
60786         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
60787         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
60788         Removed.
60789         (syscall-list-32-options): Likewise.
60790         (syscall-list-32-condition): Likewise.
60791         (syscall-list-64-options): Likewise.
60792         (syscall-list-64-condition): Likewise.
60793         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
60794         macro.
60795         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
60796         Renamed to ...
60797         (abi-*): This.
60798         (abi-64-ld-soname): New macro.
60799         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
60800         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
60801         Renamed to ...
60802         (abi-*): This.
60803         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
60804         * sysdeps/x86_64/x32/shlib-versions: Likewise.
60805
60806 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
60807
60808         * sysdeps/unix/sysv/linux/kernel-features.h
60809         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
60810         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
60811         include <kernel-features.h>.
60812         [!__NR_ftruncate64]: Remove conditional code.
60813         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60814         [__NR_ftruncate64]: Make code unconditional.
60815         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60816         * sysdeps/unix/sysv/linux/truncate64.c: Do not
60817         include <kernel-features.h>.
60818         [!__NR_ftruncate64]: Remove conditional code.
60819         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60820         [__NR_ftruncate64]: Make code unconditional.
60821         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
60823         include <kernel-features.h>.
60824         [!__NR_ftruncate64]: Remove conditional code.
60825         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60826         [__NR_ftruncate64]: Make code unconditional.
60827         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
60829         include <kernel-features.h>.
60830         [!__NR_ftruncate64]: Remove conditional code.
60831         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60832         [__NR_ftruncate64]: Make code unconditional.
60833         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60834
60835         * configure.in (libc_cv_fpie): Weaken to a compile test using
60836         LIBC_TRY_CC_OPTION.
60837         * configure: Regenerated.
60838
60839 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60840
60841         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
60842         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
60843         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
60844         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
60845         Refreshed.
60846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
60847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
60848         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
60849         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
60850         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
60851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
60852         Refreshed.
60853
60854 2012-05-27  David S. Miller  <davem@davemloft.net>
60855
60856         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
60857         (___Q_zero): New.
60858         (__Q_simulate_exceptions): Return void.  Change to simulate
60859         exceptions by writing into the %fsr.
60860         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
60861         (__Qp_handle_exceptions): Likewise.
60862         (numbers): Delete.
60863         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
60864         __Qp_handle_exceptions.
60865         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
60866         __Qp_handle_exceptions.
60867         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60868         as unused and give dummy FP_RND_NEAREST initializer.
60869         (FP_INHIBIT_RESULTS): Define.
60870         (___Q_simulate_exceptions): Update declaration.
60871         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
60872         formatting.
60873         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60874         as unused and give dummy FP_RND_NEAREST initializer.
60875         (__Qp_handle_exceptions): Update declaration.
60876         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
60877         formatting.
60878
60879 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
60880
60881         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
60882         the temporary FPU control word.
60883         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
60884         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
60885         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
60886         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60887         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
60888         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
60889         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
60890         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60891         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
60892         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
60893         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60894
60895 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60896
60897         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
60898         fields.
60899
60900 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
60901
60902         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
60903         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
60904         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
60905         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
60906         Likewise.
60907         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
60908         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
60909         Likewise.
60910
60911 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
60912
60913         * po/h.po: Update from translation team.
60914
60915 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
60916
60917         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
60918
60919         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
60920         handling of denormals.
60921         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
60922         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
60923         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
60924         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
60925         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60926         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
60927         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
60928         Likewise.
60929
60930 2012-05-26  Marek Polacek  <polacek@redhat.com>
60931
60932         [BZ #14152]
60933         * math/libm-test.inc (fma_test): Don't always expect underflow
60934         exception.
60935
60936 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
60937
60938         [BZ #12416]
60939         * elf/tst-execstack.c: Include stackinfo.h.
60940         (do_test): Adjust test case to ensure that pthread_getattr_np
60941         behaviour remains the same after marking stack executable.
60942
60943 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60944
60945         * sysdeps/unix/sysv/linux/kernel-features.h
60946         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
60947         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
60948         kernel-features.h.
60949         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60950         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60951         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
60952         kernel-features.h.
60953         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60954         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60955
60956 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
60957
60958         * configure.in: Define the default includes to being none.
60959         * configure: Regenerated.
60960
60961 2012-05-25  Roland McGrath  <roland@hack.frob.com>
60962
60963         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
60964         * sysdeps/x86_64/setjmp.S: Likewise.
60965         * sysdeps/i386/bsd-setjmp.S: Likewise.
60966         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60967         * sysdeps/i386/setjmp.S: Likewise.
60968         * sysdeps/i386/__longjmp.S: Likewise.
60969         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
60970         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
60971
60972         * include/stap-probe.h: New file.
60973         * configure.in: Handle --enable-systemtap.
60974         * configure: Regenerated.
60975         * config.h.in (USE_STAP_PROBE): New #undef.
60976         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
60977         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
60978         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
60979
60980 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60981
60982         [BZ #13717]
60983         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
60984         to 2.4.0 where earlier.
60985         * sysdeps/unix/sysv/linux/configure: Regenerated.
60986         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
60987         <kernel-features.h>.
60988         [__ASSUME_32BITUIDS]: Make code unconditional.
60989         [!__ASSUME_32BITUIDS]: Remove conditional code.
60990         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
60991         <kernel-features.h>.
60992         [__ASSUME_32BITUIDS]: Make code unconditional.
60993         [!__ASSUME_32BITUIDS]: Remove conditional code.
60994         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
60995         [__ASSUME_32BITUIDS]: Make code unconditional.
60996         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
60997         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
60998         <kernel-features.h>.
60999         [__ASSUME_32BITUIDS]: Make code unconditional.
61000         [!__ASSUME_32BITUIDS]: Remove conditional code.
61001         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61002         <kernel-features.h>.
61003         [__ASSUME_32BITUIDS]: Make code unconditional.
61004         [!__ASSUME_32BITUIDS]: Remove conditional code.
61005         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61006         <kernel-features.h>.
61007         [__ASSUME_32BITUIDS]: Make code unconditional.
61008         [!__ASSUME_32BITUIDS]: Remove conditional code.
61009         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61010         <kernel-features.h>.
61011         [__ASSUME_32BITUIDS]: Make code unconditional.
61012         [!__ASSUME_32BITUIDS]: Remove conditional code.
61013         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61014         <kernel-features.h>.
61015         [__ASSUME_32BITUIDS]: Make code unconditional.
61016         [!__ASSUME_32BITUIDS]: Remove conditional code.
61017         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61018         <kernel-features.h>.
61019         [__ASSUME_32BITUIDS]: Make code unconditional.
61020         [!__ASSUME_32BITUIDS]: Remove conditional code.
61021         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61022         <kernel-features.h>.
61023         [__ASSUME_32BITUIDS]: Make code unconditional.
61024         [!__ASSUME_32BITUIDS]: Remove conditional code.
61025         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61026         <kernel-features.h>.
61027         [__ASSUME_32BITUIDS]: Make code unconditional.
61028         [!__ASSUME_32BITUIDS]: Remove conditional code.
61029         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61030         <kernel-features.h>.
61031         [__ASSUME_32BITUIDS]: Make code unconditional.
61032         [!__ASSUME_32BITUIDS]: Remove conditional code.
61033         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61034         <kernel-features.h>.
61035         [__ASSUME_32BITUIDS]: Make code unconditional.
61036         [!__ASSUME_32BITUIDS]: Remove conditional code.
61037         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61038         <kernel-features.h>.
61039         [__NR_setresgid] (__setresgid): Do not declare.
61040         [__ASSUME_32BITUIDS]: Make code unconditional.
61041         [!__ASSUME_32BITUIDS]: Remove conditional code.
61042         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61043         <kernel-features.h>.
61044         [__NR_setresuid] (__setresuid): Do not declare.
61045         [__ASSUME_32BITUIDS]: Make code unconditional.
61046         [!__ASSUME_32BITUIDS]: Remove conditional code.
61047         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61048         <kernel-features.h>.
61049         [__ASSUME_32BITUIDS]: Make code unconditional.
61050         [!__ASSUME_32BITUIDS]: Remove conditional code.
61051         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61052         <kernel-features.h>.
61053         [__ASSUME_32BITUIDS]: Make code unconditional.
61054         [!__ASSUME_32BITUIDS]: Remove conditional code.
61055         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61056         <kernel-features.h>.
61057         [__ASSUME_32BITUIDS]: Make code unconditional.
61058         [!__ASSUME_32BITUIDS]: Remove conditional code.
61059         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61060         <kernel-features.h>.
61061         [__ASSUME_32BITUIDS]: Make code unconditional.
61062         [!__ASSUME_32BITUIDS]: Remove conditional code.
61063         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61064         <kernel-features.h>.
61065         [__ASSUME_32BITUIDS]: Make code unconditional.
61066         [!__ASSUME_32BITUIDS]: Remove conditional code.
61067         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61068         <kernel-features.h>.
61069         [__ASSUME_32BITUIDS]: Make code unconditional.
61070         [!__ASSUME_32BITUIDS]: Remove conditional code.
61071         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61072         <kernel-features.h>.
61073         [__ASSUME_32BITUIDS]: Make code unconditional.
61074         [!__ASSUME_32BITUIDS]: Remove conditional code.
61075         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61076         <kernel-features.h>.
61077         [__ASSUME_32BITUIDS]: Make code unconditional.
61078         [!__ASSUME_32BITUIDS]: Remove conditional code.
61079         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61080         <kernel-features.h>.
61081         [__ASSUME_32BITUIDS]: Make code unconditional.
61082         [!__ASSUME_32BITUIDS]: Remove conditional code.
61083         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61084         <kernel-features.h>.
61085         [__ASSUME_32BITUIDS]: Make code unconditional.
61086         [!__ASSUME_32BITUIDS]: Remove conditional code.
61087         * sysdeps/unix/sysv/linux/kernel-features.h
61088         (__ASSUME_SETRESUID_SYSCALL): Remove.
61089         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61090         (__ASSUME_32BITUIDS): Likewise.
61091         (__ASSUME_LDT_WORKS): Likewise.
61092         (__ASSUME_O_DIRECTORY): Likewise.
61093         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61094         architecture but not kernel version.
61095         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61096         (__ASSUME_MMAP2_SYSCALL): Likewise.
61097         (__ASSUME_STAT64_SYSCALL): Likewise.
61098         (__ASSUME_IPC64): Likewise.
61099         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61100         <kernel-features.h>.
61101         [__ASSUME_32BITUIDS]: Make code unconditional.
61102         [!__ASSUME_32BITUIDS]: Remove conditional code.
61103         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61104         <kernel-features.h>.
61105         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61106         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61107         132096]: Remove conditional code.
61108         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61109         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61110         <kernel-features.h>.
61111         [__ASSUME_32BITUIDS]: Make code unconditional.
61112         [!__ASSUME_32BITUIDS]: Remove conditional code.
61113         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61114         <kernel-features.h>.
61115         [__ASSUME_32BITUIDS]: Make code unconditional.
61116         [!__ASSUME_32BITUIDS]: Remove conditional code.
61117         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61118         <kernel-features.h>.
61119         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61120         unconditional.
61121         (__setresgid): Do not declare.
61122         [__ASSUME_32BITUIDS]: Make code unconditional.
61123         [!__ASSUME_32BITUIDS]: Remove conditional code.
61124         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61125         <kernel-features.h>.
61126         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61127         unconditional.
61128         (__setresuid): Do not declare.
61129         [__ASSUME_32BITUIDS]: Make code unconditional.
61130         [!__ASSUME_32BITUIDS]: Remove conditional code.
61131         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61132         <kernel-features.h>.
61133         [__ASSUME_32BITUIDS]: Make code unconditional.
61134         [!__ASSUME_32BITUIDS]: Remove conditional code.
61135         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61136         <kernel-features.h>.
61137         [__ASSUME_32BITUIDS]: Make code unconditional.
61138         [!__ASSUME_32BITUIDS]: Remove conditional code.
61139
61140 2012-05-25  Richard Henderson  <rth@twiddle.net>
61141
61142         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61143         dl_hwcap to ifunc resolver.
61144         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61145         elf_ifunc_invoke.
61146         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61147         dl_hwcap to ifunc resolver.
61148         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61149
61150 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61151
61152         [BZ #14153]
61153         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61154         for |x| <= 2**-26, not 2**-57.
61155         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61156         exception.
61157
61158 2012-05-24  Jeff Law  <law@redhat.com>
61159
61160         * stdio-common/Makefile (tests): Add bug25.
61161         * stdio-common/bug25.c: New test.
61162
61163 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61164
61165         [BZ #13576]
61166         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61167         multiple of MALLOC_ALIGNMENT in size.
61168         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61169
61170 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61171
61172         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61173         Require >= 256.
61174         (FILENAME_MAX): Use macro-int-constant.
61175         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61176         (_IOFBF): Use macro-int-constant.
61177         (_IOLBF): Likewise.
61178         (_IONBF): Likewise.
61179         (SEEK_CUR): Likewise.
61180         (SEEK_END): Likewise.
61181         (SEEK_SET): Likewise.
61182         (TMP_MAX): Likewise.
61183         (EOF): Use macro-int-constant.  Require < 0.
61184         (NULL): Use macro-constant.  Require == 0.
61185         (stdin): Require type to be FILE *.
61186         (stdout): Likewise.
61187         (stderr): Likewise.
61188         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61189         macro-int-constant.
61190         (EXIT_SUCCESS): Likewise.
61191         (NULL): Use macro-constant.  Require == 0.
61192         (RAND_MAX): Use macro-int-constant.
61193         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61194         [C99-based standards] (strtof): Require function.
61195         [C99-based standards] (strtold): Likewise.
61196         [C99-based standards] (strtoll): Likewise.
61197         [C99-based standards] (strtoull): Likewise.
61198         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61199         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61200         [ISO || ISO99 || ISO11] (math.h): Likewise.
61201         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61202         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61203         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61204
61205 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61206
61207         [BZ #14132]
61208         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61209         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61210         * intl/dgettext.c (DCGETTEXT): Likewise.
61211         * intl/gettext.c (DCGETTEXT): Likewise.
61212         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61213         * posix/regex_internal.h (gettext): Likewise.
61214         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61215         Remove declaration.
61216         * include/argz.h (__argz_count_internal)
61217         (__argz_stringify_internal): Remove declaration.
61218         (__argz_count, __argz_stringify): Declare hidden proto.
61219         * intl/dcgettext.c: Remove use of INTDEF.
61220         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61221         * string/argz-stringify.c: Likewise.
61222         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61223         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61224         Declare hidden proto.
61225         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61226         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61227         Declare hidden proto.
61228         * include/stdio.h (__asprintf_internal): Don't declare.
61229         (__asprintf): Don't define as macro.  Declare hidden proto.
61230         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61231         (__fsetlocking): Declare hidden proto.
61232         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61233         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61234         hidden proto.
61235         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61236         (_IO_setlinebuf): Remove use of INTUSE.
61237         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61238         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61239         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61240         Remove declaration.
61241         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61242         (_IO_do_flush): Remove use of INTUSE.
61243         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61244         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61245         (_IO_adjust_column, _IO_least_wmarker)
61246         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61247         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61248         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61249         (_IO_default_doallocate, _IO_wdefault_doallocate)
61250         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61251         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61252         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61253         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61254         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61255         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61256         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61257         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61258         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61259         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61260         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61261         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61262         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61263         proto.
61264         (_IO_flush_all_internal, _IO_adjust_column_internal)
61265         (_IO_default_uflow_internal, _IO_default_finish_internal)
61266         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61267         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61268         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61269         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61270         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61271         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61272         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61273         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61274         (_IO_file_close_internal, _IO_file_close_it_internal)
61275         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61276         (_IO_file_init_internal, _IO_file_attach_internal)
61277         (_IO_file_fopen_internal, _IO_file_read_internal)
61278         (_IO_file_sync_internal, _IO_file_seek_internal)
61279         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61280         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61281         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61282         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61283         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61284         (_IO_list_all_internal, _IO_link_in_internal)
61285         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61286         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61287         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61288         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61289         (_IO_do_write_internal, _IO_padn_internal)
61290         (_IO_getline_info_internal, _IO_getline_internal)
61291         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61292         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61293         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61294         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61295         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61296         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61297         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61298         with libc_hidden_ver, remove use of INTUSE.
61299         * libio/genops.c: Likewise.
61300         * libio/freopen.c: Likewise.
61301         * libio/freopen64.c: Likewise.
61302         * libio/iofclose.c: Likewise.
61303         * libio/iofdopen.c: Likewise.
61304         * libio/iofflush.c: Likewise.
61305         * libio/iofflush_u.c: Likewise.
61306         * libio/iofgets.c: Likewise.
61307         * libio/iofgets_u.c: Likewise.
61308         * libio/iofopen.c: Likewise.
61309         * libio/iofopncook.c: Likewise.
61310         * libio/iofread.c: Likewise.
61311         * libio/iofread_u.c: Likewise.
61312         * libio/ioftell.c: Likewise.
61313         * libio/iofwrite.c: Likewise.
61314         * libio/iogetline.c: Likewise.
61315         * libio/iogets.c: Likewise.
61316         * libio/iogetwline.c: Likewise.
61317         * libio/iopadn.c: Likewise.
61318         * libio/iopopen.c: Likewise.
61319         * libio/ioseekoff.c: Likewise.
61320         * libio/ioseekpos.c: Likewise.
61321         * libio/iosetbuffer.c: Likewise.
61322         * libio/iosetvbuf.c: Likewise.
61323         * libio/ioungetc.c: Likewise.
61324         * libio/ioungetwc.c: Likewise.
61325         * libio/iovdprintf.c: Likewise.
61326         * libio/iovsprintf.c: Likewise.
61327         * libio/iovsscanf.c: Likewise.
61328         * libio/memstream.c: Likewise.
61329         * libio/obprintf.c: Likewise.
61330         * libio/oldfileops.c: Likewise.
61331         * libio/oldiofclose.c: Likewise.
61332         * libio/oldiofdopen.c: Likewise.
61333         * libio/oldiofopen.c: Likewise.
61334         * libio/oldiopopen.c: Likewise.
61335         * libio/oldstdfiles.c: Likewise.
61336         * libio/putc.c: Likewise.
61337         * libio/setbuf.c: Likewise.
61338         * libio/setlinebuf.c: Likewise.
61339         * libio/stdfiles.c: Likewise.
61340         * libio/strops.c: Likewise.
61341         * libio/vasprintf.c: Likewise.
61342         * libio/vscanf.c: Likewise.
61343         * libio/vsnprintf.c: Likewise.
61344         * libio/vswprintf.c: Likewise.
61345         * libio/wfiledoalloc.c: Likewise.
61346         * libio/wfileops.c: Likewise.
61347         * libio/wgenops.c: Likewise.
61348         * libio/wmemstream.c: Likewise.
61349         * libio/wstrops.c: Likewise.
61350         * libio/__fpurge.c: Likewise.
61351         * libio/__fsetlocking.c: Likewise.
61352         * assert/assert.c: Likewise.
61353         * debug/fgets_chk.c: Likewise.
61354         * debug/fgets_u_chk.c: Likewise.
61355         * debug/fread_chk.c: Likewise.
61356         * debug/fread_u_chk.c: Likewise.
61357         * debug/gets_chk.c: Likewise.
61358         * debug/obprintf_chk.c: Likewise.
61359         * debug/vasprintf_chk.c: Likewise.
61360         * debug/vdprintf_chk.c: Likewise.
61361         * debug/vsnprintf_chk.c: Likewise.
61362         * debug/vsprintf_chk.c: Likewise.
61363         * malloc/mtrace.c: Likewise.
61364         * misc/error.c: Likewise.
61365         * misc/syslog.c: Likewise.
61366         * stdio-common/asprintf.c: Likewise.
61367         * stdio-common/fxprintf.c: Likewise.
61368         * stdio-common/getw.c: Likewise.
61369         * stdio-common/isoc99_fscanf.c: Likewise.
61370         * stdio-common/isoc99_scanf.c: Likewise.
61371         * stdio-common/isoc99_vfscanf.c: Likewise.
61372         * stdio-common/isoc99_vscanf.c: Likewise.
61373         * stdio-common/isoc99_vsscanf.c: Likewise.
61374         * stdio-common/printf-prs.c: Likewise.
61375         * stdio-common/printf_fp.c: Likewise.
61376         * stdio-common/printf_fphex.c: Likewise.
61377         * stdio-common/printf_size.c: Likewise.
61378         * stdio-common/putw.c: Likewise.
61379         * stdio-common/scanf.c: Likewise.
61380         * stdio-common/sprintf.c: Likewise.
61381         * stdio-common/tmpfile.c: Likewise.
61382         * stdio-common/vfprintf.c: Likewise.
61383         * stdio-common/vfscanf.c: Likewise.
61384         * stdlib/strfmon_l.c: Likewise.
61385         * sunrpc/openchild.c: Likewise.
61386         * sunrpc/xdr_stdio.c: Likewise.
61387         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61388         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61389
61390 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61391
61392         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61393
61394         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61395         in the third column, to generate for the shared library an IFUNC
61396         that uses _dl_vdso_vsym.
61397         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61398         * Makeconfig (object-suffixes-noshared): New variable.
61399
61400         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61401         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61402         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61403         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61404
61405         [BZ #14132]
61406         * include/sys/time.h (__gettimeofday): Remove macro.
61407         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61408         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61409         Remove INTDEF.
61410         (__gettimeofday): Add libc_hidden_def.
61411         (gettimeofday): Add libc_hidden_weak.
61412         * sysdeps/mach/gettimeofday.c: Likewise.
61413         * sysdeps/posix/gettimeofday.c: Likewise.
61414         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61415         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61416         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61417         (__gettimeofday_internal): Remove strong_alias.
61418         (__gettimeofday): Add libc_hidden_def.
61419         (gettimeofday): Add libc_hidden_weak.
61420         * sysdeps/unix/syscalls.list (gettimeofday):
61421         Remove __gettimeofday_internal alias.
61422
61423 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61424             H.J. Lu  <hongjiu.lu@intel.com>
61425
61426         [BZ #12495]
61427         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61428         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61429         (largebin_index_32_big): New.
61430         (largebin_index): Use it for 16-byte alignment.
61431         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61432         correction with front_misalign.
61433
61434 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61435
61436         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61437         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61438         Likewise.
61439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61440         Likewise.
61441         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61442         Likewise.
61443         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61444         Likewise.
61445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61446         Likewise.
61447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61448         Likewise.
61449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61450         Likewise.
61451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61452         Likewise.
61453         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61454         Likewise.
61455         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61456         Likewise.
61457         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61458         Likewise.
61459         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61460         Likewise.
61461
61462         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61463         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61464
61465 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61466
61467         [BZ #10846]
61468         [BZ #14036]
61469         * math/libm-test.inc (exp_test): Add test from bug 14036.
61470         (pow_test): Add test from bug 10846.
61471
61472         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61473         and other flags.
61474         (special_function): Do not include flags in test name.
61475         (parse_args): Likewise.
61476         * sysdeps/i386/fpu/libm-test-ulps: Update.
61477         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61478         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61479         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61481
61482         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61483         exceptions.
61484         * math/libm-test.inc ("Philosophy"): Update comment about
61485         exception testing.
61486         (UNDERFLOW_EXCEPTION): New macro.
61487         (UNDERFLOW_EXCEPTION_OK): Likewise.
61488         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61489         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61490         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61491         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61492         (INVALID_EXCEPTION_OK): Update value.
61493         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61494         (OVERFLOW_EXCEPTION_OK): Likewise.
61495         (IGNORE_ZERO_INF_SIGN): Likewise.
61496         (test_exceptions): Handle underflow exceptions.
61497         (acos_test): Update for underflow exception expectations.
61498         (cexp_test): Likewise.
61499         (clog_test): Likewise.
61500         (clog10_test): Likewise.
61501         (csqrt_test): Likewise.
61502         (ctan_test): Likewise.
61503         (ctanh_test): Likewise.
61504         (exp_test): Likewise.
61505         (exp10_test): Likewise.
61506         (exp2_test): Likewise.
61507         (expm1_test): Likewise.
61508         (fma_test): Likewise.
61509         (j0_test): Likewise.
61510         (jn_test): Likewise.
61511         (nexttoward_test): Likewise.
61512         (pow_test): Likewise.
61513         (scalbn_test): Likewise.
61514         (scalbln_test): Likewise.
61515         (tan_test): Likewise.
61516         (y1_test): Likewise.
61517         * sysdeps/i386/fpu/libm-test-ulps: Update.
61518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61519
61520 2012-05-23  David S. Miller  <davem@davemloft.net>
61521
61522         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61523         (__libc_sigaction): Remove unused local variables.
61524
61525 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61526
61527         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61528
61529 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         mktime: avoid signed integer overflow
61532         * time/mktime.c (__mktime_internal): Do not mishandle the case
61533         where diff == INT_MIN.
61534
61535         mktime: simplify computation of average
61536         * time/mktime.c (ranged_convert): Use new time_t_avg function
61537         instead of rolling our own (probably-slower) code.
61538
61539         mktime: do not assume signed right shift propagates sign bit
61540         * time/mktime.c (isdst_differ): New static function.
61541         (__mktime_internal): No need to normalize tm_isdst now.
61542         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61543         tm_isdst values.
61544
61545         mktime: merge another wrapv change from gnulib
61546         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61547         from some compilers.
61548
61549         mktime: remove incorrect attempt at unusual arithmetics
61550         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61551         The code didn't really work on such machines anyway.
61552         (TYPE_MINIMUM): Assume two's complement.
61553         (twos_complement_arithmetic): Verify that long_int and time_t
61554         are two's complement (or unsigned, in the latter case).
61555
61556         mktime: check signed shifts on long_int and time_t, too
61557         * time/mktime.c (SHR): Check that shifts work as desired
61558         on the types long_int and time_t too, as SHR is used on
61559         such types.
61560
61561         mktime: do not assume 'long' is wide enough
61562         * time/mktime.c (verify): Move decl up.
61563         (long_int): New type.
61564         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61565         to remove assumption in the code that 'long' is wide enough to
61566         store year values.  This assumption is not true on x32 and on
61567         some non-glibc platforms.
61568
61569         mktime: merge wrapv change from gnulib
61570         * time/mktime.c (WRAPV): New macro.
61571         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61572         (guess_time_tm, __mktime_internal): Do not assume that signed
61573         integer overflow wraps around; modern compilers generate code
61574         where this assumption is no longer valid.
61575
61576 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61577
61578         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61579         Replace "jmp L(pseudo_end)" with "ret".
61580         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61581         Likewise.
61582
61583 2012-05-23  Andreas Jaeger  <aj@suse.de>
61584
61585         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61586         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61587
61588 2012-05-23  Andreas Jaeger  <aj@suse.de>
61589             Maximilian Attems  <max@stro.at>
61590
61591         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61592         New macros.
61593
61594 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61595
61596         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61597         code so that pseudo_end is just ret and the stack pointer is
61598         correct also for static library in error case.
61599
61600 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61601
61602         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61603         move to syscalls.list.
61604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61608
61609         * manual/install.texi (Running make install): Do not mention Linux
61610         kernel version for which pt_chown is not needed.
61611         (Linux): Do not mention problems with nscd with 2.0 kernels.
61612         * INSTALL: Regenerated.
61613
61614 2012-05-23  Andreas Jaeger  <aj@suse.de>
61615
61616         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61617         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61618         macro.
61619         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61620         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61621         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61622         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61623         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61624         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61625         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61626         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61627         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61628         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61629         * sysdeps/unix/sysv/linux/bits/in.h
61630         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61631
61632 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61633
61634         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61635         (PREPARE_VERSION): Just use assert instead, it will be elided
61636         under [NDEBUG] anyway.
61637
61638 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61639
61640         * sysdeps/unix/sysv/linux/Makefile: Include
61641         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61642         (sysdep_routines): Remove sysctl.
61643         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61644         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61645         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61646         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61647         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61648
61649 2012-05-22  Andreas Jaeger  <aj@suse.de>
61650
61651         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61652         that pseudo_end is just ret and the stack pointer is correct also
61653         for static library in error case.
61654
61655 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61656
61657         [BZ #14122]
61658         * nss/nsswitch.c (defconfig_entries): New variable.
61659         (__nss_database_lookup): Don't leak defconfig entries.
61660         (nss_parse_service_list): Don't leak on error paths.
61661         (free_database_entries): New function.
61662         (free_defconfig): New function.
61663         (free_mem): Move common code to free_database_entries.
61664
61665 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61666
61667         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61668         Add arch_prctl.
61669         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61670
61671         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61672         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61673         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61674         New macro.
61675         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61676         (INTERNAL_SYSCALL_TYPES): Likewise.
61677         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61678         (LOAD_REGS_TYPES_[1-6]): Likewise.
61679         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61680         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61681
61682 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61683
61684         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61685         copysignl for GLIBC_2_0.
61686         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61687         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61688         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61689         logbl for GLIBC_2_0.
61690         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61691         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61692
61693 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61694
61695         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61696         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61697
61698         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61699         Use "neg %eax".
61700
61701         * time/mktime.c: Update copyright years.
61702
61703 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61704
61705         mktime: merge comment-quoting-style change from gnulib
61706         * time/mktime.c: Quote 'like this' in comments.
61707         The GNU coding standards suggest that we no longer quote `like this',
61708         as "`" and "'" are typically rendered asymmetrically nowadays.
61709         The typical gnulib style is to quote 'like this' when quoting
61710         code, and "like this" when quoting English.
61711
61712         * time/mktime.c (compile-command): Add "-I.".
61713
61714         mktime: merge mktime-internal.h change from gnulib
61715         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61716
61717         mktime: merge time_r change from gnulib
61718         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61719
61720         mktime: merge DEBUG change from gnulib
61721         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61722         case system <time.h> has a #define.
61723
61724         mktime: merge <sys/types.h> change from gnulib
61725         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61726         since <time.t> is now guaranteed to define time_t.
61727
61728         mktime: merge HAVE_CONFIG_H change from gnulib
61729         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61730
61731 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61732
61733         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61734         Use "neg %eax".
61735
61736         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61737         __rlim_t cast.
61738         (struct rusage): Use anonymous union to pad each field to
61739         __syscall_slong_t.
61740
61741 2012-05-21  David S. Miller  <davem@davemloft.net>
61742
61743         * Makefules (o-iterator): Remove .s cases.
61744         (compile-command.s): Delete.
61745         (COMPILE.s): Delete.
61746         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61747
61748 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61749
61750         * configure.in (libc_cv_predef_stack_protector): Only consider
61751         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61752         * configure: Regenerated.
61753
61754 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61755
61756         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61757         New macro.  Use R*LP on int and pointer.
61758         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61759         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61760         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61761         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61762
61763         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61764         [__WORDSIZE_TIME64_COMPAT32] instead of
61765         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61766         (struct utmp): Likewise.
61767         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61768         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61769         Renamed to ...
61770         (__WORDSIZE_TIME64_COMPAT32): This.
61771         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61772         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61773         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61774         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61775         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
61776         (__WORDSIZE_TIME64_COMPAT32): New macro.
61777
61778 2012-05-21  Andreas Jaeger  <aj@suse.de>
61779
61780         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
61781         only if [SHARED]. Add prototype for __wcschr_ia32.
61782
61783 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61784
61785         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
61786         of %rbp unmolested in the jmp_buf while mangling the low bits.
61787         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
61788         unmolested high bits of %rbp while demangling the low bits.
61789         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61790
61791 2012-05-21  Andreas Jaeger  <aj@suse.de>
61792
61793         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
61794         * sunrpc/svc_simple.c: Use it for registerrpc.
61795         * sunrpc/xcrypt.c: Use it for passwd2des.
61796
61797         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
61798
61799 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61800
61801         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
61802         Don't define if [__SYSCALL_WORDSIZE != 32].
61803         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
61804         New macro.
61805
61806 2012-05-21  Bruno Haible  <bruno@clisp.org>
61807             Andreas Jaeger  <aj@suse.de>
61808
61809         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
61810         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
61811         inptr and inend for must_buffer_ch.
61812         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
61813         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
61814         * stdio-common/Makefile (tests): Remove bug15.
61815         (bug15-ENV): Remove macro.
61816         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
61817         anymore.
61818
61819 2012-05-19  Andreas Jaeger  <aj@suse.de>
61820             Roland McGrath  <roland@hack.frob.com>
61821
61822         * manual/contrib.texi: Completely rewritten. It contains now an
61823         alphabetical list of contributors and their contributions.
61824
61825 2012-05-21  Richard Henderson  <rth@twiddle.net>
61826
61827         * misc/getauxval.c (__getauxval): Use unsigned long int.
61828         * misc/sys/auxv.h: Include <sys/cdefs.h>.
61829         (getauxval): Use unsigned long int.
61830
61831 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61832
61833         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61834
61835 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61836
61837         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
61838         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
61839         __alignof__ (long double).
61840
61841 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61842
61843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61844
61845 2012-05-20  Richard Henderson  <rth@twiddle.net>
61846
61847         * misc/getauxval.c: New file.
61848         * misc/sys/auxv.h: New file.
61849         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
61850         (routines): Add getauxval.
61851         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
61852         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
61853         * elf/dl-sysdep.c (_dl_auxv): Remove.
61854         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
61855         * elf/dl-support.c (_dl_auxv): New variable.
61856         (_dl_aux_init): Initialize it.
61857         * manual/startup.texi (Auxiliary Vector): New node.
61858         * sysdeps/generic/bits/hwcap.h: New file.
61859         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
61860         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
61861         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
61862         * sysdeps/sparc/sysdep.h: ... here.  Include it.
61863         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
61864         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
61865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
61866         Update.
61867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
61868         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
61869         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
61870         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
61871         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61872         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61873         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
61874         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
61875
61876 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61877
61878         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61879
61880 2012-05-19  David S. Miller  <davem@davemloft.net>
61881
61882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61883
61884 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61885
61886         [BZ #14123]
61887         * math/s_ccosh.c: Include <float.h>
61888         (__ccosh): Avoid internal overflow calculating sinh and cosh
61889         values before multiplying by sin and cos values.
61890         * math/s_ccoshf.c: Likewise.
61891         * math/s_ccoshl.c: Likewise.
61892         * math/s_csin.c: Likewise.
61893         * math/s_csinf.c: Likewise.
61894         * math/s_csinl.c: Likewise.
61895         * math/s_csinh.c: Likewise.
61896         * math/s_csinhf.c: Likewise.
61897         * math/s_csinhl.c: Likewise.
61898         * math/libm-test.inc (ccos_test): Add more tests.
61899         (ccosh_test): Likewise.
61900         (csin_test): Likewise.
61901         (csinh_test): Likewise.
61902         * sysdeps/i386/fpu/libm-test-ulps: Update.
61903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61904
61905 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
61906
61907         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
61908         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
61909
61910         * sysdeps/x86_64/x32/_itoa.h: Add comment.
61911
61912 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61913
61914         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
61915         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
61916         * sysdeps/powerpc/soft-fp/Versions: Likewise.
61917         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
61918         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
61919         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
61920         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
61921         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
61922         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
61923         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
61924         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
61925         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
61926         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
61927         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
61928         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
61929         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
61930         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
61931         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
61932         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
61933         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
61934         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
61935         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
61936         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
61937         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
61938         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
61939         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
61940         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
61941         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
61942         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
61943         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
61944         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
61945
61946 2012-05-18  Andreas Jaeger  <aj@suse.de>
61947
61948         * csu/.gitignore: Delete.
61949
61950 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61951
61952         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
61953         (timex): Use __syscall_slong_t.
61954
61955 2012-05-18  Andreas Jaeger  <aj@suse.de>
61956             Carlos O'Donell  <carlos_odonell@mentor.com>
61957
61958         * manual/install.texi (Configuring and compiling): Update
61959         description about files modified in the source directory.
61960         * INSTALL: Regenerated.
61961
61962 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61963
61964         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
61965         value.  Use "or" to set return value to -1.
61966         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
61967         negate return value.
61968
61969 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61970
61971         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
61972         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
61973         failure if the compiler has Graphite support disabled.
61974         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
61975         Likewise.
61976         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
61977         (CFLAGS-memmove.c): Likewise.
61978         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
61979         Likewise.
61980
61981 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61982
61983         * sysdeps/x86_64/x32/_itoa.h: New file.
61984
61985         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
61986         getdents system call only if kernel and user dirents have the
61987         same d_ino and d_off.
61988
61989         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
61990         LLONG_MAX != LONG_MAX.
61991         (_itoa_word): Use _ITOA_WORD_TYPE on value.
61992         (_fitoa_word): Likewise.
61993
61994         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
61995         years.
61996         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
61997         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
61998         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
61999
62000         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62001         include <bits/wordsize.h>.  Check __x86_64__ instead of
62002         __WORDSIZE.
62003         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62004         if __x86_64__ is defined.  Use anonymous union on fpstate.
62005
62006         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62007         anonymous union.
62008
62009 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62010
62011         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62012         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62013         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62014         Refer to _rtld_local_ro instead of _rtld_global_ro.
62015         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62016         Likewise.
62017         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62018         Likewise.
62019         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62020         Likewise.
62021         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62022         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62023         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62024
62025         [BZ #10882]
62026         * sysdeps/powerpc/powerpc32/dl-machine.c
62027         (__elf_machine_runtime_setup) [PROF]: Don't reference
62028         _dl_prof_resolve.
62029
62030 2012-05-18  Andreas Jaeger  <aj@suse.de>
62031
62032         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62033         function only available for GCCs before 3.4 since GCC 3.4
62034         introduced a builtin.
62035         (lrint): Likewise.
62036         (llrintf): Likewise.
62037         (llrint): Likewise.
62038         (fmaxf): Likewise.
62039         (fmax): Likewise.
62040         (fminf): Likewise.
62041         (fmin): Likewise.
62042         (rint): Likewise.
62043         (rintf): Likewise.
62044         (nearbyint): Likewise.
62045         (nearbyintf): Likewise.
62046         (ceil): Likewise.
62047         (ceilf): Likewise.
62048         (floor): Likewise.
62049         (floorf): Likewise.
62050
62051 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62052
62053         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62054         on both fields and cast pointer to __syscall_ulong_t.
62055
62056         * bits/types.h (__fsword_t): New type.
62057         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62058         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62059         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62060         (__FSWORD_T_TYPE): Likewise.
62061         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62062         (__FSWORD_T_TYPE): Likewise.
62063         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62064         (__FSWORD_T_TYPE): Likewise.
62065         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62066         (__FSWORD_T_TYPE): Likewise.
62067         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62068         __SWORD_TYPE with __fsword_t.
62069         (statfs64): Likewise.
62070
62071 2012-05-17  David S. Miller  <davem@davemloft.net>
62072
62073         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62074
62075 2012-05-17  Andreas Jaeger  <aj@suse.de>
62076
62077         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62078         warning.
62079
62080 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62081
62082         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62083
62084 2012-05-17  Andreas Jaeger  <aj@suse.de>
62085
62086         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62087         when it is used.
62088
62089 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62090
62091         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62092
62093 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62094
62095         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62096         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62097
62098 2012-05-17  Andreas Jaeger  <aj@suse.de>
62099             Carlos O'Donell  <carlos_odonell@mentor.com>
62100
62101         [BZ #14059]
62102         * sysdeps/x86_64/multiarch/init-arch.h
62103         (bit_YMM_Usable): Rename to...
62104         (bit_AVX_Usable): ... this.
62105         (bit_FMA4_Usable): New macro.
62106         (bit_XMM_state): New macro.
62107         (bit_YMM_state): New macro.
62108         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62109         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62110         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62111         (CPUID_OSXSAVE): New macro.
62112         (CPUID_AVX): New macro.
62113         (CPUID_FMA4): New macro.
62114         (index_YMM_Usable): Rename to...
62115         (index_AVX_Usable): ... this.
62116         (HAS_AVX): Use HAS_ARCH_FEATURE.
62117         (HAS_FMA4): Likewise.
62118         (HAS_YMM_USABLE): Remove.
62119         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62120         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62121         are present.
62122         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62123         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62124         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62125         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62126         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62127
62128 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62129
62130         * math/libm-test.c: Support platforms without multiple rounding modes.
62131         * math/bug-nextafter.c: Support platforms without FP exceptions.
62132         * math/bug-nexttoward.c: Likewise.
62133         * math/test-fenv.c: Likewise.
62134         * math/test-misc.c: Likewise.
62135         * stdlib/bug-getcontext.c: Likewise.
62136
62137 2012-05-17  Andreas Jaeger  <aj@suse.de>
62138
62139         * manual/examples/search.c (critter_cmp): Change signature to
62140         avoid warnings.
62141         * manual/string.texi (Collation Functions): Likewise.
62142
62143 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62144
62145         * bits/types.h: Fold copyright years.
62146         * bits/typesizes.h: Likewise.
62147         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62148         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62149         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62150         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62151         * time/time.h: Likewise.
62152
62153 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62154
62155         [BZ #208]
62156         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62157         in instead of returning them.  Return void.
62158         (__libc_mallinfo): Accumulate over all arenas.
62159         (__malloc_stats): Adjust for change in int_mallinfo interface.
62160
62161 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62162
62163         [BZ #10375]
62164         * configure.in (NM): Add AC_CHECK_TOOL for it.
62165         (libc_extra_cflags): New substituted variable.
62166         Check for -fstack-protector being used implicitly.
62167         * configure: Regenerated.
62168         * config.make.in (config-extra-cflags): New variable,
62169         gets @libc_extra_cflags@.
62170         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62171
62172         [BZ #10375]
62173         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62174         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62175         * configure: Regenerated.
62176         * config.make.in (CPPUNDEFS): New substituted variable.
62177         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62178         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62179         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62180
62181 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62182
62183         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62184         (mq_attr): Use __syscall_slong_t.
62185
62186 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62187
62188         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62189         Check __x86_64__ instead of __WORDSIZE.
62190         (_STAT_VER_LINUX): Likewise.
62191         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62192         __syscall_ulong_t and __syscall_slong_t.
62193         (stat64): Likewise.
62194
62195 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62196
62197         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62198
62199 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62200
62201         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62202
62203 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62204
62205         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62206         __syscall_ulong_t.
62207
62208         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62209         include <bits/wordsize.h>.  Check __x86_64__ instead of
62210         __WORDSIZE.
62211         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62212         defined.
62213         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62214
62215         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62216         include <bits/wordsize.h>.  Check __x86_64__ instead of
62217         __WORDSIZE.
62218         (user_regs_struct): Use "__extension__ unsigned long long"
62219         instead of "unsigned long" if __x86_64__ is defined.
62220         (user): Likewise.  Pad after pointer field if __ILP32__ is
62221         defined.
62222
62223 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62224
62225         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62226         versions 5 to 9.
62227         * configure: Regenerated.
62228         * manual/install.texi (texinfo): Increase version requirement to
62229         4.5 or later.
62230         * INSTALL: Regenerated.
62231
62232         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62233
62234 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62235
62236         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62237
62238         * sysdeps/x86_64/x32/ffs.c: New file.
62239
62240         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62241         __syscall_ulong_t.
62242         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62243         defined.  Use __syscall_ulong_t.
62244         (shminfo): Use __syscall_ulong_t.
62245         (shm_info): Likewise.
62246
62247         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62248         __syscall_ulong_t.
62249
62250         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62251         <bits/wordsize.h>.
62252         (msgqnum_t): Use __syscall_ulong_t.
62253         (msglen_t): Likewise.
62254         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62255         __syscall_ulong_t.
62256
62257         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62258         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62259
62260         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62261
62262         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62263         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62264
62265         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62266         __syscall_slong_t.
62267
62268         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62269         include <bits/wordsize.h>.  Check __x86_64__ instead of
62270         __WORDSIZE.
62271
62272         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62273         "unsigned long long int" if __x86_64__ is defined.
62274         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62275
62276         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62277         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62278         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62279
62280         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62281         <stdint.h>.
62282         (GET_PC): Cast to uintptr_t first.
62283         (GET_FRAME): Likewise.
62284         (GET_STACK): Likewise.
62285
62286         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62287         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62288         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62289         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62290         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62291         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62292         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62293         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62294         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62295         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62296         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62297         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62298         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62299         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62300         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62301         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62302         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62303         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62304         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62305         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62306         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62307         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62308         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62309         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62310         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62311         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62312         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62313         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62314         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62315
62316 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62317
62318         * Makerules (+depfiles): Also collect depfiles from .oS in
62319         $(extra-objs).
62320         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62321         .oS, $(libnldbl-routines)).
62322
62323         * Makerules (native-compile-mkdep-flags): Define.
62324         * sunrpc/Makefile (extra-objs): Add $(addprefix
62325         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62326         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62327         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62328         calling $(make-target-directory).
62329
62330 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62331
62332         * bits/types.h (__snseconds_t): Removed.
62333         * time/time.h (struct timespec): Replace __snseconds_t with
62334         __syscall_slong_t.
62335         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62336         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62337         Likewise.
62338         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62339         (__SNSECONDS_T_TYPE): Likewise.
62340         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62341         (__SNSECONDS_T_TYPE): Likewise.
62342         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62343         (__SNSECONDS_T_TYPE): Likewise.
62344
62345 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62346
62347         * sysdeps/mach/hurd/bits/typesizes.h
62348         (__SYSCALL_SLONG_TYPE): New macro.
62349         (__SYSCALL_ULONG_TYPE): Likewise.
62350
62351 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62352
62353         * bits/types.h (__syscall_slong_t): New type.
62354         (__syscall_ulong_t): Likewise.
62355
62356         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62357         (__SYSCALL_ULONG_TYPE): Likewise.
62358         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62359         (__SYSCALL_SLONG_TYPE): Likewise.
62360         (__SYSCALL_ULONG_TYPE): Likewise.
62361         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62362         (__SYSCALL_SLONG_TYPE): Likewise.
62363         (__SYSCALL_ULONG_TYPE): Likewise.
62364         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62365         (__SYSCALL_SLONG_TYPE): Likewise.
62366         (__SYSCALL_ULONG_TYPE): Likewise.
62367
62368 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62369
62370         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62371         Add sigaltstack-offsets.sym.
62372         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62373         <sigaltstack-offsets.h>.
62374         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62375         longjmp_msg pointer.
62376         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62377         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62378         signal stack.
62379         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62380
62381 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62382
62383         * elf/stackguard-macros.h: Remove file.
62384         * sysdeps/generic/stackguard-macros.h: New file.
62385         * sysdeps/i386/stackguard-macros.h: Likewise.
62386         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62387         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62388         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62389         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62390         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62391         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62392         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62393         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62394         <elf/stackguard-macros.h>.
62395
62396         [BZ #14109]
62397         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62398         __aligned__ in attribute.
62399         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62400         (gregset_t): Likewise.
62401
62402 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62403
62404         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62405         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62406         * sysdeps/x86_64/x32/Implies-after: New file.
62407
62408 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62409
62410         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62411         and access return value for _dl_profile_fixup.  Use R10_LP to
62412         load frame size.
62413
62414 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62415
62416         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62417
62418 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62419
62420         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62421         * sysdeps/x86_64/x32/sysdep.h: New file.
62422
62423 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62424
62425         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62426         * sysdeps/x86_64/setjmp.S: Likewise.
62427
62428 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62429
62430         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62431         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62432         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62433         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62434         remove unused global constant.
62435
62436 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62437
62438         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62439         include of <not-cancel.h>.
62440
62441 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62442
62443         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62444
62445 2012-05-15  Jeff Law  <law@redhat.com>
62446             Andreas Jaeger  <aj@suse.de>
62447
62448         [BZ #13594]
62449         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62450         out from...
62451         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62452         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62453         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62454         code changing __hst_map_handle.map.
62455
62456 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62457
62458         * configure.in (sysnames): Look for Implies-before and Implies-after
62459         files.
62460         * configure: Regenerated.
62461
62462 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62463
62464         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62465         8-byte data alignment with LP_SIZE alignment.
62466
62467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62468
62469         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62470         into R10_LP.
62471
62472 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62473
62474         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62475
62476 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62477
62478         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62479         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62480         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62481         Likewise.
62482         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62483
62484 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62485
62486         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62487         (stackinfo_sub_sp): Likewise.
62488
62489 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62490
62491         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62492         RAX_LP.
62493
62494 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62495
62496         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62497         into R*_LP.
62498
62499 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62500
62501         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62502         sizes into R*_LP.
62503
62504 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62505
62506         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62507
62508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62509
62510         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62511         into R11_LP and load __x86_64_shared_cache_size_half into
62512         R8_LP.
62513
62514 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62515
62516         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62517         R8_LP.
62518
62519 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62520
62521         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62522         logb for POWER7.
62523         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62524         logbf for POWER7.
62525         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62526         logbl for POWER7.
62527         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62528         powerpc32/power7/fpu/s_logb.c via #include.
62529         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62530         powerpc32/power7/fpu/s_logbf.c via #include.
62531         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62532         powerpc32/power7/fpu/s_logbl.c via #include.
62533
62534 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62535
62536         * README.libm: Remove file.
62537
62538 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62539
62540         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62541         count for x32.  Use R*_LP and omit operand-size suffix.
62542
62543 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62544
62545         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62546         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62547         * sysdeps/x86_64/x32/shlib-versions: New file.
62548
62549 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62550
62551         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62552         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62553         Use _dl_fatal_printf instead.
62554
62555 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62556
62557         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62558         set if not set by the user.  Do not allow for being unset.
62559         * sysdeps/unix/sysv/linux/configure: Regenerated.
62560
62561 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62562
62563         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62564         the `q' suffix from lea and replace .quad with ASM_ADDR.
62565
62566 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62567
62568         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62569         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62570         instead of $17.
62571         (PTR_DEMANGLE): Likewise.
62572
62573 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62574
62575         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62576         (LP_OP): Likewise.
62577         (ASM_ADDR): Likewise.
62578         (RAX_LP): Likewise.
62579         (RBP_LP): Likewise.
62580         (RBX_LP): Likewise.
62581         (RCX_LP): Likewise.
62582         (RDI_LP): Likewise.
62583         (RSI_LP): Likewise.
62584         (RSP_LP): Likewise.
62585         (R8_LP): Likewise.
62586         (R9_LP): Likewise.
62587         (R10_LP): Likewise.
62588         (R10_LP): Likewise.
62589         (R11_LP): Likewise.
62590         (R12_LP): Likewise.
62591         (R13_LP): Likewise.
62592         (R14_LP): Likewise.
62593         (R15_LP): Likewise.
62594
62595 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62596
62597         * sysdeps/x86_64/x32/dl-machine.h: New file.
62598
62599 2012-05-14  Andreas Jaeger  <aj@suse.de>
62600
62601         * manual/Makefile (subdir): Remove export of subdir.
62602         (all): Remove target.
62603         (.PHONY): Remove all from list.
62604         (mkinstalldirs): Remove.
62605         (.PHONY): Remove installdirs from list.
62606         ($(inst_infodir)/libc.info): Use make-target-directory.
62607         (installdirs): Remove.
62608         (subdir_%): Remove.
62609         (glibc-targets): Remove.
62610         (lib): Remove.
62611         (stubs): Remove.
62612         ($(objpfx)stubs ../po/manual.pot): Remove.
62613         ($(objpfx)stamp%): Remove.
62614         (make-target-directory): Remove.
62615         (subdir_install): Remove.
62616         (routines): Remove.
62617         (aux): Remove.
62618         (sources): Remove.
62619         (objects): Remove.
62620         (headers): Remove.
62621
62622         [BZ #13750]
62623         * manual/.gitignore: Remove, it's not needed anymore.
62624         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62625         all files in it.
62626         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62627         directory.
62628         (texis): Renamed to $(objpfx)texis.
62629         (texis-path): New, contains path to generated files.
62630         (chapters.%): Use texis-path for complete path, add extra argument
62631         libc-texinfo.sh.
62632         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62633         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62634         (summary,texi, stamp-summary): Use complete path of
62635         files. Generate files in build dir.
62636         (dir-add.texi): Build in build dir.
62637         (libm-err.texi,stamp-libm-err): Likewise.
62638         (version.texi, stamp-version): Likewise.
62639         (.%c.texi): Likewise.
62640         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62641         (mostlyclean): Remove target.
62642         (realclean): Remove target.
62643         (generated): Add new variable with contents from mostlyclean and
62644         realclean, remove entries duplicated in common-mostlyclean, add
62645         stamp-libm-err and stamp-version.
62646         (generated-dirs): Add libc directory.
62647         ($(inst_infodir)/libc.info): Install files from build dir.
62648
62649         * manual/install.texi (Configuring and compiling): Adjust since
62650         the info files are not part of the tar ball anymore.
62651
62652 2012-05-14  Andreas Jaeger  <aj@suse.de>
62653
62654         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62655         variable.
62656
62657 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62658
62659         [BZ #13717]
62660         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62661         to 2.2.0 where earlier.
62662         * sysdeps/unix/sysv/linux/configure: Regenerated.
62663         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62664         Remove conditional code.
62665         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62666         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62667         Remove conditional code.
62668         [!__NR_lchown]: Likewise.
62669         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62670         [__NR_lchown]: Likewise.
62671         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62672         comment referencing __ASSUME_LCHOWN_SYSCALL.
62673         * sysdeps/unix/sysv/linux/i386/sigaction.c
62674         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62675         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62676         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62677         Remove conditional code.
62678         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62679         (__protocol_available): Remove #if 0 code.
62680         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62681         conditional code.
62682         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62683         * sysdeps/unix/sysv/linux/kernel-features.h
62684         (__ASSUME_GETCWD_SYSCALL): Don't define.
62685         (__ASSUME_REALTIME_SIGNALS): Likewise.
62686         (__ASSUME_PREAD_SYSCALL): Likewise.
62687         (__ASSUME_PWRITE_SYSCALL): Likewise.
62688         (__ASSUME_POLL_SYSCALL): Likewise.
62689         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62690         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62691         non-SPARC.
62692         (__ASSUME_SIOCGIFNAME): Don't define.
62693         (__ASSUME_MSG_NOSIGNAL): Likewise.
62694         (__ASSUME_SENDFILE): Define unconditionally.
62695         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62696         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62697         conditional code.
62698         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62699         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62700         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62701         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62702         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62703         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62704         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62706         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62707         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62709         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62710         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62712         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62713         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62715         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62716         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62718         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62719         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62721         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62722         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62724         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62725         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62727         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62728         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62729         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62730         Remove conditional code.
62731         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62732         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62733         Remove conditional code.
62734         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62735         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62736         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62737         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62738         Remove conditional code.
62739         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62740         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62741         Remove conditional code.
62742         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62743         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62744         Remove conditional code.
62745         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62746         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62747         Remove conditional code.
62748         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62749         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62750         Remove conditional code.
62751         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62752         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62753         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62754         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62755         * sysdeps/unix/sysv/linux/sigaction.c
62756         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62757         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62758         * sysdeps/unix/sysv/linux/sigpending.c
62759         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62760         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62761         * sysdeps/unix/sysv/linux/sigprocmask.c
62762         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62763         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62764         * sysdeps/unix/sysv/linux/sigsuspend.c
62765         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62766         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62767         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62768         (__libc_missing_rt_sigs): Remove.
62769         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62770         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62771         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62772         Remove conditional code.
62773         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62774         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62775         return 1.
62776         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
62777         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
62778         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
62779         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
62780
62781 2012-05-14  Andreas Jaeger  <aj@suse.de>
62782
62783         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
62784         it's not used in glibc.
62785         (__coshm1): Likewise.
62786         (__acosh1p): Likewise.
62787         (__sgn): Likewise.
62788
62789         * manual/string.texi (Copying and Concatenation): Add missing
62790         variable in concat example.
62791         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
62792
62793 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62794
62795         [BZ #14103]
62796         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
62797         __builtin_clzl with __builtin_clzll.
62798
62799 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62800
62801         [BZ #14104]
62802         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
62803         libc_freeres_ptr.
62804
62805 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62806
62807         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
62808         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
62809         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
62810         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
62811
62812 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
62813
62814         * NEWS: Update ia64 info.
62815
62816 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
62817
62818         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
62819         used as bcopy.
62820
62821 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
62822
62823         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
62824         * sysdeps/unix/syscalls.list (dup3): Likewise.
62825         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
62826         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
62827
62828 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62829
62830         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
62831         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
62832
62833 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62834
62835         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
62836         thread pointer.
62837         (TLS_IE): Use mov/add instead of movq/addq to load thread
62838         pointer.
62839         (TLS_GD_PREFIX): New.
62840         (TLS_GD): Use it.
62841
62842 2012-05-11  David S. Miller  <davem@davemloft.net>
62843
62844         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
62845         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
62846         (_FPU_SETCW): Likewise.
62847
62848 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62849
62850         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
62851         is 32-byte aligned.
62852
62853 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
62854
62855         [BZ #11837]
62856         * iconvdata/gb18030.c: Update tables.
62857         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
62858         characters specially.
62859         (BODY for TO_LOOP): Add encoding of missing ranges.
62860
62861 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
62862
62863         [BZ #13673]
62864         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
62865         * sysdeps/mach/hurd/dup3.c: Likewise.
62866         * sysdeps/mach/hurd/readlinkat.c: Likewise.
62867         * sysdeps/powerpc/memmove.c:: Likewise.
62868
62869 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62870
62871         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
62872         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
62873
62874 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62875
62876         * elf/elf.h (R_X86_64_RELATIVE64): New.
62877         (R_X86_64_NUM): Updated.
62878         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
62879         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
62880         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
62881         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
62882         tst-quad1pie tst-quad2pie
62883         (modules-names): Add tst-quadmod1 tst-quadmod2.
62884         ($(objpfx)tst-quad1): New dependency.
62885         ($(objpfx)tst-quad2): Likewise.
62886         ($(objpfx)tst-quad1pie): Likewise.
62887         ($(objpfx)tst-quad2pie): Likewise.
62888         * sysdeps/x86_64/tst-quad1.c: New file.
62889         * sysdeps/x86_64/tst-quad1pie.c: New file.
62890         * sysdeps/x86_64/tst-quad2.c: Likewise.
62891         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
62892         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
62893         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
62894         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
62895         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
62896
62897 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62898
62899         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
62900         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
62901         * streams/stropts.h (t_scalar_t): Define type.
62902
62903         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
62904         (_PATH_PRESERVE): Set to "/var/lib".
62905         (_PATH_RWHODIR): Set to "/var/spool/rwho".
62906
62907         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
62908         instead of int.
62909
62910         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
62911         if __dir_mkfile succeeded.
62912
62913         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
62914         checking for _hurd_dtablesize.  Unlock it right after having
62915         finished _hurd_dtable allocation.
62916
62917 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62918
62919         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
62920         * sysdeps/mach/hurd/configure: Regenerated.
62921         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
62922         special-casing to...
62923         * sysdeps/gnu/configure.in: ... this new file.
62924         * sysdeps/unix/sysv/linux/configure: Regenerated.
62925         * sysdeps/gnu/configure: New generated file.
62926
62927         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
62928         for Linux: use nsec instead of usec, as well as:
62929         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
62930         members of type struct timespec.
62931         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
62932         New macros.
62933         (struct stat64): Likewise.
62934         (_STATBUF_ST_NSEC): New macro.
62935         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
62936
62937         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62938         __strtoul_internal rather than strtoul.
62939
62940 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62941
62942         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
62943         and reject them.
62944
62945 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62946
62947         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
62948         which preserves existing values.
62949         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
62950
62951 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62952
62953         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
62954         TIMEOUT values.  Return EINVAL for NFDS values either negative or
62955         greater than FD_SETSIZE.
62956
62957 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62958
62959         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
62960         allocated, call __vm_protect to finish enabling the existing space, and
62961         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
62962         allocate the remainder.
62963
62964 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62965
62966         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
62967         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
62968
62969 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62970
62971         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
62972         sysdeps/mach/hurd/readlink.c.
62973
62974         * posix/tst-sysconf.c (posix_options): Only use
62975         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
62976         _POSIX_SYNCHRONIZED_IO when they are defined
62977         * sysdeps/mach/hurd/bits/posix_opt.h:
62978         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
62979         (_XOPEN_REALTIME): Undefine macro.
62980         (_XOPEN_REALTIME_THREADS): Undefine macro.
62981         (_XOPEN_SHM): Undefine macro.
62982         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
62983         macro to -1.
62984         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
62985         macro to -1.
62986         (_POSIX_ASYNC_IO): Undefine macro.
62987         (_POSIX_PRIORITIZED_IO): Undefine macro.
62988         (_POSIX_SPIN_LOCKS): Define macro to -1.
62989
62990         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
62991         SA_NODEFER, SA_RESETHAND.
62992         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
62993         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
62994         F_DUPFD_CLOEXEC.
62995
62996 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62997
62998         * elf/Makefile (pldd-modules): Define unconditionally.
62999
63000 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63001
63002         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63003
63004 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63005
63006         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63007         Return ENOENT when name is empty.
63008         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63009
63010 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63011
63012         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63013
63014         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63015
63016 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63017
63018         Fix mlock in all cases except non-readable pages.
63019         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63020         instead of VM_PROT_ALL as parameter to __vm_wire function.
63021
63022         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63023         (__mkdir): When path is `/', just fail with EEXIST.
63024         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63025
63026 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63027
63028         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63029         <sys/uio.h> (for writev).
63030         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63031         and <sys/param.h> (for MIN).
63032
63033 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63034
63035         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63036         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63037         if interrupted.
63038
63039 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63040
63041         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63042         Depend on against $(link-rpcuserlibs).
63043
63044 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63045
63046         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63047         (__libc_stack_end): Do not use attribute_relro.
63048         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63049         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63050         to libthread-provided value.
63051         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63052         attribute_relro.
63053
63054 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63055
63056         [BZ #3748]
63057         * bits/libc-lock.h (__libc_once_get): New macro.
63058         * sysdeps/mach/bits/libc-lock.h: Likewise.
63059         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63060         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63061         instead of using implementation details.
63062
63063         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63064         * libio/freopen.c: Likewise.
63065         * libio/freopen64.c: Likewise.
63066         * misc/syslog.c: Likewise.
63067         * nscd/connections.c: Likewise.
63068         * nscd/netgroupcache.c: Likewise.
63069         * sysdeps/posix/getcwd.c: Likewise.
63070
63071 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63072
63073         * math/w_ilogbf.c: Add #include <limits.h>.
63074
63075 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63076
63077         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63078         path instead of returning without unlocking.
63079
63080         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63081         immediate-write ioctls.
63082         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63083
63084 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63085
63086         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63087         __builtin_frame_address instead of making assumptions about the
63088         location of the return address relative to DATA.  Force early load of
63089         the return address.
63090         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63091         __builtin_frame_address.
63092
63093         dup3 for GNU Hurd.
63094         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63095         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63096         implement dup3 and do some further code clean-ups.
63097         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63098         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63099
63100 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63101
63102         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63103
63104         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63105         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63106         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63107         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63108         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63109         d->port.lock.
63110
63111         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63112         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63113         when handler == SIG_ERR, not when handler != SIG_ERR.
63114
63115 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63116
63117         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63118         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63119         definitions.
63120
63121         accept4 for GNU Hurd.
63122         * include/sys/socket.h (__libc_accept4): New prototype.
63123         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63124         to implement __libc_accept4.
63125         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63126         __libc_accept4.
63127         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63128
63129         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63130         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63131         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63132         signal-defines.sym.
63133
63134 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63135
63136         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63137
63138 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63139
63140         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63141         assertion on O_CLOEXEC flag.
63142         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63143         * hurd/intern-fd.c: Likewise.
63144         * hurd/port2fd.c: Likewise.
63145
63146 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63147
63148         [BZ #3906]
63149         * bits/in.h (IPV6_PKTINFO): Define new macro.
63150         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63151
63152 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63153
63154         [BZ #13954]
63155         [BZ #13955]
63156         [BZ #13956]
63157         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63158         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63159         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63160         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63161         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63162         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63163         * math/libm-test.inc (logb_test) : Additional logb tests.
63164
63165 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63166             Andreas Jaeger  <aj@suse.de>
63167
63168         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63169         * configure: Regenerated.
63170         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63171         * config.make.in (link-obsolete-rpc): New substituted variable.
63172         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63173         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63174         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63175         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63176         so that libc.a contains the symbols.
63177         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63178         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63179         * sunrpc/auth_none.c: Likewise.
63180         * sunrpc/auth_unix.c: Likewise.
63181         * sunrpc/authdes_prot.c: Likewise.
63182         * sunrpc/authuxprot.c: Likewise.
63183         * sunrpc/clnt_gen.c: Likewise.
63184         * sunrpc/clnt_perr.c: Likewise.
63185         * sunrpc/clnt_raw.c: Likewise.
63186         * sunrpc/clnt_simp.c: Likewise.
63187         * sunrpc/clnt_tcp.c: Likewise.
63188         * sunrpc/clnt_udp.c: Likewise.
63189         * sunrpc/clnt_unix.c: Likewise.
63190         * sunrpc/des_crypt.c: Likewise.
63191         * sunrpc/des_soft.c: Likewise.
63192         * sunrpc/get_myaddr.c: Likewise.
63193         * sunrpc/key_call.c: Likewise.
63194         * sunrpc/key_prot.c: Likewise.
63195         * sunrpc/netname.c: Likewise.
63196         * sunrpc/pm_getmaps.c: Likewise.
63197         * sunrpc/pm_getport.c: Likewise.
63198         * sunrpc/pmap_clnt.c: Likewise.
63199         * sunrpc/pmap_prot.c: Likewise.
63200         * sunrpc/pmap_prot2.c: Likewise.
63201         * sunrpc/pmap_rmt.c: Likewise.
63202         * sunrpc/publickey.c: Likewise.
63203         * sunrpc/rpc_cmsg.c: Likewise.
63204         * sunrpc/rpc_common.c: Likewise.
63205         * sunrpc/rpc_dtable.c: Likewise.
63206         * sunrpc/rpc_prot.c: Likewise.
63207         * sunrpc/rpc_thread.c: Likewise.
63208         * sunrpc/rtime.c: Likewise.
63209         * sunrpc/svc.c: Likewise.
63210         * sunrpc/svc_auth.c: Likewise.
63211         * sunrpc/svc_raw.c: Likewise.
63212         * sunrpc/svc_run.c: Likewise.
63213         * sunrpc/svc_tcp.c: Likewise.
63214         * sunrpc/svc_udp.c: Likewise.
63215         * sunrpc/svc_unix.c: Likewise.
63216         * sunrpc/svcauth_des.c: Likewise.
63217         * sunrpc/xcrypt.c: Likewise.
63218         * sunrpc/xdr.c: Likewise.
63219         * sunrpc/xdr_array.c: Likewise.
63220         * sunrpc/xdr_float.c: Likewise.
63221         * sunrpc/xdr_intXX_t.c: Likewise.
63222         * sunrpc/xdr_mem.c: Likewise.
63223         * sunrpc/xdr_rec.c: Likewise.
63224         * sunrpc/xdr_ref.c: Likewise.
63225         * sunrpc/xdr_sizeof.c: Likewise.
63226         * sunrpc/xdr_stdio.c: Likewise.
63227
63228 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63229
63230         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63231         change.  Update copyright years.
63232
63233 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63234
63235         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63236
63237 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63238             Joseph Myers  <joseph@codesourcery.com>
63239             Paul Pluzhnikov  <ppluzhnikov@google.com>
63240
63241         [BZ #14012]
63242         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63243         requiring rpcgen.
63244         [cross-compiling] (extra-libs): Likewise.
63245         [cross-compiling] (extra-libs-others): Likewise.
63246         [cross-compiling] (librpcsvc-routines): Likewise.
63247         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63248         [cross-compiling] (omit-deps): Likewise.
63249         (sunrpc-CPPFLAGS): New variable.
63250         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63251         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63252         (cross-rpcgen-objs): New variable.
63253         (extra-objs): Append $(cross-rpcgen-objs).
63254         ($(cross-rpcgen-objs)): New rule.
63255         ($(objpfx)cross-rpcgen): Likewise.
63256         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63257         comment.
63258         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63259         ($(objpfx)x%.stmp): Likewise.
63260         * sunrpc/proto.h [IS_IN_build] (_): Define.
63261         [IS_IN_build] (_libc_intl_domainname): Likewise.
63262
63263 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63264
63265         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63266         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63267         and R_X86_64_TPOFF64.
63268
63269 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63270
63271         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63272         sysdeps/unix/sysv/syscalls.list.
63273         (stime): Likewise.
63274         (utime): Likewise.
63275         * sysdeps/unix/sysv/syscalls.list: Remove file.
63276
63277 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         [BZ #3440]
63280         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63281         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63282         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63283         (__LC_IDENTIFICATION): Make these macros useful in #if
63284         expressions, as required by C99.
63285
63286 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63287
63288         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63289         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63290         after this.
63291
63292 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63293
63294         * stdlib/longlong.h: Updated from GCC.
63295
63296 2012-05-09  Andreas Jaeger  <aj@suse.de>
63297
63298         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63299         default is first entry.
63300         (run_mode): Set type.
63301         (main): Remove informal message about syslog.
63302         (options): Fix typo.
63303
63304         [BZ #14053]
63305         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63306         to asm.
63307         (lrint): Likewise.
63308         (llrintf): Likewise.
63309         (llrint): Likewise.
63310         (rint): Likewise.
63311         (rintf): Likewise.
63312         (nearbyint): Likewise.
63313         (nearbyintf): Likewise.
63314
63315 2012-05-09  Andreas Jaeger  <aj@suse.de>
63316             Pedro Alves  <palves@redhat.com>
63317
63318         * nscd/nscd.c (run_mode): Use enum.
63319         (main): Cleanup coding style issue.
63320
63321 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63322             Andreas Jaeger  <aj@suse.de>
63323
63324         * nscd/nscd.c (go_background): Replaced with...
63325         (run_mode): ... this.
63326         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63327         (options): Add -F --foreground.
63328         (main): Implement it.
63329         (parse_opt): Parse it.
63330
63331 2012-05-09  Andreas Jaeger  <aj@suse.de>
63332
63333         [BZ #14083]
63334         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63335         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63336         -Wconversion warning.
63337         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63338         Likewise.
63339
63340 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63341
63342         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63343         == 0.
63344         (LC_ALL): Use macro-int-constant.
63345         (LC_COLLATE): Likewise.
63346         (LC_CTYPE): Likewise.
63347         (LC_MESSAGES): Likewise.
63348         (LC_MONETARY): Likewise.
63349         (LC_NUMERIC): Likewise.
63350         (LC_TIME): Likewise.
63351         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63352         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63353         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63354         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63355         Specify type.
63356         [C99-based standards] (float_t): Expect type.
63357         [C99-based standards] (double_t): Expect type.
63358         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63359         type.
63360         [C99-based standards] (HUGE_VALL): Likewise.
63361         [C99-based standards] (INFINITY): Likewise.
63362         [C99-based standards] (NAN): Likewise.
63363         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63364         [C99-based standards] (FP_NAN): Likewise.
63365         [C99-based standards] (FP_NORMAL): Likewise.
63366         [C99-based standards] (FP_SUBNORMAL): Likewise.
63367         [C99-based standards] (FP_ZERO): Likewise.
63368         [C99-based standards] (FP_FAST_FMA): Use
63369         optional-macro-int-constant.  Specify type.  Require == 1.
63370         [C99-based standards] (FP_FAST_FMAF): Likewise.
63371         [C99-based standards] (FP_FAST_FMAL): Likewise.
63372         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63373         [C99-based standards] (FP_ILOGBNAN): Likewise.
63374         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63375         Specify type.
63376         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63377         [C99-based standards] (math_errhandling): Specify type.
63378         [ISO99 || ISO11] (signgam): Do not allow.
63379         [non-C99-based standards] (copysignf): Do not allow.
63380         [non-C99-based standards] (exp2f): Likewise.
63381         [non-C99-based standards] (log2f): Likewise.
63382         [non-C99-based standards] (modff): Allow.
63383         [non-C99-based standards] (erff): Do not allow.
63384         [non-C99-based standards] (erfcf): Likewise.
63385         [non-C99-based standards] (gammaf): Likewise.
63386         [non-C99-based standards] (hypotf): Likewise.
63387         [non-C99-based standards] (j0f): Likewise.
63388         [non-C99-based standards] (j1f): Likewise.
63389         [non-C99-based standards] (jnf): Likewise.
63390         [non-C99-based standards] (lgammaf): Likewise.
63391         [non-C99-based standards] (tgammaf): Likewise.
63392         [non-C99-based standards] (y0f): Likewise.
63393         [non-C99-based standards] (y1f): Likewise.
63394         [non-C99-based standards] (ynf): Likewise.
63395         [non-C99-based standards] (isnanf): Likewise.
63396         [non-C99-based standards] (acoshf): Likewise.
63397         [non-C99-based standards] (asinhf): Likewise.
63398         [non-C99-based standards] (atanhf): Likewise.
63399         [non-C99-based standards] (cbrtf): Likewise.
63400         [non-C99-based standards] (expm1f): Likewise.
63401         [non-C99-based standards] (ilogbf): Likewise.
63402         [non-C99-based standards] (log1pf): Likewise.
63403         [non-C99-based standards] (logbf): Likewise.
63404         [non-C99-based standards] (nextafterf): Likewise.
63405         [non-C99-based standards] (remainderf): Likewise.
63406         [non-C99-based standards] (rintf): Likewise.
63407         [non-C99-based standards] (scalbf): Likewise.
63408         [non-C99-based standards] (copysignl): Likewise.
63409         [non-C99-based standards] (exp2l): Likewise.
63410         [non-C99-based standards] (log2l): Likewise.
63411         [non-C99-based standards] (modfl): Allow.
63412         [non-C99-based standards] (erfl): Do not allow.
63413         [non-C99-based standards] (erfcl): Likewise.
63414         [non-C99-based standards] (gammal): Likewise.
63415         [non-C99-based standards] (hypotl): Likewise.
63416         [non-C99-based standards] (j0l): Likewise.
63417         [non-C99-based standards] (j1l): Likewise.
63418         [non-C99-based standards] (jnl): Likewise.
63419         [non-C99-based standards] (lgammal): Likewise.
63420         [non-C99-based standards] (tgammal): Likewise.
63421         [non-C99-based standards] (y0l): Likewise.
63422         [non-C99-based standards] (y1l): Likewise.
63423         [non-C99-based standards] (ynl): Likewise.
63424         [non-C99-based standards] (isnanl): Likewise.
63425         [non-C99-based standards] (acoshl): Likewise.
63426         [non-C99-based standards] (asinhl): Likewise.
63427         [non-C99-based standards] (atanhl): Likewise.
63428         [non-C99-based standards] (cbrtl): Likewise.
63429         [non-C99-based standards] (expm1l): Likewise.
63430         [non-C99-based standards] (ilogbl): Likewise.
63431         [non-C99-based standards] (log1pl): Likewise.
63432         [non-C99-based standards] (logbl): Likewise.
63433         [non-C99-based standards] (nextafterl): Likewise.
63434         [non-C99-based standards] (remainderl): Likewise.
63435         [non-C99-based standards] (rintl): Likewise.
63436         [non-C99-based standards] (scalbl): Likewise.
63437         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63438         [non-C99-based standards] (FP_*): Do not allow.
63439         [C99-based standards] (FP_*): Change to
63440         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63441         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63442         allow.
63443         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63444         (SIG_ERR): Likewise.
63445         [X/Open-based standards] (SIG_HOLD): Likewise.
63446         (SIG_IGN): Likewise.
63447         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63448         positive value.
63449         (SIGFPE): Likewise.
63450         (SIGILL): Likewise.
63451         (SIGINT): Likewise.
63452         (SIGSEGV): Likewise.
63453         (SIGTER): Likewise.
63454         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63455         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63456         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63457         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63458         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63459         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63460         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63461         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63462         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63463         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63464         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63465         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63466         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63467         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63468         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63469         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63470         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63471         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63472         [X/Open-based standards] (SIGTRAP): Likewise.
63473         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63474         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63475         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63476         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63477         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63478         allow.
63479
63480 2012-05-08  Ian Wienand  <ianw@vmware.com>
63481
63482         [BZ #14080]
63483         * time/tzset.c (__tzset_parse_tz): Update default rules for
63484         daylight time changes in the Energy Policy Act of 2005.
63485
63486 2012-05-09  Andreas Jaeger  <aj@suse.de>
63487
63488         [BZ #13983]
63489         * elf/ldconfig.c (parse_conf): Change string to make clear that
63490         ldconfig only issued a warning if ld.so.conf does not exist.
63491
63492 2012-05-08  David S. Miller  <davem@davemloft.net>
63493
63494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63495         movxtod instead of popping the value on the stack.
63496
63497         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63498
63499 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63500
63501         * config.h.in: Add HAVE_ARM_PCS_VFP.
63502
63503 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63504
63505         [BZ #13979]
63506         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63507         checking but the checks are disabled for any reason.
63508
63509 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63510
63511         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63512         and ELF64_R_TYPE with ELFW(R_TYPE).
63513
63514 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63515
63516         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63517         (ulimit): Likewise.
63518
63519         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63520         (settimeofday): Likewise.
63521
63522 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63523
63524         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63525         a struct th_u2 inside the union, and move tu_block/tu_code into
63526         a new th_u3 union of tu_block/tu_code inside of that.  Move
63527         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63528         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63529         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63530         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63531         (th_stuff): Change to th_u1.tu_stuff.
63532         (th_data): Define.
63533         (th_msg): Change to th_u1.th_u2.tu_data.
63534
63535 2012-05-07  David S. Miller  <davem@davemloft.net>
63536
63537         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63538
63539         [BZ #14074]
63540         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63541         (SETUP_PIC_REG): Use it.
63542         (SETUP_PIC_REG_LEAF): Use it.
63543
63544 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63545
63546         [BZ #13885]
63547         [BZ #13923]
63548         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63549         USE_AS_EXPM1L.
63550         (EXPL_FINITE): Likewise.
63551         (FLDLOG): Likewise.
63552         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63553         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63554         e_expl.S.
63555         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63556         USE_AS_EXPM1L.
63557         (EXPL_FINITE): Likewise.
63558         (FLDLOG): Likewise.
63559         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63560         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63561         e_expl.S.
63562         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63563         test of -max_value argument for long double.
63564         * sysdeps/i386/fpu/libm-test-ulps: Update.
63565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63566
63567 2012-05-06  David S. Miller  <davem@davemloft.net>
63568
63569         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63570         quad soft-float symbols whose references which are compiler
63571         generated.
63572         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63573
63574 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63575
63576         [BZ #13884]
63577         [BZ #13914]
63578         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63579         USE_AS_EXP10L.
63580         (EXPL_FINITE): Likewise.
63581         (FLDLOG): Likewise.
63582         (c0): Likewise.
63583         (c1): Likewise.
63584         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63585         Adjust comments for base varying.
63586         (__expl_finite): Change alias to EXPL_FINITE.
63587         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63588         e_expl.S.
63589         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63590         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63591         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63592         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63593         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63594         USE_AS_EXP10L.
63595         (EXPL_FINITE): Likewise.
63596         (FLDLOG): Likewise.
63597         (c0): Likewise.
63598         (c1): Likewise.
63599         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63600         Adjust comments for base varying.
63601         (__expl_finite): Change alias to EXPL_FINITE.
63602         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63603         tests for bugs.
63604         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63605
63606         [BZ #14064]
63607         * math/libm-test.inc (check_float_internal): Correct ulp
63608         calculation for subnormal expected results.
63609
63610 2012-05-06  Andreas Jaeger  <aj@suse.de>
63611
63612         * Makeconfig (+math-flags): New, set to -frounding-math.
63613         (+cflags): Add +math-flags so that all of glibc gets compiled with
63614         it.
63615
63616         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63617
63618 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63619
63620         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63621         Disable one test.
63622
63623         [BZ #13787]
63624         [BZ #13922]
63625         [BZ #14036]
63626         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63627         (__ieee754_expl): Allow for and saturate large arguments.
63628         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63629         (u_threshold): Likewise.
63630         (__exp): Call __ieee754_exp before checking for overflow and
63631         underflow.
63632         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63633         (u_threshold): Likewise.
63634         (__expf): Call __ieee754_expf before checking for overflow and
63635         underflow.
63636         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63637         (u_threshold): Likewise.
63638         (__expl): Call __ieee754_expl before checking for overflow and
63639         underflow.
63640         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63641         (__ieee754_expl): Allow for and saturate large arguments.
63642         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63643         missing overflow exception on overflow.
63644         (expm1_test): Do not allow missing overflow exception on overflow.
63645
63646         * sysdeps/i386/fpu/e_expl.c: Move to ...
63647         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63648         rather than using inline asm.
63649         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63650         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63651         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63652
63653         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63654         (nice): Likewise.
63655         (poll): Likewise.
63656         (signal): Likewise.
63657         (time): Likewise.
63658         (times): Likewise.
63659
63660 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63661
63662         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63663         sysdeps/unix/common/syscalls.list.
63664         (fchmod): Likewise.
63665         (fchown): Likewise.
63666         (ftruncate): Likewise.
63667         (getrusage): Likewise.
63668         (gettimeofday): Likewise.
63669         (setpgid): Likewise.
63670         (setregid): Likewise.
63671         (setreuid): Likewise.
63672         (sigaction): Likewise.
63673         (truncate): Likewise.
63674         (vhangup): Likewise.
63675         * sysdeps/unix/common/syscalls.list: Remove file.
63676         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63677         * sysdeps/unix/sysv/linux/Implies: Likewise.
63678
63679 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63680
63681         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63682         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63683         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63684         Moved to ...
63685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63686         Here.
63687         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63688         to ...
63689         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63690         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63691         to ...
63692         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63693         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63694         to ...
63695         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63696         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63697         to ...
63698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63699         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63700         to ...
63701         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63702         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63703         to ...
63704         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63705         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63706         to ...
63707         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63708         Here.
63709         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63710         to ...
63711         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63712         Here.
63713         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63714         to ...
63715         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63716         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63717         Moved to ...
63718         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63719         Here.
63720         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63721         to ...
63722         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63723
63724 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63725
63726         * sysdeps/unix/common/bits/dirent.h: Remove file.
63727         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63728
63729         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63730         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63731         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63732         * sysdeps/unix/bsd/isatty.c: Likewise.
63733         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63734         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63735         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63736
63737 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63738
63739         [BZ #13563]
63740         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63741         long double comparison inaccuracies.
63742         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63744
63745 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63746
63747         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63748         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63749
63750 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63751
63752         [BZ #14049]
63753         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63754         nonzero digits before rounding a hex value.
63755         * stdlib/tst-strtod.c (tests): Add another test.
63756
63757 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63758
63759         * sysdeps/s390/fpu/libm-test-ulps: Update.
63760
63761 2012-05-03  Andreas Jaeger  <aj@suse.de>
63762
63763         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63764         does not get optimized out.
63765         (malloc_opt_barrier): New.
63766
63767 2012-05-03  Andreas Jaeger  <aj@suse.de>
63768             Roland McGrath  <roland@hack.frob.com>
63769
63770         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63771         intermediate file deletion.
63772         (generated): Add .symlist files.
63773
63774 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63775
63776         [BZ #13775]
63777         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
63778         Redirect under this condition.
63779         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63780         [__USE_GNU] (__dprintf_chk): Not under this condition.
63781         [__USE_GNU] (__vdprintf_chk): Likewise.
63782         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
63783         under this condition.
63784         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63785         [__USE_XOPEN2K8] (dprintf): Define under this condition.
63786         [__USE_XOPEN2K8] (vdprintf): Likewise.
63787         [__USE_GNU] (__dprintf_chk): Not under this condition.
63788         [__USE_GNU] (__vdprintf_chk): Likewise.
63789         [__USE_GNU] (dprintf): Likewise.
63790         [__USE_GNU] (vdprintf): Likewise.
63791
63792 2012-05-03  Roland McGrath  <roland@hack.frob.com>
63793
63794         * elf/Makefile (common-generated): Set this instead of generated for
63795         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
63796         $(all-built-dso)-derived lists.
63797
63798 2012-05-03  Andreas Jaeger  <aj@suse.de>
63799
63800         * sysdeps/i386/fpu/libm-test-ulps: Update.
63801
63802         * FAQ: Removed.
63803         * FAQ.in: Likewise.
63804         * scripts/gen-FAQ.pl: Likewise.
63805         * manual/install.texi (Installation): Point to online location of
63806         FAQ.
63807         * Makefile (files-for-dist): Remove FAQ.
63808         (FAQ): Remove.
63809
63810 2012-05-02  Allan McRae  <allan@archlinux.org>
63811
63812         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
63813         (LDFLAGS-reldepmod5.so): Likewise.
63814         (LDFLAGS-reldep6mod1.so): Likewise.
63815         (LDFLAGS-reldep6mod4.so): Likewise.
63816         (LDFLAGS-reldep8mod3.so): Likewise.
63817         (LDFLAGS-unload4mod1.so): Likewise.
63818         (LDFLAGS-unload4mod2.so): Likewise.
63819         (LDFLAGS-tst-initorder): Likewise.
63820         (LDFLAGS-tst-initordera2.so): Likewise.
63821         (LDFLAGS-tst-initordera3.so): Likewise.
63822         (LDFLAGS-tst-initordera4.so): Likewise.
63823         (LDFLAGS-tst-initorderb2.so): Likewise.
63824         (LDFLAGS-noload): Likewise.
63825         (LDFLAGS-next): Likewise.
63826         (LDFLAGS-order2mod1.so): Likewise.
63827         (LDFLAGS-order2mod2.so): Likewise.
63828         (LDFLAGS-tst-initorder2): Likewise.
63829         (LDFLAGS-tst-initorder2a.so): Likewise.
63830         (LDFLAGS-tst-initorder2b.so): Likewise.
63831         (LDFLAGS-tst-initorder2c.so): Likewise.
63832         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
63833
63834 2012-05-02  David S. Miller  <davem@davemloft.net>
63835
63836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63837
63838 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
63839
63840         [BZ #14055]
63841         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
63842
63843 2012-05-02  Andreas Jaeger  <aj@suse.de>
63844
63845         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
63846         since we manipulate rounding mode.
63847         (CPPFLAGS-test-idouble.c): Likewise.
63848         (CPPFLAGS-test-ifloat.c): Likewise.
63849         (CFLAGS-test-ldouble.c): Likewise.
63850         (CFLAGS-test-double.c): Likewise.
63851         (CFLAGS-test-float.c): Likewise.
63852         (CFLAGS-test-misc.c): Likewise.
63853         (CFLAGS-test-test-fenv.c): Likewise.
63854
63855 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63856
63857         [BZ #2550]
63858         [BZ #2570]
63859         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
63860         comparisons to determine direction to adjust input.
63861
63862 2012-05-01  Roland McGrath  <roland@hack.frob.com>
63863
63864         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
63865         output to the target.
63866
63867         * scripts/localplt.awk: New file.
63868         * elf/Makefile ($(objpfx)check-localplt): Target removed.
63869         (check-localplt-CFLAGS): Variable removed.
63870         ($(all-built-dso:=.jmprel)): New static pattern rule.
63871         (generated): Add those targets.
63872         (localplt-built-dso): New variable.
63873         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
63874
63875         * elf/check-localplt.c: File removed.
63876
63877         * scripts/check-execstack.awk: New file.
63878         * elf/Makefile ($(objpfx)check-execstack): Target removed.
63879         (check-execstack-CFLAGS): Variable removed.
63880         ($(objpfx)check-execstack.h): Target removed.
63881         ($(objpfx)execstack-default): New target.
63882         (generated): Add that instead of check-execstack.h.
63883         ($(all-built-dso:=.phdr)): New static pattern rule.
63884         (generated): Add those targets.
63885         * elf/check-execstack.c: File removed.
63886
63887         * scripts/check-textrel.awk: New file.
63888         * elf/Makefile ($(objpfx)check-textrel): Target removed.
63889         (check-textrel-CFLAGS): Variable removed.
63890         (all-built-dso): Use := to define.o
63891         ($(all-built-dso:=.dyn)): New static pattern rule.
63892         (generated): Add those targets.
63893         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
63894         * config.make.in (READELF): New substituted variable.
63895         * elf/check-textrel.c: File removed.
63896
63897 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
63898
63899         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63900         allow.
63901         * conform/data/ctype.h-data [C99-based standards] (isblank):
63902         Expect function.
63903         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
63904         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
63905         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63906         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
63907         Specify type.  Require positive value.
63908         (EILSEQ): Likewise.
63909         (ERANGE): Likewise.
63910         [ISO || POSIX] (EILSEQ): Do not expect.
63911         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
63912         Specify type.  Require positive value.
63913         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
63914         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
63915         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
63916         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
63917         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
63918         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
63919         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
63920         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
63921         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
63922         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
63923         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
63924         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
63925         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
63926         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
63927         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
63928         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
63929         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
63930         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
63931         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
63932         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
63933         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
63934         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
63935         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
63936         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
63937         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
63938         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
63939         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
63940         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
63941         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
63942         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
63943         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
63944         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
63945         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
63946         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
63947         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
63948         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
63949         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
63950         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
63951         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
63952         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
63953         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
63954         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
63955         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
63956         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
63957         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
63958         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
63959         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
63960         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
63961         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
63962         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
63963         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
63964         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
63965         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
63966         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
63967         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
63968         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
63969         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
63970         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
63971         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
63972         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
63973         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
63974         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
63975         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
63976         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
63977         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
63978         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
63979         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
63980         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
63981         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
63982         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
63983         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
63984         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
63985         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
63986         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
63987         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
63988         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
63989         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
63990         Require >= 2.
63991         (FLT_ROUNDS): Expect as macro, not constant.
63992         (FLT_MANT_DIG): Use macro-int-constant.
63993         (DBL_MANT_DIG): Likewise.
63994         (LDBL_MANT_DIG): Likewise.
63995         (FLT_DIG): Likewise.
63996         (DBL_DIG): Likewise.
63997         (LDBL_DIG): Likewise.
63998         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
63999         (DBL_MIN_EXP): Likewise.
64000         (LDBL_MIN_EXP): Likewise.
64001         (FLT_MAX_EXP): Use macro-int-constant.
64002         (DBL_MAX_EXP): Likewise.
64003         (LDBL_MAX_EXP): Likewise.
64004         (FLT_MAX_10_EXP): Likewise.
64005         (DBL_MAX_10_EXP): Likewise.
64006         (LDBL_MAX_10_EXP): Likewise.
64007         (FLT_MAX): Use macro-constant.
64008         (DBL_MAX): Likewise.
64009         (LDBL_MAX): Likewise.
64010         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64011         (DBL_EPSILON): Likewise.
64012         (LDBL_EPSILON): Likewise.
64013         (FLT_MIN): Likewise.
64014         (DBL_MIN): Likewise.
64015         (LDBL_MIN): Likewise.
64016         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64017         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64018         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64019         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64020         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64021         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64022         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64023         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64024         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64025         [ISO11] (FLT_TRUE_MIN): Likewise.
64026         [ISO11] (LDBL_TRUE_MIN): Likewise.
64027         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64028         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64029         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64030         (SCHAR_MAX): Likewise.
64031         (UCHAR_MAX): Likewise.
64032         (CHAR_MIN): Likewise.
64033         (CHAR_MAX): Likewise.
64034         (MB_LEN_MAX): Use macro-int-constant.
64035         (SHRT_MIN): Use macro-int-constant.  Specify type.
64036         (SHRT_MAX): Likewise.
64037         (USHRT_MAX): Likewise.
64038         (INT_MAX): Likewise.
64039         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64040         bound negative.
64041         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64042         bound with "U".
64043         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64044         bound with "L".
64045         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64046         bound negative.  Suffix upper bound with "L".
64047         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64048         bound with "UL".
64049         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64050         Specify type.
64051         [C99-based standards] (LLONG_MAX): Likewise.
64052         [C99-based standards] (ULLONG_MAX): Likewise.
64053         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64054         == 0.
64055         [ISO11] (max_align_t): Require type.
64056         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64057
64058         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64059         from $CFLAGS, without defining away __attribute__ calls.
64060         (checknamespace): Use $CFLAGS_namespace.
64061
64062         * conform/conformtest.pl (@keywords): Only include C99 keywords
64063         for standards based on C99 or C11.
64064
64065         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64066         Disable tests.
64067         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64068         UNIX98]: Likewise.
64069
64070         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64071         usability of symbols in #if.
64072
64073         * conform/conformtest.pl: If macro or constant types start
64074         "promoted:", expect the symbol to be of the following type
64075         promoted by the integer promotions.
64076
64077         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64078         in one place.  Also handle "macro-constant".
64079
64080         * conform/conformtest.pl: Only accept expected macro values with
64081         "==".  Parse all "macro" lines in one place.
64082         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64083
64084         * conform/conformtest.pl: Handle braced types on "constant" lines
64085         instead of handling "typed-constant".
64086         * conform/data/signal.h-data: Use "constant" instead of
64087         "typed-constant".
64088
64089         * conform/conformtest.pl: Handle "optional-" at start of lines in
64090         one place rather than duplicating several cases.  Handle each
64091         format of "macro" line with initial "optional-".
64092
64093         * conform/conformtest.pl: Only accept expected constant or
64094         optional-constant values with "==".  Parse all "constant" lines in
64095         one place.  Parse all "optional-constant" lines in one place.
64096         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64097         * conform/data/fmtmsg.h-data: Likewise.
64098         * conform/data/netinet/in.h-data: Likewise.
64099         * conform/data/tar.h-data: Likewise.
64100         * conform/data/limits.h-data: Use "==" form on "constant" and
64101         "optional-constant" lines.
64102
64103         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64104         Use -std=c99 for XOPEN2K.
64105         (@knownproblems): Remove.
64106         (newtoken): Don't check %isknown.
64107
64108         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64109         Do not expect macro.
64110         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64111         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64112         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64113         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64114         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64115         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64116         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64117         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64118         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64119         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64120         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64121         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64122         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64123         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64124         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64125         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64126         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64127         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64128         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64129         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64130         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64131         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64132         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64133         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64134         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64135         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64136         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64137         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64138         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64139         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64140         [XPG3] (acosh): Likewise.
64141         [XPG3] (asinh): Likewise.
64142         [XPG3] (atanh): Likewise.
64143         [XPG3] (cbrt): Likewise.
64144         [XPG3] (expm1): Likewise.
64145         [XPG3] (ilogb): Likewise.
64146         [XPG3] (log1p): Likewise.
64147         [XPG3] (logb): Likewise.
64148         [XPG3] (nextafter): Likewise.
64149         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64150         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64151         [XPG3] (remainder): Likewise.
64152         [XPG3] (rint): Likewise.
64153         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64154         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64155         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64156         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64157         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64158         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64159         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64160         [UNIX98 || XOPEN2K] (scalb): Expect.
64161         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64162         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64163         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64164         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64165         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64166         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64167         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64168         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64169         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64170         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64171         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64172         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64173         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64174         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64175         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64176         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64177         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64178         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64179         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64180         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64181         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64182         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64183         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64184         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64185         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64186         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64187         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64188         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64189         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64190         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64191         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64192         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64193         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64194         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64195         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64196         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64197         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64198         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64199         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64200         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64201         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64202         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64203         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64204         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64205         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64206         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64207         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64208         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64209         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64210         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64211         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64212         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64213         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64214         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64215         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64216         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64217         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64218         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64219         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64220         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64221         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64222         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64223         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64224         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64225         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64226         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64227         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64228         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64229         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64230         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64231         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64232         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64233         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64234         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64235         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64236         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64237         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64238         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64239         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64240         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64241         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64242         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64243         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64244         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64245         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64246         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64247         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64248         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64249         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64250         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64251         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64252         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64253         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64254         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64255         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64256         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64257         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64258         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64259         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64260         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64261         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64262         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64263         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64264         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64265         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64266         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64267         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64268         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64269         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64270         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64271         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64272         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64273         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64274         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64275         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64276         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64277         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64278         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64279         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64280         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64281         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64282         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64283         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64284         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64285         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64286         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64287         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64288         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64289         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64290         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64291         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64292         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64293         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64294         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64295         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64296         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64297         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64298
64299         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64300         _XOPEN_SOURCE_EXTENDED for XPG4.
64301
64302         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64303
64304         * Makeconfig (localtime): Remove variable.
64305         (inst_localtime-file): Likewise.
64306
64307 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64308
64309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64310         Update.
64311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64312         Update.
64313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64314         Update.
64315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64316         Update.
64317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64318         Update.
64319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64320         Update.
64321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64322         Update.
64323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64324         Update.
64325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64326         Update.
64327
64328 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64329
64330         [BZ #2550]
64331         [BZ #2570]
64332         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64333         comparisons to determine direction to adjust input.
64334         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64335         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64336         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64337         Likewise.
64338         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64339         Likewise.
64340         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64341         Likewise.
64342         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64343         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64344         Likewise.
64345         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64346         Likewise.
64347         * math/libm-test.inc (nexttoward_test): Add more tests.
64348
64349 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64350
64351         [BZ #14040]
64352         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64353         in version GLIBC_2.1, not GLIBC_2.0.
64354         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64355         Likewise.
64356
64357 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64358
64359         [BZ #13942]
64360         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64361         (1 - x) * (1 + x).
64362         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64363         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64364         * math/libm-test.inc (acos_test): Add more tests.
64365         (asin_test): Likewise.
64366         * sysdeps/i386/fpu/libm-test-ulps: Update.
64367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64368
64369         [BZ #14034]
64370         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64371         of square root.
64372         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64373         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64374         * math/libm-test.inc (acos_test_tonearest): New function.
64375         (acos_test_towardzero): Likewise.
64376         (acos_test_downward): Likewise.
64377         (acos_test_upward): Likewise.
64378         (asin_test_tonearest): Likewise.
64379         (asin_test_towardzero): Likewise.
64380         (asin_test_downward): Likewise.
64381         (asin_test_upward): Likewise.
64382         (main): Call the new functions.
64383         * sysdeps/i386/fpu/libm-test-ulps: Update.
64384         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64385
64386         [BZ #13884]
64387         [BZ #13924]
64388         * math/e_exp10.c: Include <float.h>.
64389         (__ieee754_exp10): Handle underflow here rather than multiplying
64390         large negative argument by M_LN10.
64391         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64392         of __ieee754_expf.
64393         * math/e_exp10l.c: Include <float.h>.
64394         (__ieee754_exp10l): Handle underflow here rather than multiplying
64395         large negative argument by M_LN10l.
64396         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64397         spurious overflow exception on underflow.
64398
64399 2012-04-29  Marek Polacek  <polacek@redhat.com>
64400
64401         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64402         (__fortify_function): New macro.
64403         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64404         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64405         __extern_always_inline.
64406         * libio/bits/stdio2.h: Likewise.
64407         * libio/bits/stdio.h: Likewise.
64408         * string/string.h: Likewise.
64409         * string/bits/string3.h: Likewise.
64410         * include/stdio.h: Likewise.
64411         * stdlib/bits/stdlib.h: Likewise.
64412         * stdlib/stdlib.h: Likewise.
64413         * rt/bits/mqueue2.h: Likewise.
64414         * rt/mqueue.h: Likewise.
64415         * posix/bits/unistd.h: Likewise.
64416         * posix/unistd.h: Likewise.
64417         * io/bits/poll2.h: Likewise.
64418         * io/bits/fcntl2.h: Likewise.
64419         * io/fcntl.h: Likewise.
64420         * io/sys/poll.h: Likewise.
64421         * misc/bits/syslog.h: Likewise.
64422         * misc/bits/syslog-ldbl.h: Likewise.
64423         * misc/sys/syslog.h: Likewise.
64424         * socket/bits/socket2.h: Likewise.
64425         * socket/sys/socket.h: Likewise.
64426         * debug/tst-chk1.c: Likewise.
64427         * wcsmbs/bits/wchar2.h: Likewise.
64428         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64429         * wcsmbs/wchar.h: Likewise.
64430
64431 2012-04-29  Andreas Jaeger  <aj@suse.de>
64432
64433         * Makerules (tests): Remove enable-check-abi protection.
64434         (check-abi-warn): Remove.
64435         (check-abi-%): Remove check-abi-warn usage.
64436
64437         * configure.in: Remove check-abi configure option.
64438         * configure: Regenerated.
64439         * config.make.in (enable-check-abi): Remove.
64440
64441 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64442
64443         [BZ #14033]
64444         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64445         double functions to double *_finite functions.
64446
64447         [BZ #13941]
64448         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64449         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64450         LDBL_MIN_EXP.
64451         * stdio-common/Makefile (tests): Add tst-sprintf3.
64452         * stdio-common/tst-sprintf3.c: New file.
64453
64454         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64455         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64456
64457 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64458
64459         * conform/conformtest.pl: Remove duplicate typed-constant
64460         handling.
64461
64462 2012-04-28  David S. Miller  <davem@davemloft.net>
64463
64464         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64465         (check-abi-%): Remove AWK script prerequisite and explicit
64466         abilist directory.
64467         (check-abi): Rewrite to just diff the symlist with the abilist.
64468         (config-tls, config-abi-config): Delete, no longer used.
64469         (update-abi-%): Remove AWK script and explicit abilist directory.
64470         (update-abi): Rewrite to simply compare and conditionally copy the
64471         symlist and the sysdep abilist file.  Remove update-abi-config
64472         checks.
64473         * abilist/ld.abilist: Remove.
64474         * abilist/libBrokenLocale.abilist: Remove.
64475         * abilist/libanl.abilist: Remove.
64476         * abilist/libcrypt.abilist: Remove.
64477         * abilist/libdl.abilist: Remove.
64478         * abilist/librt.abilist: Remove.
64479         * abilist/libthread_db.abilist: Remove.
64480         * abilist/libutil.abilist: Remove.
64481         * scripts/extract-abilist.awk: Remove.
64482         * scripts/merge-abilist.awk: Remove.
64483         * sysdeps/generic/libcidn.abilist: New file.
64484         * sysdeps/generic/libnss_compat.abilist: New file.
64485         * sysdeps/generic/libnss_db.abilist: New file.
64486         * sysdeps/generic/libnss_dns.abilist: New file.
64487         * sysdeps/generic/libnss_files.abilist: New file.
64488         * sysdeps/generic/libnss_hesiod.abilist: New file.
64489         * sysdeps/generic/libnss_nis.abilist: New file.
64490         * sysdeps/generic/libnss_nisplus.abilist: New file.
64491         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64492         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64493         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64494         file.
64495         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64496         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64497         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64498         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64499         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64500         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64501         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64502         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64503         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64504         file.
64505         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64506         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64507         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64508         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64509         file.
64510         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64511         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64512         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64513         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64514         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64515         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64516         file.
64517         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64518         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64519         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64520         file.
64521         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64522         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64523         New file.
64524         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64525         New file.
64526         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64527         New file.
64528         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64529         New file.
64530         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64531         New file.
64532         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64533         New file.
64534         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64535         New file.
64536         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64537         New file.
64538         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64539         New file.
64540         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64541         New file.
64542         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64543         New file.
64544         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64545         New file.
64546         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64547         New file.
64548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64549         file.
64550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64551         New file.
64552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64553         New file.
64554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64555         file.
64556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64557         New file.
64558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64559         New file.
64560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64561         file.
64562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64563         New file.
64564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64565         New file.
64566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64567         New file.
64568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64569         New file.
64570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64571         New file.
64572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64573         New file.
64574         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64575         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64576         file.
64577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64578         New file.
64579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64580         file.
64581         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64582         file.
64583         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64584         file.
64585         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64586         file.
64587         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64588         file.
64589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64590         New file.
64591         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64592         file.
64593         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64594         file.
64595         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64596         New file.
64597         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64598         file.
64599         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64600         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64601         file.
64602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64603         New file.
64604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64605         file.
64606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64607         file.
64608         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64609         file.
64610         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64611         file.
64612         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64613         file.
64614         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64615         New file.
64616         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64617         file.
64618         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64619         file.
64620         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64621         New file.
64622         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64623         file.
64624         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64625         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64626         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64627         file.
64628         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64629         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64630         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64631         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64632         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64633         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64634         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64635         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64636         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64637         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64638         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64639         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64640         file.
64641         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64642         New file.
64643         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64644         file.
64645         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64646         file.
64647         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64648         file.
64649         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64650         file.
64651         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64652         file.
64653         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64654         New file.
64655         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64656         New file.
64657         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64658         file.
64659         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64660         New file.
64661         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64662         file.
64663         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64664         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64665         file.
64666         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64667         New file.
64668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64669         file.
64670         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64671         file.
64672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64673         file.
64674         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64675         file.
64676         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64677         file.
64678         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64679         New file.
64680         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64681         New file.
64682         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64683         file.
64684         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64685         New file.
64686         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64687         file.
64688
64689 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64690
64691         * conform/conformtest.pl: Fix typo in handling typed-constant from
64692         allow-header.
64693
64694 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64695
64696         * README: Cut down references to pre-2.6 Linux kernels and
64697         Linuxthreads.  Update lists of configurations in libc and ports
64698         and sort alphabetically.  Say "or newer" with Linux kernel version
64699         requirements.
64700
64701         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64702
64703 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64704
64705         [BZ #887]
64706         * math/libm-test.inc (logb_test_downward): New test to expose
64707         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64708         rounding mode.
64709
64710 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64711
64712         [BZ #14027]
64713         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64714         to be done.
64715         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64716         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64717
64718 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64719
64720         * sysdeps/unix/i386/brk.S: Remove file.
64721         * sysdeps/unix/i386/dl-brk.S: Likewise.
64722         * sysdeps/unix/i386/pipe.S: Likewise.
64723         * sysdeps/unix/i386/sigreturn.S: Likewise.
64724         * sysdeps/unix/i386/syscall.S: Likewise.
64725         * sysdeps/unix/i386/vfork.S: Likewise.
64726         * sysdeps/unix/i386/wait.S: Likewise.
64727
64728         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64729         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64730
64731         * configure.in (arm*-none*): Do not allow without
64732         --enable-hacker-mode.
64733         (netbsd*): Remove case setting base_os.
64734         (386bsd*): Likewise.
64735         (freebsd*): Likewise.
64736         (bsdi*): Likewise.
64737         (osf*): Likewise.
64738         (sunos*): Likewise.
64739         (ultrix*): Likewise.
64740         (newsos*): Likewise.
64741         (dynix*): Likewise.
64742         (*bsd*): Likewise.
64743         (sysv*): Likewise.
64744         (isc*): Likewise.
64745         (esix*): Likewise.
64746         (sco*): Likewise.
64747         (minix*): Likewise.
64748         (irix4*): Likewise.
64749         (irix6*): Likewise.
64750         (solaris[2-9]*): Likewise.
64751         (none): Likewise.
64752         * configure: Regenerated.
64753
64754 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64755
64756         [BZ #11521]
64757         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64758         overflow or cancellation in calculating denominator.
64759         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64760         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64761         down expression to avoid unexpected rounding in newer GCCs.
64762         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64763
64764 2012-04-26  David S. Miller  <davem@davemloft.net>
64765
64766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64767         long-double compat symbols.
64768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64773         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64774         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
64776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
64777         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
64778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
64779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
64780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
64781
64782 2012-04-25  David S. Miller  <davem@davemloft.net>
64783
64784         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
64785         HWCAP_* values only after the memory barriers have been defined.
64786         (atomic_full_barrier): Define.
64787         (atomic_read_barrier): Define.
64788         (atomic_write_barrier): Define.
64789
64790 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64791
64792         * shlib-versions: Add libgcc_s version information.
64793         * sysdeps/generic/libgcc_s.h: Remove.
64794         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
64795         libgcc_s.h.
64796         * sysdeps/gnu/unwind-resume.c: Likewise.
64797         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
64798
64799 2012-04-25  David S. Miller  <davem@davemloft.net>
64800
64801         * sysdeps/unix/sparc/brk.S: Delete.
64802         * sysdeps/unix/sparc/dl-brk.S: Delete.
64803         * sysdeps/unix/sparc/pipe.S: Delete.
64804         * sysdeps/unix/sparc/sysdep.S: Delete.
64805         * sysdeps/unix/sparc/sysdep.h: Delete.
64806         * sysdeps/unix/sparc/vfork.S: Delete.
64807         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
64808         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
64809         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
64810         (ret_ERRVAL, r0, r1, MOVE): Define.
64811         (JUMPTARGET): Remove.
64812         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
64813         sysdeps/unix/sparc/sysdep.h
64814         (ENTRY, END): Remove.
64815         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
64816
64817 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
64818
64819         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
64820         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
64821         -DIS_IN_build.
64822
64823         * timezone/README: Update upstream location and email address for
64824         tzcode and tzdata.
64825         * timezone/zdump.c: Update from tzcode 2012b.
64826         * timezone/zic.c: Likewise.
64827
64828         * configure.in (libc_cv_as_needed): Remove test.
64829         * configure: Regenerated.
64830         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
64831         conditional definition.
64832         [$(have-as-needed) != yes] (no-as-needed): Likewise.
64833         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
64834         * config.make.in (have-as-needed): Remove variable.
64835
64836 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64837             Paul Pluzhnikov  <ppluzhnikov@google.com>
64838
64839         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
64840         strings correctly.
64841
64842 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
64843
64844         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
64845         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
64846         * sysdeps/sh/strlen.S: Likewise.
64847
64848 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64849
64850         * sysdeps/unix/fork.S: Remove file.
64851         * sysdeps/unix/i386/fork.S: Likewise.
64852         * sysdeps/unix/sparc/fork.S: Likewise.
64853
64854         * sysdeps/unix/system.c: Remove file.
64855         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
64856
64857         * sysdeps/unix/getegid.S: Remove file.
64858         * sysdeps/unix/geteuid.S: Likewise.
64859
64860 2012-04-24  Roland McGrath  <roland@hack.frob.com>
64861
64862         * scripts/check-localplt.awk: New file.
64863         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
64864         of diff.
64865         * scripts/data/localplt-generic.data: Add a comment.
64866
64867         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
64868         NODE when __dir_mkfile failed.
64869         * sysdeps/mach/hurd/symlinkat.c: Likewise.
64870         Reported by Ludovic Courtès <ludo@gnu.org>.
64871
64872 2012-04-24  Andreas Jaeger  <aj@suse.de>
64873
64874         * Makerules (common-clean): Also remove gen-as-const-headers
64875         files.
64876
64877 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64878
64879         * Makerules (native-compile): Do not change working directory for
64880         build.  Use $(OUTPUT_OPTION) in command.
64881         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
64882
64883 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64884
64885         [BZ #13886]
64886         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
64887         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
64888         * math/libm-test.inc (floor_test): Add more tests.
64889         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
64890
64891 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64892
64893         * sysdeps/unix/getdents.c: Remove file.
64894         * sysdeps/unix/sysv/getdents.c: Likewise.
64895         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
64896
64897         * sysdeps/unix/syscalls.list (madvise): Add syscall from
64898         sysdeps/unix/mman/syscalls.list.
64899         (mmap): Likewise.
64900         (mprotect): Likewise.
64901         (msync): Likewise.
64902         (munmap): Likewise.
64903         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
64904         * sysdeps/unix/mman/syscalls.list: Remove.
64905         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
64906
64907         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
64908         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
64909         * configure: Regenerated.
64910         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
64911         $(libgcc_s_suffix).
64912         * config.make.in (libgcc_s_suffix): Remove variable.
64913
64914 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
64915
64916         * sysdeps/unix/sysv/gethostname.c: Move to ...
64917         * sysdeps/posix/gethostname.c: ... here.
64918
64919         * sysdeps/unix/execve.S: Remove file.
64920
64921         * sysdeps/unix/_exit.S: Remove file.
64922
64923 2012-04-23  Andreas Jaeger  <aj@suse.de>
64924
64925         [BZ #13739]
64926         * manual/Makefile: Remove make dist support, there's no
64927         need for a stand-alone documentation tar ball.
64928         (TEXI2DVI): Define always, it's not in Makeconfig.
64929         (dist): Removed.
64930         (tar-it): Removed.
64931         (edition): Removed.
64932         (glibc-doc-$(edition).tar): Removed
64933         (%.Z): Removed.
64934         (%.gz): Removed.
64935         (%.uu): Removed.
64936         (ETAGS): Remove, it's in Makeconfig.
64937         (move-if-change): Remove, it's in Makeconfig.
64938
64939 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
64940
64941         [BZ #13970]
64942         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
64943         (strtod, strtof, strtold, strtol, strtoul, strtoq)
64944         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
64945         (strtod_l, strtof_l, strtold_l): Remove __wur.
64946         It is not necessarily an error to ignore strtol's return value.
64947         One can reliably look at the stored endptr to decide whether
64948         the number had valid syntax.
64949
64950 2012-04-21  Andreas Jaeger  <aj@suse.de>
64951
64952         [BZ #13739]
64953         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
64954
64955 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
64956
64957         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
64958         * sysdeps/unix/sysv/Versions: Remove file.
64959
64960 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
64961
64962         [BZ #13927]
64963         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64964
64965 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
64966
64967         [BZ #7064]
64968         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
64969         version from __vm86.
64970
64971 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
64972
64973         * sysdeps/unix/common/lxstat.c: Remove file.
64974         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
64975
64976         * sysdeps/unix/sysv/Makefile: Remove file.
64977
64978         * sysdeps/unix/sysv/direct.h: Remove file.
64979
64980         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
64981         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
64982         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
64983         * sysdeps/unix/sysv/bits/signum.h: Likewise.
64984         * sysdeps/unix/sysv/bits/stat.h: Likewise.
64985         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
64986         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
64987
64988         * sysdeps/unix/sysv/setrlimit.c: Remove file.
64989
64990         * sysdeps/unix/xmknod.c: Remove file.
64991         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
64992
64993         * sysdeps/unix/sysv/settimeofday.c: Remove file.
64994
64995         * sysdeps/unix/sysv/i386/time.S: Remove file.
64996
64997         * sysdeps/unix/fxstat.c: Remove file.
64998         * sysdeps/unix/xstat.c: Likewise.
64999         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65000
65001         * sysdeps/unix/sysv/sigaction.c: Remove file.
65002
65003         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65004         (sysdep_headers): Remove variable.
65005         [termio.h not in sysdep_headers] (generated): Likewise.
65006         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65007         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65008         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65009         * sysdeps/unix/sysv/tcflow.c: Likewise.
65010         * sysdeps/unix/sysv/tcflush.c: Likewise.
65011         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65012         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65013         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65014         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65015         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65016
65017         * sysdeps/unix/siglist.c: Remove file.
65018
65019         * sysdeps/unix/getppid.S: Remove file.
65020
65021         * sysdeps/unix/mkdir.c: Remove file.
65022         * sysdeps/unix/rmdir.c: Likewise.
65023
65024 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65025
65026         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65027         ERR_MAX value.
65028         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65029         errlist-compat value.
65030
65031 2012-04-18  David S. Miller  <davem@davemloft.net>
65032
65033         * sysdeps/generic/memcopy.h (reg_char): Delete.
65034         * debug/strcat_chk.c: Use char, not reg_char.
65035         * debug/strcpy_chk.c: Likewise.
65036         * debug/strncat_chk.c: Likewise.
65037         * debug/strncpy_chk.c: Likewise.
65038         * string/memchr.c: Likewise.
65039         * string/memrchr.c: Likewise.
65040         * string/rawmemchr.c: Likewise.
65041         * string/strcat.c: Likewise.
65042         * string/strchr.c: Likewise.
65043         * string/strchrnul.c: Likewise.
65044         * string/strcmp.c: Likewise.
65045         * string/strcpy.c: Likewise.
65046         * string/strncat.c: Likewise.
65047         * string/strncmp.c: Likewise.
65048         * string/strncpy.c: Likewise.
65049
65050 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65051
65052         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65053         __builtin_memcopy is called when src and dest ranges are known to not
65054         overlap.
65055
65056 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65057
65058         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65059         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65060         fwd_align_merge macro call.
65061         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65062         bwd_align_merge macro call.
65063         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65064
65065 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65066
65067         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65068         bwd_align_merge macros.
65069         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65070         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65071         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65072
65073 2012-04-18  David S. Miller  <davem@davemloft.net>
65074
65075         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65076
65077 2012-04-18  Andreas Jaeger  <aj@suse.de>
65078
65079         [BZ# 6794]
65080         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65081         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65082         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65083
65084         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65085         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65086         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65087
65088         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65089         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65090         Adjust for changed ldbl-128 files.
65091
65092         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65093         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65094         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65095
65096 2012-04-17  David S. Miller  <davem@davemloft.net>
65097
65098         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65099
65100 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65101
65102         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65103         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65104         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65105         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65106         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65107         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65108
65109 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65110
65111         [BZ #6794]
65112         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65113         * math/libm-test.inc: Add ilogb errno and exception tests.
65114         * math/w_ilogb.c: New file: ilogb wrapper.
65115         * math/w_ilogbf.c: New file: ilogbf wrapper.
65116         * math/w_ilogbl.c: New file: ilogbl wrapper.
65117         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65118         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65119         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65120         exception being thrown with 0.0 as argument.
65121         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65122         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65123         exception being thrown with 0.0 as argument.
65124         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65125         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65126         exception being thrown with 0.0 as argument.
65127         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65128         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65129         exception being thrown with 0.0 as argument.
65130         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65131         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65132         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65133         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65134         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65135         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65136         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65137         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65138         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65139
65140 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65141
65142         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65143         with altivec.
65144
65145 2012-04-16  Marek Polacek  <polacek@redhat.com>
65146
65147         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65148
65149 2012-04-16  Marek Polacek  <polacek@redhat.com>
65150
65151         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65152         operands of fdivp instruction.
65153
65154 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65155
65156         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65157         * elf/tst-auditmod3b.c: Likewise.
65158         * elf/tst-auditmod4b.c: Likewise.
65159         * elf/tst-auditmod5b.c: Likewise.
65160         * elf/tst-auditmod6b.c: Likewise.
65161         * elf/tst-auditmod6c.c: Likewise.
65162         * elf/tst-auditmod7b.c: Likewise.
65163         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65164         * sysdeps/x86_64/preconfigure.in: Likewise.
65165         * sysdeps/x86_64/preconfigure: Regenerated.
65166
65167 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65168
65169         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65170         __ILP32__.
65171
65172 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65173
65174         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65175         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65176
65177 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65178
65179         [BZ #13973]
65180         * locale/iso-639.def: Fix gl language name. Spotted by
65181         Yaron Shahrabani.
65182
65183 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65184
65185         [BZ #2074]
65186         * libio/libio.h (__io_write_fn): Update comment.
65187
65188 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65189
65190         [BZ #2074]
65191         * stdio.texi (Hook Functions): The user provided writer function
65192         is not allowed to return -1.
65193
65194 2012-04-11  David S. Miller  <davem@davemloft.net>
65195
65196         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65197
65198 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65199
65200         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65201         Add a leading slash to rtkaio.
65202
65203 2012-04-11  Jim Meyering  <meyering@redhat.com>
65204
65205         [BZ #11959]
65206         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65207         It is not necessarily an error to ignore fwrite's return
65208         value.  One can reliably use ferror to test for errors after
65209         the fact.
65210
65211 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65212
65213         * bits/types.h (__snseconds_t): New type.
65214         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65215
65216         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65217         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65218         (__SNSECONDS_T_TYPE): Likewise.
65219         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65220         (__SNSECONDS_T_TYPE): Likewise.
65221         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65222         (__SNSECONDS_T_TYPE): Likewise.
65223
65224 2012-04-10  Andreas Jaeger  <aj@suse.de>
65225
65226         [BZ #2636]
65227         * manual/time.texi (Processor Time): Return type of times is
65228         elapsed real time since an arbitrary point in the past.
65229         (CPU Time): Move CLK_TCK from here...
65230         (Processor Time): ...to here.  Correct description.
65231         * manual/conf.texi (Constants for Sysconf): Correct description of
65232         _SC_CLK_TCK.
65233
65234 2012-04-10  David S. Miller  <davem@davemloft.net>
65235
65236         [BZ #13967]
65237         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65238         where the is a gap between DT_REL(A) and DT_JMPREL.
65239
65240 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65241
65242         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65243         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65244         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65245
65246 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65247
65248         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65249         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65250         (dl_main): Handle --inhibit-cache.
65251         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65252         _dl_inhibit_cache.
65253         * elf/dl-load.c (_dl_map_object): Use it.
65254         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65255
65256 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65257
65258         [BZ #13872]
65259         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65260         (__ieee754_powl): Saturate large exponents rather than testing for
65261         overflow of y*log2(x).
65262         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65263         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65264         exceptions.
65265
65266         [BZ #11521]
65267         * math/s_ctan.c: Include <float.h>.
65268         (__ctan): Avoid internal overflow or cancellation in calculating
65269         denominator.
65270         * math/s_ctanf.c: Likewise.
65271         * math/s_ctanl.c: Likewise.
65272         * math/s_ctanh.c: Likewise.
65273         * math/s_ctanhf.c: Likewise.
65274         * math/s_ctanhl.c: Likewise.
65275         * math/libm-test.inc (ctan_test): Add more tests.
65276         (ctanh_test): Likewise.
65277         * sysdeps/i386/fpu/libm-test-ulps: Update.
65278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65279
65280 2012-04-09  Andreas Jaeger  <aj@suse.de>
65281
65282         [BZ #6894]
65283         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65284         is an optional BSD extension.
65285
65286         [BZ #10254]
65287         * manual/stdio.texi (Opening Streams): Document additional fopen
65288         parameters.
65289
65290 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65291
65292         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65293         %eax without telling the compiler.
65294
65295 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65296
65297         [BZ # 13963]
65298         * manual/install.texi: Use sourceware.org.
65299
65300 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65301
65302         [BZ #13873]
65303         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65304         (__ieee754_pow): Generate overflow and underflow using huge*huge
65305         and tiny*tiny rather than just returning constant infinity or zero
65306         for large exponents.
65307         * math/libm-test.inc (pow_test): Require overflow exceptions for
65308         applicable cases of large exponents.
65309
65310         [BZ #706]
65311         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65312         (__ieee754_pow): Use iterative multiplication algorithm only for
65313         integer exponents with absolute value below 1024.  Check for odd
65314         integer exponents when using algorithm for real exponents.
65315         * math/libm-test.inc (pow_test): Add more tests.
65316         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65317
65318 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65319
65320         [BZ #13705]
65321         * math/libm-test.inc (exp_test): Do not allow overflow exception
65322         on underflow test.
65323
65324 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65325
65326         [BZ #13705]
65327         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65328         instead of __kernel_standard_f.
65329
65330 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65331
65332         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65333         * sysdeps/x86_64/memset_chk.S: Likewise.
65334
65335 2012-04-08  Andreas Jaeger  <aj@suse.de>
65336
65337         [BZ #10153]
65338         * manual/startup.texi (Environment Access): Describe return value
65339         for putenv and setenv.
65340
65341         [BZ #6895]
65342         * manual/filesys.texi (Directory Entries): Add description for
65343         DT_LNK.
65344
65345         [BZ #6890]
65346         * manual/filesys.texi (Directory Entries): Clarify that it's file
65347         system not operating system in the description of DT_UNKNOWN.
65348
65349         [BZ #6578]
65350         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65351
65352 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65353
65354         [BZ #6649]
65355         * manual/llio.texi (Opening and Closing Files): Add cross
65356         reference to explain mode argument.
65357
65358 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65359
65360         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65361         * sysdeps/x86_64/memset_chk.S: Likewise.
65362
65363 2012-04-07  David S. Miller  <davem@davemloft.net>
65364
65365         * elf/elf.h (R_SPARC_WDISP10): Define.
65366         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65367         R_SPARC_SIZE32.
65368         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65369         R_SPARC_SIZE64 and R_SPARC_H34.
65370
65371 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65372
65373         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65374         conditions and remove no longer applicable assertion.
65375
65376 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65377
65378         * bits/byteswap.h: Include <features.h>.
65379         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65380         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65381
65382 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65383
65384         * bits/byteswap.h (__bswap_16): Removed.
65385         Include <bits/byteswap-16.h> to get __bswap_16.
65386         * sysdeps/i386/bits/byteswap.h: Likewise.
65387         * sysdeps/s390/bits/byteswap.h: Likewise.
65388         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65389         * bits/byteswap-16.h: New file.
65390         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65391         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65392         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65393         * string/Makefile (headers): Add bits/byteswap-16.h.
65394
65395 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65396
65397         [BZ #13895]
65398         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65399         extra indirection.
65400         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65401         * nss/tst-nss-static.c: New.
65402
65403 2012-04-06  Robert Millan  <rmh@gnu.org>
65404
65405         [BZ #6486]
65406         * manual/llio.texi (File Position Primitive): lseek
65407         refers to WHENCE when it really means OFFSET.
65408
65409 2012-04-06  Andreas Jaeger  <aj@suse.de>
65410
65411         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65412         strncmp declarations.
65413
65414         * abilist/libc.abilist: Add __poll and __ppoll.
65415
65416 2012-04-05  David S. Miller  <davem@davemloft.net>
65417
65418         * scripts/check-local-headers.sh: Accept a host triplet in the
65419         path matched by the exclude regexp.
65420
65421         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65422         definition.
65423         * sysdeps/powerpc/powerpc32/dl-machine.h
65424         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65425         * sysdeps/s390/s390-32/dl-machine.h
65426         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65427         * sysdeps/sparc/sparc32/dl-machine.h
65428         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65429         * sysdeps/sparc/sparc64/dl-machine.h
65430         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65431
65432         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65433         lazy binding.
65434         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65435         undefined symbol errors.
65436
65437         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65438         DT_NEEDED entries.
65439
65440 2012-04-05  Michael Matz  <matz@suse.de>
65441
65442         [BZ #13592]
65443         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65444
65445 2012-04-05  Andreas Jaeger  <aj@suse.de>
65446
65447         [BZ #13908]
65448         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65449         comment.
65450
65451 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65452
65453         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65454         which ROUND is no valid rounding mode.
65455
65456 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65457
65458         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65459         read again.
65460         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65461
65462 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65463
65464         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65465         an exception using FPU order intentionally.
65466
65467 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65468
65469         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65470         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65471         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65472         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65473
65474 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65475
65476         [BZ #12340]
65477         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65478         EINVAL when BUFLEN is too smal.
65479
65480 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65481
65482         [BZ #13553]
65483         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65484         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65485
65486 2012-04-03  Andreas Jaeger  <aj@suse.de>
65487
65488         [BZ #13938]
65489         * manual/setjmp.texi (System V contexts): Fix sentence.
65490
65491         [BZ #13926]
65492         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65493         New macro for this case.
65494         [!__GNUC__] (__bswap_64): New inline function for this case.
65495         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65496         * bits/byteswap.h: Likewise.
65497         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65498         ull, guard with __GLIBC_HAVE_LONG_LONG.
65499
65500         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65501         __GLIBC_HAVE_LONG_LONG.
65502
65503         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65504         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65505
65506 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65507
65508         [BZ #13691]
65509         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65510         inptr and inend, rather than using last_ch.
65511
65512 2012-04-02  David S. Miller  <davem@davemloft.net>
65513
65514         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65515         * stdio-common/printf-parse.h (read_int): Change return type to
65516         'int', return -1 on INT_MAX overflow.
65517         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65518         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65519         overflows INT_MAX.  Check for overflow of in-format-string precision
65520         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65521         SIZE_MAX not INT_MAX for integer overflow test.
65522         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65523         skip the construct in the format string but do not record anything.
65524         * stdio-common/bug22.c: Adjust to test both width/prevision
65525         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65526         explicitly for proper errno values.
65527
65528 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65529
65530         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65531         CHAR_MAX.
65532         * string/test-strcmp.c [! WIDE]: Likewise.
65533         * time/tst-mktime2.c: Likewise for INT_MAX.
65534         * string/test-string.h: #include <sys/param.h> for MIN.
65535
65536         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65537         * sysdeps/i386/init-first.c (init): Likewise.
65538         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65539         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65540         * sysdeps/sh/init-first.c (init): Likewise.
65541
65542 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65543
65544         * po/ru.po: Update from translation team.
65545         * po/vi.po: Likewise.
65546
65547 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65548
65549         * resolv/nss_dns/dns-host.c: Merge copyright years.
65550
65551 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65552
65553         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65554         Optimize memcpy with prefetch if
65555         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65556         src, dst pointers have unequal 16 byte alignments.
65557
65558 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65559
65560         [BZ #13928]
65561         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65562         from a CNAME entry and return the minimum ttl for the query.
65563         (gaih_getanswer_slice): Likewise.
65564
65565 2012-03-30  Jeff Law  <law@redhat.com>
65566
65567         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65568         due to long keys.
65569         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65570         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65571
65572         * resolv/nss_dns/dns-host.c: Update copyright year.
65573
65574 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65575
65576         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65577         requests to save a system call.  Fix check that all bytes are sent.
65578
65579         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65580         comments for sendmmsg.
65581
65582 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65583
65584         [BZ #13691]
65585         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65586         with only 1 character between 0x0041 and 0x01b0.
65587         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65588         * wcsmbs/tst-mbsnrtowcs.c: New file.
65589
65590 2012-03-29  David S. Miller  <davem@davemloft.net>
65591
65592         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65593         small copies by hand.
65594
65595 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65596
65597         [BZ #13761]
65598         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65599         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65600         group memberships.
65601
65602 2012-03-28  David S. Miller  <davem@davemloft.net>
65603
65604         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65605         that branches into memcpy.
65606         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65607         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65608         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65609         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65610         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65611         bits.
65612         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65613         implementation too.
65614         * sysdeps/sparc/mempcpy.S: New file.
65615
65616         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65617         the IFUNC routine in the libc case.
65618         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65619
65620         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65621         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65622         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65623         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65624         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65625         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65626         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65627         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65628
65629         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65630         loop to 256 bytes instead of 64 bytes and fix test signedness.
65631
65632         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65633         * sysdeps/sparc/sparc32/Makefile: rather than here...
65634         * sysdeps/sparc/sparc64/Makefile: and here.
65635
65636 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65637
65638         * malloc/mallocbug.c: Avoid warnings about unused variables.
65639
65640 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65641
65642         [BZ #13760]
65643         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65644         in the right place. Discard and retry query if response is
65645         larger than input buffer size.
65646
65647 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65648
65649         [BZ #369]
65650         [BZ #2678]
65651         [BZ #3866]
65652         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65653         x for large integer exponent.
65654         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65655         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65656         sign of result as needed afterwards.
65657         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65658         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65659         result for underflowing pow the same as for overflow.
65660         (__kernel_standard_l): Handle powl overflow and underflow here
65661         rather than calling __kernel_standard.
65662         * math/libm-test.inc (pow_test): Add more tests.
65663
65664         [BZ #3868]
65665         [BZ #13879]
65666         [BZ #13910]
65667         [BZ #13911]
65668         [BZ #13912]
65669         [BZ #13913]
65670         [BZ #13915]
65671         [BZ #13916]
65672         [BZ #13917]
65673         [BZ #13918]
65674         [BZ #13919]
65675         [BZ #13920]
65676         [BZ #13921]
65677         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65678         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65679         (__kernel_standard_l): New function.
65680         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65681         __kernel_standard.
65682         * math/w_acosl.c (__acosl): Likewise.
65683         * math/w_asinl.c (__asinl): Likewise.
65684         * math/w_atan2l.c (__atan2l): Likewise.
65685         * math/w_atanhl.c (__atanhl): Likewise.
65686         * math/w_coshl.c (__coshl): Likewise.
65687         * math/w_exp10l.c (__exp10l): Likewise.
65688         * math/w_exp2l.c (__exp2l): Likewise.
65689         * math/w_fmodl.c (__fmodl): Likewise.
65690         * math/w_hypotl.c (__hypotl): Likewise.
65691         * math/w_j0l.c (__j0l, __y0l): Likewise.
65692         * math/w_j1l.c (__j1l, __y1l): Likewise.
65693         * math/w_jnl.c (__jnl, __ynl): Likewise.
65694         * math/w_lgammal.c (__lgammal): Likewise.
65695         * math/w_log10l.c (__log10l): Likewise.
65696         * math/w_log2l.c (__log2l): Likewise.
65697         * math/w_logl.c (__logl): Likewise.
65698         * math/w_powl.c (__powl): Likewise.
65699         * math/w_remainderl.c (__remainderl): Likewise.
65700         * math/w_scalbl.c (sysv_scalbl): Likewise.
65701         * math/w_sinhl.c (__sinhl): Likewise.
65702         * math/w_sqrtl.c (__sqrtl): Likewise.
65703         * math/w_tgammal.c (__tgammal): Likewise.
65704         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65705         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65706         * math/libm-test.inc (acos_test): Add more tests.
65707         (acosh_test): Likewise.
65708         (asin_test): Likewise.
65709         (atanh_test): Likewise.
65710         (exp_test): Likewise.
65711         (exp10_test): Likewise.
65712         (exp2_test): Likewise.
65713         (expm1_test): Likewise.
65714         (lgamma_test): Likewise.
65715         (log_test): Likewise.
65716         (log10_test): Likewise.
65717         (log1p_test): Likewise.
65718         (log2_test): Likewise.
65719         (pow_test): Do not allow some spurious overflow exceptions.
65720         (sqrt_test): Add more tests.
65721         (tgamma_test): Likewise.
65722         (y0_test): Likewise.
65723         (y1_test): Likewise.
65724         (yn_test): Likewise.
65725
65726 2012-03-27  Anton Blanchard  <anton@samba.org>
65727
65728         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65729         MAP_HUGETLB.
65730         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65731         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65732         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65733
65734 2012-03-27  David S. Miller  <davem@davemloft.net>
65735
65736         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65737
65738         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65739         have-as-vis3 check.
65740
65741 2012-03-27  Andreas Jaeger  <aj@suse.de>
65742
65743         * sysdeps/x86_64/elf/configure.in: Moved to ...
65744         * sysdeps/x86_64/configure.in: ... here.
65745         * sysdeps/x86_64/elf/start.S: Moved to ...
65746         * sysdeps/x86_64/start.S: ... here.
65747         * sysdeps/x86_64/elf/configure: Delete.
65748
65749         * sysdeps/x86_64/configure.in: Merge contents from
65750         sysdeps/i386/configure.in (without i686 check).
65751
65752         * sysdeps/i386/elf/Versions: Merge into ...
65753         * sysdeps/i386/Versions: ... this.
65754         * sysdeps/i386/elf/Versions: Delete file.
65755         * sysdeps/i386/elf/start.S: Moved to ...
65756         * sysdeps/i386/start.S: ...here.
65757         * sysdeps/i386/elf/configure.in: Merge into...
65758         * sysdeps/i386/configure.in: ...here.
65759         * sysdeps/i386/elf/configure.in: Delete file.
65760         * sysdeps/i386/elf/configure: Delete file.
65761
65762         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65763         * debug/backtracesyms.c: ... here.
65764         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65765         * debug/backtracesymsfd.c: ... here.
65766         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65767         * sysdeps/generic/ifunc-sel.h: ... here.
65768
65769         * sysdeps/unix/i386/start.c: Delete file.
65770         * sysdeps/unix/sparc/start.c: Delete file.
65771         * sysdeps/unix/start.c: Delete file.
65772
65773         * sysdeps/sh/elf/configure.in: Moved to ...
65774         * sysdeps/sh/configure.in: ... here.
65775         * sysdeps/sh/elf/start.S: Moved to ...
65776         * sysdeps/sh/start.S: ... here.
65777         * sysdeps/sh/elf/configure: Delete file.
65778
65779         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
65780         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
65781         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
65782         * sysdeps/powerpc/powerpc64/entry.h: ... here.
65783         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
65784         * sysdeps/powerpc/powerpc64/start.S: here.
65785         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
65786         * sysdeps/powerpc/powerpc64/Makefile: ... this.
65787         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
65788         * sysdeps/powerpc/powerpc64/configure.in: ... this.
65789         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
65790
65791         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
65792         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
65793         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
65794         * sysdeps/powerpc/powerpc32/start.S: ... here.
65795         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
65796         * sysdeps/powerpc/powerpc32/configure.in: ... this.
65797         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
65798
65799         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
65800         * sysdeps/powerpc/ifunc-sel.h: ... here.
65801         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
65802         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
65803
65804         * sysdeps/sparc/elf/configure.in: Moved to ...
65805         * sysdeps/sparc/configure.in: ... here.
65806         * sysdeps/sparc/elf/configure: Delete file.
65807         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
65808         * sysdeps/sparc/sparc32/start.S: ... here.
65809         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
65810         * sysdeps/sparc/sparc64/start.S: ... here.
65811         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
65812         * sysdeps/sparc/sparc32/Makefile: ... this.
65813         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
65814         * sysdeps/sparc/sparc64/Makefile: ... this.
65815
65816         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
65817         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
65818         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
65819         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
65820         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
65821         * sysdeps/s390/s390-32/setjmp.S: ... here.
65822         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
65823         * sysdeps/s390/s390-32/configure.in: ... here.
65824         * sysdeps/s390/s390-32/elf/configure: Delete file.
65825         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
65826         * sysdeps/s390/s390-32/start.S: ... here.
65827
65828         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
65829         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
65830         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
65831         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
65832         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
65833         * sysdeps/s390/s390-64/setjmp.S: ... here.
65834         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
65835         * sysdeps/s390/s390-64/configure.in: ... here
65836         * sysdeps/s390/s390-64/elf/configure: Delete file.
65837         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
65838         * sysdeps/s390/s390-64/start.S: ... here.
65839         * sysdeps/s390/s390-64/elf/configure: Delete.
65840
65841         * configure.in: Remove support for elf directories in sysdeps.
65842
65843         * configure: Regenerated.
65844         * sysdeps/i386/configure: Regenerated.
65845         * sysdeps/powerpc/powerpc32/configure: Regenerated.
65846         * sysdeps/powerpc/powerpc64/configure: Regenerated.
65847         * sysdeps/s390/s390-32/configure: Regenerated.
65848         * sysdeps/s390/s390-64/configure: Regenerated.
65849         * sysdeps/sh/configure: Regenerated.
65850         * sysdeps/sparc/configure: Regenerated.
65851         * sysdeps/x86_64/configure: Regenerated.
65852
65853 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
65854
65855         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65856
65857         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
65858         denormal result into account.
65859
65860 2012-03-25  Roland McGrath  <roland@hack.frob.com>
65861
65862         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
65863         Reported by Allan McRae <allan@archlinux.org>.
65864
65865 2012-03-23  Jeff Law  <law@redhat.com>
65866
65867         * nss/getnssent.c (__nss_getent): Fix typo.
65868
65869 2012-03-23  David S. Miller  <davem@davemloft.net>
65870
65871         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65872
65873 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
65874
65875         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
65876         to pad to uint64_t for each field.
65877         (dl_tls_index): Replace unsigned long with uint64_t.
65878
65879 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
65880         Paul Pluzhnikov  <ppluzhnikov@google.com>
65881
65882         [BZ #6528]
65883         * grp/Makefile (otherlibs): Don't set it.
65884         * inet/Makefile (otherlibs): Likewise.
65885         * login/Makefile (otherlibs): Likewise.
65886         * nscd/Makefile (otherlibs): Likewise.
65887         * posix/Makefile (otherlibs): Likewise.
65888         * pwd/Makefile (otherlibs): Likewise.
65889         * rt/Makefile (otherlibs): Likewise.
65890         * sunrpc/Makefile (otherlibs): Likewise.
65891         * nss/Makefile (otherlibs): Likewise.
65892         Add libnss_files to routines and static-only-routines.
65893         ($(objpfx)getent): Remove rule.
65894         * resolv/Makefile: Add libnss_dns and libresolv to routines and
65895         static-only-routines.
65896
65897 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65898
65899         [BZ #13892]
65900         * math/s_cexp.c: Include <float.h>.
65901         (__cexp): Handle exp result overflowing not necessarily
65902         overflowing both real and imaginary parts of result.
65903         * math/s_cexpf.c: Likewise.
65904         * math/s_cexpl.c: Likewise.
65905         * math/libm-test.inc (cexp_test): Add more tests.
65906         * sysdeps/i386/fpu/libm-test-ulps: Update.
65907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65908
65909 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65910
65911         * include/link.h (ELFW): New macro.
65912         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
65913         Replace ELF64_R_TYPE with ELFW(R_TYPE).
65914
65915 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65916
65917         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
65918         with uint64_t.
65919
65920 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65921
65922         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
65923         declaration.
65924         (struct La_x32_retval): Likewise.
65925
65926 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65927
65928         * sysdeps/x86_64/preconfigure.in: New file.
65929         * sysdeps/x86_64/preconfigure: New generated file.
65930
65931 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65932
65933         [BZ #13824]
65934         * math/e_exp2l.c: Include <float.h>.
65935         (__ieee754_exp2l): Handle overflow and underflow cases
65936         separately.  Only pass fractional part of argument to
65937         __ieee754_expl.
65938         * math/libm-test.inc (exp2_test): Add more tests.
65939
65940         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
65941         negating x to take absolute value.
65942         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
65943         Likewise.
65944         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
65945         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
65946         Likewise.
65947         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
65948         computing low part if x was negated.
65949         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
65950
65951 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65952
65953         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
65954         la_x32_gnu_pltexit.
65955         (pltexit): Cast int_retval to ptrdiff_t.
65956         * elf/tst-auditmod3b.c: Likewise.
65957         * elf/tst-auditmod4b.c: Likewise.
65958         * elf/tst-auditmod5b.c: Likewise.
65959         * elf/tst-auditmod6b.c: Likewise.
65960         * elf/tst-auditmod6c.c: Likewise.
65961         * elf/tst-auditmod7b.c: Likewise.
65962
65963         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
65964         and x32_gnu_pltexit.
65965
65966         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
65967         __ELF_NATIVE_CLASS.
65968         (La_x32_regs): New macro.
65969         (La_x32_retval): Likewise.
65970         (la_x32_gnu_pltenter): New function prototype.
65971         (la_x32_gnu_pltexit): Likewise.
65972
65973 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
65974
65975         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
65976         exponent.
65977
65978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65979
65980         * configure.in (libc_cv_cc_nofma): Check for option to disable
65981         generation of FMA instructions.
65982         * configure: Regenerate.
65983         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
65984         * sysdeps/ieee754/dbl-64/Makefile: New file.
65985         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
65986         Remove brandred-fma4.
65987         (CFLAGS-brandred-fma4.c): Remove.
65988         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
65989         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
65990         define.
65991         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
65992         define.
65993
65994 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65995
65996         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65997         LLONG_MAX != LONG_MAX.
65998         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65999         (_fitoa_word): Likewise.
66000         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66001         LLONG_MAX != LONG_MAX.
66002         * stdio-common/_itowa.h: Include <_itoa.h>.
66003         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66004         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66005         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66006         only if not defined.
66007         (_ITOA_WORD_TYPE): Likewise.
66008         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66009         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66010
66011 2012-03-21  David S. Miller  <davem@davemloft.net>
66012
66013         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66014
66015 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66016
66017         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66018         of x86_64 when setting libc_cv_slibdir, libdir and
66019         libc_cv_localedir.
66020         * sysdeps/unix/sysv/linux/configure: Regenerated.
66021
66022 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66023
66024         * manual/lang.texi (Old Varargs): Remove section.
66025         (How Variadic): Update menu.
66026         (va_start): Do not mention varargs.h.
66027
66028 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66029             Joseph Myers  <joseph@codesourcery.com>
66030
66031         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66032         link test.
66033         * configure: Regenerated.
66034
66035 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66036
66037         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66038         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66039         conformtest.pl
66040
66041 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66042
66043         * NOTES: Remove.
66044         * Makefile (files-for-dist): Remove NOTES.
66045         (NOTES): Remove rule.
66046         * README: Don't refer to NOTES.
66047         * manual/creature.texi: Don't include macros.texi.
66048         * manual/intro.texi (creature.texi): Remove comment referring to
66049         NOTES.
66050
66051         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66052         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66053         * configure: Regenerated.
66054         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66055         LIBC_TRY_CC_OPTION.
66056         (libc_cv_as_i686): Likewise.
66057         (libc_cv_cc_avx): Likewise.
66058         (libc_cv_cc_sse2avx): Likewise.
66059         (libc_cv_cc_fma4): Likewise.
66060         (libc_cv_cc_novzeroupper): Likewise.
66061         * sysdeps/i386/configure: Regenerated.
66062
66063         [BZ #13883]
66064         * sysdeps/i386/fpu/s_cexp.S: Remove.
66065         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66066         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66067         * math/libm-test.inc (cexp_test): Add more tests.
66068         * sysdeps/i386/fpu/libm-test-ulps: Update.
66069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66070
66071 2012-03-21  Allan McRae  <allan@archlinux.org>
66072
66073         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66074
66075 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66076
66077         [BZ #13871]
66078         * math/w_exp2.c: Do not include <float.h>.
66079         (o_threshold, u_threshold): Remove.
66080         (__exp2): Calculate result before checking finiteness and calling
66081         __kernel_standard.
66082         * math/w_exp2f.c: Likewise.
66083         * math/w_exp2l.c: Likewise.
66084         * math/libm-test.inc (exp2_test): Require overflow exception for
66085         1e6 input.
66086
66087         [BZ #3866]
66088         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66089         range of signed 64-bit integers before using fistpll.  Remove
66090         checks for whether integers fit in mantissa bits.
66091         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66092         the range of signed 32-bit integers before using fistpl.  Remove
66093         checks for whether integers fit in mantissa bits.
66094         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66095         (__ieee754_powl): Test for y outside the range of signed 64-bit
66096         integers before using fistpll.  Reduce 64-bit values to 63-bit
66097         ones as needed.
66098         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66099         divide-by-zero is raised for zero to large negative powers.
66100         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66101         (__ieee754_powl): Test for y outside the range of signed 64-bit
66102         integers before using fistpll.  Reduce 64-bit values to 63-bit
66103         ones as needed.
66104         * math/libm-test.inc (pow_test): Add more tests.
66105
66106 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66107
66108         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66109         <stdio-common/_itoa.h>.
66110         * debug/segfault.c: Likewise.
66111         * elf/dl-cache.c: Likewise.
66112         * elf/dl-minimal.c: Likewise.
66113         * elf/dl-misc.c: Likewise.
66114         * elf/dl-sysdep.c: Likewise.
66115         * elf/dl-version.c: Likewise.
66116         * elf/rtld.c: Likewise.
66117         * hurd/hurdsock.c: Likewise.
66118         * hurd/lookup-retry.c: Likewise.
66119         * malloc/malloc.c: Likewise.
66120         * malloc/mtrace.c: Likewise.
66121         * nscd/nscd_getgr_r.c: Likewise.
66122         * nscd/nscd_getpw_r.c: Likewise.
66123         * nscd/nscd_getserv_r.c: Likewise.
66124         * posix/getopt_init.c: Likewise.
66125         * posix/wordexp.c: Likewise.
66126         * stdio-common/_itoa.c: Likewise.
66127         * stdio-common/printf_fphex.c: Likewise.
66128         * stdio-common/vfprintf.c: Likewise.
66129         * string/_strerror.c: Likewise.
66130         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66131         * sysdeps/i386/i686/hp-timing.h: Likewise.
66132         * sysdeps/mach/_strerror.c: Likewise.
66133         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66134         * sysdeps/mach/hurd/sethostid.c: Likewise.
66135         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66136         * sysdeps/mach/xpg-strerror.c: Likewise.
66137         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66138         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66139         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66140         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66141         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66142         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66143         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66144         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66145         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66146         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66147         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66148         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66149         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66150         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66151         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66152         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66153         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66154         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66155         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66156         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66157         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66158
66159         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66160
66161         * stdio-common/_itoa.h: Moved to ...
66162         * sysdeps/generic/_itoa.h: Here.
66163
66164         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66165
66166         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66167         instead of "_itoa.h" and "_itowa.h".
66168         * stdio-common/vfprintf.: Likewise.
66169
66170 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66171
66172         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66173         <bits/wordsize.h>.
66174         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66175         (__signbit): Likwise.
66176         (llrintf): Likwise.
66177         (llrint): Likwise.
66178
66179 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66180
66181         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66182         __WORDSIZE != 64.
66183
66184 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66185
66186         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66187         OVERFLOW_EXCEPTION_OK.
66188         * math/libm-test.inc ("Philosophy"): Update comment about
66189         exception testing.
66190         (OVERFLOW_EXCEPTION): Define.
66191         (OVERFLOW_EXCEPTION_OK): Likewise.
66192         (INVALID_EXCEPTION_OK): Renumber.
66193         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66194         (IGNORE_ZERO_INF_SIGN): Likewise.
66195         (test_exceptions): Handle FE_OVERFLOW.
66196         (exp10_test): Expect overflow exceptions.
66197         (exp2_test): Likewise.
66198         (expm1_test): Likewise.
66199         (nextafter_test): Likewise.
66200         (pow_test): Likewise.
66201         (scalbn_test): Likewise.
66202         (scalbln_test): Likewise.
66203
66204 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66205
66206         * sysdeps/x86_64/bits/atomic.h
66207         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66208         64bit integer.
66209         (atomic_exchange_acq): Likewise.
66210         (__arch_exchange_and_add_body): Likewise.
66211         (__arch_add_body): Likewise.
66212         (atomic_add_negative): Likewise.
66213         (atomic_add_zero): Likewise.
66214
66215 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66216
66217         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66218         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66219
66220 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66221
66222         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66223         Check __x86_64__ instead of __WORDSIZE.
66224
66225 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66226
66227         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66228
66229 2012-03-19  David S. Miller  <davem@davemloft.net>
66230
66231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66232
66233         * sysdeps/sparc/fpu/fenv_private.h: New file.
66234         * sysdeps/sparc/fpu/math_private.h: Use it.
66235         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66236         Remove.
66237         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66238         (libc_feholdexcept_setroundl): Remove.
66239         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66240         Remove.
66241         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66242         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66243
66244 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66245
66246         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66247         int64_t instead of long int.
66248         (INSERT_WORDS64): Likwise.
66249
66250 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66251
66252         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66253         _Unwind_GetCFA return to _Unwind_Ptr first.
66254
66255 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66256
66257         [BZ #13629]
66258         * math/s_clog.c: Include <float.h>.
66259         (__clog): Scale large or subnormal inputs.
66260         * math/s_clogf.c: Likewise.
66261         * math/s_clogl.c: Likewise.
66262         * math/s_clog10.c: Include <float.h>.
66263         (M_LOG10_2): Define.
66264         (__clog10): Scale large or subnormal inputs.
66265         * math/s_clog10f.c: Likewise.
66266         * math/s_clog10l.c: Likewise.
66267         * math/libm-test.inc (clog_test): Add more tests.
66268         (clog10_test): Likewise.
66269         * sysdeps/i386/fpu/libm-test-ulps: Update.
66270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66271
66272         [BZ #11451]
66273         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66274         x and y.
66275         * math/libm-test.inc (atan2_test): Add another test.
66276
66277         * Makerules (common-objdir-compile): Remove.
66278         * sysdeps/unix/Makefile (config-generated): Do not add
66279         $(unix-generated) to variable.
66280         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66281         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66282         Remove rule.
66283         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66284         Likewise.
66285         [generic bits/local_lim.h] (before-compile): Do not append to
66286         variable.
66287         [generic bits/local_lim.h] (common-generated): Likewise.
66288         [generic sys/param.h] (before-compile): Do not append to variable.
66289         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66290         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66291         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66292         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66293         include.
66294         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66295         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66296         [generic sys/param.h] ($(addprefix
66297         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66298         [generic sys/param.h] (common-generated): Do not append to
66299         variable.
66300         [generic sys/param.h] (sysdep_headers): Likewise.
66301         [generic bits/errno.h] (before-compile): Do not append to
66302         variable.
66303         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66304         rule.
66305         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66306         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66307         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66308         [generic bits/errno.h] (common-generated): Do not append to
66309         variable.
66310         [generic bits/ioctls.h] (before-compile): Do not append to
66311         variable.
66312         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66313         rule.
66314         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66315         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66316         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66317         rule.
66318         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66319         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66320         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66321         [generic bits/ioctls.h] (common-generated): Do not append to
66322         variable.
66323         [generic sys/syscall.h] (syscall.h): Remove variable.
66324         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66325         rule.
66326         [generic sys/syscall.h] (before-compile): Do not append to
66327         variable.
66328         [generic sys/syscall.h] (common-generated): Likewise.
66329         * sysdeps/unix/errnos-tmpl.c: Remove file.
66330         * sysdeps/unix/errnos.awk: Likewise.
66331         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66332         * sysdeps/unix/ioctls.awk: Likewise.
66333         * sysdeps/unix/mk-local_lim.c: Likewise.
66334         * sysdeps/unix/snarf-ioctls: Likewise.
66335
66336 2012-03-19  Richard Henderson  <rth@twiddle.net>
66337
66338         * sysdeps/i386/fpu/fenv_private.h: New file.
66339         * sysdeps/i386/fpu/math_private.h: Use it.
66340         (math_opt_barrier, math_force_eval): Remove.
66341         (libc_feholdexcept_setround_53bit): Remove.
66342         (libc_feupdateenv_53bit): Remove.
66343         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66344         (math_opt_barrier, math_force_eval): Remove.
66345         (libc_feholdexcept): Remove.
66346         (libc_feholdexcept_setround): Remove.
66347         (libc_fetestexcept, libc_fesetenv): Remove.
66348         (libc_feupdateenv_test): Remove.
66349         (libc_feupdateenv, libc_feholdsetround): Remove.
66350         (libc_feresetround): Remove.
66351
66352         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66353         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66354
66355         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66356         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66357         (libc_feupdateenv_testl): New.
66358         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66359         (libc_feupdateenv_testf): New.
66360         (libc_feupdateenv): Use libc_feupdateenv_test.
66361         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66362         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66363
66364         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66365         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66366         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66367         (libc_feresetround_noex): New.
66368         (libc_feresetround_noexf): New.
66369         (libc_feresetround_noexl): New.
66370         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66371         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66372         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66373         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66374         SET_RESTORE_ROUND.
66375         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66376         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66377         (__cos): Likewise.
66378         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66379         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66380         SET_RESTORE_ROUND_NOEX.
66381         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66382         SET_RESTORE_ROUND_NOEXF.
66383         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66384         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66385         (libc_feholdsetroundf): New.
66386         (libc_feresetround, libc_feresetroundf): New.
66387
66388         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66389         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66390         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66391
66392         * sysdeps/generic/math_private.h: Include <fenv.h>.
66393         (default_libc_feholdexcept): New.
66394         (default_libc_feholdexcept_setround): New.
66395         (default_libc_fesetenv, default_libc_feupdateenv): New.
66396         (libc_feholdexcept): Only define if undefined.
66397         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66398         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66399         (libc_feholdexcept_setroundl): Likewise.
66400         (libc_feholdexcept_setround_53bit): Likewise.
66401         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66402         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66403         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66404         (libc_feupdateenv_53bit): Likewise.
66405         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66406         (libc_feholdexcept): Convert from macro to inline function.
66407         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66408         (libc_fesetenv, libc_feupdateenv): Likewise.
66409
66410         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66411         not previously defined.
66412         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66413         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66414         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66415         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66416         * sysdeps/ieee754/flt-32/math_private.h: New file.
66417         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66418         math_private.h below SET_FLOAT_WORD.
66419         (__isnan, __isinf_ns, __finite): Remove.
66420         (__isnanf, __isinf_nsf, __finitef): Remove.
66421
66422 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66423
66424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66425
66426 2012-03-17  David S. Miller  <davem@davemloft.net>
66427
66428         [BZ #6471]
66429         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66430         for 2.16.
66431
66432 2012-03-16  David S. Miller  <davem@davemloft.net>
66433
66434         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66435         warnings.
66436
66437         [BZ #6471]
66438         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66439         properly.
66440         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66441         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66442         sysdep_routines when subdir is sysvipc.
66443         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66444         __getshmlba helper.
66445
66446         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66447
66448 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66449
66450         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66451         [__LP64__].
66452
66453 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66454
66455         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66456         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66457         (__lround): Renamed to ...
66458         (__llround): This.  Replace long int with long long int.
66459         Define lround functions as aliases of llround functions.
66460         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66461
66462 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66463
66464         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66465         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66466         adresses to uintptr_t.  Replace "long int" and "unsigned long
66467         int" with "greg_t" on va_arg.
66468
66469 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66470
66471         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66472         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66473
66474         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66475         Move e_machine check before EI_CLASS check.  Handle x32
66476         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66477         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66478         SKIP_EM_IA_64 and include
66479         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66480
66481         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66482         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66483         (add_system_dir): New macro.
66484
66485         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66486         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66487
66488 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66489
66490         [BZ #2551]
66491         [BZ #2552]
66492         [BZ #2553]
66493         [BZ #2554]
66494         [BZ #2562]
66495         [BZ #2563]
66496         [BZ #2565]
66497         [BZ #2566]
66498         [BZ #2576]
66499         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66500         (y0): Likewise.
66501         * math/w_j0f.c (j0f): Likewise.
66502         (y0f): Likewise.
66503         * math/w_j0l.c (__j0l): Likewise.
66504         (__y0l): Likewise.
66505         * math/w_j1.c (j1): Likewise.
66506         (y1): Likewise.
66507         * math/w_j1f.c (j1f): Likewise.
66508         (y1f): Likewise.
66509         * math/w_j1l.c (__j1l): Likewise.
66510         (__y1l): Likewise.
66511         * math/w_jn.c (jn): Likewise.
66512         (yn): Likewise.
66513         * math/w_jnf.c (jnf): Likewise.
66514         (ynf): Likewise.
66515         * math/w_jnl.c (__jnl): Likewise.
66516         (__ynl): Likewise.
66517         * math/libm-test.inc (j0_test): Add more tests.
66518         (j1_test): Likewise.
66519         (jn_test): Likewise.  Add trailing semicolon to existing test.
66520         (y0_test): Likewise.
66521         (y1_test): Likewise.
66522         * sysdeps/i386/fpu/libm-test-ulps: Update.
66523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66524
66525         [BZ #13851]
66526         [BZ #13854]
66527         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66528         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66529         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66530         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66531         (__tanl): Set errno for infinite argument.
66532         * sysdeps/i386/fpu/mptan.c: Remove.
66533         * sysdeps/i386/fpu/s_tan.S: Likewise.
66534         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66535         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66536         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66537         * math/libm-test.inc (tan_test): Add more tests and enable more
66538         tests for double and long double.
66539         * sysdeps/i386/fpu/libm-test-ulps: Update.
66540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66541
66542 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66543
66544         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66545         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66546
66547 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66548
66549         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66550         * configure.in: Use it for both main tree and add-ons.
66551         * configure: Regenerated.
66552
66553 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66554
66555         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66556
66557 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66558
66559         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66560         in comment.
66561
66562         [BZ #13851]
66563         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66564         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66565         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66566         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66567         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66568         infinite argument.
66569         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66570         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66571         != 0 for prec == 2.
66572         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66573         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66574         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66575         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66576         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66577         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66578         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66579         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66580         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66581         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66582         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66583         * math/libm-test.inc (cos_test): Add more tests and enable more
66584         tests for long double.
66585         (sin_test): Likewise.
66586         (sincos_test): Likewise.
66587         * sysdeps/i386/fpu/libm-test-ulps: Update.
66588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66589
66590 2012-03-16  David S. Miller  <davem@davemloft.net>
66591
66592         * sysdeps/sparc/fpu/math_private.h: New file.
66593
66594 2012-03-15  David S. Miller  <davem@davemloft.net>
66595
66596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66597         file.
66598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66600         file.
66601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66602         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66603         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66604         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66605         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66606         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66607         sysdep routines.
66608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66609
66610         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66611         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66612
66613         * sysdeps/sparc/sparc-ifunc.h: New file.
66614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66615         sparc-ifunc.h
66616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66618         Likewise.
66619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66620         Likewise.
66621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66625         Likewise.
66626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66631         Likewise.
66632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66633         Likewise.
66634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66638         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66639         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66640         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66641         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66642         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66643         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66644         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66645         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66646         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66647         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66648         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66649         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66650         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66651         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66652         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66653         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66654         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66655         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66656         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66657         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66658
66659 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66660
66661         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66662         scaling.
66663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66664
66665 2012-03-15  Andreas Jaeger  <aj@suse.de>
66666
66667         [BZ #13852]
66668         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66669         ieee754/flt-32 implementation for sin, cos and sincos.
66670         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66671         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66672         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66673         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66674         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66675         ieee754/flt-32 implementation for tan.
66676
66677         * math/libm-test.inc (cos_test): Enable some large input tests for
66678         float as well
66679         (sin_test): Likewise.
66680         (sincos_test): Likewise.
66681         (tan_test): Add tests for large input.
66682
66683         * sysdeps/i386/fpu/libm-test-ulps: Update.
66684
66685 2012-03-15  Andreas Jaeger  <aj@suse.de>
66686
66687         [BZ #13658]
66688         * math/libm-test.inc (cos_test): Add more test cases.
66689         (sin_test): Likewise.
66690         (sincos_test): Likewise.
66691
66692 2012-03-15  Andreas Jaeger  <aj@suse.de>
66693
66694         [BZ #13837]
66695         * math/libm-test.inc (cos_test): Add a test case for large input
66696         value.
66697         (sin_test): Likewise.
66698         (sincos_test): Likewise.
66699
66700 2012-03-15  Andreas Jaeger  <aj@suse.de>
66701             Joseph Myers  <joseph@codesourcery.com>
66702
66703         [BZ #13658]
66704         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66705         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66706         * sysdeps/i386/fpu/branred.c: Likewise.
66707         * sysdeps/i386/fpu/dosincos.c: Likewise.
66708         * sysdeps/i386/fpu/mpa.c: Likewise.
66709         * sysdeps/i386/fpu/s_cos.S: Likewise.
66710         * sysdeps/i386/fpu/s_sin.S: Likewise.
66711         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66712         * sysdeps/i386/fpu/sincos32.c: Likewise.
66713
66714         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66715         Define.
66716         (libc_feupdateenv_53bit): Define.
66717         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66718         Define.
66719         (libc_feupdateenv_53bit): Define.
66720
66721         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66722         53 bit (without extend i386 double precision).
66723
66724         * math/libm-test.inc (sincos_test): Add tests for large input.
66725         (sin): Likewise.
66726         (cos): Likewise.
66727
66728         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66729
66730 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66731
66732         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66733
66734 2012-03-15  David S. Miller  <davem@davemloft.net>
66735
66736         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66737         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66738         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66739         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66744         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66745         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66746         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66747         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66748         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66749         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66752         file.
66753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66755         file.
66756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66758         file.
66759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66761         file.
66762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66763         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66764         fmin/fmax sysdep routines.
66765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66766
66767 2012-03-14  David S. Miller  <davem@davemloft.net>
66768
66769         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66770         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66771         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66772         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66773         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66774         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66775         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
66776         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
66777         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
66778         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
66779         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
66780         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
66781         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
66782         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
66783         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
66784         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
66785         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
66786         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
66787         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
66788         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
66789         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
66790         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
66791         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
66792         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
66793         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
66794         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
66795         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
66796         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
66797         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
66798         routines.
66799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
66800         file.
66801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
66802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
66803         file.
66804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
66805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
66806         file.
66807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
66808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
66809         file.
66810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
66811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
66812         file.
66813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
66814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
66815         file.
66816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
66817         file.
66818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
66819         file.
66820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
66821         file.
66822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
66823         New file.
66824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
66825         file.
66826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
66827         file.
66828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
66829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
66830         file.
66831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
66832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
66833         file.
66834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
66835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
66836         file.
66837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
66838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
66839         VIS3 routines.
66840
66841         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66842         New file.
66843
66844         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66845
66846         * sysdeps/sparc/configure.in: New file.
66847         * sysdeps/sparc/configure: Generate.
66848         * configure.in (libc_cv_sparc_as_vis3): Substitute.
66849         * configure: Regenerate.
66850         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
66851         * config.make.in (have-as-vis3): New.
66852         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
66853         available use -Av9d instead of -Av9a.
66854         * sysdeps/sparc/sparc64/Makefile: Likewise.
66855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
66856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
66857         New file.
66858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
66859         file.
66860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
66861         New file.
66862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
66863         file.
66864         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
66865         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
66866         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
66867         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
66868         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
66869
66870         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
66871         fzeros/fnegs to load 0x80000000 into a float register instead of
66872         using the stack.
66873         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
66874
66875 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66876
66877         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66878         bits/syscall.h.
66879         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
66880         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
66881         ($(inst_includedir)/bits/syscall.h): Remove rule.
66882         ($(objpfx)bits/syscall.d): Include instead of
66883         $(objpfx)syscall-list.d.
66884         (generated): Change syscall-list.h and syscall-list.d to
66885         bits/syscall.h and bits/syscall.d.
66886
66887 2012-03-14  Roland McGrath  <roland@hack.frob.com>
66888
66889         [BZ #13846]
66890         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
66891
66892 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66893
66894         [BZ #13841]
66895         * math/s_csqrt.c: Include <float.h>.
66896         (__csqrt): Scale large or subnormal inputs.
66897         * math/s_csqrtf.c: Likewise.
66898         * math/s_csqrtl.c: Likewise.
66899         * math/libm-test.inc (csqrt_test): Add more tests.
66900         * sysdeps/i386/fpu/libm-test-ulps: Update.
66901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66902
66903         [BZ #13840]
66904         * math/libm-test.inc (hypot_test): Add more tests.
66905
66906 2012-03-13  David S. Miller  <davem@davemloft.net>
66907
66908         [BZ #13840]
66909         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
66910         double-precision for the calculation instead of scaling.
66911
66912 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
66913
66914         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
66915         manipulate bits before adding and subtracting TWO52[sx].
66916         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
66917         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
66918         Likewise.
66919         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
66920
66921 2012-03-13  David S. Miller  <davem@davemloft.net>
66922
66923         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
66924         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
66925         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
66926         rtld-global-offsets.h
66927         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
66928
66929         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
66930         large parameters.
66931
66932         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
66933
66934         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
66935         'err' in the ifdef scope in which it is actually used.
66936
66937         * nss/nss_db/db-init.c: Include string.h
66938
66939 2012-03-12  David S. Miller  <davem@davemloft.net>
66940
66941         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
66942         masking out of the most significant byte of random value used.
66943         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66944         Fix coding style in previous change.
66945
66946         * sysdeps/unix/sysv/linux/kernel-features.h
66947         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
66948         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
66949         expression.
66950         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
66951         later.
66952
66953 2012-03-11  David S. Miller  <davem@davemloft.net>
66954
66955         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
66956         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
66957         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
66958         for 'resultvar' otherwise things get truncated on 64-bit.
66959
66960         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66961         Fix masking out of the most significant byte of random value used.
66962
66963         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66964
66965 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
66966
66967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66968
66969 2012-03-09  David S. Miller  <davem@davemloft.net>
66970
66971         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
66972         variables with appropriate CPP guards.
66973         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
66974         from the frame pointer, not the stack pointer.  Correct layout
66975         comments.  Fix test on resulting framesize and the management of
66976         the outregs buffer for pltexit.  Preserve floating point return
66977         values across _dl_call_pltexit call.
66978         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
66979         framesize and the management of the outregs buffer for pltexit.
66980         Preserve floating point return values across _dl_call_pltexit
66981         call.
66982         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
66983         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
66984         (la_sparc64_gnu_pltexit): New functions.
66985         (print_exit): Fix format string for return register value.
66986
66987 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
66988
66989         * sunrpc/Makefile (others): Add rpcgen.
66990         ($(objpfx)rpcgen): Remove special build rule and dependency on
66991         libc.
66992         * sunrpc/rpcgen.c: New file.
66993
66994 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         [BZ #13673]
66997         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
66998         * stdio-common/bug-vfprintf-nargs.c: Likewise.
66999         * sysdeps/i386/crti.S: Likewise.
67000         * sysdeps/i386/crtn.S: Likewise.
67001         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67002         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67003         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67004         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67005         * sysdeps/sh/crti.S: Likewise.
67006         * sysdeps/sh/crtn.S: Likewise.
67007         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67008
67009         [BZ #13673]
67010         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67011         with URL.
67012         * locale/programs/locfile-kw.gperf: Likewise.
67013         * locale/programs/charmap-kw.h: Regenerated.
67014         * locale/programs/locfile-kw.h: Likewise.
67015
67016         [BZ #13673]
67017         * intl/plural.y: Replace FSF snail mail address with URL.
67018         * intl/plural.c: Regenerated.
67019
67020 2012-03-09  Richard Henderson  <rth@twiddle.net>
67021
67022         * include/math_private.h: Remove file.
67023         * math/math_private.h: Move file ...
67024         * sysdeps/generic/math_private.h: ... here.
67025
67026         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67027         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67028         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67029
67030         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67031         and <math_private.h>.
67032         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67033         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67034         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67035         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67036         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67037         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67038         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67039         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67040         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67041         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67042         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67043         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67044         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67045         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67046         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67047         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67048         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67049         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67050         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67051         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67052         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67053         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67054         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67055         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67056         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67057         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67058         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67059         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67060         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67061         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67062         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67063         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67064         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67065         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67066         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67067         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67068         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67069         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67070         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67071         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67072         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67073         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67074         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67075         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67076         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67077         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67078         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67079         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67080         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67081         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67082         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67083         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67084         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67085         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67086         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67087         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67088         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67089         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67090         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67091         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67092         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67093         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67094         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67095         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67096         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67097         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67098         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67099         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67100         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67101         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67102         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67103         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67104         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67105         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67106         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67107         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67108         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67109         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67110         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67111         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67112         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67113         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67114         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67115         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67116         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67117         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67118         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67119         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67120         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67121         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67122         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67123         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67124         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67125         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67126         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67127         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67128         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67129         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67130         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67131         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67132         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67133         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67134         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67135         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67136         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67137         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67138         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67139         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67140         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67141         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67142         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67143         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67144         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67145         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67146         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67147         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67148         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67149         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67150         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67151         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67152         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67153         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67154         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67155         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67156         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67157         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67158         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67159         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67160         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67161         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67162         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67163         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67164         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67165         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67166         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67167         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67168         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67169         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67170         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67171         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67172         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67173         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67174         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67175         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67176         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67177         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67178         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67179         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67180         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67181         * sysdeps/ieee754/k_standard.c: Likewise.
67182         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67183         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67184         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67185         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67186         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67187         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67188         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67189         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67190         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67191         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67192         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67193         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67194         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67195         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67196         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67197         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67198         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67199         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67200         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67201         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67202         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67203         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67204         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67205         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67206         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67207         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67208         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67209         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67210         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67211         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67212         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67213         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67214         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67215         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67216         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67217         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67218         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67219         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67220         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67221         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67222         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67223         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67224         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67225         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67226         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67227         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67228         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67229         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67230         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67231         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67232         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67233         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67234         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67235         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67236         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67237         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67238         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67239         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67240         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67241         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67242         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67243         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67244         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67245         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67246         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67247         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67248         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67249         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67250         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67251         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67252         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67253         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67254         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67255         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67256         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67257         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67258         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67259         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67260         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67261         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67262         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67263         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67264         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67265         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67266         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67267         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67268         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67269         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67270         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67271         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67272         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67273         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67274         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67275         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67276         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67277         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67278         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67279         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67280         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67281         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67282         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67283         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67284         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67285         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67286         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67287         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67288         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67289         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67290         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67291         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67292         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67293         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67294         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67295         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67296         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67297         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67298         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67299         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67300         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67301         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67302         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67303         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67304         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67305         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67306         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67307         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67308         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67309         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67310         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67311         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67312         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67313         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67314         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67315         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67316         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67317         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67318         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67319         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67320         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67321         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67322         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67323         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67324         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67325         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67326         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67327         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67328         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67329         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67330         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67331         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67332         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67333         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67334         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67335         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67336         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67337         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67338         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67339         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67340         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67341         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67342         * sysdeps/ieee754/s_lib_version.c: Likewise.
67343         * sysdeps/ieee754/s_matherr.c: Likewise.
67344         * sysdeps/ieee754/s_signgam.c: Likewise.
67345         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67346         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67347         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67348         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67349         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67350         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67351         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67352         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67353         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67354         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67355         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67356         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67357         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67358         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67359         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67360         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67361         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67362         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67363         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67364         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67365         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67366
67367 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67368
67369         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67370         * sunrpc/rpc_main.c: Likewise.
67371         * sunrpc/rpc_svcout.c: Likewise.
67372
67373 2012-03-09  David S. Miller  <davem@davemloft.net>
67374
67375         * include/math_private.h: New file.
67376
67377 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67378
67379         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67380         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67381         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67382         from <bits/socket_type.h>.
67383         (enum __socket_type): Don't define here.
67384         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67385         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67386         bits/socket_type.h.
67387
67388         [BZ #13566]
67389         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67390         checking __USE_GNU.
67391
67392         * Makerules ($(inst_includedir)/%.h): New rule.
67393         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67394         (install-others): Remove variable setting.
67395         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67396
67397 2012-03-08  Richard Henderson  <rth@twiddle.net>
67398
67399         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67400         from macro to inline function; merge with the
67401         !__LIBC_INTERNAL_MATH_INLINES version.
67402         (__ieee754_sqrtf): Likewise.
67403
67404         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67405         to inline function.
67406         (__rintf, __floor, __floorf): Likewise.
67407
67408         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67409         macro to inline function.
67410         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67411
67412         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67413         not <math/math_private.h>.
67414
67415 2012-03-08  David S. Miller  <davem@davemloft.net>
67416
67417         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67418         copyright year.
67419         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67420
67421 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67422
67423         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67424         normalization.
67425         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67426         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67427
67428 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67429
67430         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67431         be defined individually, they must be defined as a block.  Define
67432         S for printing a string instead of hidint the different by using a
67433         macro for adding the 'l'.
67434         * stdio-common/tst-fphex-wide.c: Adjust.
67435
67436 2012-03-07  Marek Polacek  <polacek@redhat.com>
67437
67438         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67439
67440 2012-03-08  Marek Polacek  <polacek@redhat.com>
67441
67442         [BZ #13806]
67443         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67444         * stdio-common/tst-fphex.c: Define a few macros to make the
67445         test reusable.  Use them.
67446         * stdio-common/tst-fphex-wide.c: New file.
67447
67448 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67449
67450         [BZ #6911]
67451         * manual/macros.texi (gnusystems): New macro.
67452         (nongnusystems): Likewise.
67453         (gnulinuxhurdsystems): Likewise.
67454         (gnuhurdsystems): Likewise..
67455         (gnulinuxsystems): Likewise.
67456         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67457         variants of the GNU system, not "GNU system".
67458         * manual/conf.texi: Likewise.
67459         * manual/errno.texi: Likewise.  Update example of errno macro
67460         expansion.
67461         * manual/filesys.texi: Likewise.
67462         (getumask): Document as specific to GNU/Hurd.
67463         * manual/install.texi: Likewise.  Reword some references to
67464         GNU/Linux.
67465         * manual/intro.texi: Likewise.
67466         * manual/io.texi: Likewise.
67467         (File Name Portability): Detail which constraints are inapplicable
67468         to all GNU systems and which are only inapplicable to GNU/Hurd.
67469         * manual/job.texi: Likewise.
67470         * manual/llio.texi: Likewise.
67471         (O_NOCTTY): Document as present on GNU/Linux.
67472         * manual/maint.texi: Likewise.
67473         * manual/memory.texi: Likewise.
67474         * manual/pattern.texi: Likewise.
67475         * manual/pipe.texi: Likewise.
67476         * manual/process.texi: Likewise.
67477         * manual/resource.texi: Likewise.
67478         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67479         child on GNU/Hurd.
67480         * manual/setjmp.texi: Likewise.
67481         * manual/signal.texi: Likewise.
67482         * manual/startup.texi: Likewise.
67483         * manual/stdio.texi: Likewise.
67484         * manual/terminal.texi: Likewise.
67485         (ONLCR): Document as POSIX.
67486         (OXTABS): Document availability on GNU/Linux as XTABS.
67487         (ONOEOT): Document availability separately from other bits.
67488         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67489         * manual/time.texi: Likewise.
67490         * manual/users.texi: Likewise.
67491         * INSTALL: Regenerated.
67492         * sysdeps/gnu/errlist.c: Regenerated.
67493
67494         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67495         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67496         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67497         puts.
67498         * configure: Regenerated.
67499
67500 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67501
67502         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67503         default includes instead of AC_HEADER_CHECK.
67504         * sysdeps/i386/configure: Regenerated.
67505
67506         [BZ #10716]
67507         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67508         * math/s_cacoshf.c (__cacoshf): Likewise.
67509         * math/s_cacoshl.c (__cacoshl): Likewise.
67510         * math/s_casinh.c (__casinh): Set signs of result from argument.
67511         * math/s_casinhf.c (__casinhf): Likewise.
67512         * math/s_casinhl.c (__casinhl): Likewise.
67513         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67514         (casinh_test): Add more tests.
67515         * sysdeps/i386/fpu/libm-test-ulps: Update.
67516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67517
67518 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67519
67520         * po/zh_TW.po: Update from translation team.
67521
67522         * login/Makefile (distribute): Remove variable.
67523         * catgets/Makefile: Likewise.
67524         * mach/Makefile: Likewise.
67525         * malloc/Makefile: Likewise.
67526         * misc/Makefile: Likewise.
67527         * iconv/Makefile: Likewise.
67528         * nscd/Makefile: Likewise.
67529         * hurd/Makefile: Likewise.
67530         * manual/Makefile: Likewise.
67531         * locale/Makefile: Likewise.
67532         * intl/Makefile: Likewise.
67533         * conform/Makefile: Likewise.
67534         * nss/Makefile: Likewise.
67535         * time/Makefile: Likewise.
67536         * soft-fp/Makefile: Likewise.
67537         * dirent/Makefile: Likewise.
67538         * gmon/Makefile: Likewise.
67539         * po/Makefile: Likewise.
67540         * rt/Makefile: Likewise.
67541         * socket/Makefile: Likewise.
67542         * math/Makefile: Likewise.
67543         * signal/Makefile: Likewise.
67544         * debug/Makefile: Likewise.
67545         * elf/Makefile: Likewise.
67546         * timezone/Makefile: Likewise.
67547         * stdlib/Makefile: Likewise.
67548         * iconvdata/Makefile: Likewise.
67549         * sunrpc/Makefile: Likewise.
67550         * io/Makefile: Likewise.
67551         * argp/Makefile: Likewise.
67552         * inet/Makefile: Likewise.
67553         * hesiod/Makefile: Likewise.
67554         * grp/Makefile: Likewise.
67555         * csu/Makefile: Likewise.
67556         * wctype/Makefile: Likewise.
67557         * crypt/Makefile: Likewise.
67558         * libio/Makefile: Likewise.
67559         * string/Makefile: Likewise.
67560         * nis/Makefile: Likewise.
67561         * resolv/Makefile: Likewise.
67562         * stdio-common/Makefile: Likewise.
67563         * wcsmbs/Makefile: Likewise.
67564         * dlfcn/Makefile: Likewise.
67565         * posix/Makefile: Likewise.
67566
67567         [BZ #6959]
67568         * timezone/Makefile: Don't install timezone files, just the programs
67569         and scripts.
67570
67571 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67572
67573         * nss/databases.def: Add missing gshadow entry.
67574
67575         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67576
67577 2012-03-06  Marek Polacek  <polacek@redhat.com>
67578
67579         [BZ #13726]
67580         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67581         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67582         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67583         * stdio-common/tst-long-dbl-fphex.c: New file.
67584
67585 2012-03-06  David S. Miller  <davem@davemloft.net>
67586
67587         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67588         (set_obp_int): New function.
67589         (get_obp_int): New function.
67590         (__get_clockfreq_via_dev_openprom): Likewise.
67591         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67592         Avoid unused variable warnings on 'val' and use builtin_expect.
67593         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67594         __builtin_expect.
67595         (INLINE_CLONE_SYSCALL): Likewise.
67596
67597 2012-03-05  David S. Miller  <davem@davemloft.net>
67598
67599         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67600
67601 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67602
67603         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67604
67605         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67606         only for |x| >= 40.
67607         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67608
67609 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67610
67611         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67612         Replace gettimeofday with __vdso_gettimeofday.
67613
67614         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67615         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67616         __vdso_clock_gettime and __vdso_getcpu.
67617
67618         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67619         time with __vdso_time.
67620
67621 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67622
67623         * manual/lang.texi (size_t): Note types to which size_t may be
67624         equivalent with the GNU C Library, but do not describe when
67625         differences between them are significant.
67626
67627 2012-03-05  Andreas Jaeger  <aj@suse.de>
67628
67629         * sysdeps/i386/fpu/libm-test-ulps: Update.
67630
67631 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67632
67633         [BZ #3976]
67634         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67635         (__ieee754_pow): Save and restore rounding mode and use
67636         round-to-nearest for main computations.
67637         * math/libm-test.inc (pow_test_tonearest): New function.
67638         (pow_test_towardzero): Likewise.
67639         (pow_test_downward): Likewise.
67640         (pow_test_upward): Likewise.
67641         (main): Call the new functions.
67642         * sysdeps/i386/fpu/libm-test-ulps: Update.
67643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67644
67645         [BZ #3976]
67646         * math/libm-test.inc (cosh_test_tonearest): New function.
67647         (cosh_test_towardzero): Likewise.
67648         (cosh_test_downward): Likewise.
67649         (cosh_test_upward): Likewise.
67650         (sinh_test_tonearest): Likewise.
67651         (sinh_test_towardzero): Likewise.
67652         (sinh_test_downward): Likewise.
67653         (sinh_test_upward): Likewise.
67654         (main): Call the new functions.
67655         * sysdeps/i386/fpu/libm-test-ulps: Update.
67656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67657
67658 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67659
67660         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67661         default stack guard is set in last bytes.
67662         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67663
67664 2012-03-05  Kees Cook  <keescook@chromium.org>
67665
67666         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67667
67668         [BZ #13656]
67669         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67670         possibly allocate from heap instead of stack.
67671         * stdio-common/bug-vfprintf-nargs.c: New file.
67672         * stdio-common/Makefile (tests): Add nargs overflow test.
67673
67674 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67675
67676         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67677
67678 2012-03-03  Marek Polacek  <polacek@redhat.com>
67679
67680         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67681         * math/math_private.h: Likewise.
67682         * stdlib/tst-strtod.c: Likewise.
67683         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67684         * sysdeps/x86_64/bits/atomic.h: Likewise.
67685
67686 2012-03-02  David S. Miller  <davem@davemloft.net>
67687
67688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67692         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67693         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67694         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67695         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67696
67697 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67698
67699         [BZ #13792]
67700         * manual/examples/README: New file, says the example source files
67701         can be used under GPL>=2.
67702         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67703         line containing just "*/".
67704         * manual/examples/add.c: Add copyright header (GPL>=2).
67705         * manual/examples/argp-ex1.c: Likewise.
67706         * manual/examples/argp-ex2.c: Likewise.
67707         * manual/examples/argp-ex3.c: Likewise.
67708         * manual/examples/argp-ex4.c: Likewise.
67709         * manual/examples/atexit.c: Likewise.
67710         * manual/examples/db.c: Likewise.
67711         * manual/examples/dir.c: Likewise.
67712         * manual/examples/dir2.c: Likewise.
67713         * manual/examples/execinfo.c: Likewise.
67714         * manual/examples/filecli.c: Likewise.
67715         * manual/examples/filesrv.c: Likewise.
67716         * manual/examples/fmtmsgexpl.c: Likewise.
67717         * manual/examples/genpass.c: Likewise.
67718         * manual/examples/inetcli.c: Likewise.
67719         * manual/examples/inetsrv.c: Likewise.
67720         * manual/examples/isockad.c: Likewise.
67721         * manual/examples/longopt.c: Likewise.
67722         * manual/examples/memopen.c: Likewise.
67723         * manual/examples/memstrm.c: Likewise.
67724         * manual/examples/mkfsock.c: Likewise.
67725         * manual/examples/mkisock.c: Likewise.
67726         * manual/examples/mygetpass.c: Likewise.
67727         * manual/examples/pipe.c: Likewise.
67728         * manual/examples/popen.c: Likewise.
67729         * manual/examples/rprintf.c: Likewise.
67730         * manual/examples/search.c: Likewise.
67731         * manual/examples/select.c: Likewise.
67732         * manual/examples/setjmp.c: Likewise.
67733         * manual/examples/sigh1.c: Likewise.
67734         * manual/examples/sigusr.c: Likewise.
67735         * manual/examples/stpcpy.c: Likewise.
67736         * manual/examples/strdupa.c: Likewise.
67737         * manual/examples/strftim.c: Likewise.
67738         * manual/examples/strncat.c: Likewise.
67739         * manual/examples/subopt.c: Likewise.
67740         * manual/examples/swapcontext.c: Likewise.
67741         * manual/examples/termios.c: Likewise.
67742         * manual/examples/testopt.c: Likewise.
67743         * manual/examples/testpass.c: Likewise.
67744         * manual/examples/timeval_subtract.c: Likewise.
67745
67746         [BZ #13792]
67747         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67748         function to ...
67749         * manual/timeval_subtract.c.texi: ... here, new file.
67750
67751 2012-03-02  David S. Miller  <davem@davemloft.net>
67752
67753         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67754
67755 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67756
67757         [BZ #3976]
67758         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67759         (__sin): Save and restore rounding mode and use round-to-nearest
67760         for all computations.
67761         (__cos): Save and restore rounding mode and use round-to-nearest
67762         for all computations.
67763         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67764         <fenv.h>.
67765         (tan): Save and restore rounding mode and use round-to-nearest for
67766         all computations.
67767         * math/libm-test.inc (cos_test_tonearest): New function.
67768         (cos_test_towardzero): Likewise.
67769         (cos_test_downward): Likewise.
67770         (cos_test_upward): Likewise.
67771         (sin_test_tonearest): Likewise.
67772         (sin_test_towardzero): Likewise.
67773         (sin_test_downward): Likewise.
67774         (sin_test_upward): Likewise.
67775         (tan_test_tonearest): Likewise.
67776         (tan_test_towardzero): Likewise.
67777         (tan_test_downward): Likewise.
67778         (tan_test_upward): Likewise.
67779         (main): Call the new functions.
67780         * sysdeps/i386/fpu/libm-test-ulps: Update.
67781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67782
67783         [BZ #10135]
67784         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
67785         small n, then large n, before computing and testing k+n.
67786         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
67787         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
67788         Likewise.
67789         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
67790         Likewise.
67791         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
67792         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
67793         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
67794         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
67795         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
67796         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
67797         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
67798         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
67799         * math/libm-test.inc (scalbn_test): Add more tests.
67800         (scalbln_test): Likewise.
67801
67802         * manual/filesys.texi (mode_t): Describe constraints on size and
67803         signedness, not exact equivalence to a particular type.
67804         (ino_t): Likewise.
67805         (ino64_t): Likewise.
67806         (dev_t): Likewise.
67807         (nlink_t): Likewise.
67808         (blkcnt_t): Likewise.
67809         (blkcnt64_t): Likewise.
67810         * manual/llio.texi (off_t): Likewise.
67811
67812         [BZ #3976]
67813         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
67814         (__ieee754_exp): Save and restore rounding mode and use
67815         round-to-nearest for all computations.
67816         * math/libm-test.inc (exp_test_tonearest): New function.
67817         (exp_test_towardzero): Likewise.
67818         (exp_test_downward): Likewise.
67819         (exp_test_upward): Likewise.
67820         (main): Call the new functions.
67821         * sysdeps/i386/fpu/libm-test-ulps: Update.
67822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67823
67824 2012-03-01  Chris Demetriou  <cgd@google.com>
67825
67826         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
67827         have predictable order.
67828
67829 2012-03-01  David S. Miller  <davem@davemloft.net>
67830
67831         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
67832
67833         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
67834         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
67835         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
67836         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
67837
67838         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
67839         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
67840         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
67841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
67842         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
67843         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
67844         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
67845         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
67846         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
67847
67848         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67849
67850         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
67851         * sysdeps/sparc/fpu/libm-test-ulps: to here.
67852         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
67853
67854         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
67855         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
67856         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
67857         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
67858         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
67859         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
67860         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
67861         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
67862         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
67863         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
67864         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
67865         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
67866         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
67867         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
67868         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
67869         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
67870         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
67871         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
67872         * sysdeps/sparc/elf/configure: Regenerated.
67873
67874 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
67875
67876         * configure.in (AS, LD): Require binutils 2.20 or later.
67877         * configure: Regenerated.
67878         * manual/install.texi (Tools for Compilation): Give binutils 2.20
67879         as required minimum version.
67880         * INSTALL: Regenerated.
67881
67882         [BZ #2541]
67883         [BZ #4108]
67884         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
67885         before squaring exponent.
67886         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
67887         bottom long double and 27 bits of top long double before squaring
67888         exponent.
67889         * math/libm-test.inc (erfc_test): Add more tests.
67890         * sysdeps/i386/fpu/libm-test-ulps: Update.
67891         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67893
67894 2012-03-01  Kai Tietz  <ktietz@redhat.com>
67895
67896         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
67897         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
67898         containing bit-fields.
67899         * soft-fp/extended.h (_FP_UNION_E): Likewise.
67900         * soft-fp/single.h (_FP_UNION_S): Likewise.
67901         * soft-fp/double.h (_FP_UNION_D): Likewise.
67902
67903 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67904
67905         [BZ #13786]
67906         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
67907         not include ../strcmp.S.
67908         [USE_AS_STRNCASECMP_L]: Likewise.
67909         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
67910         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
67911         * sysdeps/i386/i686/multiarch/strncase_l-c.c
67912         (__strncasecmp_l_ia32): Define as alias to
67913         __strncasecmp_l_nonascii.
67914
67915         [BZ #5794]
67916         * math/libm-test.inc (expm1_test): Add test for bug 5794.
67917         * sysdeps/i386/fpu/libm-test-ulps: Update.
67918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67919
67920         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
67921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67922
67923 2012-02-29  Jeff Law  <law@redhat.com>
67924
67925         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
67926         out of bounds read.
67927
67928 2012-02-29  Marek Polacek  <polacek@redhat.com>
67929
67930         [BZ #13706]
67931         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
67932         * elf/Makefile: Add rules to run tst-unused-dep.out.
67933
67934 2012-02-28  David S. Miller  <davem@davemloft.net>
67935
67936         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
67937         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
67938         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
67939         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
67940         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
67941         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
67942
67943 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67944
67945         * math/libm-test.inc (llround_test): Move one test from
67946         lround_test.  Use TEST_f_L in moved test.
67947         (lround_test): Move misplaced test to llround_test.  Add testcase
67948         from bug 2561.
67949
67950 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
67951
67952         * sysdeps/x86_64/fpu/e_expf.S: New file.
67953         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
67954
67955 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
67956
67957         [BZ #13637]
67958         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
67959         of remain_len that may cause incomplete multi-byte character and
67960         false match.
67961         * posix/bug-regex33.c: New file.
67962         * posix/Makefile (tests): Add bug-regex33.
67963
67964 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
67965
67966         * manual/macros.texi: New file.
67967         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
67968         * manual/libc.texinfo: Include macros.texi.
67969         * manual/creatute.texi: Likewise.
67970         * manual/install.texi: Likewise.
67971         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
67972         @glibcadj{} in references to the GNU C Library.
67973         * manual/charset.texi: Likewise.
67974         * manual/conf.texi: Likewise.
67975         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
67976         when not using those macros.
67977         * manual/creature.texi: Likewise.
67978         * manual/crypt.texi: Likewise.
67979         * manual/errno.texi: Likewise.
67980         * manual/filesys.texi: Likewise.
67981         * manual/header.texi: Likewise.
67982         * manual/install.texi: Likewise.
67983         * manual/intro.texi: Likewise.
67984         * manual/io.texi: Likewise.
67985         * manual/job.texi: Likewise.
67986         * manual/lang.texi: Likewise.
67987         * manual/libc.texiinfo: Likewise.
67988         * manual/llio.texi: Likewise.
67989         * manual/locale.texi: Likewise.
67990         * manual/maint.texi: Likewise.
67991         * manual/math.texi: Likewise.
67992         * manual/memory.texi: Likewise.
67993         * manual/message.texi: Likewise.
67994         * manual/nss.texi: Likewise.
67995         * manual/pattern.texi: Likewise.
67996         * manual/process.texi: Likewise.
67997         * manual/resource.texi: Likewise.
67998         * manual/search.texi: Likewise.
67999         * manual/setjmp.texi: Likewise.
68000         * manual/signal.texi: Likewise.
68001         * manual/socket.texi: Likewise.
68002         * manual/startup.texi: Likewise.
68003         * manual/stdio.texi: Likewise.
68004         * manual/string.texi: Likewise.
68005         * manual/sysinfo.texi: Likewise.
68006         * manual/syslog.texi: Likewise.
68007         * manual/terminal.texi: Likewise.
68008         * manual/time.texi: Likewise.
68009         * manual/users.texi: Likewise.
68010         * INSTALL: Regenerated.
68011         * NOTES: Regenerated.
68012         * sysdeps/gnu/errlist.c: Regenerated.
68013
68014 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68015
68016         * include/dirent.h: Include <dirstream.h> before
68017         <dirent/dirent.h>.
68018
68019 2012-02-28  David S. Miller  <davem@davemloft.net>
68020
68021         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68022         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68023         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68024         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68025
68026 2012-02-27  David S. Miller  <davem@davemloft.net>
68027
68028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68029         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68030         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68031         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68032
68033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68034         frame pointer instead of stack pointer relative arg slot.
68035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68036         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68037         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68038
68039 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68040
68041         [BZ #3992]
68042         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68043
68044 2012-02-27  David S. Miller  <davem@davemloft.net>
68045
68046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68047         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68048         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68050         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68051         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68052         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68053         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68054
68055 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68056
68057         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68058         later.  Allow versions 5-9.
68059         * configure: Regenerated.
68060         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68061         required minimum version and 4.6 as recommended version.  Do not
68062         mention bugs in GCC 2.7 and 2.8.
68063         * INSTALL: Regenerated.
68064
68065 2012-02-27  David S. Miller  <davem@davemloft.net>
68066
68067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68069         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68071         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68072         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68073         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68074         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68075
68076         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68077         manipulate bits before adding and subtracting TWO112[sx].
68078         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68079
68080 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68081
68082         [BZ #13775]
68083         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68084         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68085         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68086         being in POSIX, because they are in 1003.1-2008.
68087
68088         * rt/tst-aio.c: Include <fcntl.h>.
68089         * rt/tst-aio7.c: Likewise.
68090         * rt/tst-aio64.c: Likewise.
68091
68092         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68093
68094 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68095
68096         * manual/install.texi (--with-headers): Describe headers as
68097         interface headers, not private headers.
68098         (Specific advice for GNU/Linux systems): Describe use of headers
68099         from "make headers_install", not private headers from older
68100         kernels.
68101         * INSTALL: Regenerated.
68102         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68103         Change to 2.6.19.
68104         * sysdeps/unix/sysv/linux/configure: Regenerated.
68105
68106         * manual/llio.texi (fclean): Remove documentation.
68107
68108         * manual/Makefile (libc-texi-generated): New variable.  Include
68109         version.texi.
68110         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68111         $(libc-texi-generated), not duplicated list of files.
68112         (version.texi, stamp-version): New rules.
68113         (realclean): Remove $(libc-texi-generated), not individual files
68114         from that list.  Do not remove dir-add.texinfo.
68115         * manual/libc.texinfo: Comment out uses of edition numbers and
68116         references to printed manual.  Remove last-updated dates.
68117         (EDITION): Comment out.
68118         (ISBN): Likewise.
68119         (VERSION, UPDATED): Remove.
68120         (version.texi): Include.
68121
68122 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68123
68124         * sysdeps/posix/spawni.c: Include <signal.h>.
68125         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68126         * sysdeps/pthread/aio_fsync.c: Likewise.
68127
68128 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68129
68130         * conform/Makefile (tests): Run only when not cross-compiling and
68131         when fast-check is not defined.
68132
68133         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68134         * conform/data/limits.h-data: Fixes for POSIX2008.
68135         * conform/run-conformtest.sh: Run all tests.
68136         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68137         headers.
68138         * include/bits/dlfcn.h: Likewise.
68139         * include/langinfo.h: Likewise.
68140         * include/monetary.h: Likewise.
68141         * include/sys/poll.h: Likewise.
68142
68143         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68144         for __USE_GNU.
68145         * posix/spawn.h: Define __need_sigset_t.
68146         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68147         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68148         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68149         to get sigevent_t only.
68150         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68151         only for __USE_GNU.
68152         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68153         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68154         process_vm_writev only for __USE_GNU.
68155         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68156
68157         * conform/Makefile: For now ignore errors from run-conformtest.
68158         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68159         POSIX to avoid namespace pollution.  Don't prepend headers.
68160         * conform/data/aio.h-data: Fixes for POSIX testing.
68161         * conform/data/fcntl.h-data: Likewise.
68162         * conform/data/glob.h-data: Likewise.
68163         * conform/data/grp.h-data: Likewise.
68164         * conform/data/pthread.h-data: Likewise.
68165         * conform/data/pwd.h-data: Likewise.
68166         * conform/data/signal.h-data: Likewise.
68167         * conform/data/spawn.h-data: Likewise.
68168         * conform/data/stdio.h-data: Likewise.
68169         * conform/data/stdlib.h-data: Likewise.
68170         * conform/data/stropts.h-data: Likewise.
68171         * conform/data/sys/mman.h-data: Likewise.
68172         * conform/data/sys/stat.h-data: Likewise.
68173         * conform/data/sys/types.h-data: Likewise.
68174         * conform/data/sys/wait.h-data: Likewise.
68175         * conform/data/time.h-data: Likewise.
68176         * conform/data/unistd.h-data: Likewise.
68177         * conform/data/utime.h-data: Likewise.
68178
68179         * io/sys/stat.h: fchmod was always in POSIX.
68180         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68181         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68182         * rt/aio.h: Define __need_timespec before including <time.h>.
68183         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68184         struct.  Add forward declaration of pthread_attr_t and use it in
68185         sigevent.
68186         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68187         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68188         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68189         always remove CLK_TCK definition.
68190
68191 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68192
68193         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68194
68195 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68196
68197         * conform/run-conformtest.sh: New file.
68198         * conform/Makefile: Run run-conformtest for tests.
68199         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68200         support.
68201
68202         * conform/data/uchar.h-data: New file.
68203         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68204         * conform/data/arpa/inet.h-data: Likewise.
68205         * conform/data/assert.h-data: Likewise.
68206         * conform/data/complex.h-data: Likewise.
68207         * conform/data/cpio.h-data: Likewise.
68208         * conform/data/ctype.h-data: Likewise.
68209         * conform/data/dirent.h-data: Likewise.
68210         * conform/data/dlfcn.h-data: Likewise.
68211         * conform/data/errno.h-data: Likewise.
68212         * conform/data/fcntl.h-data: Likewise.
68213         * conform/data/float.h-data: Likewise.
68214         * conform/data/fmtmsg.h-data: Likewise.
68215         * conform/data/fnmatch.h-data: Likewise.
68216         * conform/data/ftw.h-data: Likewise.
68217         * conform/data/glob.h-data: Likewise.
68218         * conform/data/grp.h-data: Likewise.
68219         * conform/data/iconv.h-data: Likewise.
68220         * conform/data/inttypes.h-data: Likewise.
68221         * conform/data/langinfo.h-data: Likewise.
68222         * conform/data/libgen.h-data: Likewise.
68223         * conform/data/limits.h-data: Likewise.
68224         * conform/data/locale.h-data: Likewise.
68225         * conform/data/math.h-data: Likewise.
68226         * conform/data/monetary.h-data: Likewise.
68227         * conform/data/mqueue.h-data: Likewise.
68228         * conform/data/ndbm.h-data: Likewise.
68229         * conform/data/net/if.h-data: Likewise.
68230         * conform/data/netdb.h-data: Likewise.
68231         * conform/data/netinet/in.h-data: Likewise.
68232         * conform/data/nl_types.h-data: Likewise.
68233         * conform/data/poll.h-data: Likewise.
68234         * conform/data/pthread.h-data: Likewise.
68235         * conform/data/pwd.h-data: Likewise.
68236         * conform/data/regex.h-data: Likewise.
68237         * conform/data/sched.h-data: Likewise.
68238         * conform/data/search.h-data: Likewise.
68239         * conform/data/semaphore.h-data: Likewise.
68240         * conform/data/setjmp.h-data: Likewise.
68241         * conform/data/signal.h-data: Likewise.
68242         * conform/data/spawn.h-data: Likewise.
68243         * conform/data/stdarg.h-data: Likewise.
68244         * conform/data/stdio.h-data: Likewise.
68245         * conform/data/stdlib.h-data: Likewise.
68246         * conform/data/string.h-data: Likewise.
68247         * conform/data/strings.h-data: Likewise.
68248         * conform/data/stropts.h-data: Likewise.
68249         * conform/data/sys/ipc.h-data: Likewise.
68250         * conform/data/sys/mman.h-data: Likewise.
68251         * conform/data/sys/msg.h-data: Likewise.
68252         * conform/data/sys/resource.h-data: Likewise.
68253         * conform/data/sys/select.h-data: Likewise.
68254         * conform/data/sys/sem.h-data: Likewise.
68255         * conform/data/sys/shm.h-data: Likewise.
68256         * conform/data/sys/socket.h-data: Likewise.
68257         * conform/data/sys/stat.h-data: Likewise.
68258         * conform/data/sys/statvfs.h-data: Likewise.
68259         * conform/data/sys/time.h-data: Likewise.
68260         * conform/data/sys/timeb.h-data: Likewise.
68261         * conform/data/sys/times.h-data: Likewise.
68262         * conform/data/sys/types.h-data: Likewise.
68263         * conform/data/sys/uio.h-data: Likewise.
68264         * conform/data/sys/un.h-data: Likewise.
68265         * conform/data/sys/utsname.h-data: Likewise.
68266         * conform/data/sys/wait.h-data: Likewise.
68267         * conform/data/syslog.h-data: Likewise.
68268         * conform/data/tar.h-data: Likewise.
68269         * conform/data/termios.h-data: Likewise.
68270         * conform/data/utime.h-data: Likewise.
68271         * conform/data/utmpx.h-data: Likewise.
68272         * conform/data/varargs.h-data: Likewise.
68273         * conform/data/wchar.h-data: Likewise.
68274         * conform/data/wctype.h-data: Likewise.
68275         * conform/data/wordexp.h-data: Likewise.
68276
68277         * include/stropts.h: New file.
68278         * include/uchar.h: New file.
68279         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68280         * include/assert.h: Likewise.
68281         * include/ctype.h: Likewise.
68282         * include/dirent.h: Likewise.
68283         * include/dlfcn.h: Likewise.
68284         * include/fcntl.h: Likewise.
68285         * include/fnmatch.h: Likewise.
68286         * include/glob.h: Likewise.
68287         * include/grp.h: Likewise.
68288         * include/libio.h: Likewise.
68289         * include/locale.h: Likewise.
68290         * include/math.h: Likewise.
68291         * include/net/if.h: Likewise.
68292         * include/netdb.h: Likewise.
68293         * include/netinet/in.h: Likewise.
68294         * include/pthread.h: Likewise.
68295         * include/pwd.h: Likewise.
68296         * include/regex.h: Likewise.
68297         * include/sched.h: Likewise.
68298         * include/search.h: Likewise.
68299         * include/setjmp.h: Likewise.
68300         * include/signal.h: Likewise.
68301         * include/stdio.h: Likewise.
68302         * include/stdlib.h: Likewise.
68303         * include/string.h: Likewise.
68304         * include/sys/cdefs.h: Likewise.
68305         * include/sys/mman.h: Likewise.
68306         * include/sys/msg.h: Likewise.
68307         * include/sys/resource.h: Likewise.
68308         * include/sys/select.h: Likewise.
68309         * include/sys/socket.h: Likewise.
68310         * include/sys/stat.h: Likewise.
68311         * include/sys/statvfs.h: Likewise.
68312         * include/sys/time.h: Likewise.
68313         * include/sys/times.h: Likewise.
68314         * include/sys/uio.h: Likewise.
68315         * include/sys/utsname.h: Likewise.
68316         * include/sys/wait.h: Likewise.
68317         * include/termios.h: Likewise.
68318         * include/time.h: Likewise.
68319         * include/ulimit.h: Likewise.
68320         * include/unistd.h: Likewise.
68321         * include/utime.h: Likewise.
68322         * include/wchar.h: Likewise.
68323         * include/wctype.h: Likewise.
68324         * include/wordexp.h: Likewise.
68325
68326         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68327
68328         * time/time.h: TIME_UTC must be a macro.
68329         Make timespec_get available for ISO C11 only as well.
68330
68331 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68332
68333         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68334         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68335
68336 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68337
68338         * configure.in: Use -o not -a in test for unsupported multi-arch.
68339
68340 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68341
68342         * manual/texinfo.tex: Update to version 2012-01-19.16.
68343
68344 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68345
68346         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68347
68348 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68349
68350         [BZ #13738]
68351         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68352         * manual/fdl-1.3.texi: New file.
68353         * manual/fdl-1.1.texi: File removed.
68354
68355         [BZ #13738]
68356         * manual/libc.texinfo (FDL_VERSION): New @set.
68357         Use it for mention of FDL in cover text.
68358         (Documentation License): Use it in @include file name.
68359
68360 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68361             Roland McGrath  <roland@hack.frob.com>
68362
68363         [BZ #5461]
68364         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68365         (not LONG_LONG_MAX and LONG_LONG_MIN.
68366         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68367         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68368         name.
68369         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68370
68371 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68372
68373         [BZ #2547]
68374         [BZ #11365]
68375         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68376         manipulate bits before adding and subtracting TWO23[sx].
68377         * math/libm-test.inc (nearbyint_test): Add more tests.
68378
68379 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68380
68381         [BZ #2548]
68382         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68383         bits before adding and subtracting TWO23[sx].
68384         * math/libm-test.inc (rint_test): Add more tests.
68385         (rint_test_tonearest): Likewise.
68386         (rint_test_towardzero): Likewise.
68387         (rint_test_downward): Likewise.
68388         (rint_test_upward: Likewise.
68389
68390 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68391
68392         [BZ #10110]
68393         * include/stdc-predef.h: New file.  Extracted from features.h.
68394         * include/features.h: Include stdc-predef.h.
68395         * Makefile (headers): Add stdc-predef.h.
68396         * CONFORMANCE (Compiler limitations): Update.
68397
68398 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68399
68400         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68401
68402 2012-02-21  David S. Miller  <davem@davemloft.net>
68403
68404         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68405         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68406
68407 2012-02-20  David S. Miller  <davem@davemloft.net>
68408
68409         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68410         using a normal save/restore sequence, rather than allocating a
68411         dummy stack frame just to store a frame pointer and restore.
68412         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68413
68414 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68415
68416         * manual/install.texi: Fix stray word in line-wrapped comment.
68417
68418 2012-02-20  David S. Miller  <davem@davemloft.net>
68419
68420         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68421         both binutils and gcc support GOTDATA.
68422
68423         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68424         "rd %pc" in the PIC register setup sequences.
68425
68426         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68427         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68428         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68429         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68430         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68431         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68432         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68433         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68434         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68435         (SYSCALL_ERROR_HANDLER): Likewise.
68436         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68437         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68438         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68439         (SYSCALL_ERROR_HANDLER): Likewise.
68440
68441         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68442         (HAVE_GCC_GOTDATA): New.
68443         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68444         relocation support in both binutils and gcc.
68445         * sysdeps/sparc/elf/configure: Regenerate.
68446
68447         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68448         * sysdeps/sparc/sparc32/elf/configure: Delete.
68449         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68450         * sysdeps/sparc/sparc64/elf/configure: Delete.
68451         * sysdeps/sparc/elf/configure.in: New file.
68452         * sysdeps/sparc/elf/configure: Generate.
68453
68454         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68455         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68456         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68457         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68458         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68459
68460 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68461
68462         * manual/install.texi: Do not mention specific glibc version
68463         numbers.
68464         * manual/libc.texinfo (VERSION, UPDATED): Update.
68465         (@copying): Use @copyright{} and range of years.
68466
68467 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68468
68469         [BZ #13695]
68470         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68471         [crti.S not in sysdirs] (generated): Do not append.
68472         [crti.S not in sysdirs] (omit-deps): Likewise.
68473         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68474         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68475         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68476         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68477         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68478         Likewise.
68479         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68480         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68481         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68482         * csu/defs.awk: Remove file.
68483         * sysdeps/generic/initfini.c: Likewise.
68484         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68485         variable.
68486         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68487         Likewise.
68488
68489 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68490
68491         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68492         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68493         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68494         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68495         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68496         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68497         <bits/epoll.h>.
68498         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68499         (__EPOLL_PACKED): Define to empty if not defined by
68500         <bits/epoll.h>.
68501         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68503         bits/epoll.h.
68504
68505 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68506
68507         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68508         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68509         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68510         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68511         <bits/timerfd.h>.
68512         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68513         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68514         bits/timerfd.h.
68515
68516 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68517
68518         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68519         in C locale.
68520         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68521         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68522         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68524
68525 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68526
68527         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68528         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68529
68530 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68531
68532         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68533         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68534         defined.
68535         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68536         Likewise.
68537         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68538         entry for 2.16.
68539
68540 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68541
68542         * math/w_acos.c: Use non-signaling floating-point comparisons.
68543         * math/w_acosf.c: Likewise.
68544         * math/w_acosh.c: Likewise.
68545         * math/w_acoshf.c: Likewise.
68546         * math/w_acoshl.c: Likewise.
68547         * math/w_acosl.c: Likewise.
68548         * math/w_asin.c: Likewise.
68549         * math/w_asinf.c: Likewise.
68550         * math/w_asinl.c: Likewise.
68551         * math/w_atanh.c: Likewise.
68552         * math/w_atanhf.c: Likewise.
68553         * math/w_atanhl.c: Likewise.
68554         * math/w_exp2.c: Likewise.
68555         * math/w_exp2f.c: Likewise.
68556         * math/w_exp2l.c: Likewise.
68557         * math/w_j0.c: Likewise.
68558         * math/w_j0f.c: Likewise.
68559         * math/w_j0l.c: Likewise.
68560         * math/w_j1.c: Likewise.
68561         * math/w_j1f.c: Likewise.
68562         * math/w_j1l.c: Likewise.
68563         * math/w_jn.c: Likewise.
68564         * math/w_jnf.c: Likewise.
68565         * math/w_log.c: Likewise.
68566         * math/w_log10.c: Likewise.
68567         * math/w_log10f.c: Likewise.
68568         * math/w_log10l.c: Likewise.
68569         * math/w_log2.c: Likewise.
68570         * math/w_log2f.c: Likewise.
68571         * math/w_log2l.c: Likewise.
68572         * math/w_logf.c: Likewise.
68573         * math/w_logl.c: Likewise.
68574         * math/w_sqrt.c: Likewise.
68575         * math/w_sqrtf.c: Likewise.
68576         * math/w_sqrtl.c: Likewise.
68577         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68578         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68579         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68580         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68581         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68582
68583 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68584
68585         [BZ #9739]
68586         * manual/string.texi (strnlen): Use correct parameter name in
68587         equivalent expression.
68588
68589 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68590
68591         [BZ #11174]
68592         * manual/users.texi (seteuid): Consistently use neweuid for
68593         argument name.
68594
68595 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68596
68597         [BZ #13704]
68598         * manual/nss.texi (Services in the NSS configuration): Correct
68599         list of services in example configuration file.
68600
68601 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68602
68603         [BZ #11322]
68604         * manual/arith.texi: Remove statements about negative zero
68605         behaving identically to zero.
68606
68607 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68608
68609         [BZ #5993]
68610         * manual/install.texi: Do not document upgrading from libc5.
68611
68612 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68613
68614         [BZ #4596]
68615         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68616
68617 2012-02-18  David S. Miller  <davem@davemloft.net>
68618
68619         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68620         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68621         %o7 across the call.
68622         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68623         instead.
68624         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68625         SETUP_PIC_REG_LEAF.
68626         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68627         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68628         * sysdeps/sparc/crtn.S: Likewise.
68629
68630 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68631
68632         * aout/Makefile: Remove.
68633
68634 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68635
68636         [BZ #13058]
68637         * manual/examples/argp-ex1.c (main): Format definition in GNU
68638         style.
68639         * manual/examples/argp-ex2.c (main): Likewise.
68640         * manual/examples/argp-ex3.c (main): Likewise.
68641         * manual/examples/argp-ex4.c (main): Likewise.
68642         * manual/examples/longopt.c (main): Use new-style prototype
68643         definition.
68644         * manual/examples/strncat.c (main): Specify return type and use
68645         (void) for arguments.
68646         * manual/examples/subopt.c (main): Use char **argv argument.
68647
68648 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68649
68650         [BZ #5077]
68651         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68652         rounding modes.
68653
68654 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68655
68656         [BZ #6907]
68657         * manual/string.texi (strchr): Change when strchrnul is
68658         recommended.
68659
68660 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68661
68662         [BZ #174]
68663         * manual/locale.texi (setlocale): Document LOCPATH.
68664
68665 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68666
68667         [BZ #10210]
68668         * manual/process.texi (execle): Move @dots{} before last argument.
68669
68670 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68671
68672         [BZ #12047]
68673         * manual/charset.texi (Generic Charset Conversion): Fix typo
68674         (LC_TYPE -> LC_CTYPE).
68675
68676 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68677
68678         [BZ #5805]
68679         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68680         (scalbnf): Likewise.
68681         (scalbnl): Likewise.
68682         (scalbln): Likewise.
68683         (scalblnf): Likewise.
68684         (scalblnl): Likewise.
68685         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68686         (vwarnx): Likewise.
68687         (verr): Likewise.
68688         (verrx): Likewise.
68689         * manual/filesys.texi (telldir): Use braces around return type.
68690         * manual/llio.texi (mmap): Add space after comma.
68691         (mmap64): Likewise.
68692         * manual/math.texi (jn): Use @var{} on parameter names.
68693         (jnf): Likewise.
68694         (jnl): Likewise.
68695         (yn): Likewise.
68696         (ynf): Likewise.
68697         (ynl): Likewise.
68698         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68699         line.
68700         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68701         "...".
68702         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68703         (sched_get_priority_max): Likewise.
68704         * manual/signal.texi (sigvec): Add space after comma.
68705         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68706         names.
68707         (if_indextoname): Likewise.
68708         (if_freenameindex): Likewise.
68709         (sendto): Use ',' instead of '.' in prototype.
68710         * manual/startup.texi (syscall): Use @dots{} instead of literal
68711         "...".
68712         * manual/stdio.texi (__fpending): Separate initial words of
68713         paragraph from @deftypefun line.
68714         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68715         "...".
68716         (vsyslog): Use @var{} on parameter names.
68717         * manual/terminal.texi (stty): Use @var{} on parameter names.
68718         * manual/users.texi (getutmp): Use @var{} on parameter names.
68719         (getutmpx): Likewise.
68720
68721 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68722
68723         [BZ #6884]
68724         * manual/stdio.texi (fopen): Fix typos in description of
68725         ",ccs=STRING".
68726
68727 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68728
68729         [BZ #4026]
68730         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68731         get clock_id definition.
68732
68733 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68734
68735         [BZ #4822]
68736         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68737         (madvise): Cast every argument to void on its own.
68738
68739 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68740
68741         [BZ #9902]
68742         * manual/startup.texi (Exit Status): Fix typo.
68743
68744 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68745
68746         [BZ #10140]
68747         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68748         * manual/examples/argp-ex2.c: Likewise.
68749         * manual/examples/argp-ex3.c: Likewise.
68750
68751 2012-02-16  Richard Henderson  <rth@redhat.com>
68752
68753         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68754         * sysdeps/s390/s390-32/initfini.c: Remove.
68755         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68756         * sysdeps/s390/s390-64/initfini.c: Remove.
68757
68758 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68759
68760         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68761         compiler output for sysdeps/generic/initfini.c.
68762         * sysdeps/sh/elf/initfini.c: Remove file.
68763
68764 2012-02-16  David S. Miller  <davem@davemloft.net>
68765
68766         [BZ #11494]
68767         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68768
68769         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68770         * sysdeps/sparc/crti.S: New file.
68771         * sysdeps/sparc/crtn.S: New file.
68772         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68773         * sysdeps/sparc/sparc64/Makefile: Likewise.
68774
68775 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
68776
68777         [BZ #3335]
68778         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
68779
68780 2012-02-15  Roland McGrath  <roland@hack.frob.com>
68781
68782         [BZ #4822]
68783         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
68784
68785         * mach/devstream.c (cookie_io_functions_t): Macro removed.
68786         (write, read, close): Likewise.
68787         Patch by Aurelien Jarno <aurelien@aurel32.net>.
68788
68789 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
68790
68791         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
68792         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
68793         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
68794         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
68795         <bits/signalfd.h>.
68796         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
68797         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68798         bits/signalfd.h.
68799
68800 2012-02-14  Marek Polacek  <polacek@redhat.com>
68801
68802         * sysdeps/x86_64/crti.S: New file.
68803         * sysdeps/x86_64/crtn.S: New file.
68804         * sysdeps/x86_64/elf/initfini.c: Remove file.
68805
68806 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68807
68808         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
68809         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
68810         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
68811         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
68812         <bits/inotify.h>.
68813         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
68814         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68815         bits/inotify.h.
68816
68817 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68818
68819         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
68820         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
68821         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
68822         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
68823         <bits/eventfd.h>.
68824         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
68825         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68826         bits/eventfd.h.
68827
68828 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
68829
68830         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
68831         __feraiseexcept instead of feraiseexcept.
68832
68833         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
68834         nanosleep invocations.
68835         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
68836         strings, and add error checking for a nanosleep invocations.
68837
68838 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
68839
68840         Replace FSF snail mail address with URLs, as per GNU coding standards.
68841         Most of the snail mail addresses were wrong anyway, and omitting
68842         them makes the source code easier to maintain.  Almost all of the
68843         changes are to license notices and to locale LC_IDENTIFICATION
68844         addresses, except for this one:
68845         * manual/libc.texinfo: In "Published by", give the FSF's URL,
68846         not its snail mail address.
68847
68848 2012-02-09  Richard Henderson  <rth@twiddle.net>
68849
68850         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
68851         of kernel-features.h.
68852
68853         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
68854
68855 2012-02-08  Marek Polacek  <polacek@redhat.com>
68856
68857         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
68858         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
68859         * sysdeps/gnu/_G_config.h: Likewise.
68860         * sysdeps/generic/_G_config.h: Likewise.
68861
68862 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
68863
68864         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
68865         tests.
68866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68867
68868         * sysdeps/powerpc/powerpc32/crti.S: New file.
68869         * sysdeps/powerpc/powerpc32/crtn.S: New file.
68870         * sysdeps/powerpc/powerpc64/crti.S: New file.
68871         * sysdeps/powerpc/powerpc64/crtn.S: New file.
68872
68873         * Makeconfig (have-initfini): Don't set.
68874         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
68875         * configure.in (nopic_initfini): Don't substitute.
68876         * config.h.in (HAVE_INITFINI): Don't #undef.
68877         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
68878         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
68879
68880 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
68881
68882         Support crti.S and crtn.S provided directly by architectures.
68883         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
68884         [crti.S in sysdirs] (omit-deps): Likewise.
68885         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
68886         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
68887         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
68888         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
68889         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
68890         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
68891         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
68892         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
68893         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
68894         compiler output for sysdeps/generic/initfini.c.
68895         * sysdeps/i386/elf/Makefile: Remove file.
68896         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
68897
68898 2012-02-07  Marek Polacek  <polacek@redhat.com>
68899
68900         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
68901         * sysdeps/gnu/_G_config.h: Likewise.
68902         * sysdeps/mach/hurd/_G_config.h: Likewise.
68903
68904 2012-02-07  Marek Polacek  <polacek@redhat.com>
68905
68906         * math/Makefile (tests): Add tst-CMPLX2.
68907         * math/tst-CMPLX2.c: New file.
68908
68909 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
68910
68911         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68912
68913         * math/libm-test.inc (jn_test): Add missing L suffix.
68914
68915 2012-02-06  Marek Polacek  <polacek@redhat.com>
68916
68917         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
68918         * sysdeps/i386/fpu/e_powf.S: Likewise.
68919         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
68920         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
68921         * sysdeps/i386/fpu/e_acosh.S: Likewise.
68922         * sysdeps/i386/fpu/e_pow.S: Likewise.
68923         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
68924         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
68925         * sysdeps/i386/fpu/s_expm1.S: Likewise.
68926         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
68927         * sysdeps/i386/fpu/e_log2.S: Likewise.
68928         * sysdeps/i386/fpu/e_log2l.S: Likewise.
68929         * sysdeps/i386/fpu/e_scalb.S: Likewise.
68930         * sysdeps/i386/fpu/e_powl.S: Likewise.
68931         * sysdeps/i386/fpu/s_log1p.S: Likewise.
68932         * sysdeps/i386/fpu/e_log10f.S: Likewise.
68933         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
68934         * sysdeps/i386/fpu/e_logl.S: Likewise.
68935         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
68936         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
68937         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
68938         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
68939         * sysdeps/i386/fpu/e_log2f.S: Likewise.
68940         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
68941         * sysdeps/i386/fpu/e_log.S: Likewise.
68942         * sysdeps/i386/fpu/s_cexp.S: Likewise.
68943         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
68944         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
68945         * sysdeps/i386/fpu/e_logf.S: Likewise.
68946         * sysdeps/i386/fpu/e_log10l.S: Likewise.
68947         * sysdeps/i386/fpu/e_atanh.S: Likewise.
68948         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
68949         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
68950         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
68951         * sysdeps/i386/fpu/e_log10.S: Likewise.
68952         * sysdeps/i386/fpu/s_frexp.S: Likewise.
68953         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
68954         * sysdeps/i386/fpu/s_asinh.S: Likewise.
68955         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
68956         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
68957         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
68958         * sysdeps/i386/asm-syntax.h: Likewise.
68959         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
68960         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
68961         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
68962         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
68963         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
68964         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
68965         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
68966         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
68967         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
68968         * sysdeps/powerpc/sysdep.h: Likewise.
68969         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
68970         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
68971
68972 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68973
68974         [BZ #411]
68975         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
68976
68977 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68978
68979         * sysdeps/i386/sysdep.h: Include <features.h>.
68980         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
68981         version.
68982
68983 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
68984
68985         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
68986         Define.
68987         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
68988         LOAD_PIC_REG_STR.
68989
68990 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68991
68992         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
68993         (SETUP_PIC_REG): Use GET_PC_THUNK.
68994         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
68995         macro.
68996
68997 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68998
68999         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69000         for non-PIC compilation.
69001         (SETUP_PIC_REG): Add .p2align directive.
69002         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69003         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69004         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69005         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69006         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69007         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69008         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69009         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69010         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69011         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69012         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69013         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69014         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69015         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69016         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69017         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69018         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69019         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69020         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69021         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69022         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69023         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69024         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69025         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69026         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69027         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69028         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69029         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69030         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69031         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69032         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69033         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69034         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69035         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69036         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69037         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69038         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69039         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69040         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69041         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69042         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69043
69044 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69045
69046         * math/tst-CMPLX.c: Include <stdio.h>.
69047
69048 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69049
69050         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69051         float.
69052         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69053         * sysdeps/sparc/bits/mathdef.h: Likewise.
69054
69055 2012-01-31  Marek Polacek  <polacek@redhat.com>
69056
69057         * libio/libio.h: Don't define _PARAMS.
69058         * locale/programs/config.h: Don't define PARAMS.
69059         * stdlib/strtol_l.c: Likewise.
69060         (__strtol_l): Remove PARAMS from the prototype.
69061
69062 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69063
69064         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69065         names.  Just use the correct names.  Remove unnecessary wrapper
69066         functions.
69067         * malloc/arena.c: Likewise.
69068         * malloc/hooks.c: Likewise.
69069
69070         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69071         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69072         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69073
69074 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69075
69076         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69077         into tail calls.
69078         (update_get_addr): New function.
69079         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69080         GET_ADDR_MODULE parameter.
69081
69082 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69083
69084         * crypt/cert.c: Remove __STDC__ conditionals.
69085         * crypt/crypt-entry.c: Likewise.
69086         * crypt/crypt_util.c: Likewise.
69087         * libio/filedoalloc.c: Likewise.
69088         * libio/fileops.c: Likewise.
69089         * libio/genops.c: Likewise.
69090         * libio/iofclose.c: Likewise.
69091         * libio/iofdopen.c: Likewise.
69092         * libio/iofopen.c: Likewise.
69093         * libio/iofopen64.c: Likewise.
69094         * libio/iogetdelim.c: Likewise.
69095         * libio/iopopen.c: Likewise.
69096         * libio/obprintf.c: Likewise.
69097         * libio/oldfileops.c: Likewise.
69098         * libio/oldiofclose.c: Likewise.
69099         * libio/oldiofdopen.c: Likewise.
69100         * libio/oldiofopen.c: Likewise.
69101         * libio/oldiopopen.c: Likewise.
69102         * libio/wfiledoalloc.c: Likewise.
69103         * libio/wgenops.c: Likewise.
69104         * locale/programs/xmalloc.c: Likewise.
69105         * misc/syslog.c: Likewise.
69106         * stdio-common/xbug.c: Likewise.
69107         * string/memchr.c: Likewise.
69108         * string/memcmp.c: Likewise.
69109         * string/memrchr.c: Likewise.
69110         * string/rawmemchr.c: Likewise.
69111         * sysdeps/posix/getcwd.c: Likewise.
69112         * time/strftime_l.c: Likewise.
69113
69114 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69115
69116         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69117         * config.make.in (config-cflags-sse2avx): Define.
69118         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69119         Fix typo.
69120
69121 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69122
69123         * scripts/config.guess: Update from upstream config git repository.
69124         * scripts/config.sub: Likewise.
69125
69126 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69127
69128         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69129         (EM_NUM): Update.
69130         (R_TILEPRO_*, R_TILEGX_*): New macros.
69131
69132         * scripts/firstversions.awk: Fix bug in version range handling.
69133
69134         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69135
69136         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69137
69138         * include/sys/epoll.h: New file.
69139         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69140         libc_hidden_def.
69141
69142 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69143
69144         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69145         Avoid unnecessary __WORDSIZE == 64 test.
69146         (fmaxf): Use VEX format if possible.
69147         (fmax): Likewise.
69148         (fminf): Likewise.
69149         (fmin): Likewise.
69150
69151         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69152         * math/math_private.h: Remove libc_fegetround* and
69153         libc_fesetround*.
69154         * sysdeps/i386/configure.in: Check for -msse2avx.
69155         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69156         also if SSE2AVX is defined.
69157         Remove libc_fegetround* and libc_fesetround*.
69158         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69159         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69160         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69161         of HAS_YMM_USABLE.
69162         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69163         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69164         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69165         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69166         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69167
69168         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69169
69170 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69171
69172         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69173         size is not set.
69174         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69175
69176 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69177
69178         [BZ #13618]
69179         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69180         relocation.
69181         * Makeconfig (libm): Define.
69182         * elf/Makefile: Add rules to build and run tst-relsort1.
69183         * elf/tst-relsort1.c: New file.
69184         * elf/tst-relsort1mod1.c: New file.
69185         * elf/tst-relsort1mod2.c: New file.
69186
69187 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69188
69189         * math/s_ldexp.c: Remove __STDC__ conditionals.
69190         * math/s_ldexpf.c: Likewise.
69191         * math/s_ldexpl.c: Likewise.
69192         * math/s_nextafter.c: Likewise.
69193         * math/s_nexttowardf.c: Likewise.
69194         * math/s_significand.c: Likewise.
69195         * math/s_significandf.c: Likewise.
69196         * math/s_significandl.c: Likewise.
69197         * math/w_jnl.c: Likewise.
69198         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69199         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69200         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69201         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69202         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69203         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69204         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69205         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69206         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69207         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69208         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69209         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69210         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69211         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69212         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69213         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69214         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69215         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69216         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69217         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69218         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69219         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69220         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69221         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69222         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69223         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69224         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69225         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69226         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69227         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69228         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69229         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69230         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69231         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69232         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69233         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69234         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69235         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69236         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69237         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69238         * sysdeps/ieee754/k_standard.c: Likewise.
69239         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69240         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69241         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69242         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69243         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69244         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69245         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69246         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69247         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69248         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69249         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69250         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69251         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69252         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69253         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69254         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69255         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69256         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69257         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69258         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69259         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69260         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69261         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69262         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69263         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69264         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69265         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69266         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69267         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69268         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69269         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69270         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69271         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69272         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69273         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69274         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69275         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69276         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69277         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69278         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69279         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69280         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69281         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69282         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69283         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69284         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69285         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69286         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69287         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69288         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69289         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69290         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69291         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69292         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69293         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69294         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69295         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69296         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69297         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69298         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69299         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69300         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69301         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69302         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69303         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69304         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69305         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69306         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69307         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69308         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69309         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69310         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69311         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69312         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69313         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69314         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69315         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69316         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69317         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69318         * sysdeps/ieee754/s_matherr.c: Likewise.
69319         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69320         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69321         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69322         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69323
69324 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69325
69326         * crypt/md5.h: Remove __STDC__ conditionals.
69327         * libio/libioP.h: Likewise.
69328         * locale/programs/config.h: Likewise.
69329         * sysdeps/generic/sysdep.h: Likewise.
69330         * sysdeps/i386/asm-syntax.h: Likewise.
69331         * sysdeps/s390/asm-syntax.h: Likewise.
69332         * sysdeps/unix/sysdep.h: Likewise.
69333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69335
69336 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69337
69338         * libio/libio.h: Remove __STDC__ conditionals.
69339         * malloc/obstack.h: Likewise.
69340         * math/complex.h: Likewise.
69341         * math/math.h: Likewise.
69342         * sysdeps/generic/_G_config.h: Likewise.
69343         * sysdeps/gnu/_G_config.h: Likewise.
69344         * sysdeps/mach/hurd/_G_config.h: Likewise.
69345         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69346         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69347         * sysdeps/sparc/bits/mathdef.h: Likewise.
69348
69349 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69350
69351         [BZ #13583]
69352         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69353         Clean up HAS_* macros.
69354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69355         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69356         possible.
69357         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69358         HAS_AVX.
69359         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69360         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69361         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69362         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69363         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69364
69365 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69366
69367         * elf/tst-unique3.cc (gets): Remove declaration.
69368         * elf/tst-unique3lib.cc (gets): Likewise.
69369         * elf/tst-unique3lib2.cc (gets): Likewise.
69370         * elf/tst-unique4.cc (gets): Likewise.
69371
69372 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69373
69374         * include/stdio.h: Add C++ protection.  Add gets declarations and
69375         definitions.
69376         * debug/tst-chk1.c: Don't declare gets here.
69377         * stdio-common/tst-gets.c: Likewise.
69378
69379 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69380
69381         * posix/glob: Remove directory.
69382
69383 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69384
69385         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69386
69387 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69388
69389         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69390         of the non-standard EPFNOSUPPORT.
69391
69392 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69393
69394         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69395         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69396         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69397
69398 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69399
69400         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69401
69402 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69403
69404         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69405         transient errors.
69406         * nscd/grpcache.c (cache_addgr): Likewise.
69407         * nscd/hstcache.c (cache_addhst): Likewise.
69408         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69409         * nscd/pwdcache.c (cache_addpw): Likewise.
69410         * nscd/servicescache.c (cache_addserv): Likewise.
69411
69412 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69413
69414         * malloc/malloc.c: Various cleanups.
69415         * malloc/hooks.c: Likewise.
69416
69417         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69418         * stdlib/bug-fmtmsg1.c: New file.
69419
69420         * stdlib/fmtmsg.c (init): Add missing unlock.
69421         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69422
69423 2012-01-12  Marek Polacek  <polacek@redhat.com>
69424
69425         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69426         and _GNU_SOURCE.
69427
69428 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69429
69430         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69431         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69432         macro to ensure uniqueness of label name.
69433         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69434         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69435
69436 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69437
69438         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69439
69440         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69441         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69442         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69443         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69444
69445 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69446
69447         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69448
69449         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69450         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69451         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69452
69453         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69454
69455         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69456         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69457         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69458         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69459
69460         * math/bits/math-finite.h: Add ldexp support.
69461
69462 2012-01-10  Marek Polacek  <polacek@redhat.com>
69463
69464         * locale/programs/localedef.h (show_archive_content): Add noreturn
69465         attribute.
69466
69467 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69468
69469         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69470
69471 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69472
69473         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69474
69475         * io/Makefile (headers): Add bits/poll2.h.
69476
69477 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69478
69479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69480         typo #include statement.
69481
69482 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69483
69484         * include/sys/cdefs.h: Define __attribute_alloc_size.
69485         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69486         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69487         * elf/pldd.c: Likewise.
69488         * iconv/iconv_charmap.c: Likewise.
69489         * iconv/iconvconfig.c: Likewise.
69490         * iconv/strtab.c: Likewise.
69491         * locale/programs/locale.c: Likewise.
69492         * locale/programs/localedef.h: Likewise.
69493         * locale/programs/simple-hash.c: Likewise.
69494         * nscd/nscd.h: Likewise.
69495         * nss/makedb.c: Likewise.
69496         * sysdeps/generic/ldconfig.h: Likewise.
69497         * locale/programs/localedef.c: Remove xmalloc prototype.
69498         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69499
69500 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69501
69502         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69503         appropriate.
69504
69505 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69506
69507         * math/Makefile (tests): Add tst-CMPLX.
69508         * math/tst-CMPLX.c: New file.
69509
69510         * math/complex.h (CMPLXL): Fix typo.
69511
69512         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69513         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69514         GLIBC_2.16.
69515         * debug/tst-chk1.c: Add poll and ppoll tests.
69516         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69517         * include/sys/poll.h: Add hidden proto for ppoll.
69518         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69519         * sysdeps/mach/hurd/ppoll.c: Likewise.
69520         * io/ppoll.c: Likewise.
69521         * debug/poll_chk.c: New file.
69522         * debug/ppoll_chk.c: New file.
69523         * include/bits/poll2.h: New file.
69524         * io/bits/poll2.h: New file.
69525
69526         [BZ #1350]
69527         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69528
69529         * configure.in: static is always set to yes.  Remove.
69530         * config.make.in: Don't set build-static.
69531         * Makeconfig: Remove use of build-static.
69532         * dlfcn/Makefile: Likewise.
69533         * elf/Makefile: Likewise.
69534         * math/Makefile: Likewise.
69535         * misc/Makefile: Likewise.
69536         * nptl/Makefile: Likewise.
69537         * sysdeps/mach/hurd/Makefile: Likewise.
69538
69539         * configure.in: PWD_P is not used anymore.
69540         * config.make.in: Remove PWD_P entry.
69541
69542         * configure.in: Remove last remnants of RANLIB.
69543         No need to check for signed size_t anymore.
69544         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69545         and IA-64.
69546         Remove __builtin_expect test because we require at least gcc 3.4.
69547         * aclocal.m4: Likewise.
69548
69549         * wcsmbs/mbrtoc16.c: Implement using towc function.
69550         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69551         * wcsmbs/wcsmbsload.c: Likewise.
69552         * iconv/gconv_simple.c: Likewise.
69553         * iconv/gconv_int.h: Likewise.
69554         * iconv/gconv_builtin.h: Likewise.
69555         * iconv/iconv_prog.c: Remove CHAR16 handling.
69556
69557         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69558
69559         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69560
69561         * configure.in: Remove --with-elf and --enable-bounded options.
69562         Dont set base_machine for ia64.  More non-ELF conditions removed.
69563         Remove testing and setting of leading underscore information.
69564         * config.make.in (build-bounded): Set to no.
69565         * config.h.in: Remove NO_UNDERSCORES entry.
69566         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69567         them.
69568         * csu/start.c: Remove !NO_UNDERSCORE code.
69569         * locale/localeinfo.h: Likewise.
69570         * sysdeps/generic/machine-gmon.h: Likewise.
69571         * sysdeps/generic/sysdep.h: Likewise.
69572         * sysdeps/i386/sysdep.h: Likewise.
69573         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69574         * sysdeps/mach/sysdep.h: Likewise.
69575         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69576         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69577         * sysdeps/sh/sysdep.h: Likewise.
69578         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69579         * sysdeps/unix/i386/sysdep.S: Likewise.
69580         * sysdeps/unix/sparc/start.c: Likewise.
69581         * sysdeps/unix/sparc/sysdep.S: Likewise.
69582         * sysdeps/unix/sparc/sysdep.h: Likewise.
69583         * sysdeps/unix/start.c: Likewise.
69584         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69585         * sysdeps/x86_64/sysdep.h: Likewise.
69586
69587 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69588
69589         [BZ #13553]
69590         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69591         for non-gcc.
69592         * argp/argp-fmtstream.h: Use const instead __const.
69593         * argp/argp.h: Likewise.
69594         * assert/assert.h: Likewise.
69595         * bits/fenv.h: Likewise.
69596         * bits/sched.h: Likewise.
69597         * bits/sigset.h: Likewise.
69598         * bits/sigthread.h: Likewise.
69599         * catgets/nl_types.h: Likewise.
69600         * conform/data/pthread.h-data: Likewise.
69601         * crypt/crypt-private.h: Likewise.
69602         * crypt/crypt.h: Likewise.
69603         * crypt/crypt_util.c: Likewise.
69604         * ctype/ctype.h: Likewise.
69605         * debug/execinfo.h: Likewise.
69606         * debug/mbsnrtowcs_chk.c: Likewise.
69607         * debug/mbsrtowcs_chk.c: Likewise.
69608         * debug/wcsnrtombs_chk.c: Likewise.
69609         * debug/wcsrtombs_chk.c: Likewise.
69610         * debug/wcstombs_chk.c: Likewise.
69611         * dirent/dirent.h: Likewise.
69612         * dlfcn/dlfcn.h: Likewise.
69613         * elf/neededtest4.c: Likewise.
69614         * grp/grp.h: Likewise.
69615         * gshadow/gshadow.h: Likewise.
69616         * iconv/gconv.h: Likewise.
69617         * iconv/gconv_int.h: Likewise.
69618         * iconv/gconv_simple.c: Likewise.
69619         * iconv/iconv.h: Likewise.
69620         * iconv/loop.c: Likewise.
69621         * iconv/skeleton.c: Likewise.
69622         * include/aio.h: Likewise.
69623         * include/aliases.h: Likewise.
69624         * include/argz.h: Likewise.
69625         * include/arpa/inet.h: Likewise.
69626         * include/assert.h: Likewise.
69627         * include/dirent.h: Likewise.
69628         * include/dlfcn.h: Likewise.
69629         * include/execinfo.h: Likewise.
69630         * include/fcntl.h: Likewise.
69631         * include/fenv.h: Likewise.
69632         * include/glob.h: Likewise.
69633         * include/grp.h: Likewise.
69634         * include/libintl.h: Likewise.
69635         * include/mntent.h: Likewise.
69636         * include/netdb.h: Likewise.
69637         * include/pwd.h: Likewise.
69638         * include/rpc/netdb.h: Likewise.
69639         * include/sched.h: Likewise.
69640         * include/search.h: Likewise.
69641         * include/shadow.h: Likewise.
69642         * include/signal.h: Likewise.
69643         * include/stdio.h: Likewise.
69644         * include/stdlib.h: Likewise.
69645         * include/string.h: Likewise.
69646         * include/sys/socket.h: Likewise.
69647         * include/sys/stat.h: Likewise.
69648         * include/sys/statfs.h: Likewise.
69649         * include/sys/statvfs.h: Likewise.
69650         * include/sys/syslog.h: Likewise.
69651         * include/sys/time.h: Likewise.
69652         * include/sys/uio.h: Likewise.
69653         * include/time.h: Likewise.
69654         * include/unistd.h: Likewise.
69655         * include/utmp.h: Likewise.
69656         * include/wchar.h: Likewise.
69657         * include/wctype.h: Likewise.
69658         * inet/aliases.h: Likewise.
69659         * inet/arpa/inet.h: Likewise.
69660         * inet/netinet/ether.h: Likewise.
69661         * inet/netinet/in.h: Likewise.
69662         * intl/libintl.h: Likewise.
69663         * io/bits/fcntl2.h: Likewise.
69664         * io/fcntl.h: Likewise.
69665         * io/ftw.h: Likewise.
69666         * io/sys/poll.h: Likewise.
69667         * io/sys/stat.h: Likewise.
69668         * io/sys/statfs.h: Likewise.
69669         * io/sys/statvfs.h: Likewise.
69670         * io/utime.h: Likewise.
69671         * libio/bits/stdio.h: Likewise.
69672         * libio/bits/stdio2.h: Likewise.
69673         * libio/libio.h: Likewise.
69674         * libio/libioP.h: Likewise.
69675         * libio/stdio.h: Likewise.
69676         * locale/lc-ctype.c: Likewise.
69677         * locale/locale.h: Likewise.
69678         * login/utmp.h: Likewise.
69679         * malloc/arena.c: Likewise.
69680         * malloc/malloc.c: Likewise.
69681         * malloc/malloc.h: Likewise.
69682         * malloc/mcheck.c: Likewise.
69683         * malloc/mtrace.c: Likewise.
69684         * math/bits/mathcalls.h: Likewise.
69685         * math/fenv.h: Likewise.
69686         * math/math_private.h: Likewise.
69687         * misc/bits/error.h: Likewise.
69688         * misc/bits/syslog.h: Likewise.
69689         * misc/err.h: Likewise.
69690         * misc/error.h: Likewise.
69691         * misc/fstab.h: Likewise.
69692         * misc/mntent.h: Likewise.
69693         * misc/regexp.h: Likewise.
69694         * misc/search.h: Likewise.
69695         * misc/sgtty.h: Likewise.
69696         * misc/sys/mman.h: Likewise.
69697         * misc/sys/syslog.h: Likewise.
69698         * misc/sys/uio.h: Likewise.
69699         * misc/sys/xattr.h: Likewise.
69700         * misc/ttyent.h: Likewise.
69701         * nis/rpcsvc/ypclnt.h: Likewise.
69702         * nss/nss.h: Likewise.
69703         * posix/bits/unistd.h: Likewise.
69704         * posix/fnmatch.h: Likewise.
69705         * posix/glob.h: Likewise.
69706         * posix/sched.h: Likewise.
69707         * posix/spawn.h: Likewise.
69708         * posix/sys/wait.h: Likewise.
69709         * posix/unistd.h: Likewise.
69710         * posix/wordexp.h: Likewise.
69711         * pwd/pwd.h: Likewise.
69712         * resolv/netdb.h: Likewise.
69713         * resource/sys/resource.h: Likewise.
69714         * rt/aio.h: Likewise.
69715         * rt/bits/mqueue2.h: Likewise.
69716         * rt/mqueue.h: Likewise.
69717         * shadow/shadow.h: Likewise.
69718         * signal/signal.h: Likewise.
69719         * socket/send.c: Likewise.
69720         * socket/sendto.c: Likewise.
69721         * socket/sys/socket.h: Likewise.
69722         * stdio-common/printf.h: Likewise.
69723         * stdlib/bits/stdlib.h: Likewise.
69724         * stdlib/fmtmsg.h: Likewise.
69725         * stdlib/monetary.h: Likewise.
69726         * stdlib/stdlib.h: Likewise.
69727         * stdlib/ucontext.h: Likewise.
69728         * streams/stropts.h: Likewise.
69729         * string/argz.h: Likewise.
69730         * string/bits/string2.h: Likewise.
69731         * string/string.h: Likewise.
69732         * string/strings.h: Likewise.
69733         * sunrpc/rpc/auth.h: Likewise.
69734         * sunrpc/rpc/auth_des.h: Likewise.
69735         * sunrpc/rpc/clnt.h: Likewise.
69736         * sunrpc/rpc/netdb.h: Likewise.
69737         * sunrpc/rpc/pmap_clnt.h: Likewise.
69738         * sunrpc/rpc/xdr.h: Likewise.
69739         * sysdeps/generic/inttypes.h: Likewise.
69740         * sysdeps/generic/net/if.h: Likewise.
69741         * sysdeps/generic/sys/swap.h: Likewise.
69742         * sysdeps/gnu/net/if.h: Likewise.
69743         * sysdeps/gnu/utmpx.h: Likewise.
69744         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69745         * sysdeps/i386/i486/bits/string.h: Likewise.
69746         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69747         * sysdeps/s390/bits/string.h: Likewise.
69748         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69749         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69750         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69751         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69752         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69753         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69754         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69755         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69756         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69757         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69758         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69759         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69760         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69761         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69762         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69763         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69764         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69765         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69766         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69767         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69768         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69769         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69770         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69771         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69772         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69773         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69774         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69775         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69776         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
69777         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
69778         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
69779         * sysvipc/sys/ipc.h: Likewise.
69780         * sysvipc/sys/msg.h: Likewise.
69781         * sysvipc/sys/sem.h: Likewise.
69782         * sysvipc/sys/shm.h: Likewise.
69783         * termios/termios.h: Likewise.
69784         * time/sys/time.h: Likewise.
69785         * time/time.h: Likewise.
69786         * wcsmbs/bits/wchar2.h: Likewise.
69787         * wcsmbs/uchar.h: Likewise.
69788         * wcsmbs/wchar.h: Likewise.
69789         * wctype/wctype.h: Likewise.
69790
69791         [BZ #13551]
69792         * Makeconfig: Remove all but ELF support including AIX support.
69793         * Makerules: Likewise.
69794         * config.h.in: Likewise.
69795         * config.make.in: Likewise.
69796         * configure: Likewise.
69797         * configure.in: Likewise.
69798         * csu/Makefile: Likewise.
69799         * csu/version.c: Likewise.
69800         * debug/Makefile: Likewise.
69801         * dlfcn/Makefile: Likewise.
69802         * elf/Makefile: Likewise.
69803         * extra-lib.mk: Likewise.
69804         * iconv/Makefile: Likewise.
69805         * include/libc-symbols.h: Likewise.
69806         * include/shlib-compat.h: Likewise.
69807         * resolv/Makefile: Likewise.
69808         * resolv/res_libc.c: Likewise.
69809         * rt/Makefile: Likewise.
69810         * sysdeps/i386/asm-syntax.h: Likewise.
69811         * sysdeps/i386/sysdep.h: Likewise.
69812         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69813         * sysdeps/mach/sysdep.h: Likewise.
69814         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
69815         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
69816         * sysdeps/s390/asm-syntax.h: Likewise.
69817         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69818         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69819         * sysdeps/sh/sysdep.h: Likewise.
69820         * sysdeps/unix/sparc/sysdep.h: Likewise.
69821         * sysdeps/wordsize-32/divdi3.c: Likewise.
69822         * sysdeps/x86_64/sysdep.h: Likewise.
69823
69824         * argp/Versions: Remove _argp_unlock_xxx.
69825
69826         [BZ #13559]
69827         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
69828         * abilist/libBrokenLocale.abilist: Likewise.
69829         * abilist/libanl.abilist: Likewise.
69830         * abilist/libc.abilist: Likewise.
69831         * abilist/libcrypt.abilist: Likewise.
69832         * abilist/libdl.abilist: Likewise.
69833         * abilist/libm.abilist: Likewise.
69834         * abilist/libnsl.abilist: Likewise.
69835         * abilist/libpthread.abilist: Likewise.
69836         * abilist/libresolv.abilist: Likewise.
69837         * abilist/librt.abilist: Likewise.
69838         * abilist/libthread_db.abilist: Likewise.
69839         * abilist/libutil.abilist: Likewise.
69840         * abilist/libnss_db.abilist: New file.
69841
69842         * scripts/abilist.awk: Add support for indirect functions.
69843
69844         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
69845
69846         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
69847
69848         * shlib-versions: Remove entries for ports architectures.
69849
69850         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
69851         files in ports.
69852         * elf/stackguard-macros.h: Remove support for IA-64.
69853         * elf/tst-auditmod1.c: Likewise.
69854         * sysdeps/generic/ldsodefs.h: Likewise.
69855
69856         * sysdeps/unix/sysv/linux/configure.in: Ports should define
69857         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
69858         configure files.
69859
69860         [BZ #13552]
69861         * configure.in: Remove --enable-omitfp support.
69862         * FAQ.in: Adjust.
69863         * config.make.in: Likewise.
69864         * Makeconfig: Likewise.
69865         * manual/install.texi: Likewise.
69866
69867         In case anyone cares, the IA-64 architecture could move to ports.
69868         * sysdeps/ia64/*: Removed.
69869         * sysdeps/unix/sysv/linux/ia64/*: Removed.
69870         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
69871
69872         [BZ #13555]
69873         * configure.in: Remove entries for unsupported architectures.
69874
69875         [BZ #13533]
69876         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
69877         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
69878         routines.
69879         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
69880         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
69881         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
69882         fall back to using wcrtomb.
69883         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
69884         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
69885         renaming.
69886         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
69887         * wcsmbs/tst-c16c32-1.c: New file.
69888
69889         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
69890         local variable.
69891
69892         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
69893
69894         * elf/tst-unique3.cc: Add explicit declaration of gets.
69895         * elf/tst-unique3lib.cc: Likewise.
69896         * elf/tst-unique3lib2.cc: Likewise.
69897         * elf/tst-unique4.cc: Likewise.
69898
69899         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
69900
69901 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
69902
69903         [BZ #13566]
69904         * assert/assert.h (static_assert): Don't define for C++.
69905         * libio/stdio.h (gets): Do declare for C++ <= C++11.
69906         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
69907
69908 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
69909
69910         * iconv/loop.c (single loop): Fix assertion in storing of
69911         remaining bytes.
69912
69913         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
69914
69915 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
69916
69917         * posix/getconf.c: Update copyright year.
69918         * nss/getent.c: Likewise.
69919         * nss/makedb.c: Likewise.
69920         * iconv/iconvconfig.c: Likewise.
69921         * iconv/iconv_prog.c: Likewise.
69922         * elf/ldconfig.c: Likewise.
69923         * elf/pldd.c: Likewise.
69924         * elf/sotruss.ksh: Likewise.
69925         * catgets/gencat.c: Likewise.
69926         * csu/version.c: Likewise.
69927         * elf/ldd.bash.in: Likewise.
69928         * elf/sprof.c (print_version): Likewise.
69929         * locale/programs/locale.c: Likewise.
69930         * locale/programs/localedef.c: Likewise.
69931         * login/programs/pt_chown.c: Likewise.
69932         * nscd/nscd.c (print_version): Likewise.
69933         * debug/xtrace.sh: Likewise.
69934         * malloc/memusage.sh: Likewise.
69935         * malloc/mtrace.pl: Likewise.
69936         * debug/catchsegv.sh: Likewise.
69937
69938 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
69939
69940         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
69941         pure attribute.
69942
69943 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
69944
69945         [BZ #13533]
69946         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
69947         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
69948         transformations.
69949         * iconv/gconv_int.h: Likewise.
69950         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
69951         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
69952         from libc for GLIBC_2.16.
69953         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
69954         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
69955         * wcsmbs/uchar.h: Really define mbstate_t.
69956         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
69957         * wcsmbs/c16rtomb.c: New file.
69958         * wcsmbs/mbrtoc16.c: New file.
69959         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
69960         for C/POSIX locale.
69961         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
69962         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
69963
69964         * wcsmbs/wchar.h: Add missing __restrict.
69965
69966 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69967
69968         [BZ #13532]
69969         * time/Makefile (routines): Add timespec_get.
69970         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
69971         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
69972         timespec for ISO C11.
69973         * time/timespec_get.c: New file.
69974         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
69975         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
69976
69977         [BZ #13531]
69978         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
69979         * stdlib/stdlib.h: Declare aligned_alloc.
69980         * Versions.def: Add GLIBC_2.16 for libc.
69981         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
69982
69983         [BZ 13527]
69984         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
69985         ISO C11.
69986
69987         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
69988         code.
69989
69990         [BZ #13528]
69991         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
69992
69993         [BZ #13529]
69994         * assert/assert.h (static_assert): Define.
69995
69996         * version.h: Update for 2.16 development version.
69997
69998         [BZ #13526]
69999         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70000         _ISOC11_SOURCE.
70001
70002         * version.h (RELEASE): Bump for 2.15 release.
70003         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70004
70005         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70006         Patch by Marek Polacek <mpolacek@redhat.com>.
70007
70008         * bits/byteswap.h: Protect long long constants with __extension__.
70009         * sysdeps/i386/bits/byteswap.h: Likewise.
70010         * sysdeps/ia64/bits/byteswap.h: Likewise.
70011         * sysdeps/s390/bits/byteswap.h: Likewise.
70012         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70013
70014 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70015
70016         [BZ #13540]
70017         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70018         destination buffer.
70019         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70020
70021 2011-12-23  Marek Polacek  <polacek@redhat.com>
70022
70023         * elf/dl-addr.c (determine_info): Add inline keyword.
70024         * elf/tst-auditmod4b.c (check_avx): Likewise.
70025         * elf/tst-auditmod6b.c (check_avx): Likewise.
70026         * elf/tst-auditmod6c.c (check_avx): Likewise.
70027         * elf/tst-auditmod7b.c (check_avx): Likewise.
70028
70029 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70030
70031         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70032         !__SSE_MATH__.
70033
70034 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70035
70036         [BZ #13540]
70037         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70038         processing for last bytes.
70039
70040 2011-08-06  Bruno Haible  <bruno@clisp.org>
70041
70042         [BZ #13061]
70043         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70044         U+0385, not to U+1FEE.
70045
70046         [BZ #13062]
70047         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70048         entry for U+00A5 U+0301.
70049
70050 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70051
70052         [BZ #13166]
70053         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70054         buffer for the output is too small.
70055
70056         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70057         optimization.
70058
70059         [BZ #13185]
70060         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70061         SSE flags if possible.
70062
70063 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70064
70065         [BZ #13540]
70066         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70067         processing for last bytes.
70068
70069 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70070
70071         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70072         (syscall-list-default-options, syscall-list-default-condition)
70073         (syscall-list-includes): Define.
70074         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70075         list of ABIs and options and #if conditions for each ABI.  Do not
70076         handle common syscalls between ABIs specially.
70077         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70078         Remove.
70079         (syscall-list-variants, syscall-list-32bit-options)
70080         (syscall-list-32bit-condition, syscall-list-64bit-options)
70081         (syscall-list-64bit-condition): Define.
70082         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70083         (syscall-list-variants, syscall-list-32bit-options)
70084         (syscall-list-32bit-condition, syscall-list-64bit-options)
70085         (syscall-list-64bit-condition): Define.
70086         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70087         Remove.
70088         (syscall-list-variants, syscall-list-32bit-options)
70089         (syscall-list-32bit-condition, syscall-list-64bit-options)
70090         (syscall-list-64bit-condition): Define.
70091         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70092         Remove.
70093         (syscall-list-variants, syscall-list-32bit-options)
70094         (syscall-list-32bit-condition, syscall-list-64bit-options)
70095         (syscall-list-64bit-condition): Define.
70096
70097 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70098
70099         * locale/iso-639.def: Add brx entry.
70100
70101         [BZ #13328]
70102         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70103         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70104
70105         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70106         __feraiseexcept_renamed.
70107
70108 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70109
70110         [BZ #13538]
70111         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70112         EPOLLET with unsigned values.
70113         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70114         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70115
70116         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70117         to large cancellation.
70118         * math/s_cacoshf.c: Likewise.
70119         * math/s_cacoshl.c: Likewise.
70120
70121 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70122
70123         [BZ #13305]
70124         [BZ #12786]
70125         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70126         * math/s_cacoshf.c: Likewise.
70127         * math/s_cacoshl.c: Likewise.
70128
70129 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70130
70131         [BZ #13439]
70132         * iconv/gconv.h: Define __GCONV_SWAP.
70133         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70134         * iconvdata/utf-16.c: Likewise.
70135         * iconvdata/utf-32.c: Likewise.
70136
70137 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70138
70139         [BZ #13524]
70140         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70141         numerator after shifting it by one limb.
70142
70143 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70144
70145         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70146         under [__USE_EXTERN_INLINES].
70147
70148 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70149
70150         [BZ #13446]
70151         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70152
70153 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70154
70155         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70156         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70157         optimized code.
70158         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70159         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70160         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70161         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70162         for strncasecmp/strncasecmp_l compilation.
70163         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70164         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70165
70166 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70167
70168         [BZ #13484]
70169         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70170         of __asm__.
70171
70172 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70173
70174         [BZ #13506]
70175         * time/tzfile.c (__tzfile_read): Check values from file header.
70176
70177 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70178
70179         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70180         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70181         * powerpc/powerpc32/dl-start.S: Likewise.
70182         * powerpc/powerpc32/elf/start.S: Likewise.
70183         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70184         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70185         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70186         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70187         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70188         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70189         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70190         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70191         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70192         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70193         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70194         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70195         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70196         * powerpc/powerpc32/memset.S: Likewise.
70197         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70198         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70199         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70200         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70201         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70202         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70203         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70204         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70205         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70206         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70207         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70208         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70209         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70210
70211 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70212
70213         * math/libm-test.inc: Added more nearbyint tests.
70214         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70215         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70216         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70217         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70218
70219 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70220
70221         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70222         FD_CLOEXEC.
70223
70224 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70225
70226         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70227         Add wcscpy-ssse3 wcscpy-c.
70228         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70229         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70230         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70231         * sysdeps/x86_64/wcschr.S: New file.
70232         * sysdeps/x86_64/wcsrchr.S: New file.
70233         * string/test-strcmp.c: Remove checking of wcscmp function for
70234         wrong alignments.
70235         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70236         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70237         wcsrchr-sse2 wcsrchr-c.
70238         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70239         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70240         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70241         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70242         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70243         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70244         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70245         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70246         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70247         * wcsmbc/wcschr.c (WCSCHR): New macro.
70248
70249 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70250
70251         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70252         * wcsmbs/test-wcsrchr.c: New file.
70253         * string/test-strrchr.c: Add wcsrchr support.
70254         (WIDE): New macro.
70255         * wcsmbs/test-wcscpy.c: New file.
70256         * string/test-strcpy.c: Add wcscpy support.
70257         (WIDE): New macro.
70258
70259 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70260
70261         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70262         the inner loop.
70263
70264 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70265
70266         [BZ #13472]
70267         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70268
70269 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70270
70271         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70272         Minor optimizations.
70273
70274         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70275         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70276         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70277
70278 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70279
70280         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70281         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70282         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70283         for gcc to avoid warnings.
70284         * inet/Makefile (tests): Add tst-checks.
70285         * inet/tst-checks.c: New file.
70286
70287         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70288         warning.
70289
70290         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70291         __wmemcmp_sse2.
70292
70293         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70294         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70295
70296         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70297
70298 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70299
70300         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70301         problem.
70302
70303         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70304
70305 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70306
70307         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70308         conditional on GCC version.
70309         (__arch_compare_and_exchange_val_8_acq)
70310         (__arch_compare_and_exchange_val_16_acq)
70311         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70312         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70313         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70314
70315 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70316
70317         * sysdeps/sh/backtrace.c: New file.
70318
70319 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70320
70321         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70322         parenthesis.
70323
70324 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70325
70326         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70327         falling back to utime.
70328
70329 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70330
70331         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70332         expectations for float.
70333
70334 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70335
70336         * locale/weight.h (findidx): Add parameter len.
70337         * locale/weightwc.h (findidx): Likewise.
70338         * posix/fnmatch_loop.c (FCT): Adjust caller.
70339         * posix/regcomp.c (build_equiv_class): Likewise.
70340         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70341         * posix/regexec.c (check_node_accept_bytes): Likewise.
70342         * string/strcoll_l.c (STRCOLL): Likewise.
70343         * string/strxfrm_l.c (STRXFRM): Likewise.
70344
70345 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70346
70347         * Makefile.in: Remove CVSOPT handling.
70348         * configure.in: Remove use of AC_REVISION.
70349         * iconvdata/Makefile (distribute): No need to filter out CVS.
70350         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70351         handling.
70352
70353 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70354
70355         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70356         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70357         [USE_AS_STRNCASECMP_L]: Likewise.
70358         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70359         NO_TLS_DIRECT_SEG_REFS.
70360         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70361         Fix argument offsets for non-PIC.
70362         [USE_AS_STRNCASECMP_L]: Likewise.
70363         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70364         NO_TLS_DIRECT_SEG_REFS.
70365
70366 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70367
70368         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70369         O_CLOEXEC.
70370         * locale/loadlocale.c (_nl_load_locale): Likewise.
70371
70372 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70373
70374         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70375         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70376         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70377         (SYSCALL_GETTIME): Set errno on error.
70378
70379         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70380         count references to noai6ai_cached.
70381
70382 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70383
70384         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70385
70386         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70387         FD_CLOEXEC for /proc/self/maps.
70388
70389         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70390         FD_CLOEXEC for /proc/meminfo.
70391
70392         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70393         gai.conf.
70394
70395         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70396         FD_CLOEXEC for given file.
70397
70398         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70399
70400         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70401         FD_CLOEXEC for /etc/hosts.
70402         (_gethtent): Likewise.
70403
70404         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70405
70406         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70407         cancellation and set FD_CLOEXEC for /etc/netgroup.
70408
70409         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70410         reading /etc/publickey.
70411
70412         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70413         allow cancellation when reading /etc/group.
70414
70415         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70416         cancellation.
70417         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70418
70419         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70420         when using data file.
70421
70422         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70423
70424         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70425         (write_nis_obj): Use "c" and "e" in fopen.
70426
70427         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70428
70429         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70430
70431         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70432
70433         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70434
70435         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70436         locale.alias.
70437
70438         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70439
70440         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70441
70442         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70443
70444         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70445         file parsing and set FD_CLOEXEC.
70446
70447 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70448
70449         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70450
70451 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70452
70453         * malloc/arena.c (arena_get2): Don't call reused_arena when
70454         _int_new_arena failed.
70455
70456 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70457
70458         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70459         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70460         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70461         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70462         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70463         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70464         to compile strcasecmp and strncasecmp.
70465         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70466         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70467
70468         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70469
70470 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70471
70472         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70473         locale-defines.sym to gen-as-const-headers.
70474         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70475         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70476         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70477         to compile strcasecmp and strncasecmp.
70478         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70479         strcasecmp_l and strncasecmp_l.
70480         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70481         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70482         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70483         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70484         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70485         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70486         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70487         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70488         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70489         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70490         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70491
70492 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70493
70494         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70495         result of SYSDEP_GETTIME_CPU to retval.
70496         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70497         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70498
70499         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70500         variable.
70501
70502         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70503         mantissa words.
70504         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70505
70506         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70507         from unused variable.
70508
70509         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70510         DWARF definitions.
70511         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70512         for assembling.
70513
70514         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70515         over namespaces.
70516
70517         * sunrpc/rpc_prot.c (rejected): Fix case value.
70518
70519         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70520         unsigned long long int to avoid warnings in shift.
70521
70522         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70523         of use of trans.
70524         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70525         variable tmp.
70526
70527         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70528         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70529         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70530
70531         * nis/nis_table.c (nis_list): Use variable of correct type for
70532         result of __follow_path call.
70533
70534 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70535
70536         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70537         of math functions ceil, trunc, floor, round, and sqrt, when
70538         avaliable on the platform.
70539         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70540         name clash.
70541         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70542         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70543         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70544
70545 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70546
70547         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70548         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70549
70550 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70551
70552         * include/unistd.h: Fix __readlink return type.
70553         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70554
70555 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70556
70557         * stdlib/ucontext.h: Undo last change for makecontext.
70558
70559 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70560
70561         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70562
70563         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70564         * setjmp/setjmp.h: Mark functions as non-leaf.
70565         * setjmp/bits/setjmp2.h: Likewise.
70566         * stdlib/ucontext.h: Likewise.
70567
70568 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70569
70570         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70571         (reused_arena): Don't check arena limit.
70572         (arena_get2): Atomically check arena limit.
70573
70574 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70575
70576         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70577         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70578
70579         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70580         instructions.
70581
70582 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70583
70584         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70585         handler when locking.
70586
70587         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70588         Fix size of allocated buffer.
70589
70590 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70591
70592         [BZ #10103]
70593         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70594         declarations for long double functions.
70595         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70596
70597         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70598
70599 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70600
70601         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70602         installed.
70603
70604         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70605         is disabled.
70606
70607 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70608
70609         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70610
70611 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70612
70613         * include/alloca.h (stackinfo_alloca_round): Define.
70614         (extend_alloca): Use it.
70615         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70616         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70617         here.
70618
70619         * scripts/check-local-headers.sh: Ignore libaudit.h.
70620
70621         * nscd/Makefile (extra-objs): Make recursively expanded.
70622
70623 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70624
70625         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70626         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70627
70628         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70629         * posix/tst-rfc3484-2.c: Likewise.
70630         * posix/tst-rfc3484-3.c: Likewise.
70631
70632         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70633         process_vm_writev.
70634         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70635         process_vm_writev.
70636         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70637         process_vm_writev from libc using GLIBC_2.15 version.
70638
70639         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70640
70641 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70642
70643         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70644         stack usage.
70645
70646 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70647
70648         [BZ #13367]
70649         * nss/getent.c (initgroups_keys): Show error message in case no group
70650         names are given.
70651
70652         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70653         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70654         __bump_nl_timestamp.
70655         * nscd/connections (nscd_init): When host database is served open
70656         netlink socket and request notification about configuration changes.
70657         (main_loop_poll): Track netlink file descriptor and bump timestamp
70658         in case data becomes available.
70659         (main_loop_epoll): Likewise.
70660         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70661         (database_pers_head): Add extra_data fileds.
70662         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70663         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70664         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70665         Adjust caller.
70666         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70667         in6ai data, call __free_in6ai.
70668         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70669         Add -DHAVE_NETLINK.
70670         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70671         interface information.  Reuse previous data if netlink timestamp
70672         is not changed.
70673         (__bump_nl_timestamp): New function.
70674         (__free_in6ai): New function.
70675
70676 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70677
70678         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70679         close_not_cancel_no_status here.
70680         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70681
70682 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70683
70684         [BZ #13276]
70685         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70686         return value.
70687
70688         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70689         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70690         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70691
70692 2011-07-03  Andreas Jaeger  <aj@suse.de>
70693
70694         [BZ #10709]
70695         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70696         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70697         * math/libm-test.inc (sin_test): Add test case.
70698
70699 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70700
70701         [BZ #13337]
70702         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70703         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70704
70705         * elf/chroot_canon.c (chroot_canon): Cleanups.
70706
70707         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70708
70709         [BZ #13335]
70710         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70711         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70712
70713         * string/test-strchr.c: Make usable for strchrnul testing.
70714         * string/test-strchrnul.c: New file.
70715         * string/Makefile (strop-tests): Add strchrnul.
70716
70717         * po/it.po: Update from translation team.
70718         * po/es.po: Likewise.
70719
70720 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70721
70722         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70723         the three constants needed as parameters.  Drop the others.
70724         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70725         __m128i_strloadu_tolower.
70726         Create and initialize variable zero and use it in all the places
70727         where _mm_setzero_si128 was used.
70728
70729         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70730         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70731         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70732         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70733         anymore.
70734         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70735         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70736         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70737         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70738         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70739         __mpranred, __mptan.
70740         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70741         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70742         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70743         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70744         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70745         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70746         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70747         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70748         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70749
70750 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70751
70752         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70753         redefine if SHARED.
70754         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70755
70756         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70757         wide char related routines to wcsmbs subdir.
70758
70759 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70760
70761         [BZ #13344]
70762         * misc/sys/cdefs.h (__THROWNL): Define.
70763         * posix/unistd.h: Use __THREADNL instead of __THREAD
70764         for memory synchronization functions.
70765
70766 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70767
70768         [BZ #13349]
70769         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70770         doesn't exist.
70771         * manual/stdio.texi (Obstack Streams): Node removed.
70772
70773 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70774
70775         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
70776         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70777         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70778
70779         * math/math_private.h (math_force_eval): Allow non-addressable
70780         arguments.
70781         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
70782
70783 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70784
70785         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
70786         file is not needed.
70787
70788         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
70789         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
70790         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70791         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70792         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70793         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70794         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70795         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
70796         Add AVX variants.
70797         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
70798         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
70799         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
70800         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
70801         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
70802         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
70803         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
70804         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
70805         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
70806         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
70807         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
70808         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
70809         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
70810         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
70811         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
70812         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
70813         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
70814         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
70815         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
70816
70817         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
70818         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
70819
70820         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
70821         place.  Use VEX encoding when compiling for AVX.
70822
70823 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70824
70825         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
70826         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
70827
70828         * string/test-strchr.c (do_test): Don't generate NUL bytes.
70829
70830 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70831
70832         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
70833         useless if() expression.
70834         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70835         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70836         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70837         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70838         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70839         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70840         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70841         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70842         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70843         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70844         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70845         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70846         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70847         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70848         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70849         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70850         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70851         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70852         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70853
70854         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
70855
70856 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70857
70858         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
70859         condition.
70860         * elf/dl-fini.c (_dl_sort_fini): Likewise.
70861
70862 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70863
70864         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
70865         .text section.  Avoid duplicate constants.
70866         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70867         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70868         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70869         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70870         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70871         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70872         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70873         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70874         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70875         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
70876         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70877         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70878         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70879         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70880         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70881         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70882         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70883         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70884         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70885         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70886         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70887         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70888         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70889         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
70890         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
70891         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
70892         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
70893         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
70894         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
70895         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
70896         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
70897         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
70898         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70899         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
70900         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
70901         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
70902         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
70903         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
70904         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
70905         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
70906         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
70907         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
70908         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
70909         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70910         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
70911
70912 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
70913
70914         * sysdeps/x86_64/dla.h: Move to ...
70915         * sysdeps/x86_64/fpu/dla.h: ...here.
70916         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
70917         situations.  Use __builtin_fma only for gcc 4.6 and up.
70918
70919         * config.make.in: Add have-mfma4 entry.
70920         * configure.in: Substitute libc_cv_cc_fma4.
70921         * math/Makefile (dbl-only-routines): Add sincostab.
70922         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
70923         Use __sincostab not sincos.
70924         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
70925         name is a macro.
70926         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70927         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70928         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70929         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
70930         using __copysign.
70931         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
70932         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
70933         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
70934         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
70935         and __inv.
70936         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
70937         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
70938         __copysign.
70939         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
70940         define aliases when function name is a macro.
70941         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
70942         sysdeps/ieee754/dbl-64/sincos.tbl.
70943         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
70944         fma4-enabled routines.
70945         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
70946         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
70947         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
70948         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
70949         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
70950         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
70951         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
70952         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
70953         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
70954         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
70955         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
70956         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
70957         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
70958         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
70959         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
70960         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
70961         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
70962         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
70963         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
70964         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
70965         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
70966         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
70967         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
70968         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
70969         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
70970         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
70971         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
70972         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
70973         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
70974         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
70975
70976         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
70977         rename.
70978         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70979         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70980         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70981         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70982         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70983         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70984         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70985         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70986
70987 2011-10-24  Andreas Schwab  <schwab@redhat.com>
70988
70989         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
70990
70991 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70992
70993         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
70994
70995         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
70996         prediction.
70997         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
70998
70999         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71000         Remove unused variable magic_bits.
71001         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71002
71003         * string/strnlen.c: Define and use STRNLEN macro.
71004         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71005         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71006         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71007         * wcsmbs/wcslen.c: Define and use WCSLEN.
71008         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71009         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71010         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71011         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71012         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71013         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71014         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71015
71016 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71017
71018         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71019         strnlen-sse2-no-bsf.
71020         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71021         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71022         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71023         Add strnlen support.
71024         (USE_AS_STRNLEN): New macro.
71025         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71026         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71027         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71028         * sysdeps/x86_64/wcslen.S: New file.
71029
71030 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71031
71032         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71033         XMM-moves are used for copying on small sizes.
71034
71035 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71036
71037         * wcsmbs/Makefile (strop-tests): Add wcschr.
71038         * wcsmbs/test-wcschr.c: New file.
71039         * string/test-strchr.c: Update.
71040         Add wcschr support.
71041         (WIDE): New macro.
71042
71043 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71044
71045         * wcsmbs/Makefile (strop-tests): Add wcslen.
71046         * wcsmbs/test-wcslen.c: New file.
71047         * string/test-strlen.c: Update.
71048         Add wcslen support.
71049         (WIDE): New macro.
71050
71051 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71052
71053         * po/it.po: Update from translation team.
71054
71055 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71056
71057         * sysdeps/x86_64/wcscmp.S: Update.
71058         Fix wrong comparison semantics.
71059         wcscmp shall use signed comparison not unsigned.
71060         Don't use substraction to avoid overflow bug.
71061         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71062         * wcsmbc/wcscmp.c: Likewise.
71063         * string/test-strcmp.c: Likewise.
71064         Add new tests to check cases with negative values.
71065
71066 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71067
71068         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71069         * sysdeps/x86_64/dla.h: ...here.  New file.
71070         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71071         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71072         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71073         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71074         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71075         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71076         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71077         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71078         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71079
71080 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71081
71082         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71083         __ynl_finite aliases.
71084
71085 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71086
71087         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71088
71089         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71090         define DLA_FMA.
71091         [DLA_FMA] (EMULV): Use DLA_FMA.
71092         [DLA_FMA] (MUL12): Use EMULV.
71093         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71094         that are not needed.
71095         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71096         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71097         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71098         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71099         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71100         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71101         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71102
71103 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71104
71105         * math/s_nan.c: Undef __nan.
71106         * math/s_nanf.c: Undef __nanf.
71107         * math/s_nanl.c: Undef __nanl.
71108         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71109         "math_private.h".
71110
71111 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71112
71113         * math/s_catan.c: Add branch predictions.
71114         * math/s_catanf.c: Likewise.
71115         * math/s_catanh.c: Likewise.
71116         * math/s_catanhf.c: Likewise.
71117         * math/s_catanhl.c: Likewise.
71118         * math/s_catanl.c: Likewise.
71119         * math/s_cexp.c: Likewise.
71120         * math/s_cexpf.c: Likewise.
71121         * math/s_cexpl.c: Likewise.
71122         * math/s_clog.c: Likewise.
71123         * math/s_clog10.c: Likewise.
71124         * math/s_clog10f.c: Likewise.
71125         * math/s_clog10l.c: Likewise.
71126         * math/s_clogf.c: Likewise.
71127         * math/s_clogl.c: Likewise.
71128         * math/s_csqrt.c: Likewise.
71129         * math/s_csqrtf.c: Likewise.
71130         * math/s_csqrtl.c: Likewise.
71131         * math/s_ctanf.c: Likewise.
71132         * math/s_ctanh.c: Likewise.
71133         * math/s_ctanhf.c: Likewise.
71134         * math/s_ctanhl.c: Likewise.
71135         * math/s_ctanl.c: Likewise.
71136
71137         * math/math_private.h: Define __nan, __nanf, __nanl.
71138         * math/s_cacosh.c: Include <math_private.h>.
71139         * math/s_cacoshl.c: Likewise.
71140         * math/s_casinh.c: Likewise.
71141         * math/s_casinhf.c: Likewise.
71142         * math/s_casinhl.c: Likewise.
71143         * math/s_ccos.c: Rely entire on ccosh.
71144         * math/s_ccosf.c: Rely entire on ccoshf.
71145         * math/s_ccosl.c: Rely entirely on ccoshl.
71146         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71147         Remove tests for FE_INVALID.
71148         * math/s_ccoshf.c: Likewise.
71149         * math/s_ccoshl.c: Likewise.
71150         * math/s_csin.c: Likewise.
71151         * math/s_csinf.c: Likewise.
71152         * math/s_csinh.c Likewise.
71153         * math/s_csinhf.c: Likewise.
71154         * math/s_csinhl.c: Likewise.
71155         * math/s_csinl.c: Likewise.
71156         * math/s_ctan.c: Likewise.
71157         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71158         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71159         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71160
71161 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71162
71163         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71164         compilation problems.
71165
71166         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71167         __builtin_expect.
71168
71169 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71170
71171         * sysdeps/i386/configure.in: Test for -mfma4 option.
71172         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71173         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71174         COMMON_CPUID_INDEX_80000001.
71175         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71176         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71177         use it if FMA3 is not supported.
71178         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71179
71180         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71181         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71182
71183 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71184
71185         [BZ #12892]
71186         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71187         it would create a cycle with a link time dependency.
71188
71189 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71190
71191         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71192         instruction.
71193         * string/Makefile (strop-tests): Add rawmemchr.
71194         * string/test-rawmemchr.c: New file.
71195
71196         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71197         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71198         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71199         when compiling str{,n}casecmp and when AVX is available.  Hook up
71200         new optimized code in initializers.
71201
71202 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71203
71204         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71205         __feraiseexcept instead of feraiseexcept.
71206
71207 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71208
71209         * math/math_private.h: Define defaults for libc_fetestexcept and
71210         libc_feupdateenv.
71211         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71212         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71213         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71214         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71215         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71216         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71217         libc_fetestexcept and libc_feupdateenv.
71218
71219         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71220         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71221         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71222         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71223         libc_feholdexcept_setround.
71224
71225         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71226         Add s_nearbyint-c and s_nearbyintf-c.
71227         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71228         nearbyintf inlines.
71229         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71230         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71231         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71232         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71233
71234         * math/math_private.h: Define defaults for libc_fegetround,
71235         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71236         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71237         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71238         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71239         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71240         standard functions.
71241         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71242         Remove comments and hacks for old compiler versions.
71243         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71244         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71245         libc_feholdexceptl.
71246
71247 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71248
71249         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71250         (__feraiseexcept_renamed): Add __NTH.
71251         (feraiseexcept): Add __NTH.  Rename local variables to fix
71252         namespace violations.
71253
71254 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71255
71256         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71257
71258         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71259
71260         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71261         recently added interfaces.
71262         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71263
71264         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71265         about macro parameter expansion.
71266
71267         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71268         __NO_MATH_INLINES is defined.  Cleanups.
71269
71270         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71271         and __floorf is target has SSE4.1.
71272         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71273         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71274         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71275         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71276
71277         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71278         name.
71279         (floorf): Likewise.
71280
71281         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71282
71283 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71284
71285         * misc/sys/cdefs.h: Fix last change.
71286
71287         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71288         database lookup.
71289
71290 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71291
71292         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71293
71294         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71295         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71296         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71297         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71298         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71299         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71300         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71301         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71302         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71303         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71304         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71305         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71306         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71307         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71308         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71309         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71310         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71311         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71312         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71313         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71314         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71315         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71316
71317         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71318         ceil, ceilf, floor, floorf.
71319
71320         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71321         Perform IRELATIVE relocations last.
71322
71323         * elf/do-rel.h: Add another parameter nrelative, replacing the
71324         local variable with the same name.  Change name of the function
71325         to end in Rel or Rela (uppercase).
71326         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71327         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71328         elf_dynamic_do_##reloc function.
71329
71330 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71331
71332         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71333         is sufficient, at least on modern CPUs.
71334
71335         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71336
71337         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71338         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71339
71340         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71341         __expl_finite.
71342         * math/bits/math-finite.h: Add entries for exp.
71343         * math/e_expl.c: Add __*_finite alias.
71344         * sysdeps/i386/fpu/e_exp.S: Likewise.
71345         * sysdeps/i386/fpu/e_expf.S: Likewise.
71346         * sysdeps/i386/fpu/e_expl.c: Likewise.
71347         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71348         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71349         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71350         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71351         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71352         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71353         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71354
71355         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71356         is sufficient, at least on modern CPUs.
71357
71358         * ctype/ctype-info.c (__ctype_init): Define.
71359         * include/ctype.h (__ctype_init): Declare.
71360         (__ctype_b_loc): The variable is always initialized.
71361         (__ctype_toupper_loc): Likewise.
71362         (__ctype_tolower_loc): Likewise.
71363         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71364         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71365
71366 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71367
71368         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71369
71370         * configure.in: Also look in $cxxmachine/include for C++ system
71371         headers.
71372
71373 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71374
71375         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71376         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71377         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71378         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71379         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71380         (USE_AS_WMEMCMP): New macro.
71381         Fixing indents.
71382         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71383         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71384         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71385         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71386         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71387         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71388         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71389         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71390         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71391         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71392         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71393         (USE_AS_WMEMCMP): New macro.
71394         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71395         * sysdeps/string/test-memcmp.c: Update.
71396         Fix simple_wmemcmp.
71397         Add new tests.
71398         * wcsmbs/wmemcmp.c: Update.
71399         (WMEMCMP): New macro.
71400         Fix overflow bug.
71401
71402 2011-10-12  Andreas Jaeger  <aj@suse.de>
71403
71404         [BZ #13268]
71405         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71406
71407 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71408
71409         * libio/iofwide.c (do_length): Avoid warning.
71410
71411         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71412
71413 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71414
71415         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71416
71417         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71418         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71419         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71420         * sysdeps/i386/i686/fpu/e_log.S: New file.
71421         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71422         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71423
71424         * ctype/ctype.h: Add support for inlined isXXX functions when
71425         compiling C++ code.
71426
71427 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71428
71429         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71430
71431         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71432
71433 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71434
71435         [BZ #13291]
71436         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71437
71438 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71439
71440         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71441         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71442         feraiseexcept.
71443
71444         * sysdeps/x86_64/memrchr.S: Check for zero size.
71445
71446         * string/stratcliff.c: Add memrchr tests.
71447
71448 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71449
71450         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71451         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71452         rawmemchr-sse2 rawmemchr-sse2-bsf.
71453         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71454         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71455         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71456         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71457         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71458         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71459         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71460         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71461         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71462         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71463         * string/memrchr.c (MEMRCHR): New macro.
71464
71465 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71466
71467         Add integration with gcc's -ffinite-math-only and optimize wrapper
71468         functions in libm.
71469         * Versions.def: Define GLIBC_2.15 version for libm.
71470         * math/Makefile (headers): Add bits/math-finite.h.
71471         * math/bits/math-finite.h: New file.
71472         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71473         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71474         * math/e_acoshl.c: Add __*_finite alias.
71475         * math/e_acosl.c: Likewise.
71476         * math/e_asinl.c: Likewise.
71477         * math/e_atan2l.c: Likewise.
71478         * math/e_atanhl.c: Likewise.
71479         * math/e_coshl.c: Likewise.
71480         * math/e_exp10.c: Likewise.
71481         * math/e_exp10f.c: Likewise.
71482         * math/e_exp10l.c: Likewise.
71483         * math/e_exp2l.c: Likewise.
71484         * math/e_fmodl.c: Likewise.
71485         * math/e_gammal_r.c: Likewise.
71486         * math/e_hypotl.c: Likewise.
71487         * math/e_j0l.c: Likewise.
71488         * math/e_j1l.c: Likewise.
71489         * math/e_jnl.c: Likewise.
71490         * math/e_lgammal_r.c: Likewise.
71491         * math/e_log10l.c: Likewise.
71492         * math/e_log2l.c: Likewise.
71493         * math/e_logl.c: Likewise.
71494         * math/e_powl.c: Likewise.
71495         * math/e_sinhl.c: Likewise.
71496         * math/e_sqrtl.c: Likewise.
71497         * math/e_scalb.c: Completely rewritten and optimized.
71498         * math/e_scalbf.c: Likewise.
71499         * math/e_scalbl.c: Likewise.
71500         * math/w_acos.c: Likewise.
71501         * math/w_acosf.c: Likewise.
71502         * math/w_acosl.c: Likewise.
71503         * math/w_acosh.c: Likewise.
71504         * math/w_acoshf.c: Likewise.
71505         * math/w_acoshl.c: Likewise.
71506         * math/w_asin.c: Likewise.
71507         * math/w_asinf.c: Likewise.
71508         * math/w_asinl.c: Likewise.
71509         * math/w_atan2.c: Likewise.
71510         * math/w_atan2f.c: Likewise.
71511         * math/w_atan2l.c: Likewise.
71512         * math/w_atanh.c: Likewise.
71513         * math/w_atanhf.c: Likewise.
71514         * math/w_atanhl.c: Likewise.
71515         * math/w_exp10.c: Likewise.
71516         * math/w_exp10f.c: Likewise.
71517         * math/w_exp10l.c: Likewise.
71518         * math/w_fmod.c: Likewise.
71519         * math/w_fmodf.c: Likewise.
71520         * math/w_fmodl.c: Likewise.
71521         * math/w_j0.c: Likewise.
71522         * math/w_j0f.c: Likewise.
71523         * math/w_j0l.c: Likewise.
71524         * math/w_j1.c: Likewise.
71525         * math/w_j1f.c: Likewise.
71526         * math/w_j1l.c: Likewise.
71527         * math/w_jn.c: Likewise.
71528         * math/w_jnf.c: Likewise.
71529         * math/w_log.c: Likewise.
71530         * math/w_logf.c: Likewise.
71531         * math/w_logl.c: Likewise.
71532         * math/w_log10.c: Likewise.
71533         * math/w_log10f.c: Likewise.
71534         * math/w_log10l.c: Likewise.
71535         * math/w_log2.c: Likewise.
71536         * math/w_log2f.c: Likewise.
71537         * math/w_log2l.c: Likewise.
71538         * math/w_pow.c: Likewise.
71539         * math/w_powf.c: Likewise.
71540         * math/w_powl.c: Likewise.
71541         * math/w_remainder.c: Likewise.
71542         * math/w_remainderf.c: Likewise.
71543         * math/w_remainderl.c: Likewise.
71544         * math/w_scalb.c: Likewise.
71545         * math/w_scalbf.c: Likewise.
71546         * math/w_scalbl.c: Likewise.
71547         * math/w_sqrt.c: Likewise.
71548         * math/w_sqrtf.c: Likewise.
71549         * math/w_sqrtl.c: Likewise.
71550         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71551         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71552         used.
71553         * math/math_private.h: Declare __kernel_standard_f.
71554         * math/w_cosh.c: Remove cruft and optimize a bit.
71555         * math/w_coshf.c: Likewise.
71556         * math/w_coshl.c: Likewise.
71557         * math/w_exp2.c: Likewise.
71558         * math/w_exp2f.c: Likewise.
71559         * math/w_exp2l.c: Likewise.
71560         * math/w_hypot.c: Likewise.
71561         * math/w_hypotf.c: Likewise.
71562         * math/w_hypotl.c: Likewise.
71563         * math/w_lgamma.c: Likewise.
71564         * math/w_lgamma_r.c: Likewise.
71565         * math/w_lgammaf.c: Likewise.
71566         * math/w_lgammaf_r.c: Likewise.
71567         * math/w_lgammal.c: Likewise.
71568         * math/w_lgammal_r.c: Likewise.
71569         * math/w_sinh.c: Likewise.
71570         * math/w_sinhf.c: Likewise.
71571         * math/w_sinhl.c: Likewise.
71572         * math/w_tgamma.c: Likewise.
71573         * math/w_tgammaf.c: Likewise.
71574         * math/w_tgammal.c: Likewise.
71575         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71576         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71577         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71578         Minor optimizations.  Pretty printing.  Remove cruft.
71579         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71580         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71581         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71582         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71583         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71584         * sysdeps/i386/fpu/e_asin.S: Likewise.
71585         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71586         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71587         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71588         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71589         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71590         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71591         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71592         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71593         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71594         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71595         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71596         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71597         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71598         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71599         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71600         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71601         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71602         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71603         * sysdeps/i386/fpu/e_log.S: Likewise.
71604         * sysdeps/i386/fpu/e_log10.S: Likewise.
71605         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71606         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71607         * sysdeps/i386/fpu/e_log2.S: Likewise.
71608         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71609         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71610         * sysdeps/i386/fpu/e_logf.S: Likewise.
71611         * sysdeps/i386/fpu/e_logl.S: Likewise.
71612         * sysdeps/i386/fpu/e_pow.S: Likewise.
71613         * sysdeps/i386/fpu/e_powf.S: Likewise.
71614         * sysdeps/i386/fpu/e_powl.S: Likewise.
71615         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71616         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71617         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71618         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71619         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71620         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71621         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71622         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71623         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71624         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71625         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71626         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71627         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71628         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71629         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71630         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71631         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71632         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71633         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71634         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71635         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71636         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71637         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71638         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71639         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71640         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71641         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71642         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71643         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71644         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71645         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71646         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71647         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71648         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71649         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71650         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71651         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71652         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71653         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71654         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71655         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71656         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71657         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71658         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71659         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71660         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71661         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71662         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71663         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71664         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71665         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71666         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71667         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71668         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71669         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71670         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71671         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71672         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71673         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71674         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71675         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71676         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71677         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71678         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71679         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71680         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71681         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71682         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71683         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71684         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71685         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71686         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71687         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71688         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71689         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71690         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71691         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71692         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71693         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71694         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71695         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71696         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71697         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71698         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71699         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71700         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71701         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71702         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71703         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71704         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71705         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71706         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71707         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71708         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71709         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71710         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71711         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71712         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71713         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71714         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71715         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71716         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71717         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71718         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71719         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71720         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71721         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71722         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71723         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71724         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71725         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71726         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71727         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71728         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71729         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71730         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71731         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71732         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71733         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71734         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71735         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71736         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71737         (__isnanf): Likewise.
71738         (__isinf_ns): Likewise.
71739         (__isinf_nsf): Likewise.
71740         (__finite): Likewise.
71741         (__finitef): Likewise.
71742         (__ieee754_sqrt): Define as macro.
71743         (__ieee754_sqrtf): Define as macro.
71744         (__ieee754_sqrtl): Define as macro.
71745         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71746         inlined copy.
71747         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71748         __FINITE_MATH_ONLY__ consistent.
71749         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71750
71751 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71752
71753         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71754         of rawmemchr.
71755
71756         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71757
71758 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71759
71760         * po/ja.po: Update from translation team.
71761
71762 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71763
71764         * locale/programs/locarchive.c (prepare_address_space): New function.
71765         (create_archive, enlarge_archive, open_archive): Use it.
71766
71767         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71768         inside [SHARED], where it is used.
71769
71770         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71771
71772         * nss/getent.c (netgroup_keys): Remove unused variable.
71773         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71774
71775 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
71776
71777         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
71778         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
71779         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
71780         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
71781         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
71782         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
71783         * math/Makefile (libm-calls): Add s_isinf_ns.
71784         * math/divtc3.c: Use __isinf_nsl instead of isinf.
71785         * math/multc3.c: Likewise.
71786         * math/s_casin.c: Likewise.
71787         * math/s_casinf.c: Likewise.
71788         * math/s_casinl.c: Likewise.
71789         * math/s_ccos.c: Likewise.
71790         * math/s_ccosf.c: Likewise.
71791         * math/s_ccosl.c: Likewise.
71792         * math/s_ctan.c: Likewise.
71793         * math/s_ctanf.c: Likewise.
71794         * math/s_ctanh.c: Likewise.
71795         * math/s_ctanhf.c: Likewise.
71796         * math/s_ctanhl.c: Likewise.
71797         * math/s_ctanl.c: Likewise.
71798         * math/w_fmod.c: Likewise.
71799         * math/w_fmodf.c: Likewise.
71800         * math/w_fmodl.c: Likewise.
71801         * math/w_remainder.c: Likewise.
71802         * math/w_remainderf.c: Likewise.
71803         * math/w_remainderl.c: Likewise.
71804         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
71805         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
71806         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
71807         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
71808         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
71809         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
71810         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
71811         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
71812
71813         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
71814         of the number.
71815         * stdio-common/printf_fphex.c: Likewise.
71816         * stdio-common/printf_size.c: Likewise.
71817
71818         * math/e_exp10.c: Include math_private.h using <...> not "...".
71819         * math/e_exp10f.c: Likewise.
71820         * math/e_exp10l.c: Likewise.
71821         * math/e_exp2l.c: Likewise.
71822         * math/e_j0l.c: Likewise.
71823         * math/e_j1l.c: Likewise.
71824         * math/e_jnl.c: Likewise.
71825         * math/e_lgammal_r.c: Likewise.
71826         * math/e_rem_pio2l.c: Likewise.
71827         * math/e_scalb.c: Likewise.
71828         * math/e_scalbf.c: Likewise.
71829         * math/e_scalbl.c: Likewise.
71830         * math/k_cosl.c: Likewise.
71831         * math/k_sinl.c: Likewise.
71832         * math/k_tanl.c: Likewise.
71833         * math/s_cacoshf.c: Likewise.
71834         * math/s_catan.c: Likewise.
71835         * math/s_catanf.c: Likewise.
71836         * math/s_catanh.c: Likewise.
71837         * math/s_catanhf.c: Likewise.
71838         * math/s_catanhl.c: Likewise.
71839         * math/s_catanl.c: Likewise.
71840         * math/s_ccosh.c: Likewise.
71841         * math/s_ccoshf.c: Likewise.
71842         * math/s_ccoshl.c: Likewise.
71843         * math/s_cexp.c: Likewise.
71844         * math/s_cexpf.c: Likewise.
71845         * math/s_cexpl.c: Likewise.
71846         * math/s_clog.c: Likewise.
71847         * math/s_clog10.c: Likewise.
71848         * math/s_clog10f.c: Likewise.
71849         * math/s_clog10l.c: Likewise.
71850         * math/s_clogf.c: Likewise.
71851         * math/s_clogl.c: Likewise.
71852         * math/s_csin.c: Likewise.
71853         * math/s_csinf.c: Likewise.
71854         * math/s_csinh.c: Likewise.
71855         * math/s_csinhf.c: Likewise.
71856         * math/s_csinhl.c: Likewise.
71857         * math/s_csinl.c: Likewise.
71858         * math/s_csqrt.c: Likewise.
71859         * math/s_csqrtf.c: Likewise.
71860         * math/s_csqrtl.c: Likewise.
71861         * math/s_ctan.c: Likewise.
71862         * math/s_ctanf.c: Likewise.
71863         * math/s_ctanh.c: Likewise.
71864         * math/s_ctanhf.c: Likewise.
71865         * math/s_ctanhl.c: Likewise.
71866         * math/s_ctanl.c: Likewise.
71867         * math/s_ldexp.c: Likewise.
71868         * math/s_ldexpf.c: Likewise.
71869         * math/s_ldexpl.c: Likewise.
71870         * math/s_significand.c: Likewise.
71871         * math/s_significandf.c: Likewise.
71872         * math/s_significandl.c: Likewise.
71873         * math/w_acos.c: Likewise.
71874         * math/w_acosf.c: Likewise.
71875         * math/w_acosh.c: Likewise.
71876         * math/w_acoshf.c: Likewise.
71877         * math/w_acoshl.c: Likewise.
71878         * math/w_acosl.c: Likewise.
71879         * math/w_asin.c: Likewise.
71880         * math/w_asinf.c: Likewise.
71881         * math/w_asinl.c: Likewise.
71882         * math/w_atan2.c: Likewise.
71883         * math/w_atan2f.c: Likewise.
71884         * math/w_atan2l.c: Likewise.
71885         * math/w_atanh.c: Likewise.
71886         * math/w_atanhf.c: Likewise.
71887         * math/w_atanhl.c: Likewise.
71888         * math/w_cosh.c: Likewise.
71889         * math/w_coshf.c: Likewise.
71890         * math/w_coshl.c: Likewise.
71891         * math/w_dremf.c: Likewise.
71892         * math/w_exp10.c: Likewise.
71893         * math/w_exp10f.c: Likewise.
71894         * math/w_exp10l.c: Likewise.
71895         * math/w_exp2.c: Likewise.
71896         * math/w_exp2f.c: Likewise.
71897         * math/w_fmod.c: Likewise.
71898         * math/w_fmodf.c: Likewise.
71899         * math/w_fmodl.c: Likewise.
71900         * math/w_hypot.c: Likewise.
71901         * math/w_hypotf.c: Likewise.
71902         * math/w_hypotl.c: Likewise.
71903         * math/w_j0.c: Likewise.
71904         * math/w_j0f.c: Likewise.
71905         * math/w_j0l.c: Likewise.
71906         * math/w_j1.c: Likewise.
71907         * math/w_j1f.c: Likewise.
71908         * math/w_j1l.c: Likewise.
71909         * math/w_jn.c: Likewise.
71910         * math/w_jnf.c: Likewise.
71911         * math/w_jnl.c: Likewise.
71912         * math/w_lgamma.c: Likewise.
71913         * math/w_lgamma_r.c: Likewise.
71914         * math/w_lgammaf.c: Likewise.
71915         * math/w_lgammaf_r.c: Likewise.
71916         * math/w_lgammal.c: Likewise.
71917         * math/w_lgammal_r.c: Likewise.
71918         * math/w_log.c: Likewise.
71919         * math/w_log10.c: Likewise.
71920         * math/w_log10f.c: Likewise.
71921         * math/w_log10l.c: Likewise.
71922         * math/w_log2.c: Likewise.
71923         * math/w_log2f.c: Likewise.
71924         * math/w_log2l.c: Likewise.
71925         * math/w_logf.c: Likewise.
71926         * math/w_logl.c: Likewise.
71927         * math/w_pow.c: Likewise.
71928         * math/w_powf.c: Likewise.
71929         * math/w_powl.c: Likewise.
71930         * math/w_remainder.c: Likewise.
71931         * math/w_remainderf.c: Likewise.
71932         * math/w_remainderl.c: Likewise.
71933         * math/w_scalb.c: Likewise.
71934         * math/w_scalbf.c: Likewise.
71935         * math/w_scalbl.c: Likewise.
71936         * math/w_sinh.c: Likewise.
71937         * math/w_sinhf.c: Likewise.
71938         * math/w_sinhl.c: Likewise.
71939         * math/w_sqrt.c: Likewise.
71940         * math/w_sqrtf.c: Likewise.
71941         * math/w_sqrtl.c: Likewise.
71942         * math/w_tgamma.c: Likewise.
71943         * math/w_tgammaf.c: Likewise.
71944         * math/w_tgammal.c: Likewise.
71945
71946         * po/ja.po: Update from translation team.
71947
71948 2011-09-29  Andreas Jaeger  <aj@suse.de>
71949
71950         [BZ #13179]
71951         * sunrpc/netname.c (netname2host): Fix logic.
71952
71953         [BZ #6779]
71954         [BZ #6783]
71955         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
71956         correctly.
71957         * math/w_remainder.c (__remainder): Likewise.
71958         * math/w_remainderf.c (__remainderf): Likewise.
71959         * math/libm-test.inc (remainder_test): Add test cases.
71960
71961 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71962
71963         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
71964         sdiv_qrnnd.
71965
71966 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71967
71968         * string/test-memcmp.c: Avoid unncessary #defines.
71969         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71970
71971 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71972
71973         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
71974         Use new sse2 version for core i3 - i7 as it's faster
71975         than sse42 version.
71976         (bit_Prefer_PMINUB_for_stringop): New.
71977         * sysdeps/x86_64/rawmemchr.S: Update.
71978         Replace with faster SSE2 version.
71979         * sysdeps/x86_64/memrchr.S: New file.
71980         * sysdeps/x86_64/memchr.S: Update.
71981         Replace with faster SSE2 version.
71982
71983 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
71984
71985         * elf/dl-load.c (lose): Add cast to avoid warning.
71986
71987 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71988
71989         * po/ca.po: Update from translation team.
71990
71991         * inet/getnetgrent_r.c: Hook up nscd.
71992         * nscd/Makefile (routines): Add nscd_netgroup.
71993         (nscd-modules): Add netgroupcache.
71994         (CFLAGS-netgroupcache.c): Define.
71995         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
71996         (cache_search): Add const to second parameter.
71997         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
71998         INNETGR.
71999         (dbs): Add netgrdb entry.
72000         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72001         (verify_persistent_db): Handle netgrdb.
72002         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72003         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72004         GETFDNETGR.
72005         (netgroup_response_header): Define.
72006         (innetgroup_response_header): Define.
72007         (datahead): Add netgroup_response_header and innetgroup_response_header
72008         elements.
72009         * nscd/nscd.conf: Add entries for netgroup cache.
72010         * nscd/nscd.h (dbtype): Add netgrdb.
72011         (_PATH_NSCD_NETGROUP_DB): Define.
72012         (netgroup_iov_disabled): Declare.
72013         (xmalloc, xcalloc, xrealloc): Move declarations here.
72014         (cache_search): Adjust prototype.
72015         Add netgroup-related prototypes.
72016         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72017         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72018         (__nscd_innetgr): Declare.
72019         * nscd/selinux.c (perms): Use access_vector_t as element type and
72020         add netgroup-related initializers.
72021         * nscd/netgroupcache.c: New file.
72022         * nscd/nscd_netgroup.c: New file.
72023         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72024         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72025         For four parameters use innetgr.
72026         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72027         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72028         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72029         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72030
72031         * nscd/connections.c (register_traced_file): Don't register file
72032         for disabled databases.
72033
72034 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72035
72036         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72037
72038         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72039         from tree and freeing node.
72040
72041 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72042
72043         * nss/nsswitch.c (__nss_database_lookup): Handle
72044         nss_parse_service_list out of memory case.
72045
72046 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72047
72048         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72049         out of memory case.
72050
72051 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72052
72053         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72054         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72055         pass it down.
72056         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72057         elf_machine_rela, elf_machine_lazy_rel.
72058         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72059         (ELF_DYNAMIC_DO_REL): Likewise.
72060         (ELF_DYNAMIC_DO_RELA): Likewise.
72061         (ELF_DYNAMIC_RELOCATE): Likewise.
72062         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72063         to ELF_DYNAMIC_DO_REL.
72064         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72065         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72066         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72067         elf_machine_rela.
72068         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72069         skip_ifunc, don't call ifunc function if non-zero.
72070         (elf_machine_rela): Likewise.
72071         (elf_machine_lazy_rel): Likewise.
72072         (elf_machine_lazy_rela): Likewise.
72073         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72074         (elf_machine_lazy_rel): Likewise.
72075         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72076         Likewise.
72077         (elf_machine_lazy_rel): Likewise.
72078         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72079         Likewise.
72080         (elf_machine_lazy_rel): Likewise.
72081         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72082         (elf_machine_lazy_rel): Likewise.
72083         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72084         (elf_machine_lazy_rel): Likewise.
72085         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72086         (elf_machine_lazy_rel): Likewise.
72087         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72088         (elf_machine_lazy_rel): Likewise.
72089         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72090         (elf_machine_lazy_rel): Likewise.
72091         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72092         (elf_machine_lazy_rel): Likewise.
72093
72094 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72095
72096         * nss/nss_files/files-init.c (_nss_files_init): Use static
72097         initialization for all the *_traced_file variables.
72098
72099 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72100
72101         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72102
72103 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72104
72105         [BZ #13226]
72106         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72107
72108 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72109
72110         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72111         Reread the line before reparsing it.
72112
72113 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72114
72115         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72116
72117 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72118             Maxim Kuvyrkov  <maxim@codesourcery.com>
72119             Joseph Myers  <joseph@codesourcery.com>
72120
72121         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72122         if needed for __stack_chk_guard.
72123
72124 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72125
72126         * sysdeps/posix/spawni.c (script_execute): Always define it.
72127         It will be optimized away if unused.
72128         (maybe_script_execute): New function.
72129         (__spawni): Call it.
72130
72131         * Makerules: Don't include tls.make.
72132         (config-tls): Always set to thread.
72133         * tls.make.c: File removed.
72134
72135 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72136
72137         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72138         * config.make.in (CPPFLAGS-config): New substituted variable.
72139
72140 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72141
72142         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72143
72144         [BZ #13192]
72145         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72146         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72147
72148 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72149
72150         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72151         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72152         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72153         (CALL_FAIL): Likewise.
72154         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72155         (CALL_FAIL): Macro removed.
72156         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72157
72158 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72159
72160         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72161         for __FINITE_MATH_ONLY__ == 1.
72162
72163 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72164
72165         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72166         __ieee754_sqrt instead of sqrt.
72167         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72168         __ieee754_sqrtf instead of sqrtf.
72169         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72170         __floorf instead of floorf.
72171         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72172         __floorf, __truncf instead of floorf, truncf.
72173
72174 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72175
72176         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72177
72178         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72179         __extern_always_inline.
72180         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72181         32-bit.
72182
72183 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72184
72185         * elf/rtld.c (dl_main): Also relocate in dependency order when
72186         doing symbol dependency testing.
72187
72188 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72189
72190         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72191         Always define `refsym'.
72192
72193 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72194
72195         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72196         (__FD_ELT): Renamed from __FDELT.
72197         * misc/bits/select2.h (__FD_ELT): Likewise.
72198         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72199         __FD_MASK instead of __FDELT, __FDMASK.
72200         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72201         Likewise.
72202         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72203         Likewise.
72204
72205         * elf/Makefile (gen-ldd): Fix pattern.
72206
72207         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72208         (init_tls): Likewise.
72209
72210 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72211
72212         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72213
72214 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72215
72216         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72217         `struct cmsghdr *' instead of `void *'.
72218         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72219         Likewise.
72220
72221 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72222
72223         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72224         if non-absolute.
72225         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72226         ldd_rewrite_script.
72227
72228 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72229
72230         * configure.in: Remove --with-tls option.
72231         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72232         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72233         out in case it is missing.
72234         * sysdeps/ia64/elf/configure.in: Likewise.
72235         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72236         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72237         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72238         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72239         * sysdeps/sh/elf/configure.in: Likewise.
72240         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72241         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72242         * sysdeps/x86_64/elf/configure.in: Likewise.
72243         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72244         * sysdeps/mach/hurd/tls.h: Likewise.
72245
72246         [BZ #13067]
72247         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72248
72249         [BZ #13090]
72250         * configure.in: Fix use of AC_INIT.
72251
72252         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72253
72254 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72255
72256         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72257         __set_errno.
72258         * malloc/hooks.c: Likewise.
72259
72260         [BZ #11929]
72261         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72262         variables statically.
72263         (narenas): Initialize.
72264         (list_lock): Initialize.
72265         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72266         initializtion of main_arena and list_lock.  Small cleanups.
72267         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72268         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72269         Add initializers to main_arena and mp_.
72270         (malloc_state): Remove pagesize member.  Change all users to use
72271         GLRO(dl_pagesize).
72272
72273         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72274         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72275         is always initialized.
72276
72277         * malloc/malloc.c: Removed unused configurations and dead code.
72278         * malloc/arena.c: Likewise.
72279         * malloc/hooks.c: Likewise.
72280         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72281
72282         * include/tls.h: Removed.  USE___THREAD must always be defined.
72283         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72284         * elf/dl-libc.c: Likewise.
72285         * elf/dl-tsd.c: Likewise.
72286         * include/errno.h: Likewise.
72287         * include/netdb.h: Likewise.
72288         * include/resolv.h: Likewise.
72289         * inet/herrno-loc.c: Likewise.
72290         * inet/herrno.c: Likewise.
72291         * malloc/arena.c: Likewise.
72292         * malloc/hooks.c: Likewise.
72293         * malloc/malloc.c: Likewise.
72294         * resolv/res-state.c: Likewise.
72295         * resolv/res_libc.c: Likewise.
72296         * sysdeps/i386/dl-machine.h: Likewise.
72297         * sysdeps/ia64/dl-machine.h: Likewise.
72298         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72299         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72300         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72301         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72302         * sysdeps/sh/dl-machine.h: Likewise.
72303         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72304         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72305         * sysdeps/unix/i386/sysdep.S: Likewise.
72306         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72307         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72308         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72309         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72310         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72311         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72312         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72313         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72314         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72315         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72316         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72317         * sysdeps/x86_64/dl-machine.h: Likewise.
72318         * tls.make.c: Likewise.
72319
72320         * configure.in: Remove --with-__thread option.  Make tests for
72321         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72322         tls_model attribute fail if no support is available.  Remove
72323         USE_IN_LIBIO.
72324         * Makeconfig: Adjust for dropped configure option.  All features are
72325         now mandatory.
72326         * Makerules: Likewise.
72327         * Versions.def: Likewise.
72328         * argp/argp-fmtstream.c: Likewise.
72329         * argp/argp-fmtstream.h: Likewise.
72330         * argp/argp-help.c: Likewise.
72331         * assert/assert.c: Likewise.
72332         * config.h.in: Likewise.
72333         * config.make.in: Likewise.
72334         * configure: Likewise.
72335         * configure.in: Likewise.
72336         * csu/Versions: Likewise.
72337         * csu/init.c: Likewise.
72338         * elf/tst-audit2.c: Likewise.
72339         * elf/tst-tls10.c: Likewise.
72340         * elf/tst-tls10.h: Likewise.
72341         * elf/tst-tls11.c: Likewise.
72342         * elf/tst-tls12.c: Likewise.
72343         * elf/tst-tls14.c: Likewise.
72344         * elf/tst-tlsmod11.c: Likewise.
72345         * elf/tst-tlsmod12.c: Likewise.
72346         * elf/tst-tlsmod13.c: Likewise.
72347         * elf/tst-tlsmod13a.c: Likewise.
72348         * elf/tst-tlsmod14a.c: Likewise.
72349         * elf/tst-tlsmod15b.c: Likewise.
72350         * elf/tst-tlsmod16a.c: Likewise.
72351         * elf/tst-tlsmod16b.c: Likewise.
72352         * elf/tst-tlsmod7.c: Likewise.
72353         * elf/tst-tlsmod8.c: Likewise.
72354         * elf/tst-tlsmod9.c: Likewise.
72355         * gmon/gmon.c: Likewise.
72356         * grp/fgetgrent_r.c: Likewise.
72357         * grp/putgrent.c: Likewise.
72358         * hurd/fopenport.c: Likewise.
72359         * include/libc-symbols.h: Likewise.
72360         * include/tls.h: Likewise.
72361         * intl/gettextP.h: Likewise.
72362         * intl/loadinfo.h: Likewise.
72363         * locale/global-locale.c: Likewise.
72364         * locale/localeinfo.h: Likewise.
72365         * mach/devstream.c: Likewise.
72366         * malloc/arena.c: Likewise.
72367         * malloc/set-freeres.c: Likewise.
72368         * misc/err.c: Likewise.
72369         * misc/getttyent.c: Likewise.
72370         * misc/mntent_r.c: Likewise.
72371         * posix/getopt.c: Likewise.
72372         * posix/wordexp.c: Likewise.
72373         * pwd/fgetpwent_r.c: Likewise.
72374         * resolv/Versions: Likewise.
72375         * resolv/res_hconf.c: Likewise.
72376         * shadow/fgetspent_r.c: Likewise.
72377         * shadow/putspent.c: Likewise.
72378         * stdio-common/printf_fphex.c: Likewise.
72379         * stdio-common/tmpfile.c: Likewise.
72380         * stdlib/abort.c: Likewise.
72381         * stdlib/fmtmsg.c: Likewise.
72382         * sunrpc/auth_unix.c: Likewise.
72383         * sunrpc/clnt_perr.c: Likewise.
72384         * sunrpc/clnt_tcp.c: Likewise.
72385         * sunrpc/clnt_udp.c: Likewise.
72386         * sunrpc/clnt_unix.c: Likewise.
72387         * sunrpc/openchild.c: Likewise.
72388         * sunrpc/svc_simple.c: Likewise.
72389         * sunrpc/svc_tcp.c: Likewise.
72390         * sunrpc/svc_udp.c: Likewise.
72391         * sunrpc/svc_unix.c: Likewise.
72392         * sunrpc/xdr.c: Likewise.
72393         * sunrpc/xdr_array.c: Likewise.
72394         * sunrpc/xdr_rec.c: Likewise.
72395         * sunrpc/xdr_ref.c: Likewise.
72396         * sunrpc/xdr_stdio.c: Likewise.
72397
72398 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72399
72400         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72401
72402 2011-07-03  Andreas Jaeger  <aj@suse.de>
72403
72404         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72405         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72406         regenerate with gen-libm-tests.pl.
72407
72408 2010-05-12  Petr Baudis  <pasky@suse.cz>
72409
72410         [BZ #11589]
72411         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72412         around j0() zero points by switching to j1().
72413         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72414         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72415         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72416         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72417
72418 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72419
72420         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72421         instead of 0.
72422         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72423         instead of 0.
72424         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72425         Patch in part by Pavel Roskin <proski@gnu.org>.
72426
72427         [BZ #13138]
72428         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72429         realloc.
72430         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72431         Free memory block if necessary.
72432
72433         [BZ #12847]
72434         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72435         be NULL.  Don't lock in this case.
72436
72437 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72438
72439         * elf/elf.h (ELFOSABI_GNU): New macro.
72440         (ELFOSABI_LINUX): Define to that.
72441
72442 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72443
72444         * string/strncat.c (strncat): Undef the symbol in case it has been
72445         defined in bits/string.h.
72446
72447 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72448
72449         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72450
72451         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72452         link map.
72453
72454 2011-08-17  Andreas Jaeger  <aj@suse.de>
72455
72456         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72457
72458 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72459             Ian Lance Taylor  <iant@google.com>
72460
72461         * math/libm-test.inc (lround_test): New testcase.
72462         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72463
72464 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72465
72466         * Makefile: Remove support for automatic cvs check-ins.
72467         * Makerules: Likewise.
72468         * config.make.in: Likewise.
72469         * configure.in: Likewise.
72470         * intl/Makefile: Likewise.
72471         * locale/Makefile: Likewise.
72472         * po/Makefile: Likewise.
72473         * posix/Makefile: Likewise.
72474         * sysdeps/gnu/Makefile: Likewise.
72475         * sysdeps/mach/hurd/Makefile: Likewise.
72476         * sysdeps/sparc/sparc32/Makefile: Likewise.
72477
72478         [BZ #13118]
72479         * posix/Makefile (bug-regex32-ENV): Define.
72480         Patch by John Stanley <jpsinthemix@verizon.net>.
72481
72482         * misc/Makefile (headers): Add bits/select2.h.
72483         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72484         * misc/bits/select2.h: New file.
72485         * include/bits/select2.h: New file.
72486         * debug/Makefile (routines): Add fdelt_chk.
72487         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72488         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72489         FD_ISSET.
72490         * debug/fdelt_chk.c: New file.
72491
72492         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72493         * wcsmbs/test-wmemcmp.c: Likewise.
72494         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72495         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72496
72497 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72498
72499         * string/Makefile (strop-tests): Add memcmp.
72500         * string/test-wmemcmp.c: New file.
72501         * string/test-memcmp.c: Add wmemcmp support.
72502
72503 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72504
72505         [BZ #13153]
72506         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72507         2011-07-19 change.
72508
72509         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72510         garbage value in a __mach_port_mod_refs call in the cases of the
72511         task-self and thread-self ports.
72512
72513 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72514
72515         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72516
72517 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72518
72519         * elf/dl-load.c (lose): Check for non-null L.
72520
72521 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72522
72523         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72524
72525         * elf/dl-libc.c (dlerror_run): Pass back error code from
72526         dl_catch_error.
72527
72528         [BZ #13123]
72529         * elf/dl-load.c (lose): Free l_origin if it is valid.
72530
72531         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72532         names.
72533         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72534         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72535         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72536         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72537         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72538         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72539
72540 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72541
72542         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72543         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72544         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72545         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72546         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72547         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72548         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72549         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72550         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72551         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72552
72553 2011-08-15  Alan Modra  <amodra@gmail.com>
72554
72555         [BZ #13092]
72556         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72557         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72558         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72559         ppc_mcount to static-only-routines.
72560         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72561         __mcount_internal.
72562         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72563         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72564
72565 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72566
72567         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72568         for finite and infinity parameters.
72569
72570 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72571
72572         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72573         and add nop instructions for throughput optimization.
72574         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72575
72576 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72577
72578         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72579         aligned copy for power7 with vector-scalar instructions.
72580         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72581
72582 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72583
72584         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72585         AVX check.
72586
72587 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72588
72589         [BZ #13144]
72590         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72591         last change.
72592
72593 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72594
72595         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72596         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72597         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72598         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72599         clock_gettime.
72600
72601 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72602
72603         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72604         Forgot to demangle the pointer.
72605
72606         * sysdeps/i386/sysdep.h: Define atom_text_section.
72607         * sysdeps/x86_64/sysdep.h: Likewise.
72608         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72609         section with atom_text_section.
72610         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72611         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72612         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72613         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72614         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72615
72616         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72617         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72618         already be defined.  Change to take two parameters and don't assign
72619         result to variable.  Adjust all users.
72620         Define INTERNAL_GETTIME if not already defined.
72621         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72622         call.
72623         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72624         HAVE_CLOCK_GETTIME_VSYSCALL.
72625         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72626
72627         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72628         gettimeofday vsyscall, just use time.
72629
72630 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72631
72632         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72633         <errno.h>.
72634
72635 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72636
72637         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72638         syscall on x86-64.
72639         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72640         syscall.
72641         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72642         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72643         syscall if possible.
72644
72645 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72646
72647         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72648         e_ident.  Don't pass to find_mapsXX.
72649         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72650
72651 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72652
72653         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72654         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72655         * sysdeps/x86_64/multiarch/strchr.S: Update.
72656         Check bit_slow_BSF bit.
72657         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72658         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72659         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72660
72661 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72662
72663         [BZ #13134]
72664         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72665         before glibc 2.15.
72666         (tryshell): Define.
72667         (__spawni): Change last parameter to be flag.  Test
72668         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72669         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72670         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72671         * posix/spawni.c: Likewise.
72672         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72673         * posix/spawnp.c: Likewise.  Change normal version to use
72674         SPAWN_XFLAGS_USE_PATH.
72675         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72676         SPAWN_XFLAGS_TRY_SHELL.
72677
72678         [BZ #13150]
72679         * posix/glob.h: Remove gcc 1.x support.
72680
72681         [BZ #13068]
72682         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72683
72684 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72685
72686         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72687         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72688         strrchr-sse2-bsf
72689         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72690         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72691         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72692         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72693         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72694         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72695
72696 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72697
72698         * sysdeps/x86_64/wcscmp.S: New file.
72699
72700         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72701         wcscmp-c wcscmp-sse2
72702         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72703         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72704         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72705         * wcsmbs/wcscmp.c: Allow renaming.
72706
72707 2011-09-05  David S. Miller  <davem@davemloft.net>
72708
72709         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72710         stack slot, rather than the struct return pointer slot.
72711         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72712         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72714         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72715
72716 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72717
72718         * po/ja.po: Update from translation team.
72719
72720         [BZ #13144]
72721         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72722         kernel in 64-bit binaries.
72723
72724 2011-09-01  David S. Miller  <davem@davemloft.net>
72725
72726         * elf/elf.h (HWCAP_SPARC_*): Move to..
72727         * sysdeps/sparc/sysdep.h: this new file and add new values.
72728         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72729         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72730         _DL_HWCAP_COUNT to 24.
72731         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72732         entries.
72733         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72734         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72735         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72736         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72737         instead of magic constants.
72738         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72739
72740 2011-08-31  David S. Miller  <davem@davemloft.net>
72741
72742         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72743         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72744         Reimplement to do errno handling inline.
72745         (SYSCALL_ERROR_HANDLER): New macro.
72746         (__SYSCALL_STRING): Do not do errno handling in asm.
72747         (__CLONE_SYSCALL_STRING): Delete.
72748         (__INTERNAL_SYSCALL_STRING): Delete.
72749         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72750         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72751         (PSEUDO): Reimplement to do errno handling inline.
72752         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72753         (SYSCALL_ERROR_HANDLER): New macro.
72754         (__SYSCALL_STRING): Do not do errno handling in asm.
72755         (__CLONE_SYSCALL_STRING): Delete.
72756         (__INTERNAL_SYSCALL_STRING): Delete.
72757         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72758         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72759         i386.
72760         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72761         (inline_syscall*): Add 'err' argument.
72762         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72763         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72764         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72765         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72766
72767         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72768         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72769
72770 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72771
72772         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72773
72774 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72775
72776         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
72777         directive.
72778
72779 2011-08-24  David S. Miller  <davem@davemloft.net>
72780
72781         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
72782
72783 2011-08-24  Andreas Schwab  <schwab@redhat.com>
72784
72785         * elf/Makefile: Add rules to build and run unload8 test.
72786         * elf/unload8.c: New file.
72787         * elf/unload8mod1.c: New file.
72788         * elf/unload8mod1x.c: New file.
72789         * elf/unload8mod2.c: New file.
72790         * elf/unload8mod3.c: New file.
72791
72792         * elf/dl-close.c (_dl_close_worker): Reset private search list if
72793         it wasn't used.
72794
72795 2011-08-23  David S. Miller  <davem@davemloft.net>
72796
72797         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
72798         subtract stack bias.
72799         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
72800         %sp not %fp in calculations.
72801         (_JMPBUF_UNWINDS_ADJ): Likewise.
72802
72803         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
72804         (aio_suspend): Call it to force an exception region around the
72805         AIO_MISC_WAIT() invocation.
72806
72807 2011-08-23  Andreas Schwab  <schwab@redhat.com>
72808
72809         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
72810         backslash.
72811
72812 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
72813
72814         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
72815         protection macro.
72816         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
72817         and <dl-machine.h>.
72818         (Elf64_FuncDesc): Remove.
72819
72820 2011-08-22  David S. Miller  <davem@davemloft.net>
72821
72822         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
72823         sigaltstack check, add missing cfi directives.
72824         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
72825         missing cfi directives, and sigaltstack handling.
72826
72827 2011-08-16  Andreas Schwab  <schwab@redhat.com>
72828
72829         [BZ #11724]
72830         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
72831         object is seen twice.
72832         * elf/dl-fini.c (_dl_sort_fini): Likewise.
72833
72834         * elf/Makefile (distribute): Add tst-initorder2.c.
72835         (tests): Add tst-initorder2.
72836         (modules-names): Add tst-initorder2a tst-initorder2b
72837         tst-initorder2c tst-initorder2d.  Add rules to build them.
72838         ($(objpfx)tst-initorder2.out): New rule.
72839         * elf/tst-initorder2.c: New file.
72840         * elf/tst-initorder2.exp: New file.
72841
72842 2011-08-22  Andreas Schwab  <schwab@redhat.com>
72843
72844         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
72845
72846         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
72847         dependencies back to end of function.
72848
72849         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
72850         $(elfobjdir)/ld.so.
72851
72852 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
72853
72854         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
72855         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
72856         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
72857         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
72858         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
72859         of __vdso_gettimeofday.
72860         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
72861         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
72862         attribute_hidden.
72863         (_libc_vdso_platform_setup): Remove initialization of
72864         __vdso_gettimeofday and __vdso_time.
72865
72866 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72867
72868         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
72869         and fgetc_unlocked.
72870         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
72871         getc_unlocked.
72872
72873         * elf/dl-open.c (add_to_global): Report additions to the global scope
72874         for LD_DEBUG=scopes.
72875         (dl_open_worker): Also print scope of newly loaded dependencies.
72876         (_dl_show_scope): Indicate if there is no scope.
72877
72878         [BZ #13114]
72879         * stdio-common/Makefile (tests): Add bug24.
72880         * stdio-common/bug24.c: New file.
72881
72882 2011-08-19  Andreas Jaeger  <aj@suse.de>
72883
72884         [BZ #13114]
72885         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
72886         non-existant file when using close-on-exec mode.
72887
72888 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72889
72890         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
72891         the very first instruction.
72892
72893         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
72894         the CFI state in the end.
72895         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
72896         inclusion of dl-trampoline.h.
72897         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
72898
72899 2011-08-19  Andreas Schwab  <schwab@redhat.com>
72900
72901         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
72902         expectations for long double.
72903
72904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
72905         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
72906
72907 2011-08-14  David S. Miller  <davem@davemloft.net>
72908
72909         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
72910         artificual limit depends upon the system page size.
72911
72912 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72913
72914         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
72915         * resolv/Makefile: Define CFLAGS-libresolv.
72916
72917 2011-08-17  Andreas Schwab  <schwab@redhat.com>
72918
72919         * nss/makedb.c (compute_tables): Make variables used in nested
72920         function static.
72921
72922 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72923
72924         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
72925         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
72926         if buffer was too small.
72927
72928         * elf/pldd.c (main): Attach to all threads in the process.
72929         Rewrite /proc handling to use *at functions.
72930
72931 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
72932
72933         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
72934         specifies first scope to show.
72935         (dl_open_worker): Update callers.  Move printing scope of new
72936         object to before the relocation.
72937         * elf/rtld.c (dl_main): Update _dl_show_scope call.
72938         * sysdeps/generic/ldsodefs.h: Update declaration.
72939
72940         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
72941         string for the scope number.
72942
72943 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
72944
72945         * nscd/servicescache.c (cache_addserv): Make sure written is always
72946         initialized.
72947
72948 2011-08-14  Roland McGrath  <roland@hack.frob.com>
72949
72950         * sysdeps/i386/i486/bits/atomic.h
72951         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
72952         statement expression, so as to suppress "set but not used" warning.
72953         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
72954
72955         * string/strncat.c (STRNCAT): Use prototype definition.
72956
72957         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
72958         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
72959         -Iprograms here.
72960         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
72961         (localedef-modules): Add localedef.
72962         (locale-modules): Add locale.
72963
72964         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
72965         * elf/rtld.c (dl_main): Invert order of assignment in last change,
72966         to avoid a warning.
72967
72968 2011-08-14  David S. Miller  <davem@davemloft.net>
72969
72970         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
72971         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
72972
72973 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
72974
72975         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
72976         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
72977         * elf/rtld.c (dl_main): Set l_name of vDSO.
72978         Call _dl_show_scope when DL_DEBUG_SCOPES.
72979         (process_dl_debug): Recognize scopes flag and also set it for all.
72980         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
72981         Declare _dl_show_scope.
72982
72983         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
72984         (do_dlopen): Pass caller_dlopen to dl_open.
72985         (__libc_dlopen_mode): Initialize caller_dlopen.
72986
72987         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
72988         of libc.  Make tolower call locale-independent.  Optimize a bit by
72989         using isdigit instead of isalnum.
72990         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
72991
72992 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
72993
72994         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
72995         was a dependency or dynamically loaded.
72996
72997 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
72998
72999         * intl/l10nflist.c: Allow architecture-specific pop function.
73000         * sysdeps/x86_64/l10nflist.c: New file.
73001
73002         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73003         classification.
73004
73005 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73006
73007         * include/dirent.h: Add libc_hidden_proto for scandirat and
73008         scandirat64.  Don't declare __scandirat64.
73009         * dirent/scandirat.c: Add libc_hidden_def.
73010         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73011         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73012
73013 2011-08-10  David S. Miller  <davem@davemloft.net>
73014
73015         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73016         enum.
73017         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73018         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73019         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73020
73021 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73022
73023         * Versions.def [libc]: Add GLIBC_2.15.
73024         * dirent/Makefile (routines): Add scandirat and scandirat64.
73025         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73026         GLIBC_2.15.
73027         * dirent/dirent.h: Declare scandirat and scandirat64.
73028         * dirent/scandirat.c: New file.
73029         * dirent/scandirat64.c: New file.
73030         * sysdeps/wordsize-64/scandirat.c: New file.
73031         * sysdeps/wordsize-64/scandirat64.c: New file.
73032         * dirent/opendir.c: Define opendirat.
73033         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73034         using scandirat.
73035         * dirent/scandir64.c: Adjust for scandir.c change.
73036         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73037         __scandirat64, and __scandir_cancel_handler.
73038         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73039         additional parameter and use openat instead of open (outside of ld.so).
73040         Add new __opendir as wrapper around __opendirat.
73041         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73042         here without requiring old scandirat implementation.
73043
73044 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73045
73046         * dirent/scandir.c (cancel_handler): Renamed to
73047         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73048         defined.  Adjust users.
73049         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73050         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73051
73052 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73053
73054         * string/test-string.h (IMPL): Use __STRING to expand name and then
73055         stringify it.
73056
73057         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73058         of cleanups.
73059
73060 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73061
73062         * string/Makefile: Update.
73063         (strop-tests): Append strncat.
73064         * string/test-wcscmp.c: New file.
73065         New comprehensive test for wcscmp.
73066         * string/test-strcmp.c: Update.
73067         (WIDE): New define.
73068
73069 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73070
73071         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73072         line.
73073
73074 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73075
73076         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73077         encoding to ACE if AI_IDN.
73078
73079 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73080
73081         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73082         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73083
73084 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73085
73086         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73087         Fix overflow bug in strncat.
73088         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73089
73090         * string/test-strncat.c: Update.
73091         Add new tests for checking overflow bugs.
73092
73093 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73094
73095         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73096         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73097         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73098         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73099         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73100         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73101         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73102         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73103         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73104
73105         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73106         (USE_AS_STRCAT): Define.
73107         Add strcat and strncat support.
73108         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73109
73110 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73111
73112         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73113         __n bigger than INT_MAX+1.
73114         (__strncmp_g): Likewise.
73115
73116 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73117
73118         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73119         * libio/stido.h: Likewise.
73120
73121         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73122         (AF_NFC): Define.
73123         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73124         (AF_NFC): Define.
73125
73126         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73127         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73128         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73129         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73130         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73131
73132         [BZ #13021]
73133         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73134         installed.
73135
73136         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73137         typo.
73138         (_dl_x86_64_save_sse): Likewise.
73139
73140 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73141
73142         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73143         OSXSAVE.
73144         (_dl_x86_64_save_sse): Likewise.
73145
73146         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73147
73148         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73149
73150 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73151
73152         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73153         change.
73154         (_dl_x86_64_save_sse): Use correct AVX check.
73155
73156 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73157
73158         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73159         bug in strncpy/strncat.
73160         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73161
73162 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73163
73164         * string/tester.c (test_strcat): Add tests for different alignments
73165         of source and destination.
73166         (test_strncat): Likewise.
73167
73168 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73169
73170         [BZ #12852]
73171         * posix/glob.c (glob): Check passed in values before using them in
73172         expressions to avoid some overflows.
73173         (glob_in_dir): Likewise.
73174
73175         [BZ #13007]
73176         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73177         check for AVX enablement so that we don't crash with old kernels and
73178         new hardware.
73179         * elf/tst-audit4.c: Add same checks here.
73180         * elf/tst-audit6.c: Likewise.
73181
73182         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73183
73184 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73185
73186         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73187
73188 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73189
73190         * po/cs.po: Update from translation team.
73191         * po/bg.po: Likewise.
73192
73193 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73194
73195         * misc/sys/cdefs.h: Add support for const attribute.
73196         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73197         to gnu_dev_{major,minor,makedev} functions.
73198
73199 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73200
73201         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73202
73203 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73204
73205         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73206         strlen results.
73207
73208 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73209
73210         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73211         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73212         register in order to avoid conflicts with the soft frame pointer
73213         being held in r11 when necessary.
73214         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73215         (INTERNAL_VSYSCALL_NCS): Likewise.
73216
73217 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73218
73219         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73220         * elf/dl-fini.c (_dl_fini): Adjust caller.
73221         * elf/dl-close.c (_dl_close_worker): Likewise.
73222         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73223
73224 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73225
73226         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73227         "aux_cache->nlibs < 0".
73228
73229         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73230         in the reload-count case.
73231
73232 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73233
73234         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73235         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73236         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73237         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73238         * sysdeps/x86_64/multiarch/strcat.S: New file.
73239         * sysdeps/x86_64/multiarch/strncat.S: New file.
73240         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73241         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73242         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73243         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73244         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73245         (USE_AS_STRCAT): Define.
73246         Add strcat and strncat support.
73247         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73248         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73249         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73250         * string/strncat.c: Update.
73251         (USE_AS_STRNCAT): Define.
73252         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73253         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73254         and i7.
73255         * sysdeps/x86_64/multiarch/init-arch.h
73256         (bit_Prefer_PMINUB_for_stringop): New.
73257         (index_Prefer_PMINUB_for_stringop): Likewise.
73258         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73259         bit_Prefer_PMINUB_for_stringop.
73260
73261 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73262
73263         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73264         buffer64.
73265         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73266         of casting of buffer.
73267         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73268         buffer32 and buffer64.
73269         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73270         writes instead of casting of buffer.
73271         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73272         buffer32.
73273         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73274         casting of buffer.
73275
73276 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73277
73278         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73279
73280 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73281
73282         * nscd/nscd.c (termination_handler): Don't do anything for a database
73283         if it has not yet been initialized.
73284
73285 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73286
73287         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73288
73289 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73290
73291         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73292
73293 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73294
73295         * po/nl.po: Update from translation team.
73296         * po/sv.po: Likewise.
73297
73298 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73299
73300         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73301         now disallowed by GCC.
73302
73303         * configure.in (use-default-link): Default to yes if a test -shared
73304         link meets our qualifications.
73305         * configure: Regenerated.
73306
73307         * config.make.in (output-format): New variable.
73308         * configure.in: Check for ld --print-output-format support.
73309         * configure: Regenerated.
73310         * Makerules ($(common-objpfx)format.lds)
73311         [$(output-format) != unknown]: Just use $(output-format),
73312         instead of the linker-script munging.
73313
73314 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73315
73316         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73317         of $(common-objpfx)shlib.lds.
73318         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73319
73320         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73321         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73322
73323         * configure.in (-z relro check): Adjust test code to add a large
73324         writable data section after it.
73325         * configure: Regenerated.
73326
73327 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73328
73329         * configure.in (-z relro check): Fix test code to make the variable
73330         truly const.
73331         * configure: Regenerated.
73332
73333 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73334
73335         * nscd/nscd.h (struct traced_file): Define.
73336         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73337         elements.  Add traced_files.
73338         (inotify_fd): Declare.
73339         (register_traced_file): Declare.
73340         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73341         (inotify_fd): Export.
73342         (resolv_conf_descr): Remove.
73343         (nscd_init): Move inotify descriptor creation to main.
73344         Don't register files for notification here.
73345         (register_traced_file): New function.
73346         (invalidate_cache): Don't use reset_res to determine whether to call
73347         res_init, go through the list of registered files.
73348         (main_loop_poll): The inotify descriptors are now stored in the
73349         structures for the traced files.
73350         (main_loop_epoll): Likewise.
73351         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73352         to __nss_disable_nscd.
73353         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73354         for a database anymore.  Check the records for all the registered
73355         files instead.
73356         * nss/Makefile (libnss_files-routines): Add files-init.
73357         (libnss_db-routines): Add db-init.
73358         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73359         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73360         * nss/nss_db/db-init.c: New file.
73361         * nss/nss_files/files-init.c: New file.
73362         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73363         __nss_lookup_function.
73364         (__nss_lookup_function): Call nss_load_library.
73365         (nss_load_all_libraries): New function.
73366         (__nss_disable_nscd): Take parameter with callback function for files
73367         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73368         used for the cached services.
73369         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73370         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73371         options for features to all the files in nscd.
73372
73373         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73374
73375 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73376
73377         * csu/elf-init.c (__libc_csu_init): Comment typo.
73378
73379 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73380
73381         * po/pl.po: Update from translation team.
73382         * po/ja.po: Likewise.
73383         * po/ru.po: Likewise.
73384         * po/ko.po: Likewise.
73385         * po/fr.po: Likewise.
73386
73387 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73388
73389         * configure.in (.ctors/.dtors header and trailer check):
73390         Use an empirical test on a built program.
73391         * configure: Regenerated.
73392
73393         * configure.in (-z relro check): Use an empirical test on a built DSO.
73394         Detect, but do not require, on ia64.
73395         * configure: Regenerated.
73396
73397         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73398         Update tests that use readelf to use $READELF instead.
73399         * configure: Regenerated.
73400
73401 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73402
73403         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73404         if the result is not used.
73405
73406 2011-07-05  Andreas Jaeger  <aj@suse.de>
73407
73408         [BZ#9696]
73409         * stdlib/tst-strtod.c: Add testcase.
73410
73411 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73412
73413         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73414         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73415         The latter has a higher limit.  Take additional parameter to pass to
73416         the new function.
73417         (__pathconf): Pass file to __statfs_link_max.
73418         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73419         __statfs_link_max.
73420         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73421         __statfs_link_max.
73422
73423         [BZ #12868]
73424         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73425         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73426         Handle Lustre.
73427         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73428         (__statfs_filesize_max): Likewise.
73429         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73430
73431 2011-07-05  Andreas Jaeger  <aj@suse.de>
73432
73433         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73434
73435 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73436
73437         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73438         `status' variable.
73439         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73440         Likewise.
73441
73442 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73443
73444         * Makefile (strop-tests): Add strncat.
73445         * string/test-strncat.c: New file.
73446
73447 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73448
73449         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73450
73451 2011-06-21  Andreas Jaeger  <aj@suse.de>
73452
73453         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73454         Copy rule from iconvdata/Makefile.
73455
73456 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73457
73458         [BZ #12922]
73459         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73460         but no long options are defined, just return 'W'.
73461
73462 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73463
73464         [BZ #9696]
73465         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73466
73467 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73468
73469         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73470         netgroups to read.
73471         (innetgr): Likewise.
73472
73473 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73474
73475         * config.make.in (install_root): Default to $(DESTDIR).
73476
73477 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73478
73479         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73480
73481 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73482
73483         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73484
73485         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73486         containing directory rather than embedding absolute directory names.
73487
73488         * scripts/check-local-headers.sh: Rewritten using awk.
73489         Match by word, not by line.  Print error messages for matches.
73490         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73491
73492         * Makerules [shlib-lds-flags empty]:
73493         ($(common-objpfx)libc_pic.opts): New target.
73494         ($(common-objpfx)libc_pic.os.clean): New target.
73495         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73496
73497         * config.make.in (OBJCOPY): New variable.
73498         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73499         * configure: Regenerated.
73500
73501         * config.make.in (use-default-link): New variable.
73502         * configure.in (use_default_link): Grok --with-default-link to set it.
73503         * configure: Regenerated.
73504         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73505         (shlib-lds, shlib-lds-flags): Define to empty.
73506
73507         * Makerules (shlib-lds): New variable.
73508         (shlib-lds-flags): New variable.
73509         (build-shlib, build-moduile, build-module-asneeded): Use it.
73510         ($(common-objpfx)libc.so): Use $(shlib-lds).
73511         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73512         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73513
73514         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73515         DT_FLAGS/DT_FLAGS_1 with zero flags.
73516
73517         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73518         linker script munging.
73519
73520 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73521
73522         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73523         as 128-bit value.
73524         * crypt/sha512.c (sha512_process_block): Perform total addition using
73525         128-bit if possible.
73526         (__sha512_finish_ctx): Likewise.
73527         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73528         as 64-bit value.
73529         * crypt/sha256.c (SWAP64): Define.
73530         (sha256_process_block): Perform total addition using 64-bit if
73531         possible.
73532         (__sha256_finish_ctx): Likewise.
73533
73534 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73535
73536         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73537         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73538         * nscd/hstcache.c (cache_addhst): Likewise.
73539         * nscd/grpcache.c (cache_addgr): Likewise.
73540         * nscd/aicache.c (addhstaiX): Likewise.
73541         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73542
73543 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73544
73545         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73546         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73547         * nscd/hstcache.c (cache_addhst): Likewise.
73548         * nscd/grpcache.c (cache_addgr): Likewise.
73549         * nscd/aicache.c (addhstaiX): Likewise.
73550
73551 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73552
73553         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73554         domain only when needed.
73555
73556 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73557
73558         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73559         is always restored.
73560
73561 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73562
73563         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73564         are re-adding the entry.
73565         * nscd/servicescache.c (cache_addserv): Likewise.
73566
73567 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73568
73569         * sysdeps/generic/dl-irel.h: fix protection against multiple
73570         inclusions.
73571         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73572
73573 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73574
73575         [BZ #12935]
73576         * malloc/memusage.sh: Fix quoting in message.
73577         * debug/xtrace.sh: Likewise.
73578
73579         * configure.in: Remove support for --experimental-malloc option, make
73580         it the default.
73581         * config.make.in: Likewise.
73582         * malloc/Makefile: Likewise.
73583
73584 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73585
73586         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73587         two-byte characters.
73588
73589 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73590
73591         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73592         AC_CACHE_CHECK invocation.
73593         * configure: Regenerated.
73594
73595         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73596
73597 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73598
73599         [BZ #12350]
73600         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73601         bit from old_res_options.
73602
73603         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73604
73605         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73606         value type for setfct.
73607
73608 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73609
73610         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73611         __gettimeofday instead of gettimeofday.
73612
73613 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73614
73615         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73616
73617 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73618
73619         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73620
73621         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73622         info.
73623
73624 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73625
73626         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73627         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73628         strcpy-sse2-unaligned strncpy-sse2-unaligned
73629         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73630         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73631         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73632         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73633         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73634         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73635         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73636         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73637         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73638         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73639         (STRCPY): Support SSE2 and SSSE3 versions.
73640
73641 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73642
73643         [BZ #12874]
73644         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73645         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73646         kernels which artificially limit size of requests.
73647
73648 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73649
73650         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73651         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73652         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73653         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73654         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73655         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73656         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73657         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73658         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73659         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73660         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73661         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73662         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73663         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73664         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73666         Enable unaligned load optimization for Intel Core i3, i5 and i7
73667         processors.
73668         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73669         Define.
73670         (index_Fast_Unaligned_Load): Define.
73671         (HAS_FAST_UNALIGNED_LOAD): Define.
73672
73673 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73674
73675         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73676
73677 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73678
73679         [BZ #12907]
73680         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73681         until it is clear that the information is realy needed.
73682         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73683
73684 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73685
73686         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73687
73688 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73689
73690         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73691         /sys/devices/system/cpu/online if it is usable.
73692
73693         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73694         reading the information from the /proc filesystem to once a second.
73695
73696 2011-06-21  Andreas Jaeger  <aj@suse.de>
73697
73698         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73699         NULL after inclusion of kernel headers.
73700
73701 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73702
73703         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73704         calls to internal_setent.
73705
73706         [BZ #12885]
73707         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73708         addresses using gethostbyname4_r ignore IPv4 addresses.
73709
73710         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73711         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73712
73713         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73714
73715 2011-06-20  David S. Miller  <davem@davemloft.net>
73716
73717         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73718         inclusions.
73719         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73720
73721         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73722         (elf_irel): Use it.
73723         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73724         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73725         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73726         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73727         * sysdeps/x86_64/dl-irel.h: Likewise.
73728
73729         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73730         * elf/dl-sym.c: Likewise.
73731
73732 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73733
73734         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73735         need to dereference resplen2.
73736
73737 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73738
73739         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73740
73741 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73742
73743         * Makeconfig: Define vardbdir and inst_vardbdir.
73744         * nss/Makefile: Add rules to install db-Makefile.
73745
73746         * nss/nss_db/db-XXX.c: Cleanup.
73747
73748         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73749         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73750         GLIBC_PRIVATE.
73751         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73752         * nss/makedb.c: Implement -g option to specify that value strings
73753         are generated and should not be added to table iterated over for
73754         get*ent calls.
73755         * nss/nss_db/db-initgroups.c: New file.
73756
73757         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73758         interface.
73759
73760         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73761         (internal_getgrouplist): Adjust to name change.
73762         Update use_initgroups_entry if this is not the first call.
73763         * nss/databases.def: Add initgroups entry.
73764
73765         * nss/makedb.c (compute_tables): Check result of multiple hash table
73766         sizes to minimize maximum chain length.
73767
73768 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73769
73770         * Versions.def: Add entry for libnss_db.
73771         * shlib-versions: Likewise.
73772         * nss/Makefile: Add rules to build libnss_db.
73773         * nss/Versions: Add libnss_db information.  Organize libnss_files
73774         entries better.
73775         * nss/db-Makefile: Add gshadow support.  Change rules for the new
73776         makedb progra.  Some minor improvements to generate smaller files.
73777         * nss/nss_db/nss_db.h: Move NSS database header data structures to
73778         here from...
73779         * nss/makedb.c: ...here.
73780         Improve database format to be smaller and require less memory at
73781         runtime.
73782         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
73783         db anymore.
73784         * nss/nss_db/db-netgrp.c: Likewise.
73785         * nss/nss_db/db-open.c: Likewise.
73786         * nss/nss_files/flies-XXX.x: Adjust comments.
73787         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
73788         * nss/nss_files/files-grp.c: Likewise.
73789         * nss/nss_files/files-hosts.c: Likewise.
73790         * nss/nss_files/files-network.c: Likewise.
73791         * nss/nss_files/files-proto.c: Likewise.
73792         * nss/nss_files/files-pwd.c: Likewise.
73793         * nss/nss_files/files-rpc.c: Likewise.
73794         * nss/nss_files/files-service.c: Likewise.
73795         * nss/nss_files/files-sgrp.c: Likewise.
73796         * nss/nss_files/files-spwd.c: Likewise.
73797         * nss/nss_db/db-alias.c: Removed.
73798         * nss/nss_db/dummy-db.h: Removed.
73799
73800 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
73801
73802         * nss/makedb.c: Rewritten to not use database library.
73803         * nss/Makefile: Update to build new makedb program.
73804
73805 2011-06-14  Andreas Jaeger  <aj@suse.de>
73806
73807         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
73808         memset declaration.
73809
73810 2011-06-10  Andreas Schwab  <schwab@redhat.com>
73811
73812         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
73813         tmpbuf.
73814
73815 2011-06-10  Roland McGrath  <roland@hack.frob.com>
73816
73817         * Makerules (shlib.lds): Fail if the linker script comes out empty.
73818         * elf/Makefile ($(objpfx)ld.so): Likewise.
73819
73820         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
73821         Don't list ld.so twice in dependencies.
73822
73823         * posix/bug-regex31.c: Include <stdlib.h>.
73824
73825         * nscd/hstcache.c (cache_addhst): Remove unused variable.
73826
73827         * nis/nss_compat/compat-spwd.c
73828         (getspent_next_nss_netgr): Remove unused variable.
73829         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
73830
73831         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
73832         nonmembers" output to use the right array.
73833
73834         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
73835
73836         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
73837
73838         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
73839         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
73840         * catgets/gencat.c (read_input_file): Likewise.
73841         * locale/programs/locarchive.c (enlarge_archive): Likewise.
73842
73843         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
73844         variable definition inside #if's controlling its use.
73845
73846         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
73847
73848         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
73849
73850         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
73851
73852         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
73853         unreachable code.
73854
73855         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
73856
73857         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
73858         * configure: Regenerated.
73859
73860         * Makerules: Revert last change.
73861         * elf/Makefile: Likewise.
73862
73863 2011-06-09  Roland McGrath  <roland@hack.frob.com>
73864
73865         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
73866         * elf/Makefile ($(objpfx)librtld.os): Likewise.
73867         (reloc-link): Likewise.
73868
73869 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
73870
73871         * elf/Makefile: Add rules to build pldd.
73872         * elf/pldd.c: New file.
73873         * elf/pldd-xx.c: New file.
73874
73875 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
73876
73877         * version.h: Update for 2.15 development version.
73878
73879 2011-06-07  David S. Miller  <davem@davemloft.net>
73880
73881         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
73882         ifuncs.
73883         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
73884         elf_machine_lazy_rel): Likewise.
73885         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
73886         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
73887         elf_machine_lazy_rel): Likewise.
73888         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
73889         dl_hwcap via passed in argument.
73890         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
73891         Likewise.
73892
73893 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73894
73895         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
73896
73897 2011-06-06  Roland McGrath  <roland@hack.frob.com>
73898
73899         [BZ #12849]
73900         * manual/fdl-1.1.texi: New file, verbatim from:
73901         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
73902         * manual/lgpl-2.1.texi: New file, verbatim from:
73903         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
73904         * manual/Makefile (licenses): New variable, list those new file names.
73905         (texis): Use it.
73906         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
73907
73908         * manual/fdl.texi: File removed.
73909         * manual/lesser.texi: File removed.
73910         * manual/libc.texinfo (Copying, Documentation License):
73911         Use new @include file names, put @appendix directive before @include.
73912
73913 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
73914
73915         [BZ #12841]
73916         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
73917         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
73918         (mq_open): Add __NTH.
73919
73920 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
73921
73922         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73923         Assume Intel Core i3/i5/i7 processor if AVX is available.
73924
73925 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73926
73927         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73928         typo.
73929
73930 2011-05-31  Andreas Schwab  <schwab@redhat.com>
73931
73932         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
73933         memory.  Use alloca_account.  Fix memory leak when retrying.
73934
73935 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73936
73937         * version.h (RELEASE): Bump for 2.14 release.
73938         * include/features.h (__GLIBC_MINOR__): Bump to 14.
73939
73940         * config.make.in (RANLIB): Remove entry.
73941
73942 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
73943
73944         * po/Makefile (po-sed-cmd): Add ksh to extensions.
73945         (libc.pot): Work around missing support for .ksh extension in xgettext.
73946
73947         [BZ #12684]
73948         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
73949         if both request failed.
73950         (send_dg): In case of server errors clear resplen or *resplen2.
73951
73952         [BZ #12454]
73953         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
73954         when there are multiple maps.
73955         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
73956         (_dl_fini): Remove test here.
73957
73958         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
73959
73960 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
73961
73962         [BZ #12350]
73963         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
73964         bit from old_res_options.
73965         (gaih_inet): Likewise.
73966
73967         [BZ #11099]
73968         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
73969         as signed.
73970
73971         * resolv/res_init.c (res_setoptions): Make the code more compact.
73972
73973         [BZ #11558]
73974         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
73975         set RES_USEVC.
73976
73977         [BZ #11634]
73978         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
73979
73980         * malloc/malloc.h: Mark malloc hook variables as deprecated.
73981
73982         [BZ #11781]
73983         * malloc/malloc.h: Declare malloc hook variables as volatile.
73984
73985         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
73986         in last patch.
73987
73988         [BZ #11799]
73989         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
73990         raise in the comment.
73991         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
73992         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
73993         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
73994
73995 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
73996
73997         [BZ #12811]
73998         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
73999         grow the buffers more if it already has to be sufficient.
74000         (build_wcs_upper_buffer): Likewise.
74001         * posix/regexec.c (check_matching): Likewise.
74002         (clean_state_log_if_needed): Likewise.
74003         (extend_buffers): Don't enlarge buffers beyond size of the input
74004         buffer.
74005         Patches mostly by Emil Wojak <emil@wojak.eu>.
74006         * posix/bug-regex32.c: New file.
74007         * posix/Makefile (tests): Add bug-regex32.
74008
74009         * locale/findlocale.c (_nl_find_locale): Return right away if
74010         _nl_explode_name failed.
74011         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74012
74013         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74014
74015         * debug/xtrace.sh: Unify messages.
74016         * malloc/memusage.sh: Likewise.
74017
74018         [BZ #12813]
74019         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74020         time symbol from vDSO.  Substitute with vsyscall if not available.
74021         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74022         __vdso_time.
74023
74024         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74025         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74026         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74027         Add sendmmsg and internal_sendmmsg.
74028         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74029         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74030         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74031
74032         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74033         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74034         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74035
74036 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74037
74038         [BZ #12813]
74039         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74040         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74041         available.
74042         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74043         __vdso_getcpu.
74044
74045         [BZ #12814]
74046         * iconvdata/Makefile (tests): Add bug-iconv9.
74047         * iconvdata/bug-iconv9.c: New file.
74048
74049 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74050
74051         [BZ #12814]
74052         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74053
74054 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74055
74056         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74057         (struct user_regs_struct): Change intcs field back to cs.
74058
74059 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74060
74061         * po/ja.po: Update from translation team.
74062
74063 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74064
74065         [BZ #12795]
74066         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74067         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74068
74069 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74070
74071         * stdlib/longlong.h: Update from GCC.
74072
74073 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74074
74075         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74076         parameter name.
74077         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74078         Add parameter name.
74079         (__sysconf): Pass it down.
74080
74081 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74082
74083         [BZ #12671]
74084         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74085         some situations.
74086         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74087         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74088         add in in __libc_use_alloca calls.  Adjust callers.
74089         (glob): Use malloc in some situations.
74090
74091         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74092         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74093         pltexit.
74094
74095 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74096
74097         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74098         and CLOCK_BOOTTIME_ALARM.
74099
74100         [BZ #12782]
74101         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74102         is returned.
74103
74104         * string/_strerror.c (__strerror_r): Print negative errors as signed
74105         numbers.
74106
74107         [BZ #12777]
74108         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74109         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74110         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74111
74112         * configure.in: Fix typo in redirection and correct removal of test
74113         files in two cases.
74114
74115         [BZ #12788]
74116         * locale/setlocale.c (new_composite_name): Fix test to check for
74117         identical name of all categories.
74118
74119         [BZ #12792]
74120         * libio/filedoalloc.c (local_isatty): New function.
74121         (_IO_file_doallocate): Use local_isatty.
74122         * stdio-common/perror.c (perror): In case a new stream is used
74123         forward the stream error.
74124         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74125         error flag.
74126
74127 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74128
74129         [BZ #11884]
74130         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74131         alloca.
74132         * include/alloca.h (extend_alloca_account): Define.
74133
74134         [BZ #11857]
74135         * posix/regex.h: Fix comments with documentation of user-accessible
74136         fields after compilation and describe correct free'ing of pattern
74137         after re_compile_pattern.
74138         Patch by Reuben Thomas <rrt@sc3d.org>.
74139
74140 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74141
74142         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74143         and -mno-altivec to prevent the compiler from using Altivec and/or
74144         VSX instructions when the corresponding registers are not available.
74145
74146 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74147
74148         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74149
74150 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74151
74152         * libio/freopen.c (freopen): Use __dup2, not dup2.
74153         * libio/freopen64.c (freopen64): Likewise.
74154
74155 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74156
74157         [BZ #12775]
74158         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74159         * math/Makefile (tests): Add test-powl.
74160         (CFLAGS-test-powl.c): Define.
74161         * math/test-powl.c: New file.
74162
74163 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74164
74165         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74166
74167 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74168
74169         [BZ #11837]
74170         * iconvdata/gb18030.c: Update to GB18020-2005.
74171
74172 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74173
74174         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74175         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74176         Patch by Aharon Robbins <arnold@skeeve.com>.
74177
74178         [BZ #11892]
74179         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74180         on the stack.
74181
74182         [BZ #11895]
74183         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74184         through underflows.
74185
74186         [BZ #12766]
74187         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74188         point to strings before performing equality test for error_one_per_line
74189         mode.
74190
74191         [BZ #11697]
74192         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74193
74194         [BZ #11820]
74195         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74196         (struct user_fpregs_struct): Avoid __uint*_t types.
74197
74198         [BZ #6420]
74199         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74200         symbol info.  Use it instead of calling _dl_addr locally.
74201         (lock_and_info): New function.
74202         (tr_freehook): Call lock_and_info and pass symbol info as additional
74203         parameter to tr_where.
74204         (tr_mallochook): Likewise.
74205         (tr_reallochook): Likewise.
74206         (tr_memalignhook): Likewise.
74207
74208         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74209         used and couldn't be at all thread-safe.
74210
74211 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74212
74213         * libio/freopen.c (freopen): Don't close old file descriptor
74214         before the new one is opened.  Instead dup the new file descriptor
74215         to the old one after the new stream is created.
74216         * libio/freopen64.c (freopen64): Likewise.
74217         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74218         * libio/fileops.c (_IO_new_file_close_it): Handle new
74219         _IO_FLAGS2_NOCLOSE flag.
74220         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74221         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74222         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74223         _IO_FLAGS2_NOCLOSE flag.
74224         * include/unistd.h: Add hidden_proto for dup3.
74225         Define __have_dup3.
74226         * io/dup3.c: Define hidden symbol.
74227         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74228
74229         [BZ #7101]
74230         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74231         when an incomplete long option is used.
74232         * posix/tst-getopt_long1.c: New file.
74233         * posix/Makefile (tests): Add tst-getopt_long1.
74234
74235         [BZ #10138]
74236         * scripts/config.guess: Update from autoconf-2.68.
74237         * scripts/config.sub: Likewise.
74238
74239         [BZ #10157]
74240         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74241         tests into ...
74242         (has_cpuclock): ...this.  New function.
74243         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74244         macro here based on has_cpuclock code.
74245
74246         [BZ #10149]
74247         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74248         First byte (not low byte) is now always NUL.
74249         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74250
74251         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74252         Use non-cancelable interfaces.
74253
74254         [BZ #9809]
74255         * locale/iso-639.def: Add entry for Sorani.
74256
74257         [BZ #11901]
74258         * include/stdlib.h: Move include protection to the right place.
74259         Define abort_msg_s.  Declare __abort_msg with it.
74260         * stdlib/abort.c (__abort_msg): Adjust type.
74261         * assert/assert.c (__assert_fail_base): New function.  Majority
74262         of code from __assert_fail.  Allocate memory for __abort_msg with
74263         mmap.
74264         (__assert_fail): Now call __assert_fail_base.
74265         * assert/assert-perr.c: Remove bulk of implementation.  Use
74266         __assert_fail_base.
74267         * include/assert.hL Declare __assert_fail_base.
74268         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74269         mmap.
74270         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74271
74272 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74273
74274         [BZ #11952]
74275         [BZ #12453]
74276         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74277         until all modules are registered in the DTV.
74278         * elf/Makefile: Add rules to build and run tst-tls19.
74279         * elf/tst-tls19.c: New file.
74280         * elf/tst-tls19mod1.c: New file.
74281         * elf/tst-tls19mod2.c: New file.
74282         * elf/tst-tls19mod3.c: New file.
74283         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74284
74285         [BZ #12083]
74286         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74287         correctly.
74288
74289         [BZ #12601]
74290         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74291         two-byte sequence errors.
74292         * iconvdata/Makefile (tests): Add bug-iconv8.
74293         * iconvdata/bug-iconv8.c: New file.
74294
74295         [BZ #12626]
74296         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74297         buf2 definition.
74298
74299         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74300
74301         [BZ #12432]
74302         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74303         (dummy_getcfa): New function.
74304         (init): Get _Unwind_GetCFA address, use dummy if not found.
74305         (backtrace_helper): In recursion check, also check whether CFA changes.
74306         (__backtrace): Completely initialize arg.
74307
74308         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74309         storing incomplete byte sequence in state object.  Avoid testing for
74310         guaranteed too small input if we know there is enough data available.
74311
74312 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74313
74314         * Makeconfig (+link-pie): Indent.
74315         * Rules (binaries-pie): Define if $(have-fpie) and
74316         $(build-shared).
74317         (binaries-shared): Also filter out $(binaries-pie).
74318         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74319         * nscd/Makefile (others-pie): Add nscd.
74320         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74321         ($(objpfx)nscd): Remove command override.
74322         * login/Makefile (others-pie): Add pt_chown.
74323         ($(objpfx)pt_chown): Remove command override.
74324         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74325         remove command overrides.
74326
74327 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74328
74329         * libio/tst_putwc.c: Fix error messages.
74330
74331         [BZ #12724]
74332         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74333         currently writing and seek to current position when not.
74334         * libio/Makefile (tests): Add bug-fclose1.
74335         * libio/bug-fclose1.c: New file.
74336
74337 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74338
74339         [BZ #12511]
74340         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74341         don't set DF_1_NODELETE here.
74342         (do_lookup_x): When entering new entry test for copy relocation
74343         and if necessary set DF_1_NODELETE flag.
74344         * elf/tst-unique4.cc: New file.
74345         * elf/tst-unique4.h: New file.
74346         * elf/tst-unique4lib.cc: New file.
74347         * elf/Makefile: Add rules to build and run tst-unique4.
74348         Patch by Piotr Bury <pbury@goahead.com>.
74349
74350 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74351
74352         [BZ #12052]
74353         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74354
74355         [BZ #12625]
74356         * misc/mntent_r.c (addmntent): Flush the stream after the output
74357
74358         [BZ #12393]
74359         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74360         (is_trusted_path_normalize): Skip initial colon.  Append slash
74361         to empty buffer.  Duplicate is_trusted_path code but allow
74362         constructed patch to be prefix.
74363         (is_dst): Allow $ORIGIN followed by /.
74364         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74365         Correct testing of result of is_trusted_path_normalize
74366         (decompose_rpath): Fix warning.
74367
74368 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74369
74370         [BZ #11257]
74371         * grp/initgroups.c (internal_getgrouplist): When we found the service
74372         list through the initgroups entry in nsswitch.conf do not always
74373         continue on a successful lookup.  Don't always use the
74374         __nss_group_database value if it is set.
74375         * nss/nsswitch.conf (initgroups): Change action for successful db
74376         lookup to continue for compatibility.
74377
74378 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74379
74380         [BZ #11532]
74381         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74382         and CP774 modules.
74383         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74384         and CP774 modules.
74385         * iconvdata/tst-tables.sh: Likewise.
74386         * iconvdata/cp770.c: New file.
74387         * iconvdata/cp771.c: New file.
74388         * iconvdata/cp772.c: New file.
74389         * iconvdata/cp773.c: New file.
74390         * iconvdata/cp774.c: New file.
74391         * iconvdata/testdata/CP770: New file.
74392         * iconvdata/testdata/CP770..UTF8: New file.
74393         * iconvdata/testdata/CP771: New file.
74394         * iconvdata/testdata/CP771..UTF8: New file.
74395         * iconvdata/testdata/CP772: New file.
74396         * iconvdata/testdata/CP772..UTF8: New file.
74397         * iconvdata/testdata/CP773: New file.
74398         * iconvdata/testdata/CP773..UTF8: New file.
74399         * iconvdata/testdata/CP774: New file.
74400         * iconvdata/testdata/CP774..UTF8: New file.
74401
74402         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74403         END CHARMAP line.
74404         * iconvdata/gen-8bit-gap.sh: Likewise.
74405         * iconvdata/gen-8bit.sh: Likewise.
74406
74407         * locale/iso-639.def: Add ary entry.
74408
74409         [BZ #11258]
74410         * locale/C-translit.h.in: Add U20A1 transliteration.
74411
74412         [BZ #12178]
74413         * locale/iso-639.def: Add wae entry.
74414         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74415
74416         [BZ #12545]
74417         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74418         for n.
74419
74420         [BZ #12711]
74421         * locale/C-translit.h.in: Add entry for U20B9.
74422         Patch by pravin.d.s@gmail.com.
74423
74424 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74425
74426         [BZ #12713]
74427         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74428         ENAMETOOLONG use generic getcwd.
74429         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74430         in rtld.  Use *stat64.
74431         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74432         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74433         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74434         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74435         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74436         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74437         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74438         __fstatat64 macros.
74439         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74440         * dirent/rewinddir.c: Add libc_hidden_def.
74441         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74442         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74443
74444         * include/dirent.h (__alloc_dir): Add flags parameter.
74445         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74446         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74447         __alloc_dir.
74448         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74449         from fdopendir if O_CLOEXEC is already set.
74450
74451 2011-03-15  Alan Modra  <amodra@gmail.com>
74452
74453         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74454         l_tls_firstbyte_offset non-zero.  Save padding offset in
74455         l_tls_firstbyte_offset for later use.
74456         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74457         freeing static tls block.
74458
74459 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74460
74461         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74462         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74463         being defined by the kernel headers.
74464
74465 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74466
74467         [BZ #12734]
74468         * resolv/resolv.h: Define RES_NOTLDQUERY.
74469         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74470         no-tld-query and set RES_NOTLDQUERY.
74471         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74472         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74473         modern BIND to search name as TLD unless forbidden.
74474
74475 2011-05-07  Petr Baudis  <pasky@suse.cz>
74476             Ulrich Drepper  <drepper@gmail.com>
74477
74478         [BZ #12393]
74479         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74480         (is_trusted_path): ...to here.
74481         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74482         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74483         using is_trusted_path_normalize() in setuid scripts.
74484
74485 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74486
74487         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74488         __BEGIN/__END_DECLS.
74489
74490 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74491
74492         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74493         NSS_STATUS_NOTFOUND if no record was found.
74494
74495 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74496
74497         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74498         (headers-not-in-tirpc): Remove rpc/netdb.h
74499         * resolv/netdb.h: Revert last change.
74500
74501 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74502
74503         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74504         circular dependency between libgcc.a and libc.a.
74505
74506 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74507
74508         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74509         * nis/Makefile: Don't install rpcsvc/*.
74510         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74511         instead of <rpc/types.h>.
74512         (MAXHOSTNAMELEN): Define.
74513
74514 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74515
74516         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74517
74518 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74519
74520         [BZ #12714]
74521         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74522         gethostbyname4_r when IPv6 results are possible.
74523
74524 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74525
74526         [BZ #12723]
74527         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74528         _PC_PIPE_BUF handling.
74529
74530 2011-04-30  Bruno Haible  <bruno@clisp.org>
74531
74532         [BZ #12717]
74533         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74534         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74535         to 'int'.
74536         * inet/getnameinfo.c (getnameinfo): Likewise.
74537
74538 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74539
74540         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74541         to groups setting in database lookup.
74542         * nss/nsswitch.conf: Add initgroups entry.
74543
74544 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74545
74546         [BZ #12685]
74547         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74548         mode string.
74549         Patch by Eric Blake <eblake@redhat.com>.
74550
74551 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74552
74553         * sunrpc/Makefile (need-export-routines): Add svc_run.
74554         (routines): Remove svc_run.
74555         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74556         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74557         * sunrpc/svc_run.c (svc_run): Likewise.
74558         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74559
74560 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74561
74562         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74563         problem in reallocation in last patch.
74564
74565 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74566
74567         * sunrpc/Makefile: Move inclusion of Rules.
74568
74569 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74570
74571         * nss/nss_files/files-initgroups.c: New file.
74572         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74573         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74574         _nss_files_initgroups_dyn.
74575
74576 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74577
74578         * elf/elf.h (R_ARM_IRELATIVE): Define.
74579
74580 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74581
74582         * po/ru.po: Update from translation team.
74583
74584 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74585
74586         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74587         dependencies.
74588
74589 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74590
74591         [BZ #12653]
74592         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74593         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74594         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74595         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74596         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74597
74598 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74599
74600         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74601         differing bytes.
74602         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74603         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74604         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74605
74606 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74607
74608         [BZ #12420]
74609         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74610         storing it.
74611         * stdlib/bug-getcontext.c: New file.
74612         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74613
74614 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74615
74616         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74617         instructions into .machine "z9-109".
74618         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74619         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74620
74621 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74622
74623         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74624         between environment variables and auxiliary vector.
74625
74626 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74627
74628         * Makefile: Add rules to build linkobj/libc.so.
74629         * include/libc-symbols.h: Define libc_hidden_nolink.
74630         * include/rpc/auth.h: Mark functions which are to be hidden.
74631         * include/rpc/auth_des.h: Likewise.
74632         * include/rpc/auth_unix.h: Likewise.
74633         * include/rpc/clnt.h: Likewise.
74634         * include/rpc/des_crypt.h: Likewise.
74635         * include/rpc/key_prot.h: Likewise.
74636         * include/rpc/pmap_clnt.h: Likewise.
74637         * include/rpc/pmap_prot.h: Likewise.
74638         * include/rpc/pmap_rmt.h: Likewise.
74639         * include/rpc/rpc_msg.h: Likewise.
74640         * include/rpc/svc.h: Likewise.
74641         * include/rpc/svc_auth.h: Likewise.
74642         * include/rpc/xdr.h: Likewise.
74643         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74644         * nss/Makefile: Likewise.
74645         * sunrpc/Makefile: Don't install headers.  Build library with normal
74646         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74647         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74648         for the compat linking library.  Remove use of INTDEF/INTUSE.
74649         * sunrpc/auth_none.c: Likewise.
74650         * sunrpc/auth_unix.c: Likewise.
74651         * sunrpc/authdes_prot.c: Likewise.
74652         * sunrpc/authuxprot.c: Likewise.
74653         * sunrpc/clnt_gen.c: Likewise.
74654         * sunrpc/clnt_perr.c: Likewise.
74655         * sunrpc/clnt_raw.c: Likewise.
74656         * sunrpc/clnt_simp.c: Likewise.
74657         * sunrpc/clnt_tcp.c: Likewise.
74658         * sunrpc/clnt_udp.c: Likewise.
74659         * sunrpc/clnt_unix.c: Likewise.
74660         * sunrpc/des_crypt.c: Likewise.
74661         * sunrpc/des_soft.c: Likewise.
74662         * sunrpc/get_myaddr.c: Likewise.
74663         * sunrpc/key_call.c: Likewise.
74664         * sunrpc/key_prot.c: Likewise.
74665         * sunrpc/netname.c: Likewise.
74666         * sunrpc/pm_getmaps.c: Likewise.
74667         * sunrpc/pm_getport.c: Likewise.
74668         * sunrpc/pmap_clnt.c: Likewise.
74669         * sunrpc/pmap_prot.c: Likewise.
74670         * sunrpc/pmap_prot2.c: Likewise.
74671         * sunrpc/pmap_rmt.c: Likewise.
74672         * sunrpc/publickey.c: Likewise.
74673         * sunrpc/rpc_cmsg.c: Likewise.
74674         * sunrpc/rpc_common.c: Likewise.
74675         * sunrpc/rpc_dtable.c: Likewise.
74676         * sunrpc/rpc_prot.c: Likewise.
74677         * sunrpc/rpc_thread.c: Likewise.
74678         * sunrpc/rtime.c: Likewise.
74679         * sunrpc/svc.c: Likewise.
74680         * sunrpc/svc_auth.c: Likewise.
74681         * sunrpc/svc_authux.c: Likewise.
74682         * sunrpc/svc_raw.c: Likewise.
74683         * sunrpc/svc_run.c: Likewise.
74684         * sunrpc/svc_simple.c: Likewise.
74685         * sunrpc/svc_tcp.c: Likewise.
74686         * sunrpc/svc_udp.c: Likewise.
74687         * sunrpc/svc_unix.c: Likewise.
74688         * sunrpc/svcauth_des.c: Likewise.
74689         * sunrpc/xcrypt.c: Likewise.
74690         * sunrpc/xdr.c: Likewise.
74691         * sunrpc/xdr_array.c: Likewise.
74692         * sunrpc/xdr_float.c: Likewise.
74693         * sunrpc/xdr_intXX_t.c: Likewise.
74694         * sunrpc/xdr_mem.c: Likewise.
74695         * sunrpc/xdr_rec.c: Likewise.
74696         * sunrpc/xdr_ref.c: Likewise.
74697         * sunrpc/xdr_sizeof.c: Likewise.
74698         * sunrpc/xdr_stdio.c: Likewise.
74699
74700 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74701
74702         [BZ #12650]
74703         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74704         * sysdeps/ia64/dl-tls.h: Likewise.
74705         * sysdeps/powerpc/dl-tls.h: Likewise.
74706         * sysdeps/s390/dl-tls.h: Likewise.
74707         * sysdeps/sh/dl-tls.h: Likewise.
74708         * sysdeps/sparc/dl-tls.h: Likewise.
74709         * sysdeps/x86_64/dl-tls.h: Likewise.
74710         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74711
74712 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74713
74714         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74715         rpath element also skip the following colon.
74716         (expand_dynamic_string_token): Add is_path parameter and pass
74717         down to DL_DST_REQUIRED and _dl_dst_substitute.
74718         (decompose_rpath): Call expand_dynamic_string_token with
74719         non-zero is_path.  Ignore empty rpaths.
74720         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74721         with zero is_path.
74722
74723 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74724
74725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74726         Make cancelable.
74727
74728 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74729
74730         [BZ #12655]
74731         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74732         Patch by Filipe David Manana <fdmanana@apache.org>.
74733
74734 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74735
74736         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74737         Maintain aligned stack.
74738         (CHECK_RSP): Remove unused macro.
74739
74740 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74741
74742         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74743         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74744
74745 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74746
74747         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74748
74749         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74750
74751 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74752
74753         [BZ #12518]
74754         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74755         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74756         * sysdeps/x86_64/memmove.c: New file.
74757         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74758         (memcpy): Renamed to ...
74759         (__new_memcpy): This.
74760         (memcpy): Provide GLIBC_2_14 memcpy.
74761         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74762         (memcpy): Provide GLIBC_2_2_5 memcpy.
74763
74764 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74765
74766         [BZ #12631]
74767         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74768
74769 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74770
74771         * misc/syncfs.c: New file.
74772         * misc/Makefile (routines): Add syncfs.
74773         * posix/unistd.h: Declare syncfs.
74774         * sysdeps/unix/syscalls.list: Add syncfs.
74775
74776 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74777
74778         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
74779         open_by_handle_at.
74780         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74781         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74782         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74783         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74784         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74785         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
74786         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74787
74788 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74789
74790         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
74791         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74792         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
74793         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74794         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74795         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74796         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74797
74798         * io/Makefile: Compile fallocate.c, fallocate64.c, and
74799         sync_file_range.c with -fexceptions.
74800         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
74801         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
74802         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
74803         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
74804         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
74805         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
74806         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
74807         sync_file_range as cancellation point
74808         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
74809         now a wrapper around __call_sync_file_range with cancellation handling.
74810         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
74811         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
74812         function name to __call_sync_file_range.
74813         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
74814         Add call_sync_file_range.
74815
74816 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74817
74818         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74819         bits/timex.h.
74820
74821 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74822
74823         * iconv/iconv.h: Fix typo in comment.
74824         * io/fcntl.h: Likewise.
74825         * libio/stdio.h: Likewise.
74826         * posix/spawn.h: Likewise.
74827         * posix/unistd.h: Likewise.
74828         * stdlib/stdlib.h: Likewise.
74829         * time/time.h: Likewise.
74830         * wcsmbs/wchar.h: Likewise.
74831
74832         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
74833         open_by_handle): Add.
74834         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
74835         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
74836         Augment a few comments.
74837         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74838         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74839         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74840         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74841         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74842         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
74843         open_by_handle.
74844
74845         * io/fcntl.h (AT_EMPTY_PATH): Define.
74846
74847 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
74848
74849         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
74850         * sysdeps/unix/sysv/linux/bits/time.h: New file.
74851         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
74852         to...
74853         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
74854         * Versions.def: Add GLIBC_2.14.
74855         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
74856         Export.
74857
74858 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
74859
74860         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
74861         round counter.
74862         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74863
74864 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
74865
74866         [BZ #12597]
74867         * string/test-strncmp.c (do_page_test): New function.
74868         (check2): Likewise.
74869         (test_main): Call check2.
74870         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
74871
74872 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
74873
74874         [BZ #12587]
74875         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
74876         Handle cache information in CPU leaf 4.
74877         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74878
74879 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
74880
74881         [BZ #12583]
74882         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
74883         character representation.
74884         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
74885
74886 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
74887
74888         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
74889         END(__isnan) to END(__isnanf) to match function entry point/label
74890         EALIGN(__isnanf,...).
74891
74892 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
74893
74894         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
74895
74896 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
74897
74898         [BZ #12510]
74899         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
74900         copy from the symbol referenced in the relocation to initialize the
74901         used variable.
74902         Patch by Piotr Bury <pbury@goahead.com>.
74903         * elf/Makefile: Add rules to build and tst-unique3.
74904         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
74905         * elf/tst-unique3.cc: New file.
74906         * elf/tst-unique3.h: New file.
74907         * elf/tst-unique3lib.cc: New file.
74908         * elf/tst-unique3lib2.cc: New file.
74909
74910         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
74911
74912 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
74913
74914         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
74915         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
74916         to _start.
74917
74918 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
74919
74920         * elf/dl-load.c (_dl_map_object): If we are looking for the first
74921         to-be-loaded object along a path to loader is ld.so.
74922
74923 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74924             Ulrich Drepper  <drepper@gmail.com>
74925
74926         * sysdeps/x86_64/memset.S: After aligning destination, code
74927         branches to different locations depending on the value of
74928         misalignment, when multiarch is enabled. Fix this.
74929
74930 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74931
74932         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
74933         Set _x86_64_preferred_memory_instruction for AMD processsors.
74934         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74935         Set bit_Prefer_SSE_for_memop for AMD processors.
74936
74937 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
74938
74939         * libio/fmemopen.c (fmemopen): Optimize a bit.
74940
74941 2011-03-03  Andreas Schwab  <schwab@redhat.com>
74942
74943         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
74944
74945 2011-03-03  Roland McGrath  <roland@redhat.com>
74946
74947         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
74948
74949 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
74950
74951         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
74952         __bzero_ultra1 instead of __memset_ultra1.
74953
74954 2011-02-23  Andreas Schwab  <schwab@redhat.com>
74955             Ulrich Drepper  <drepper@gmail.com>
74956
74957         [BZ #12509]
74958         * include/link.h (struct link_map): Add l_orig_initfini.
74959         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
74960         returning unsuccessfully.
74961         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
74962         close of a file loaded at startup, restore the original l_initfini
74963         list.
74964         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
74965         list, store the pointer.
74966         * elf/Makefile ($(objpfx)noload-mem): New rule.
74967         (noload-ENV): Define.
74968         (tests): Add $(objpfx)noload-mem.
74969         * elf/noload.c: Include <memcheck.h>.
74970         (main): Call mtrace.  Close all opened handles.
74971
74972 2011-02-17  Andreas Schwab  <schwab@redhat.com>
74973
74974         [BZ #12454]
74975         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
74976         dependencies are missing.
74977
74978 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74979
74980         Fix __if_freereq crash: Unlike the generic version which uses free,
74981         Hurd needs munmap.
74982         * sysdeps/mach/hurd/ifreq.h: New file.
74983
74984 2011-01-27  Petr Baudis  <pasky@suse.cz>
74985             Ulrich Drepper  <drepper@gmail.com>
74986
74987         [BZ 12445]#
74988         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
74989         to extend_alloca().
74990         * stdio-common/bug23.c: New file.
74991         * stdio-common/Makefile (tests): Add bug23.
74992
74993 2010-09-28  Andreas Schwab  <schwab@redhat.com>
74994             Ulrich Drepper  <drepper@gmail.com>
74995
74996         [BZ #12489]
74997         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
74998         before performing relro protection.  At old place add assertion
74999         to make sure nothing changed.
75000
75001 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75002             Glauber de Oliveira Costa  <glommer@gmail.com>
75003
75004         * elf/elf.h: Add new ARM TLS relocs.
75005
75006 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75007
75008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75009         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75010         cast from r3.
75011         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75012         'tests' variable.
75013         * sysdeps/wordsize-64/tst-writev.c: New file.
75014
75015 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75016
75017         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75018         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75019         insns in _dl_start to prevent a TOC reference before relocs are
75020         resolved.
75021
75022 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75023
75024         [BZ #12469]
75025         * Makeconfig: Remove RANLIB definition.
75026         * Makerules: Don't use RANLIB.
75027         * aclocal.m4: Remove ranlib test.
75028         * configure.in: No need to check for ranlib.
75029         * elf/rtld-Rules: Don't use RANLIB.
75030
75031 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75032
75033         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75034         protection macro.
75035         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75036         inclusion protection macro.
75037
75038         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75039         SIGRTMIN and SIGRTMAX and print information in that case only when
75040         SIGRTMIN is defined.
75041
75042 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75043
75044         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75045         arginfo fn returning -1.
75046
75047         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75048         and thousands string is zero terminated.
75049
75050 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75051
75052         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75053         sysdeps/unix/sysv/linux/bits/socket.h.
75054
75055 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75056
75057         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75058         (__CPU_COUNT): Remove old macros.
75059         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75060         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75061         (__CPU_ALLOC, __CPU_FREE): Add macros.
75062         (__sched_cpualloc, __sched_cpufree): Add declarations.
75063
75064 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75065
75066         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75067         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75068         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75069         (readdhstai): Return value of addhstaiX call.
75070         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75071         (addgrbyX): Return value returned by cache_addgr.
75072         (readdgrbyname): Return value returned by addgrbyX.
75073         (readdgrbygid): Likewise.
75074         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75075         (addpwbyX): Return value returned by cache_addpw.
75076         (readdpwbyname): Return value returned by addhstbyX.
75077         (readdpwbyuid): Likewise.
75078         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75079         (addservbyX): Return value returned by cache_addserv.
75080         (readdservbyname): Return value returned by addservbyX:
75081         (readdservbyport): Likewise.
75082         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75083         (addhstbyX): Return value returned by cache_addhst.
75084         (readdhstbyname): Return value returned by addhstbyX.
75085         (readdhstbyaddr): Likewise.
75086         (readdhstbynamev6): Likewise.
75087         (readdhstbyaddrv6): Likewise.
75088         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75089         (readdinitgroups): Return value returned by addinitgroupsX.
75090         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75091         (prune_cache): Keep track of timeout value of re-added entries.
75092         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75093         * nscd/nscd.h: Adjust prototypes of readd* functions.
75094
75095 2011-02-04  Roland McGrath  <roland@redhat.com>
75096
75097         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75098         (nis_stats): Likewise.
75099         * nis/nis_modify.c (nis_modify): Likewise.
75100         * nis/nis_remove.c (nis_remove): Likewise.
75101         * nis/nis_add.c (nis_add): Likewise.
75102
75103         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75104
75105         * posix/fnmatch_loop.c: Add some consts.
75106
75107         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75108
75109 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75110
75111         [BZ #12460]
75112         * config.make.in (config-cflags-novzeroupper): Define.
75113         * configure.in: Substitute libc_cv_cc_novzeroupper.
75114         * elf/Makefile (AVX-CFLAGS): Define.
75115         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75116         (CFLAGS-tst-auditmod4a.c): Likewise.
75117         (CFLAGS-tst-auditmod4b.c): Likewise.
75118         (CFLAGS-tst-auditmod6b.c): Likewise.
75119         (CFLAGS-tst-auditmod6c.c): Likewise.
75120         (CFLAGS-tst-auditmod7b.c): Likewise.
75121         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75122
75123 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75124
75125         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75126         function to the callback.
75127         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75128
75129 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75130
75131         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75132         of errno.
75133
75134 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75135
75136         [BZ #11724]
75137         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75138         of constructors.
75139         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75140         of destructors.
75141         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75142
75143         [BZ #11724]
75144         * elf/Makefile: Add rules to build and run new test.
75145         * elf/tst-initorder.c: New file.
75146         * elf/tst-initorder.exp: New file.
75147         * elf/tst-initordera1.c: New file.
75148         * elf/tst-initordera2.c: New file.
75149         * elf/tst-initordera3.c: New file.
75150         * elf/tst-initordera4.c: New file.
75151         * elf/tst-initorderb1.c: New file.
75152         * elf/tst-initorderb2.c: New file.
75153         * elf/tst-order-a1.c: New file.
75154         * elf/tst-order-a2.c: New file.
75155         * elf/tst-order-a3.c: New file.
75156         * elf/tst-order-a4.c: New file.
75157         * elf/tst-order-b1.c: New file.
75158         * elf/tst-order-b2.c: New file.
75159         * elf/tst-order-main.c: New file.
75160         New test case by George Gensure <werkt0@gmail.com>.
75161
75162 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75163
75164         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75165         decoding ACE if AI_CANONIDN.
75166
75167 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75168
75169         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75170
75171 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75172
75173         * version.h (RELEASE): Bump for 2.13 release.
75174         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75175
75176         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75177
75178         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75179         MADV_NOHUGEPAGE.
75180         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75181         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75182         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75183         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75184         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75185         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75186
75187         * posix/getconf.c: Update copyright year.
75188         * catgets/gencat.c: Likewise.
75189         * csu/version.c: Likewise.
75190         * debug/catchsegv.sh: Likewise.
75191         * debug/xtrace.sh: Likewise.
75192         * elf/ldconfig.c: Likewise.
75193         * elf/ldd.bash.in: Likewise.
75194         * elf/sprof.c (print_version): Likewise.
75195         * iconv/iconv_prog.c: Likewise.
75196         * iconv/iconvconfig.c: Likewise.
75197         * locale/programs/locale.c: Likewise.
75198         * locale/programs/localedef.c: Likewise.
75199         * malloc/memusage.sh: Likewise.
75200         * malloc/mtrace.pl: Likewise.
75201         * nscd/nscd.c (print_version): Likewise.
75202         * nss/getent.c: Likewise.
75203
75204         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75205         PF_CAIF, and PF_ALG.
75206         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75207
75208 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75209
75210         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75211         (modules-names): Use them.
75212         (ifunc-test-modules, ifunc-pie-tests): Define.
75213         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75214         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75215         (test-extras): Likewise.
75216         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75217         $(compile-command.c).
75218         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75219         (all-built-dso): Define.
75220         (check-textrel.out, check-execstack.out): Depend on it.
75221
75222         * configure.in: Don't override --enable-multi-arch.
75223
75224 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75225
75226         [BZ #6812]
75227         * nscd/hstcache.c (tryagain): Define.
75228         (cache_addhst): Return tryagain not notfound for temporary errors.
75229         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75230         failed.
75231
75232 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75233
75234         [BZ #10563]
75235         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75236         to make the syscall.
75237         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75238
75239         [BZ #12378]
75240         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75241         and fall back to matching as normal character if the string ends before
75242         the matching ']' is found.  This is what POSIX requires.
75243         * posix/testfnm.c: Adjust test result.
75244         * posix/globtest.sh: Adjust test result.  Add new test.
75245         * posix/tst-fnmatch.input: Likewise.
75246         * posix/tst-fnmatch2.c: Add new test.
75247
75248 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75249
75250         * elf/Makefile (check-execstack): Revert last change.  Depend on
75251         check-execstack.h.
75252         (check-execstack.h): New target.
75253         (generated): Add check-execstack.h.
75254         * elf/check-execstack.c: Include "check-execstack.h".
75255         (main): Revert last change.
75256         (handle_file): Return zero if GNU_STACK is absent and
75257         DEFAULT_STACK_PERMS doesn't include PF_X.
75258
75259 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75260
75261         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75262         in child fails because the descriptor is already closed.
75263         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75264         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75265         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75266
75267         [BZ #12397]
75268         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75269         syscall.
75270
75271         [BZ #10484]
75272         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75273         temporary buffer used to handle multi lookups locally.
75274         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75275
75276 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75277
75278         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75279         loader is ld.so.
75280
75281 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75282
75283         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75284         alignment for SSE2.
75285
75286 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75287
75288         [BZ #12394]
75289         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75290         characters.  When rounding increased number of integer digits recompute
75291         number of groups.
75292         * stdio-common/tst-grouping.c: New file.
75293         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75294
75295 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75296
75297         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75298         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75299
75300         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75301         void.
75302         * bits/select.h: Likewise.
75303
75304 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75305
75306         * po/ja.po: Update from translation team.
75307
75308 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75309
75310         [BZ #11155]
75311         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75312         implementation just like for lxstat, fxstatat, et al.
75313
75314 2010-12-27  Jim Meyering  <meyering@redhat.com>
75315
75316         [BZ #12348]
75317         * posix/regexec.c (build_trtable): Return failure indication upon
75318         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75319
75320 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75321
75322         [BZ #12201]
75323         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75324         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75325         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75326         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75327
75328         [BZ #12207]
75329         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75330
75331         [BZ #12204]
75332         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75333         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75334
75335 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75336
75337         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75338         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75339         script has SORT_BY_INIT_PRIORITY.
75340         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75341         NO_CTORS_DTORS_SECTIONS is defined.
75342         * elf/soinit.c: Likewise.
75343         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75344         NO_CTORS_DTORS_SECTIONS is defined.
75345         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75346         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75347         * sysdeps/sh/init-first.c: Likewise.
75348         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75349
75350 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75351
75352         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75353         always use the slow path.
75354
75355 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75356
75357         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75358         similar rule which adds the sysdep directories to the header search in
75359         order to pick up the correct platform stackinfo.h.
75360         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75361         perform test if it is, otherwise return successfully without testing.
75362         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75363         DEFAULT_STACK_PERMS define in stackinfo.h.
75364         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75365         defined in stackinfo.h.
75366         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75367         DEFAULT_STACK_PERMS defined in stackinfo.h.
75368         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75369         * sysdeps/ia64/stackinfo.h: Likewise.
75370         * sysdeps/s390/stackinfo.h: Likewise.
75371         * sysdeps/sh/stackinfo.h: Likewise.
75372         * sysdeps/sparc/stackinfo.h: Likewise.
75373         * sysdeps/x86_64/stackinfo.h: Likewise.
75374         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75375         PF_X for powerpc64.  Retain PF_X for powerpc32.
75376
75377 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75378
75379         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75380         accurately.
75381         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75382         GETDENTS_64BIT_ALIGNED.
75383
75384 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75385
75386         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75387
75388 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75389
75390         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75391         _GNU_SOURCE.
75392
75393         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75394         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75395         Remove __restrict.
75396         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75397         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75398
75399 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75400
75401         [BZ #11655]
75402         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75403         are initialized.
75404
75405 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75406
75407         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75408
75409 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75410
75411         * po/it.po: Update from translation team.
75412
75413 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75414
75415         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75416         unused codes.
75417
75418 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75419
75420         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75421
75422 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75423
75424         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75425         specially.
75426         (gaih_getanswer_slice): Likewise.
75427
75428 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75429
75430         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75431
75432 2010-05-31  Petr Baudis  <pasky@suse.cz>
75433
75434         [BZ #11149]
75435         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75436         silently even in the chroot mode.
75437
75438 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75439
75440         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75441         last patch a bit.  Pretty printing
75442
75443 2010-05-31  Petr Baudis <pasky@suse.cz>
75444
75445         [BZ #10085]
75446         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75447         initialization of skip_initgroups_dyn.
75448
75449 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75450
75451         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75452         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75453
75454 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75455
75456         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75457
75458 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75459
75460         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75461         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75462         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75463         ($(objpfx)tst-fnmatch-mem): New rule.
75464         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75465         * posix/tst-fnmatch.c (main): Call mtrace.
75466
75467 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75468
75469         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75470         Support Intel processor model 6 and model 0x2c.
75471
75472 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75473
75474         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75475           signed comparison.
75476
75477 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75478
75479         [BZ #12205]
75480         * string/test-strncasecmp.c (check_result): New function.
75481         (do_one_test): Use it.
75482         (check1): New function.
75483         (test_main): Use it.
75484         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75485         Support strcasecmp and strncasecmp.
75486
75487 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75488
75489         [BZ #12194]
75490         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75491         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75492
75493 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75494
75495         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75496         IFUNC support.
75497         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75498         memset-x86-64.
75499         * sysdeps/x86_64/multiarch/bzero.S: New file.
75500         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75501         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75502         * sysdeps/x86_64/multiarch/memset.S: New file.
75503         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75504         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75505         Set bit_Prefer_SSE_for_memop for Intel processors.
75506         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75507         Define.
75508         (index_Prefer_SSE_for_memop): Define.
75509         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75510
75511 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75512
75513         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75514         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75515
75516 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75517
75518         [BZ #12191]
75519         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75520         (__x86_64_raw_data_cache_size_half): Likewise.
75521         (__x86_64_raw_shared_cache_size): Likewise.
75522         (__x86_64_raw_shared_cache_size_half): Likewise.
75523
75524         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75525         (__x86_64_raw_data_cache_size_half): Likewise.
75526         (__x86_64_raw_shared_cache_size): Likewise.
75527         (__x86_64_raw_shared_cache_size_half): Likewise.
75528         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75529         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75530         and __x86_64_raw_shared_cache_size_half.  Round
75531         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75532         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75533         to multiple of 256 bytes.
75534
75535 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75536
75537         [BZ #12167]
75538         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75539         of inacessible symlinks.  Verify result of symlink before returning it.
75540         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75541         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75542
75543 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75544
75545         * math/math.h (isinf): Fix typo in comment.
75546
75547 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75548
75549         * po/da.po: Update from translation team.
75550
75551 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75552
75553         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75554         is added to the list.
75555
75556 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75557             Ulrich Drepper  <drepper@gmail.com>
75558
75559         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75560         the global list here.  Move code to...
75561         (_dl_add_to_namespace_list): ...here.  New function.
75562         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75563         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75564         * elf/dl-load.c (lose): Don't remove the element from the list.
75565         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75566         (_dl_map_object): Likewise.
75567
75568 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75569
75570         [BZ #12159]
75571         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75572         into all bytes of SSE register.
75573         Patch by Richard Li <richardpku@gmail.com>.
75574
75575 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75576
75577         [BZ #12140]
75578         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75579         perturbing.
75580
75581 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75582
75583         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75584         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75585         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75586         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75588         submachine.
75589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75590
75591 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75592
75593         * include/dlfcn.h (__RTLD_SECURE): Define.
75594         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75595         mode & __RTLD_SECURE instead.
75596         (open_path): Rename preloaded parameter to secure.
75597         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75598         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75599         * elf/dl-deps.c (openaux): Likewise.
75600         * elf/rtld.c (struct map_args): Remove is_preloaded.
75601         (map_doit): Don't use it.
75602         (dl_main): Likewise.
75603         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75604         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75605
75606 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75607
75608         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75609         (sysd-rules-targets): Remove duplicates.
75610         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75611         rtld-%.$o dependency.
75612
75613 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75614
75615         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75616         _dl_map_object do it.
75617
75618 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75619
75620         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75621         fast fma builtins, define the macros in the C99 standard.
75622         (FP_FAST_FMAF): Likewise.
75623         (FP_FAST_FMAL): Likewise.
75624         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75625
75626         * bits/mathdef.h: Update copyright year.
75627         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75628
75629 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75630
75631         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75632         builtins, define the macros in the C99 standard.
75633         (FP_FAST_FMAF): Likewise.
75634         (FP_FAST_FMAL): Likewise.
75635         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75636         multiply/add.
75637         (FP_FAST_FMAF): Likewise.
75638
75639 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75640
75641         [BZ #3268]
75642         * math/libm-test.inc (fma_test): Some new testcases.
75643         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75644         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75645         y and infinite z.  Do multiplication by C already in long double.
75646         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75647         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75648         y and infinite z.  Do bitwise or of inexact bit into u.d.
75649         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75650         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75651         * sysdeps/i386/fpu/s_fma.S: Removed.
75652         * sysdeps/i386/fpu/s_fmal.S: Removed.
75653
75654 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75655
75656         [BZ #3268]
75657         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75658         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75659         computation is not scheduled after fetestexcept.  Fix value
75660         of minimum denormal long double.
75661
75662 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75663
75664         [BZ #3268]
75665         * math/libm-test.inc (fma_test): Add some more tests.
75666         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75667         correctly.
75668
75669 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75670
75671         * scripts/data/localplt-s390-linux-gnu.data: New file.
75672         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75673
75674 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75675
75676         [BZ #3268]
75677         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75678         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75679         instead of dbl-64.
75680         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75681         inlines.
75682         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75683         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75684         if one of x and y is very large and the other is subnormal.
75685         * sysdeps/s390/fpu/s_fmaf.c: New file.
75686         * sysdeps/s390/fpu/s_fma.c: New file.
75687         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75688         * sysdeps/powerpc/fpu/s_fma.S: New file.
75689         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75690         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75691         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75692
75693 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75694
75695         [BZ #3268]
75696         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75697         fma tests.
75698         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75699         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75700         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75701         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75702         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75703         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75704         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75705
75706 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75707
75708         [BZ #12078]
75709         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75710         * posix/bug-regex31.input: Add test case.
75711
75712 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75713
75714         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75715         * posix/bug-regex31.input: New file.
75716
75717         [BZ #12078]
75718         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75719         (parse_sub_exp): Fix last change, use postorder.
75720
75721         * posix/bug-regex31.c: New file.
75722         * posix/Makefile: Add rules to build and run bug-regex31.
75723
75724         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75725
75726         [BZ #12078]
75727         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75728
75729         [BZ #12108]
75730         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75731         to have entries in sys_siglist.
75732
75733         [BZ #12093]
75734         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75735         be NULL.
75736
75737 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75738
75739         [BZ #3268]
75740         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75741         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75742         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75743         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75744         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75745         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75746         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75747         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75748         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75749         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75750         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75751         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75752         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75753         * math/ftestexcept.c (fetestexcept): Likewise.
75754         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75755         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75756         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75757         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75758         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75759         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75760         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75761
75762 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75763
75764         [BZ #12107]
75765         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75766         newline.
75767
75768 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75769
75770         * string/bug-strstr1.c: New file.
75771         * string/Makefile: Add rules to build and run bug-strstr1.
75772
75773 2010-10-05  Eric Blake  <eblake@redhat.com>
75774
75775         [BZ #12092]
75776         * string/str-two-way.h (two_way_long_needle): Always clear memory
75777         when skipping input due to the shift table.
75778
75779 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
75780
75781         [BZ #12005]
75782         * malloc/mcheck.c: Handle large requests.
75783
75784         [BZ #12077]
75785         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
75786         for strncmp and strncasecmp.
75787         * string/stratcliff.c: Add tests for strcmp and strncmp.
75788         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
75789
75790 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
75791
75792         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
75793         __set_fpscr.
75794
75795 2010-09-30  Andreas Jaeger  <aj@suse.de>
75796
75797         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
75798         (CGROUP_SUPER_MAGIC): Define.
75799         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
75800         Handle btrfs and cgroup file systems.
75801         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
75802         Likewise.
75803
75804 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
75805
75806         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
75807         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
75808
75809 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75810
75811         [BZ #12067]
75812         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
75813         trying to locate the ELF header.
75814
75815 2010-09-27  Andreas Schwab  <schwab@redhat.com>
75816
75817         [BZ #11611]
75818         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
75819         Mask out sign-bit copies when constructing f_fsid.
75820
75821 2010-09-24  Petr Baudis <pasky@suse.cz>
75822
75823         * debug/stack_chk_fail_local.c: Add missing licence exception.
75824         * debug/warning-nop.c: Likewise.
75825
75826 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
75827
75828         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
75829         implementing getdents64 using getdents syscall, set d_type if
75830         __ASSUME_GETDENTS32_D_TYPE.
75831
75832 2010-09-16  Andreas Schwab  <schwab@redhat.com>
75833
75834         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
75835         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
75836
75837 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
75838
75839         [BZ #12037]
75840         * posix/unistd.h: Undo change of feature selection for ftruncate from
75841         2010-01-11.
75842
75843 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
75844
75845         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
75846         detection.
75847
75848 2010-09-20  Andreas Schwab  <schwab@redhat.com>
75849
75850         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
75851         fanotify_mark.
75852         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
75853
75854 2010-09-14  Andreas Schwab  <schwab@redhat.com>
75855
75856         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
75857         variables after CHECK_SP call.
75858         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
75859
75860 2010-09-13  Andreas Schwab  <schwab@redhat.com>
75861             Ulrich Drepper  <drepper@redhat.com>
75862
75863         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
75864         re-relocationg ld.so.
75865         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
75866         _dl_init_paths call.
75867         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
75868         here anymore.
75869
75870 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
75871
75872         * resolv/res_init.c (__res_vinit): Count the default server we added.
75873
75874 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
75875             Ulrich Drepper  <drepper@redhat.com>
75876
75877         [BZ #11968]
75878         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75879         (____longjmp_chk): Use %ebx for saving value across system call.
75880         Add unwind info.
75881
75882 2010-09-06  Andreas Schwab  <schwab@redhat.com>
75883
75884         * manual/Makefile: Don't mix pattern rules with normal rules.
75885
75886 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75887
75888         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
75889         operation.
75890         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
75891         * libio/iofopncook.c (_IO_cookie_init): Likewise.
75892         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
75893         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
75894         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75895         Likewise.
75896
75897 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
75898
75899         [BZ #11979]
75900         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
75901         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
75902
75903 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
75904
75905         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
75906         * sysdeps/x86_64/addmul_1.S: Likewise.
75907         * sysdeps/x86_64/lshift.S: Likewise.
75908         * sysdeps/x86_64/mul_1.S: Likewise.
75909         * sysdeps/x86_64/rshift.S: Likewise.
75910         * sysdeps/x86_64/sub_n.S: Likewise.
75911         * sysdeps/x86_64/submul_1.S: Likewise.
75912
75913 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75914
75915         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
75916         Define __sched_param instead of SCHED_* and sched_param when
75917         <bits/sched.h> is included with __need_schedparam defined.
75918         * bits/sched.h [__need_schedparam]
75919         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
75920         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
75921         (__defined_schedparam): Define to 1.
75922         (__sched_param): New structure, identical to sched_param.
75923         (__need_schedparam): Undefine.
75924
75925 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
75926
75927         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
75928         (epoll_create1): Declare.
75929
75930         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
75931
75932 2010-08-31  Andreas Schwab  <schwab@redhat.com>
75933
75934         [BZ #7066]
75935         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
75936         shifting retval into place.
75937
75938 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
75939
75940         * nis/rpcsvc/nis.h: Update copyright notice.
75941         * nis/rpcsvc/nis.x: Likewise.
75942         * nis/rpcsvc/nis_callback.h: Likewise.
75943         * nis/rpcsvc/nis_callback.x: Likewise.
75944         * nis/rpcsvc/nis_object.x: Likewise.
75945         * nis/rpcsvc/nis_tags.h: Likewise.
75946         * nis/rpcsvc/yp.h: Likewise.
75947         * nis/rpcsvc/yp.x: Likewise.
75948         * nis/rpcsvc/ypupd.h: Likewise.
75949         * nis/yp_xdr.c: Likewise.
75950         * nis/ypupdate_xdr.c: Likewise.
75951
75952         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
75953         mainly the body of pmap_getport.  Add parameters to specify timeouts.
75954         (pmap_getport): Use __libc_rpc_getport.
75955         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
75956         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
75957         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
75958
75959 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
75960
75961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
75962         fanotify_mark.
75963
75964 2010-08-27  Roland McGrath  <roland@redhat.com>
75965
75966         * sysdeps/i386/i686/multiarch/Makefile
75967         (CFLAGS-varshift.c): New variable.
75968
75969 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
75970
75971         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
75972         * sysdeps/i386/i686/multiarch/varshift.c: New file.
75973
75974         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
75975
75976         * sysdeps/x86_64/strlen.S: Minimal code improvement.
75977
75978 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
75979
75980         * sysdeps/x86_64/strlen.S: Unroll the loop.
75981         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75982         strlen-sse2 strlen-sse2-bsf.
75983         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
75984         __strlen_no_bsf if bit_Slow_BSF is set.
75985         (__strlen_sse42): Removed.
75986         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
75987         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
75988
75989 2010-08-25  Roland McGrath  <roland@redhat.com>
75990
75991         * sysdeps/x86_64/multiarch/varshift.S: File removed.
75992         * sysdeps/x86_64/multiarch/varshift.c: New file.
75993         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
75994         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
75995         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
75996         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
75997
75998 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
75999
76000         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76001         strlen-sse2 strlen-sse2-bsf.
76002         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76003         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76004         (__strlen_sse2): Removed.
76005         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76006         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76007         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76008         bit_Slow_BSF for Atom.
76009         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76010         (index_Slow_BSF): Define.
76011         (HAS_SLOW_BSF): Define.
76012
76013 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76014
76015         [BZ #10851]
76016         * resolv/res_init.c (__res_vinit): When no server address at all
76017         is given default to loopback.
76018
76019 2010-08-24  Roland McGrath  <roland@redhat.com>
76020
76021         * configure.in: Remove config-name.h generation.
76022         * configure: Regenerated.
76023         * config-name.in: File removed.
76024         * scripts/config-uname.sh: New file.
76025         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76026         ($(objdir)config-name.h): New target.
76027
76028         * sunrpc/rpc_parse.h: Avoid nested comment.
76029
76030 2010-08-24  Richard Henderson  <rth@redhat.com>
76031             Ulrich Drepper  <drepper@redhat.com>
76032             H.J. Lu  <hongjiu.lu@intel.com>
76033
76034         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76035         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76036         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76037         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76038         _mm_alignr_epi8 with _mm_loadu_si128.
76039         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76040         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76041         (__m128i_shift_right): Removed.
76042         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76043         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76044         * sysdeps/x86_64/multiarch/varshift.h: New file.
76045         * sysdeps/x86_64/multiarch/varshift.S: New file.
76046
76047 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76048
76049         * configure.in: Move assembler checks to before sysdep dir checking.
76050
76051 2010-08-20  Petr Baudis  <pasky@suse.cz>
76052
76053         * LICENSES: Sync the sunrpc license.
76054
76055 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76056
76057         * sunrpc/auth_des.c: Update copyright notice once again.
76058         * sunrpc/auth_none.c: Likewise.
76059         * sunrpc/auth_unix.c: Likewise.
76060         * sunrpc/authdes_prot.c: Likewise.
76061         * sunrpc/authuxprot.c: Likewise.
76062         * sunrpc/bindrsvprt.c: Likewise.
76063         * sunrpc/clnt_gen.c: Likewise.
76064         * sunrpc/clnt_perr.c: Likewise.
76065         * sunrpc/clnt_raw.c: Likewise.
76066         * sunrpc/clnt_simp.c: Likewise.
76067         * sunrpc/clnt_tcp.c: Likewise.
76068         * sunrpc/clnt_udp.c: Likewise.
76069         * sunrpc/clnt_unix.c: Likewise.
76070         * sunrpc/des_crypt.c: Likewise.
76071         * sunrpc/des_soft.c: Likewise.
76072         * sunrpc/get_myaddr.c: Likewise.
76073         * sunrpc/getrpcport.c: Likewise.
76074         * sunrpc/key_call.c: Likewise.
76075         * sunrpc/key_prot.c: Likewise.
76076         * sunrpc/openchild.c: Likewise.
76077         * sunrpc/pm_getmaps.c: Likewise.
76078         * sunrpc/pm_getport.c: Likewise.
76079         * sunrpc/pmap_clnt.c: Likewise.
76080         * sunrpc/pmap_prot.c: Likewise.
76081         * sunrpc/pmap_prot2.c: Likewise.
76082         * sunrpc/pmap_rmt.c: Likewise.
76083         * sunrpc/rpc/auth.h: Likewise.
76084         * sunrpc/rpc/auth_unix.h: Likewise.
76085         * sunrpc/rpc/clnt.h: Likewise.
76086         * sunrpc/rpc/des_crypt.h: Likewise.
76087         * sunrpc/rpc/key_prot.h: Likewise.
76088         * sunrpc/rpc/netdb.h: Likewise.
76089         * sunrpc/rpc/pmap_clnt.h: Likewise.
76090         * sunrpc/rpc/pmap_prot.h: Likewise.
76091         * sunrpc/rpc/pmap_rmt.h: Likewise.
76092         * sunrpc/rpc/rpc.h: Likewise.
76093         * sunrpc/rpc/rpc_des.h: Likewise.
76094         * sunrpc/rpc/rpc_msg.h: Likewise.
76095         * sunrpc/rpc/svc.h: Likewise.
76096         * sunrpc/rpc/svc_auth.h: Likewise.
76097         * sunrpc/rpc/types.h: Likewise.
76098         * sunrpc/rpc/xdr.h: Likewise.
76099         * sunrpc/rpc_clntout.c: Likewise.
76100         * sunrpc/rpc_cmsg.c: Likewise.
76101         * sunrpc/rpc_common.c: Likewise.
76102         * sunrpc/rpc_cout.c: Likewise.
76103         * sunrpc/rpc_dtable.c: Likewise.
76104         * sunrpc/rpc_hout.c: Likewise.
76105         * sunrpc/rpc_main.c: Likewise.
76106         * sunrpc/rpc_parse.c: Likewise.
76107         * sunrpc/rpc_parse.h: Likewise.
76108         * sunrpc/rpc_prot.c: Likewise.
76109         * sunrpc/rpc_sample.c: Likewise.
76110         * sunrpc/rpc_scan.c: Likewise.
76111         * sunrpc/rpc_scan.h: Likewise.
76112         * sunrpc/rpc_svcout.c: Likewise.
76113         * sunrpc/rpc_tblout.c: Likewise.
76114         * sunrpc/rpc_util.c: Likewise.
76115         * sunrpc/rpc_util.h: Likewise.
76116         * sunrpc/rpcinfo.c: Likewise.
76117         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76118         * sunrpc/rpcsvc/key_prot.x: Likewise.
76119         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76120         * sunrpc/rpcsvc/mount.x: Likewise.
76121         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76122         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76123         * sunrpc/rpcsvc/rex.x: Likewise.
76124         * sunrpc/rpcsvc/rstat.x: Likewise.
76125         * sunrpc/rpcsvc/rusers.x: Likewise.
76126         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76127         * sunrpc/rpcsvc/spray.x: Likewise.
76128         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76129         * sunrpc/rtime.c: Likewise.
76130         * sunrpc/svc.c: Likewise.
76131         * sunrpc/svc_auth.c: Likewise.
76132         * sunrpc/svc_authux.c: Likewise.
76133         * sunrpc/svc_raw.c: Likewise.
76134         * sunrpc/svc_run.c: Likewise.
76135         * sunrpc/svc_simple.c: Likewise.
76136         * sunrpc/svc_tcp.c: Likewise.
76137         * sunrpc/svc_udp.c: Likewise.
76138         * sunrpc/svc_unix.c: Likewise.
76139         * sunrpc/svcauth_des.c: Likewise.
76140         * sunrpc/xcrypt.c: Likewise.
76141         * sunrpc/xdr.c: Likewise.
76142         * sunrpc/xdr_array.c: Likewise.
76143         * sunrpc/xdr_float.c: Likewise.
76144         * sunrpc/xdr_mem.c: Likewise.
76145         * sunrpc/xdr_rec.c: Likewise.
76146         * sunrpc/xdr_ref.c: Likewise.
76147         * sunrpc/xdr_sizeof.c: Likewise.
76148         * sunrpc/xdr_stdio.c: Likewise.
76149
76150         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76151         handling.
76152
76153 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76154
76155         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76156
76157 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76158
76159         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76160         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76161         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76162         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76163         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76164         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76165         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76166         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76167         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76168         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76169         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76170         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76171         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76172         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76173
76174 2010-07-26  Anton Blanchard  <anton@samba.org>
76175
76176         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76177         * malloc/arena.c (heap_trim): Likewise.
76178
76179 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76180
76181         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76182         here.  Not...
76183         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76184         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76185
76186 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76187
76188         * sysdeps/i386/elf/Makefile: New file.
76189
76190 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76191
76192         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76193         from fanotify_init.
76194         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76195         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76196
76197 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76198
76199         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76200         of strncasecmp_l.
76201         * sysdeps/multiarch/strcmp.S: Likewise.
76202
76203 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76204
76205         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76206         strncase_l-nonascii.
76207         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76208         Add strncase_l-ssse3.
76209         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76210         * sysdeps/x86_64/strcmp.S: Likewise.
76211         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76212         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76213         * sysdeps/x86_64/strncase.S: New file.
76214         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76215         * sysdeps/x86_64/strncase_l.S: New file.
76216         * string/Makefile (strop-tests): Add strncasecmp.
76217         * string/test-strncasecmp.c: New file.
76218
76219         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76220         warning.
76221
76222         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76223         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76224
76225 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76226
76227         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76228
76229 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76230
76231         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76232         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76233         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76234
76235 2010-05-01  Alan Modra  <amodra@gmail.com>
76236
76237         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76238         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76239         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76240         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76241         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76242         tidying.  Don't tail-call __sigjmp_save for static lib.
76243         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76244         save location.
76245         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76246         (CALL_MCOUNT): Add eh info, and nop after bl.
76247         (TAIL_CALL_SYSCALL_ERROR): New macro.
76248         (PSEUDO_RET): Use it.
76249         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76250         Correct save location of integer regs and cr.
76251         (_dl_profile_resolve): Correct cr save location.  Delete nops
76252         after bl when SHARED.  Reduce cfi size a little by better
76253         placement of cfi directives.
76254         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76255         make a stack frame.  Instead use parm save area as a temp.
76256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76257         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76259         Don't make a stack frame for parent, use parm save area.
76260         Increase child stack frame to 112 bytes.  Don't save unused reg,
76261         and adjust reg usage.  Set up cfi on error recovery and
76262         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76264         (__makecontext): Add dummy nop after jump to exit.
76265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76266         Use correct parm save area and cr save, reduce stack frame.
76267         Correct cfi for possible PSEUDO_RET frame setup.
76268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76269         Branch to local label emitted by PSEUDO_RET rather than
76270         __syscall_error.
76271
76272 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76273
76274         [BZ #11904]
76275         * locale/programs/locale.c (print_assignment): New function.
76276         (show_locale_vars): Use it.
76277
76278 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76279
76280         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76281         field.
76282         (struct statfs64): Likewise.
76283         (_STATFS_F_FLAGS): Define.
76284         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76285         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76286         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76287         (ST_VALID): Define locally.
76288         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76289         __statvfs_getflags, use the provided value.
76290         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76291         __ASSUME_STATFS_F_FLAGS.
76292
76293         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76294
76295         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76296         Add sys/fanotify.h.
76297         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76298         fanotify_mask for GLIBC_2.13.
76299         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76300         fanotify_init and fanotify_mark.
76301         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76302         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76303
76304         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76305         Add prlimit.
76306         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76307         prlimit64 for GLIBC_2.13.
76308         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76309         prlimit64.
76310         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76311         syscall.
76312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76313         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76314         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76315         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76316         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76317         add prlimit alias.
76318         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76319
76320         [BZ #11903]
76321         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76322         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76323
76324         * nss/Makefile: Add rules to build and run tst-nss-test1.
76325         * shlib-versions: Add entry for libnss_test1.
76326         * nss/nss_test1.c: New file.
76327         * nss/tst-nss-test1.c: New file.
76328
76329         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76330         (__nss_configure_lookup): Set appropriate entry in
76331         __nss_configure_lookup to true.
76332         * nss/nsswitch.h: Define enum with indeces of databases in
76333         databases and __nss_database_custom arrays.  Declare
76334         __nss_database_custom.
76335         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76336         to avoid using nscd when custom rules are installed.
76337         * nss/getXXbyYY_r.c: Likewise.
76338         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76339
76340         * nss/nss_files/files-parse.c: Whitespace fixes.
76341
76342 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76343
76344         [BZ #11883]
76345         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76346         * posix/fnmatch_loop.c: Likewise.
76347
76348 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76349
76350         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76351         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76352         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76353         * Versions.def [GLIBC_2.13]: Add.
76354
76355 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76356
76357         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76358         Also fail if tpwd after pwuid call is NULL.
76359
76360 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76361
76362         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76363         when converting to ms.
76364
76365 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76366
76367         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76368         EOPNOTSUPP errors with ENOTTY.
76369         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76370         EOPNOTSUPP errors with ENOTTY.
76371
76372 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76373
76374         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76375         Add strcasecmp_l-ssse3.
76376         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76377         strcasecmp.
76378         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76379         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76380         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76381
76382 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76383
76384         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76385
76386         * string/Makefile (strop-tests): Add strcasecmp.
76387         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76388         strcasecmp_l-nonascii.
76389         (gen-as-const-headers): Add locale-defines.sym.
76390         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76391         * sysdeps/x86_64/strcasecmp.S: New file.
76392         * sysdeps/x86_64/strcasecmp_l.S: New file.
76393         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76394         * sysdeps/x86_64/locale-defines.sym: New file.
76395         * string/test-strcasecmp.c: New file.
76396
76397         * string/test-strcasestr.c: Test both ends of the range of characters.
76398         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76399
76400 2010-07-29  Roland McGrath  <roland@redhat.com>
76401
76402         [BZ #11856]
76403         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76404
76405 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76406
76407         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76408         for ld.so.
76409
76410 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76411
76412         * manual/memory.texi (Malloc Tunable Parameters): Document
76413         M_PERTURB.
76414
76415 2010-07-26  Roland McGrath  <roland@redhat.com>
76416
76417         [BZ #11840]
76418         * configure.in (-fgnu89-inline check): Set and substitute
76419         gnu89_inline, not libc_cv_gnu89_inline.
76420         * configure: Regenerated.
76421         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76422
76423 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76424
76425         * string/test-strnlen.c: New file.
76426         * string/Makefile (strop-tests): Add strnlen.
76427         * string/tester.c (test_strnlen): Add a few more test cases.
76428         * string/tst-strlen.c: Better error reporting.
76429
76430         * sysdeps/x86_64/strnlen.S: New file.
76431
76432 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76433
76434         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76435         lower-latency instructions.
76436
76437 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76438
76439         * string/test-strcasestr.c: New file.
76440         * string/test-strstr.c: New file.
76441         * string/Makefile (strop-tests): Add strstr and strcasestr.
76442         * string/str-two-way.h: Don't undefine MAX.
76443         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76444
76445 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76446
76447         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76448         strcasestr-nonascii.
76449         (CFLAGS-strcasestr-nonascii.c): Define.
76450         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76451         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76452         Remove unused attribute.
76453
76454 2010-07-20  Roland McGrath  <roland@redhat.com>
76455
76456         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76457         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76458         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76459         like LD_HWCAP_MASK can disable hwcaps.
76460
76461 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76462
76463         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76464
76465 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76466
76467         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76468         call in strcasestr.
76469         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76470         __strcasestr_sse42_nonascii.
76471         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76472         strcasestr-nonascii.c.
76473         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76474
76475 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76476
76477         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76478         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76479         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76480         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76481
76482 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76483
76484         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76485         fcntl.
76486
76487 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76488
76489         [BZ #11577]
76490         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76491         dl_signal_cerror.
76492
76493 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76494
76495         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76496         _PC_PIPE_BUF using F_GETPIPE_SZ.
76497
76498 2010-07-05  Roland McGrath  <roland@redhat.com>
76499
76500         * manual/arith.texi (Rounding Functions): Fix rint description
76501         implicit in round description.
76502
76503 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76504
76505         * elf/Makefile: Fix linking for a few tests to make recent linker
76506         happy.
76507
76508 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76509
76510         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76511         $(common-objpfx)libc_nonshared.a.
76512
76513 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76514
76515         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76516         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76517         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76518         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76519         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76520         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76521         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76522         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76537         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76538         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76539         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76540         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76541         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76542         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76543         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76544         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76545         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76546         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76547         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76548         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76563
76564 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76565
76566         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76567         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76568         * string/memmove.c (memmove): Renamed to ...
76569         (MEMMOVE): ...this.  Default to memmove.
76570         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76571         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76572         (END_CHK): Define.
76573         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76574         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76575         mempcpy-ssse3-back memmove-ssse3-back.
76576         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76577         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76578         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76579         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76580         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76581         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76582         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76583         * sysdeps/x86_64/multiarch/memmove.c: New file.
76584         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76585         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76586         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76587         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76588         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76589         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76590         Define.
76591         (index_Fast_Copy_Backward): Define.
76592         (HAS_ARCH_FEATURE): Define.
76593         (HAS_FAST_REP_STRING): Define.
76594         (HAS_FAST_COPY_BACKWARD): Define.
76595
76596 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76597
76598         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76599         Restore proper fallback handling.
76600
76601 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76602
76603         [BZ #11701]
76604         * posix/group_member.c (__group_member): Correct checking loop.
76605
76606         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76607         OOM in getpwuid_r correctly.  Return error number when the caller
76608         should return, otherwise -1.
76609         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76610         call returning > 0 value.
76611         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76612
76613 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76614
76615         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76616         libc_nonshared.a from targets in modules-names.
76617
76618 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76619
76620         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76621         requires it.
76622
76623 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76624
76625         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76626         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76627         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76628         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76629
76630 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76631
76632         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76633
76634 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76635
76636         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76637         and F_GETPIPE_SZ.
76638         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76639         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76640         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76641         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76642         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76643         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76644
76645 2010-06-14  Roland McGrath  <roland@redhat.com>
76646
76647         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76648
76649 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76650
76651         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76652         __REDIRECT followed by __THROW.
76653         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76654         * posix/getopt.h (getopt): Likewise.
76655
76656 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76657
76658         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76659         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76660         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76661         in AT_FLAGS.
76662         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76663         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76664
76665 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76666
76667         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76668
76669 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76670
76671         [BZ #11640]
76672         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76673         Properly check family and model.
76674
76675 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76676
76677         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76678
76679 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76680
76681         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76682
76683 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76684
76685         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76686         symbol reference.
76687
76688 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76689
76690         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76691         symbol reference.
76692
76693 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76694
76695         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76696         and internal_recvmmsg.
76697         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76698         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76699         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76700         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76701
76702         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76703         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76704         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76705
76706 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76707
76708         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76709
76710 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76711
76712         POWER7 optimizations.
76713         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76714         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76715
76716 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76717
76718         * version.h: Update for 2.13 development version.
76719
76720 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76721
76722         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76723         exceptions.  Return 0.
76724
76725 2010-05-07  Roland McGrath  <roland@redhat.com>
76726
76727         * elf/ldconfig.c (main): Add a const.
76728
76729 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76730
76731         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76732         (args_options): Add no-idn option.
76733         (ahosts_keys_int): Add idn_flags to ai_flags.
76734         (parse_option): Handle 'i' option to clear idn_flags.
76735
76736         * malloc/malloc.c (_int_free): Possible race in the most recently
76737         added check.  Only act on the data if no current modification
76738         happened.
76739
76740 See ChangeLog.17 for earlier changes.