elf: Consolidate machine-agnostic DTV definitions in <dl-dtv.h>
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-20  Florian Weimer  <fweimer@redhat.com>
2
3         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
4         * sysdeps/generic/dl-dtv.h: New file.
5         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
7         (dtv_t): Remove.
8         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
9         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
10         (dtv_t): Remove.
11         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
12         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
13         (dtv_t): Remove.
14         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
15         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
16         (dtv_t): Remove.
17         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
18         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
19         (dtv_t): Remove.
20         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
21         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
22         (dtv_t): Remove.
23         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
24         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
25         (dtv_t): Remove.
26         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
27         (dtv_t): Remove.
28         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
29         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
30         (dtv_t): Remove.
31         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
32         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
33         (dtv_t): Remove.
34         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
35         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
36         (dtv_t): Remove.
37         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
38         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
39         (dtv_t): Remove.
40         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
41         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
42         (dtv_t): Remove.
43         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
44         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
45         (dtv_t): Remove.
46         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
47         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
48         (dtv_t): Remove.
49         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
50         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
51         (dtv_t): Remove.
52
53 2016-06-20  Florian Weimer  <fweimer@redhat.com>
54
55         Revert symbol poisoning of  __malloc_initialize_hook.
56         * include/stdc-predef.h (__malloc_initialize_hook): Remove
57         poisoning.
58         * malloc/Makefile: Remove un-poisoning.
59         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
60         instead of old__malloc_initialize_hook.
61         * malloc/malloc-hooks.h: Likewise.
62         * malloc/malloc.c: Likewise.
63         * malloc/mcheck-init.c: Likewise.
64
65 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
66
67         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
68
69 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
70
71         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
72         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
73         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
74         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
75
76 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
77
78         * NEWS: Mention addition of nextup and nextdown.
79         * manual/arith.texi: Document nextup and nextdown.
80         * manual/libm-err-tab.pl: Add nextup and nextdown.
81         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
82         * math/Versions (libm): Add GLIBC_2.24.
83         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
84         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
85         Add new test.
86         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
87         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
88         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
89         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
90         (nextup_test_data): Likewise.
91         (nextdown_test_data): Likewise.
92         * math/s_nextdown.c: New file.
93         * math/s_nextdownf.c: Likewise.
94         * math/s_nextdownl.c: Likewise.
95         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
96         F(nextup): New function.
97         F(nextdown): Likewise.
98         * math/tgmath.h: Add nextup and nextdown.
99         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
100         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
101         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
102         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
103         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
104         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
105         Add nextup and nextdown.
106         (CFLAGS-nldbl-nextup.c): New variable.
107         (CFLAGS-nldbl-nextdown.c): Likewise.
108         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
109         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
110         * sysdeps/nacl/libm.abilist: Update.
111         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
112         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
113         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
114         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
115         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
116         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
117         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
118         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
119         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
120         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
121         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
122         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
125         Likewise.
126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
128         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
129         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
130         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
131         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
132         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
133         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
134         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
135         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
136         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
137         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
138         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
139
140 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
141
142         * manual/pattern.texi: Fix typos & grammar errors.
143
144 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
145
146         * manual/search.texi: Fix typos & grammar errors.
147
148 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
149
150         * manual/message.texi: Fix typos & grammar errors.
151
152 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
153
154         * manual/contrib.texi: Fix spelling typos.
155         * manual/crypt.texi: Likewise.
156         * manual/filesys.texi: Likewise.
157         * manual/locale.texi: Likewise.
158         * manual/message.texi: Likewise.
159         * manual/nss.texi: Likewise.
160         * manual/string.texi: Likewise.
161
162 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
163
164         * manual/locale.texi: Fix typos & grammar errors.
165
166 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
167
168         * manual/charset.texi: Fix typos & grammar errors.
169
170 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
171
172         * manual/string.texi: Fix typos.
173
174 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
175
176         * manual/ctype.texi: Fix typos.
177
178 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
179
180         * manual/memory.texi: Fix various typos & grammar errors.
181
182 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
183
184         [BZ #20255]
185         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
186         * math/libm-test.inc (fdim_test_data): Add another test.
187
188         [BZ #6796]
189         [BZ #20255]
190         [BZ #20256]
191         * math/s_fdim.c: Include <math_private.h>.
192         (__fdim): Use math_narrow_eval on result.
193         * math/s_fdimf.c: Include <math_private.h>.
194         (__fdimf): Use math_narrow_eval on result.
195         * sysdeps/i386/fpu/s_fdim.S: Remove file.
196         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
197         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
198         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
199         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
200         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
201         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
202         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
203         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
204         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
205         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
206         * math/libm-test.inc (fdim_test_data): Expect errno setting on
207         overflow.  Add sNaN tests.
208
209         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
210         fpclassify.
211         * math/s_fdimf.c (__fdimf): Likewise.
212         * math/s_fdiml.c (__fdiml): Likewise.
213
214 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
215
216         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
217         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
218         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
219         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
220         ifunc'ed strcasecmp/strncasecmp.
221         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
222         [EALIGN]: Removed.
223         [END]: Likewise.
224         [__strcasecmp]: Define instead of the above to control symbol name.
225         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
226         for __strcasecmp_power8.
227         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
228         for __strncasecmp_power8.
229         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
230         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
231         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
232         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
233         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
234         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
235
236 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
237
238         [BZ #20252]
239         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
240         arguments when second argument is a NaN.
241         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
242         qNaN tests.
243
244         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
245         (conj_test_data): Likewise.
246         (copysign_test_data): Likewise.
247         (creal_test_data): Likewise.
248         (fma_test_data): Likewise.
249         (fmod_test_data): Likewise.
250
251         [BZ #20250]
252         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
253         itself.
254         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
255         zero input to itself.
256         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
257         Likewise.
258         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
259         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
260         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
261         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
262         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
263
264 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
265
266         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
267         * nptl/tst-cancel4-common.c: New file.
268         * nptl/tst-cancel4-common.h: Likewise.
269         * nptl/tst-cancel4.c: Move common definitions to
270         tst-cancel4-common.{c,h} file.
271         * nptl/tst-cancel4_1.c: New test.
272         * nptl/tst-cancel4_2.c: New test.
273
274 2016-06-13  Florian Weimer  <fweimer@redhat.com>
275
276         [BZ #20248]
277         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
278         (write_message): New function.
279         (stackoverflow_handler): Call it instead of printf, to avoid
280         excessive stack usage by printf.
281         (do_test): Restore SIGSEGV, SIGBUS default handlers.
282
283 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
284
285         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
286         (prio_inherit_missing): Remove define.
287         * sysdeps/unix/sysv/linux/arm/kernel-features.h
288         (__ASSUME_FUTEX_LOCK_PI): Likewise.
289         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
290         Likewise.
291         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
292         (__ASSUME_FUTEX_LOCK_PI): Likewise.
293         * sysdeps/unix/sysv/linux/mips/kernel-features.h
294         (__ASSUME_FUTEX_LOCK_PI): Likewise.
295         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
296         (__ASSUME_FUTEX_LOCK_PI): Likewise.
297
298 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
299
300         [BZ #19670]
301         [BZ #19672]
302
303         * io/test-lfs.c (do_prepare): Use xmalloc.
304         * io/tst-fcntl.c (do_prepare): Likewise.
305         * libio/tst-fopenloc.c (do_bz17916): Likewise.
306         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
307         * login/tst-utmp.c (do_prepare): Likewise.
308         * posix/tst-exec.c (do_prepare): Likewise.
309         * posix/tst-pathconf.c (prepare): Likewise.
310         * posix/tst-spawn.c (do_prepare): Likewise.
311         * posix/tst-truncate.c (do_prepare): Likewise.
312         * rt/tst-aio.c (do_prepare): Likewise.
313         * rt/tst-aio64.c (do_prepare): Likewise.
314
315 2016-06-11  Florian Weimer  <fweimer@redhat.com>
316
317         [BZ #20237]
318         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
319         (get*ent): Set entidx to NULL during initialization.  If entidx is
320         NULL, start iteration from the beginning.
321
322 2016-06-11  Florian Weimer  <fweimer@redhat.com>
323
324         * malloc/malloc.c (musable): Return correct size for dumped fake
325         mmapped chunk.
326
327 2016-06-11  Florian Weimer  <fweimer@redhat.com>
328
329         [BZ #20222]
330         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
331         (_IO_cookie_write): Likewise.
332         (_IO_cookie_seek): Likewise.
333         (_IO_cookie_close): Likewise.
334         (_IO_old_cookie_seek): Likewise.
335         (set_callbacks): New function.
336         (_IO_cookie_init): Call set_callbacks to copy callbacks.
337
338 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
339
340         * locale/programs/localedef.c (oldstyle_tables): Remove.
341         * locale/programs/localedef.h (oldstyle_tables): Likewise.
342
343 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
344
345         [BZ #20240]
346         * math/Makefile (CFLAGS-s_modf.c): New variable.
347         (CFLAGS-s_modff.c): Likewise.
348         (CFLAGS-s_modfl.c): Likewise.
349         * math/libm-test.inc (modf_test_data): Add sNaN tests.
350
351 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
352
353         [BZ #20215]
354         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
355         [!__GNUC_PREREQ (3,2)]: Likewise.
356
357 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
358
359         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
360         (msghdr.msg_controllen): Likewise.
361         (cmsghdr.cmsg_len): Likewise.
362         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
363         ptw-oldsendmsg.
364         (CFLAGS-oldrecvmsg.c): Remove rule.
365         (CFLAGS-oldsendmsg.c): Likewise.
366         (CFLAGS-recvmsg.c): Add rule.
367         (CFLAGS-sendmsg.c): Likewise.
368         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
369         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
370         (CFLAGS-recvmsg.c): Remove rule.
371         (CFLAGS-sendmsg.c): Likewise.
372         (CFLAGS-oldrecvmsg.c): Likewise.
373         (CFLAGS-oldsendmsg.c): Likewise.
374         (CFLAGS-recvmmsg.c): Likewise.
375         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
376         to kernel defined interfaces.
377         (msghdr.msg_controllen): Likewise.
378         (cmsghdr.cmsg_len): Likewise.
379         (msghdr.__glibc_reserved1): Remove member.
380         (msghdr.__glibc_reserved2): Likewise.
381         (cmsghdr.__glibc_reserved1): Likewise.
382         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
383         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
384         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
385         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
386         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
387         version.
388         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
389         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
390         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
391         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
392         Remove recvmsg and sendmsg.
393         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
394         Likewise.
395         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
396         Likewise.
397         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
398         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
399         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
400         Likewise.
401         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
402         Likewise.
403         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
404         [libc] (GLIBC_2.24): Likewise.
405         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
406         Likewise.
407         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
408         Likewise.
409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
410         [libc] (GLIBC_2.24): Likewise.
411         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
412         Likewise.
413         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
414         Likewise.
415         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
416         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
417         Likewise.
418         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
419         Likewise.
420         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
421         Likewise.
422         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
423         Likewise.
424         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
425         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
426         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
427         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
428         version for {recv,send,recm,sendm}msg.
429         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
430         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
431         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
432         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
433         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
434         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
435         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
436         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
437         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
438         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
439         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
440         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
442         Likewise.
443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
444         Likewise.
445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
447         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
448         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
449         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
450         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
451         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
452         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
453         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
454         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
455         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
456         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
457         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
458
459 2016-06-10  Florian Weimer  <fweimer@redhat.com>
460
461         [BZ #19564]
462         Remove __malloc_initialize_hook from the API.
463         * malloc/malloc.h (__malloc_initialize_hook): Remove.
464         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
465         #pragma GCC poison.
466         * malloc/malloc-hooks.h: New file.
467         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
468         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
469         (old__malloc_initialize_hook): Rename from
470         __malloc_initialize_hook to evade poisoning.  Turn into compat
471         symbol.
472         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
473         __malloc_initialize_hook.
474         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
475         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
476         * manual/memory.texi (Hooks for Malloc): Remove
477         __malloc_initialize_hook.  Adjust hook example.
478
479 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
480
481         [BZ #20235]
482         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
483         itself.
484         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
485         * math/libm-test.inc (log2_test_data): Add sNaN tests.
486
487         [BZ #20234]
488         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
489         infinity or NaN input to itself.
490
491         [BZ #20233]
492         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
493         to itself.
494
495         [BZ #20232]
496         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
497         itself.
498
499 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
500
501         * sysdeps/x86_64/start.S (_start): Always indirect branch to
502         __libc_start_main via GOT.
503
504 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
505
506         * sysdeps/x86_64/memcopy.h: New file.
507         * sysdeps/x86_64/wordcopy.c: Likewise.
508
509 2016-06-09  Florian Weimer  <fweimer@redhat.com>
510
511         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
512         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
513         <cstdlib>.
514         (optimization_barrier): New.
515         (do_test): Use it.  Call quick_exit in the global namespace.
516         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
517         instead of <cstdlib>, <thread>.
518         (optimization_barrier): New.
519         (non_main_thread): Adjust declaration.  Call optimization_barrier.
520         Call quick_exit in the global namespace.
521         (do_test): Call optimization_barrier.  Use pthread_create,
522         pthread_join instead of std::thread.
523
524 2016-06-09  Andreas Schwab  <schwab@suse.de>
525
526         [BZ #19755]
527         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
528         new entries in auto-propagate mode.
529         * nscd/grpcache.c (cache_addgr): Likewise.
530
531 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
532
533         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
534         New functions.
535         (add_temp_file): Use them.
536
537 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
538
539         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
540
541 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
542
543         [BZ #20229]
544         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
545         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
546         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
547
548         [BZ #20228]
549         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
550         itself.
551         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
552         * math/libm-test.inc (log10_test_data): Add sNaN tests.
553
554         [BZ #20227]
555         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
556         itself.
557         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
558         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
559         * math/libm-test.inc (log_test_data): Add sNaN tests.
560
561         [BZ #20226]
562         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
563         itself.
564         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
565         * math/libm-test.inc (exp_test_data): Add sNaN tests.
566         (exp10_test_data): Likewise.
567         (expm1_test_data): Likewise.
568
569         [BZ #20225]
570         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
571         itself.
572         * math/s_ldexpf.c (__ldexpf): Likewise.
573         * math/s_ldexpl.c (__ldexpl): Likewise.
574         * math/w_scalbln.c (__w_scalbln): Likewise.
575         * math/w_scalblnf.c (__w_scalblnf): Likewise.
576         * math/w_scalblnl.c (__w_scalblnl): Likewise.
577         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
578         (scalbln_test_data): Likewise.
579
580         [BZ #20224]
581         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
582         argument to itself.
583         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
584
585 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
586
587         [BZ #19776]
588         * sysdeps/x86_64/memcpy.S: Make it dummy.
589         * sysdeps/x86_64/mempcpy.S: Likewise.
590         * sysdeps/x86_64/memmove.S: New file.
591         * sysdeps/x86_64/memmove_chk.S: Likewise.
592         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
593         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
594         * sysdeps/x86_64/memmove.c: Removed.
595         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
596         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
597         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
598         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
599         Likewise.
600         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
601         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
602         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
603         memcpy-sse2-unaligned, memmove-avx-unaligned,
604         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
605         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
606         (__libc_ifunc_impl_list): Replace
607         __memmove_chk_avx512_unaligned_2 with
608         __memmove_chk_avx512_unaligned.  Remove
609         __memmove_chk_avx_unaligned_2.  Replace
610         __memmove_chk_sse2_unaligned_2 with
611         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
612         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
613         with __memmove_avx512_unaligned.  Replace
614         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
615         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
616         with __memcpy_chk_avx512_unaligned.  Remove
617         __memcpy_chk_avx_unaligned_2.  Replace
618         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
619         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
620         Replace __memcpy_avx512_unaligned_2 with
621         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
622         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
623         with __mempcpy_chk_avx512_unaligned.  Remove
624         __mempcpy_chk_avx_unaligned_2.  Replace
625         __mempcpy_chk_sse2_unaligned_2 with
626         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
627         Replace __mempcpy_avx512_unaligned_2 with
628         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
629         Replace __mempcpy_sse2_unaligned_2 with
630         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
631         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
632         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
633         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
634         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
635         (ENTRY): Removed.
636         (END): Likewise.
637         (ENTRY_CHK): Likewise.
638         (libc_hidden_builtin_def): Likewise.
639         Don't include ../memcpy.S.
640         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
641         __memcpy_chk_avx512_unaligned_erms and
642         __memcpy_chk_avx512_unaligned.  Use
643         __memcpy_chk_avx_unaligned_erms and
644         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
645         Default to __memcpy_chk_sse2_unaligned.
646         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
647         Change function suffix from unaligned_2 to unaligned.
648         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
649         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
650         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
651         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
652         (ENTRY): Removed.
653         (END): Likewise.
654         (ENTRY_CHK): Likewise.
655         (libc_hidden_builtin_def): Likewise.
656         Don't include ../mempcpy.S.
657         (mempcpy): New.  Add a weak alias.
658         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
659         __mempcpy_chk_avx512_unaligned_erms and
660         __mempcpy_chk_avx512_unaligned.  Use
661         __mempcpy_chk_avx_unaligned_erms and
662         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
663         Default to __mempcpy_chk_sse2_unaligned.
664
665 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
666
667         [BZ #19881]
668         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
669         into ...
670         * sysdeps/x86_64/memset.S: This.
671         (__bzero): Removed.
672         (__memset_tail): Likewise.
673         (__memset_chk): Likewise.
674         (memset): Likewise.
675         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
676         defined.
677         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
678         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
679         (__memset_zero_constant_len_parameter): Check SHARED instead of
680         PIC.
681         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
682         memset-avx2 and memset-sse2-unaligned-erms.
683         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
684         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
685         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
686         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
687         (__bzero): Enabled.
688         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
689         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
690         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
691         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
692         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
693         (memset): Removed.
694         (__memset_chk): Likewise.
695         (MEMSET_SYMBOL): New.
696         (libc_hidden_builtin_def): Replace __memset_sse2 with
697         __memset_sse2_unaligned.
698         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
699         __memset_chk_sse2 and __memset_chk_avx2 with
700         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
701         Use __memset_chk_sse2_unaligned_erms or
702         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
703         __memset_chk_avx512_unaligned_erms and
704         __memset_chk_avx512_unaligned.
705
706 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
707
708         * math/gen-auto-libm-test.c (fp_format_desc): remove
709         suffix member.
710         (output_generic_value): Remove usage of suffix member,
711         and the resulting unuse of the fp_format argument.
712         (output_for_one_input_case): Remove unused fp_format
713         parameter.
714
715         * math/auto-libm-test-out: Regenerate.
716
717         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
718         usage with TEST_COND_ibm128.
719         (TEST_COND_flt_32): Remove.
720         (TEST_COND_dbl_64): Remove.
721         (TEST_COND_ldbl_96_intel): Remove.
722         (TEST_COND_ldbl_96_m68k): Remove.
723         (TEST_COND_ldbl_128): Remove.
724
725 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
726
727         * auto-libm-test-in:
728         Replace flt-32 usage with binary32.
729         Replace dbl-64 usage with binary64.
730         Replace ldbl-intel-96 usage with intel96.
731         Replace ldbl-m68k-96 usage with m68k96.
732         Replace ldbl-128ibm usage with ibm128.
733         Replace ldbl-128 usage with binary128.
734
735         * auto-libm-test-out: Regenerate.
736
737 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
738
739         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
740         (parse_ulps): Dynamically generate type name matching
741         string from all_floats.
742         (get_ulps): Generate the ulps as an array instead.
743         (output_ulps): Dynamically compose the type based
744         on the number of supported formats, and print
745         the indices as type specific helper macros.
746
747         * math/libm-test.inc: Remove comment about CHOOSE.
748         (ulp_data): Generate the type in libm-test-ulps.h.
749         (ULP_IDX): New macro.
750         (find_ulps): Update usage of max_ulp.
751
752         * math/test-double-vlen2.h (CHOOSE): Remove.
753         * math/test-double-vlen4.h (CHOOSE): Likewise.
754         * math/test-double-vlen8.h (CHOOSE): Likewise.
755         * math/test-float.c (CHOOSE): Likewise.
756         * math/test-float-finite.c (CHOOSE): Likewise.
757         * math/test-double.c (CHOOSE): Likewise.
758         * math/test-double-finite.c (CHOOSE): Likewise.
759         * math/test-idouble.c (CHOOSE): Likewise.
760         * math/test-ifloat.c (CHOOSE): Likewise.
761         * math/test-ildoubl.c (CHOOSE): Likewise.
762         * math/test-ldouble-finite.c (CHOOSE): Likewise.
763         * math/test-ldouble.c (CHOOSE): Likewise.
764
765         * math/test-float.h (TEST_FLOAT): Remove.
766         * math/test-double.h (TEST_DOUBLE): Likewise.
767         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
768
769 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
770
771         * math/gen-libm-test.pl: (apply_lit): New subroutine.
772         (parse_args): Strip C suffix from floating point literals
773         typed with 'f' and wrap them with LIT().
774
775         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
776         (test_ff_f_data_nexttoward): Rename to
777         (test_fj_f_data): New struct.
778         (nexttoward_test_data): Relabel tests as
779         TEST_fj_f instead of TEST_ff_f.
780
781 2016-06-08  Florian Weimer  <fweimer@redhat.com>
782
783         Emacs bug 23726.
784         * malloc/malloc.c (dumped_main_arena_start): Update comment.
785         (__libc_realloc): Correct size computation for dumped fake mmapped
786         chunks.
787
788 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
789
790         [BZ #20219]
791         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
792         to itself.
793         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
794
795         [BZ #20218]
796         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
797         to itself.
798         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
799
800 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
801
802         [BZ #20195]
803         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
804         check to ...
805         (init_cpu_features): Here.
806
807 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
808
809         [BZ #20214]
810         * sysdeps/unix/sysv/linux/bits/in.h
811         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
812          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
813         Define to 1.
814         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
815          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
816         Define to 0.
817         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
818         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
819
820 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
821
822         [BZ #20198]
823         * stdlib/Makefile (tests): Add tst-quick_exit, and
824         tst-thread-quick_exit.
825         [ifeq ($(have-cxx-thread_local),yes)]
826         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
827         (CFLAGS-tst-thread-quick_exit.o): Likewise.
828         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
829         (LDLIBS-tst-thread-quick_exit): Likewise.
830         [ifneq ($(have-cxx-thread_local),yes)]
831         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
832         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
833         If run_dtors is true call __call_tls_dtors.
834         (exit): Call __run_exit_handlers with run_dtors set to true.
835         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
836         definition.
837         * stdlib/quick_exit.c (quick_exit): Remove function.
838         (__new_quick_exit): New function.
839         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
840         function.
841         * stdlib/tst-quick_exit.cc: New file.
842         * stdlib/tst-thread-quick_exit.cc: New file.
843         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
844         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
845         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
846         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
847         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
848         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
849         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
850         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
851         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
852         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
853         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
854         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
855         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
856         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
857         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
858         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
863         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
864         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
865         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
866         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
867         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
868         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
869         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
870         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
871         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
872         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
873
874 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
875
876         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
877         a typo in comments.
878
879 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
880
881         [BZ #20213]
882         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
883         argument to itself.
884         * math/libm-test.inc (asin_test_data): Add sNaN tests.
885
886 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
887
888         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
889         required flags.
890         (CFLAGS-pwritev64.c): Likewise.
891         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
892         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
893         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
894         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
895         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
896         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
897         syscall from auto-generation.
898         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
899         [WORDSIZE == 64] (pwritev64): Remove macro.
900         [!PWRITEV] (PWRITEV): Likewise.
901         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
902         [!PWRITEV] (PWRITE): Likewise.
903         [!PWRITEV] (OFF_T): Likewise.
904         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
905         (LO_HI_LONG): Remove macro.
906         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
907         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
908         (PWRITEV): Remove macro.
909         (PWRITEV_REPLACEMENTE): Likewise.
910         (PWRITE): Likewise.
911         (OFF_T): Likewise.
912         (pwritev64): New function.
913         * nptl/tst-cancel4.c (tf_writev): Add test.
914
915         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
916         required flags.
917         (CFLAGS-preadv64.c): Likewise.
918         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
919         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
920         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
921         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
922         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
923         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
924         syscall from auto-generation.
925         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
926         [WORDSIZE == 64] (preadv64): Remove macro.
927         [!PREADV] (PREADV): Likewise.
928         [!PREADV] (PREADV_REPLACEMENT): Likewise.
929         [!PREADV] (PREAD): Likewise.
930         [!PREADV] (OFF_T): Likewise.
931         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
932         (LO_HI_LONG): Remove macro.
933         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
934         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
935         (PREADV): Remove macro.
936         (PREADV_REPLACEMENTE): Likewise.
937         (PREAD): Likewise.
938         (OFF_T): Likewise.
939         (preadv64): New function.
940         * nptl/tst-cancel4.c (tf_preadv): Add test.
941
942 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
943
944         [BZ #20212]
945         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
946         argument to itself.
947         * math/libm-test.inc (acos_test_data): Add sNaN tests.
948
949 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
950
951         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
952         New symbol defined as libc_hidden_def.
953         (strcasestr): Became a weak alias to __strcasestr.
954         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
955         according to multi-arch support.  Move __stpncpy hidden
956         definition from here to...
957         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
958         symbol stpncpy.
959         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
960         libc_hidden_builtin_def.
961         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
962         memset symbol to use when multi-arch support is available.
963
964 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
965
966         * dlfcn/tst-rec-dlopen.c: Include string.h.
967
968 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
969
970         * manual/install.texi: Remove mention of --without-tls
971         * INSTALL: Regenerate.
972
973 2016-06-05  Florian Weimer  <fweimer@redhat.com>
974
975         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
976         Remove.
977         (call_function, interposed_malloc_called): New variables.
978         (malloc): New function.
979         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
980         and clear call_function as needed.
981
982 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
983
984         * include/wchar.h (__wmemset): Use __typeof.
985
986 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
987
988         * include/wchar.h (__wmemset): Declare function without typeof.
989
990 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
991
992         [BZ #20205]
993         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
994         exponent when incrementing negative subnormal with low mantissa
995         word zero.
996         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
997         Add another test.
998
999 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1000
1001         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1002         __wmemset instead of wmemset.
1003
1004 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1005
1006         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1007         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1008         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1009         __USE_KERNEL_IPV6_DEFS to 0.
1010         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1011         Update comment.
1012
1013 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1014
1015         [BZ #19861]
1016         Do not use IFUNC resolver with potentially unrelocated symbol.
1017         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1018         (DEFINE_FORK): Remove macro and inline definition.
1019         (fork_alias): Renamed from fork_ifunc.
1020         (__fork_alias): Renamed from __fork_ifunc.
1021
1022 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1023
1024         [BZ 19653]
1025         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1026         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1027
1028 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1029
1030         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1031         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1032         i386-linux-gnu).
1033         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1034         Set to no.
1035         * sysdeps/mach/hurd/configure: Refresh.
1036
1037 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1038
1039         [BZ #20178]
1040         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1041         on failure instead of exit.
1042
1043 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1044
1045         [BZ #3629]
1046         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1047         of POSIX.1-2008.
1048
1049 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1050
1051         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1052           Use PLT entry for calling _hurd_self_sigstate.
1053
1054 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1055
1056         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1057         available logical processors with SMT level type sharing L2
1058         cache for Intel processors.
1059
1060 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1061
1062         [BZ #20160]
1063         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1064         argument to itself before returning the result.
1065         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1066         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1067         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1068         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1069         Likewise.
1070         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1071         Likewise.
1072         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1073         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1074         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1075         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1076         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1077         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1078
1079         [BZ #20160]
1080         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1081         argument to itself before returning the result.
1082         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1083         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1084         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1085         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1086         Likewise.
1087         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1088         Likewise.
1089         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1090         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1091         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1092         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1093         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1094         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1095
1096 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1097
1098         * libm-test.inc: Replace usage of M_El with
1099         (lit_e): New macro.
1100
1101 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1102
1103         * libm-test.inc: Replace usage of M_PI_4l with
1104         (lit_pi_4_d): New macro.
1105
1106 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1107
1108         * libm-test.inc: Replace usage of M_PIl with
1109         (lit_pi): New macro.
1110
1111 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1112
1113         * libm-test.inc: Replace usage of M_PI2l with
1114         (lit_pi_2_d): New macro.
1115
1116         * math/test-double.h (LITM): New macro.
1117         * math/test-float.h (LITM): Likewise.
1118         * math/test-ldouble.h (LITM): Likewise.
1119
1120 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1121
1122         * libm-test.inc (M_PI_34l): Rename to
1123         (lit_pi_3_m_4_d): New Macro.
1124         (M_PI_34_LOG10El): Rename to
1125         (lit_pi_3_m_4_ln10_m_d): New Macro.
1126         (M_PI2_LOG10El): Rename to
1127         (lit_pi_2_ln10_m_d):  New Macro.
1128         (M_PI4_LOG10El): Rename to
1129         (lit_pi_4_ln10_m_d):  New Macro.
1130         (M_PI_LOG10El): Rename to
1131         (lit_pi_ln10_d):  New Macro.
1132
1133 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1134
1135         [BZ #20157]
1136         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1137         determine whether to negate low half if [_ARCH_PPCGR], and integer
1138         comparison otherwise.
1139         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1140         determine whether to negate low half.
1141
1142         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1143         (NO_TEST_INLINE_DOUBLE): Likewise.
1144         (TEST_COND_x86_64): Likewise.
1145         (TEST_COND_x86): Likewise.
1146         (M_PI_6l): Likewise.
1147
1148 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1149
1150         * math/libm-test.inc:
1151         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1152         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1153         (TEST_LDOUBLE): Update usage to evaluate as true if
1154         the guarded tests match the property being tested.
1155         (LDBL_MAX_EXP): Change to MAX_EXP.
1156         (LDBL_MIN_EXP): Change to MIN_EXP.
1157         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1158         nexttoward tests.
1159
1160 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1161
1162         * math/libm-test.inc:
1163         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1164         (TYPE_MIN): Likewise.
1165         (TYPE_TRUE_MIN): Likewise.
1166         (TYPE_MAX): Likewise.
1167         (MIN_EXP): Likewise.
1168         (MAX_EXP): Likewise.
1169         (MANT_DIG): Likewise.
1170
1171         (FSTR_MAX): New macro.
1172         (__CONCATX): Likewise.
1173         (QTYPE_STR): Likewise.
1174         (TEST_COND_binary32): Likewise.
1175         (TEST_COND_binary64): Likewise.
1176         (TEST_COND_binary128): Likewise.
1177         (TEST_COND_ibm128): Likewise.
1178         (TEST_COND_intel96): Likewise.
1179         (TEST_COND_m68k96): Likewise.
1180
1181         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1182         (TEST_COND_dbl_64): Likewise.
1183         (TEST_COND_ldbl_96_intel): Likewise.
1184         (TEST_COND_ldbl_96_m68k): Likewise.
1185         (TEST_COND_ldbl_128): Likewise.
1186         (TEST_COND_ldbl_128ibm): Likewise.
1187
1188         (plus_zero): Redefine using LIT macro.
1189         (minus_zero): Likewise.
1190         (plus_infty): Redefine as (INF).
1191         (minux_infty): Redefine as (-INF).
1192         (max_value): Redefine as TYPE_MAX.
1193         (min_value): Redefine as TYPE_MIN.
1194         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1195
1196         (print_float): Refactor to use snprintf to convert FLOAT values
1197         to string. This brings it closer to dropin replacement of strtof
1198         for the TS 18661 defined types.
1199         (update_stats): Likewise.
1200         (print_complex_function_ulps): Likewise.
1201         (print_max_error): Likewise.
1202         (print_complex_max_error): Likewise.
1203         (check_float_internal): Likewise.
1204
1205         * math/test-float.h (PREFIX): New macro.
1206         (LIT): Likewise.
1207         (TYPE_STR): Likewise.
1208         (FTOSTR): Likewise.
1209
1210         * math/test-double.h (PREFIX): New macro.
1211         (LIT): Likewise.
1212         (TYPE_STR): Likewise.
1213         (FTOSTR): Likewise.
1214
1215         * math/test-ldouble.h (PREFIX): New macro.
1216         (LIT): Likewise.
1217         (TYPE_STR): Likewise.
1218         (FTOSTR): Likewise.
1219
1220 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1221
1222         [BZ #20156]
1223         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1224         to itself when zero or not finite.
1225         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1226         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1227         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1228         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1229
1230 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1231
1232         [BZ #20153]
1233         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1234         x * x + x for infinities and NaNs.
1235
1236         [BZ #20151]
1237         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1238         argument to itself before returning result.
1239         (__ieee754_y0l): Likewise.
1240         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1241         (__ieee754_y1l).
1242
1243         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1244         (atan_test_data): Likewise.
1245         (ceil_test_data): Likewise.
1246         (cos_test_data): Likewise.
1247         (cosh_test_data): Likewise.
1248         (erf_test_data): Likewise.
1249         (exp2_test_data): Likewise.
1250         (fabs_test_data): Likewise.
1251         (floor_test_data): Likewise.
1252         (ilogb_test_data): Likewise.
1253         (j0_test_data): Likewise.
1254         (j1_test_data): Likewise.
1255         (jn_test_data): Likewise.
1256         (lgamma_test_data): Likewise.
1257         (lrint_test_data): Likewise.
1258         (llrint_test_data): Likewise.
1259         (logb_test_data): Likewise.
1260         (lround_test_data): Likewise.
1261         (llround_test_data): Likewise.
1262         (nearbyint_test_data): Likewise.
1263         (rint_test_data): Likewise.
1264         (round_test_data): Likewise.
1265         (sin_test_data): Likewise.
1266         (sincos_test_data): Likewise.
1267         (sinh_test_data): Likewise.
1268         (sqrt_test_data): Likewise.
1269         (tan_test_data): Likewise.
1270         (tanh_test_data): Likewise.
1271         (tgamma_test_data): Likewise.
1272         (trunc_test_data): Likewise.
1273         (y0_test_data): Likewise.
1274         (y1_test_data): Likewise.
1275         (yn_test_data): Likewise.
1276
1277         * math/libm-test.inc: Update comment about NaN testing.
1278         (TEST_SNAN): New macro.
1279         (snan_value): Likewise.
1280         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1281         (fpclassify_test_data): Add sNaN tests.
1282         (isfinite_test_data): Likewise.
1283         (isinf_test_data): Likewise.
1284         (isnan_test_data): Likewise.
1285         (isnormal_test_data): Likewise.
1286         (issignaling_test_data): Likewise.
1287         (signbit_test_data): Likewise.
1288         * math/gen-libm-test.pl (%beautify): Add snan_value.
1289         (show_exceptions): Add argument $test_snan.
1290         (parse_args): Handle snan_value as non-finite.  Update call to
1291         show_exceptions.
1292         * math/Makefile (libm-test-no-inline-cflags): Add
1293         -fsignaling-nans.
1294
1295 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1296
1297         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1298         (CFLAGS-oldsendmsg.c): Add rule.
1299         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1300         Correct recvmsg symbol name.
1301         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1302         Likewise.
1303
1304 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1305
1306         * sysdeps/unix/sysv/linux/Makefile
1307         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1308         oldsendmmsg.
1309         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1310         sendmmsg.
1311         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1312         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1313         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1314         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1316         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1317         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1318         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1319         Likewise.
1320         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1321         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1322         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1323         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1324         iovlen and controllen fields to adjust to POSIX specification.
1325         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1326
1327         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1328         and change to correct expected type.
1329         (msghdr.msg_controllen): Likewise.
1330         (cmsghdr.cmsg_len): Likewise.
1331         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1332         expected POSIX assumption about the size.
1333         (msghdr.msg_controllen): Likewise.
1334         (msghdr.__glibc_reserved1): Likewise.
1335         (msghdr.__glibc_reserved2): Likewise.
1336         (cmsghdr.cmsg_len): Likewise.
1337         (cmsghdr.__glibc_reserved1): Likewise.
1338         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1339         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1340         (CFLAGS-sendmsg.c): Remove rule.
1341         (CFLAGS-recvmsg.c): Likewise.
1342         (CFLAGS-oldsendmsg.c): Add rule.
1343         (CFLAGS-oldrecvmsg.c): Likewise.
1344         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1345         recvmsg and sendmsg.
1346         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1347         Likewise.
1348         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1349         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1350         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1351         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1352         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1353         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1354         Likewise.
1355         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1356         Likewise.
1357         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1358         Likewise.
1359         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1360         Likewise.
1361         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1362         Likewise.
1363         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1364         Likewise.
1365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1366         (GLIBC_2.24): Likewise.
1367         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1368         Likewise.
1369         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1370         Likewise.
1371         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1372         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1373         Likewise.
1374         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1375         Likewise.
1376         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1377         Likewise.
1378         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1379         (GLIBC_2.24): Likewise.
1380         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1381         Likewise.
1382         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1383         Likewise.
1384         * sysdeps/unix/sysv/linux/Makefile
1385         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1386         (CFLAGS-sendmsg.c): Add rule.
1387         (CFLAGS-recvmsg.c): Likewise.
1388         (CFLAGS-oldsendmsg.c): Likewise.
1389         (CFLAGS-oldrecvmsg.c): Likewise.
1390         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1391         initialization.
1392         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1393         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1394         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1395         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1396         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1397         iovlen and controllen fields to adjust to POSIX specification.
1398         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1399         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1400         added recvmsg and sendmsg.
1401         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1402         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1403         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1404         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1405         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1406         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1407         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1408         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1409         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1410         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1411         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1412         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1414         Likewise.
1415         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1417         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1418         Likewise.
1419         Likewise.
1420         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1421         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1422         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1423         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1424         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1425         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1426         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1427         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1428         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1429         Likewise.
1430         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1431         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1432
1433         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1434         from auto-generation.
1435         (sendmsg): Likewise.
1436         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1437         (sendmsg): Likewise.
1438         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1439         (sendmsg): Likewise.
1440         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1441         (sendmsg): Likewise.
1442         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1443         (sendmsg): Likewise.
1444         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1445         (sendmsg): Likewise.
1446         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1447         Likewise.
1448         (sendmsg): Likewise.
1449         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1450         (sendmsg): Likewise.
1451         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1452         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1453         Remove.
1454         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1455         Likewise.
1456         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1457         Undefine.
1458         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1459         Likewise.
1460         * sysdeps/unix/sysv/linux/kernel-features.h
1461         (__ASSUME_SENDMSG_SYSCALL): Define.
1462         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1463         * sysdeps/unix/sysv/linux/m68k/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/s390/kernel-features.h
1473         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1474         Remove.
1475         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1476         Likewise.
1477         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1478         Undefine.
1479         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1480         Likewise.
1481         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1482         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1483         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1484         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1485         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1486         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1487         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1488         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1489         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1490
1491 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1492
1493         * stdlib/gen-tst-strtod-round.c: Add backslash to
1494         compile command in comment.
1495         (printfp): Remove the literal suffix, and define an infinite
1496         value as INF to avoid expansion clash with INFINITY.
1497         (round_str): Remove the literal suffix.
1498         (round_for_all): Likewise, remove the now duplicate ldbl-64
1499         entry, and remove some magic constants.
1500
1501         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1502         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1503         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1504         (_CONCAT): New macro.
1505         (CONCAT): Likewise.
1506         (CHOOSE_ld): Likewise.
1507         (CHOOSE_f): Likewise.
1508         (CHOOSE_d): Likewise.
1509         (FTYPE_MEMBER): Likewise.
1510         (BOOL_MEMBER): Likewise.
1511         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1512         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1513         (_XNTRY): Likewise.
1514         (XNTRY): Likewise.
1515         (_ENTRY): Likewise.
1516         (ENTRY): Likewise.
1517         (test_exactness): Generate members via macro.
1518         (test_results): Likewise.
1519         (test): Update members.
1520         (TEST): Redefine using new macros.
1521         (INF): New macro.
1522         (fetestmodes): New structure.
1523         (do_test): Refactor to be type generic.
1524         (test_in_one_mode): Refactor duplicate code into
1525         (GEN_ONE_TEST): New macro.
1526
1527         * stdlib/tst-strtod-round-data.h: Regenerate.
1528
1529         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1530         Extend to pass additional arbitrary parameters to
1531         generators.
1532
1533 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1534
1535         [BZ #15479]
1536         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1537         floating-point state after first floating-point operation on
1538         input.  Restore full floating-point state instead of just rounding
1539         mode.
1540         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1541         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1542         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1543         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1544         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1545
1546         [BZ #15479]
1547         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1548         floating-point state after first floating-point operation on
1549         input.  Restore full floating-point state instead of just rounding
1550         mode.
1551         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1552         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1553         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1554         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1555         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1556
1557 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1558
1559         [BZ #19727]
1560         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1561         valid high surrogate.
1562         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1563         of an utf16 surrogate.
1564         * iconv/gconv_simple.c (BODY): Likewise.
1565         * iconvdata/bug-iconv12.c: New file.
1566         * iconvdata/Makefile (tests): Add bug-iconv12.
1567
1568 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1569
1570         [BZ #19726]
1571         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1572         outptrp in case of an illegal input.
1573         * iconv/tst-iconv6.c: New file.
1574         * iconv/Makefile (tests): Add tst-iconv6.
1575
1576 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1577
1578         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1579         an error in case of a value in range of an utf16 low surrogate.
1580
1581 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1582
1583         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1584         an error in case of a value in range of an utf16 low surrogate.
1585
1586 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1587
1588         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1589         Move to ...
1590         * sysdeps/s390/Makefile: ... here.
1591         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1592         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1593         (BRANCH_ON_COUNT): New define.
1594         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1595         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1596         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1597         run on s390-32, too.
1598         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1599         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1600         run on s390-32, too.
1601         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1602         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1603         run on s390-32, too.
1604
1605 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1606
1607         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1608         etf3eh or new vector loop-variant.
1609
1610 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1611
1612         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1613         etf3eh or new vector loop-variant.
1614
1615 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1616
1617         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1618         or new vector loop-variant.
1619
1620 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1621
1622         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1623         Rename to TR_LOOP and usage of tr instead of troo instruction.
1624
1625 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1626
1627         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1628         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1629
1630 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1631
1632         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1633         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1634         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1635         New override define.
1636         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1637
1638 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1639
1640         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1641         * sysdeps/s390/configure.ac: Add test for S390 vector register
1642         support in gcc.
1643         * sysdeps/s390/configure: Regenerated.
1644
1645 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1646
1647         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1648         Install file from $(objpfx)gconv-modules.
1649         ($(objpfx)gconv-modules): Concatenate architecture specific file
1650         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1651         * sysdeps/s390/gconv-modules: New file.
1652         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1653         Deleted.
1654         ($(objpfx)gconv-modules-s390): Deleted.
1655         (sysdeps-gconv-modules): New variable.
1656
1657 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1658
1659         [BZ #15479]
1660         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1661         of immediate operand to rounding instruction.
1662         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1663         Likewise.
1664         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1665         Likewise.
1666         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1667         Likewise.
1668
1669 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1670
1671         * math/libm-test.inc (MIN_EXP): Directly define as
1672         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1673
1674 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1675
1676         * math/libm-test.inc (MANT_DIG): Directly define as
1677         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1678
1679 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1680
1681         * stdlib/gen-tst-strtod-round.c (main):
1682           Change usage to more closely match the generated
1683           output.  Add usage and compilation instructions.
1684           (string_to_fp): Add and use FILE* parameter as
1685           output target.
1686           (print_fp): Likewise.
1687           (round_str): Likewise.
1688           (round_for_all): Likewise.
1689         * stdlib/tst-strtod-round.c (tests): Move into
1690         * stdlib/tst-strtod-round-data.h: New file.
1691
1692 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1693
1694         [BZ #15479]
1695         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1696         (__round): Do not force "inexact" exception.
1697         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1698         variable.
1699         (__round): Do not force "inexact" exception.
1700         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1701         (__roundf): Do not force "inexact" exception.
1702         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1703         (__roundl): Do not force "inexact" exception.
1704         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1705         (__roundl): Do not force "inexact" exception.
1706         * math/libm-test.inc (round_test_data): Do not allow spurious
1707         "inexact" exceptions.
1708
1709         [BZ #15479]
1710         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1711         exception in comment.
1712         (huge): Remove variable.
1713         (__floor): Do not force "inexact" exception.
1714         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1715         "inexact" exception in comment.
1716         (huge): Remove variable.
1717         (__floor): Do not force "inexact" exception.
1718         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1719         exception in comment.
1720         (huge): Remove variable.
1721         (__floorf): Do not force "inexact" exception.
1722         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1723         exception in comment.
1724         (huge): Remove variable.
1725         (__floorl): Do not force "inexact" exception.
1726
1727         [BZ #15479]
1728         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1729         exception in comment.
1730         (huge): Remove variable.
1731         (__ceil): Do not force "inexact" exception.
1732         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1733         "inexact" exception in comment.
1734         (huge): Remove variable.
1735         (__ceil): Do not force "inexact" exception.
1736         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1737         (__ceilf): Do not force "inexact" exception.
1738         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1739         exception in comment.
1740         (huge): Remove variable.
1741         (__ceill): Do not force "inexact" exception.
1742
1743 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1744
1745         * config.h.in (BIND_NOW): New.
1746         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1747         * configure: Regenerated.
1748         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1749         indirect branch via the GOT slot.
1750
1751 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1752
1753         [BZ #19765]
1754         * sysdeps/s390/mempcpy.S: New File.
1755         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1756         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1757         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1758         Add mempcpy variants.
1759         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1760         (memcpy): Adjust to be usable from mempcpy entry point.
1761         (__memcpy_mvcle): Likewise.
1762         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1763         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
1764         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
1765         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
1766         (__memcpy_z10): Likewise.
1767         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1768
1769 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1770
1771         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
1772         Remove __GI_ symbol.
1773         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
1774         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
1775         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
1776         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1777         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
1778         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
1779
1780 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1781
1782         * sysdeps/s390/s390-64/memcpy.S (memcpy):
1783         Use cghi instead of chi to compare 64bit value.
1784
1785 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1786
1787         * sysdeps/s390/s390-32/memcpy.S (memcpy):
1788         Jump to 1MB check before executing mvc-loop.
1789
1790 2016-05-24  Florian Weimer  <fweimer@redhat.com>
1791
1792         [BZ #6527]
1793         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
1794         unconditionally.
1795         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
1796
1797 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1798
1799         * stdlib/tst-strtod6.c (do_test): Use new type generic
1800         invocation of the test function.
1801         (test): Refactor into ...
1802         (TEST_STRTOD): New macro base function.
1803
1804 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1805
1806         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
1807         (TEST_STRTOD): New macro.
1808         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
1809
1810 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1811
1812         * stdlib/tst-strtod6.c (do_test): Use new type generic
1813         invocation of the test function.
1814         (test): Refactor into ...
1815         (TEST_STRTOD): New macro base function.
1816
1817 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1818
1819         CVE-2016-4429
1820         [BZ #20112]
1821         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
1822         payload.
1823
1824 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1825
1826         [BZ #20111]
1827         * bits/sockaddr.h (_SS_SIZE): Define.
1828         * bits/socket.h (_SS_SIZE): Remove.
1829         (_SS_PADSIZE): Adjust to account for all padding.
1830         (struct sockaddr_storage): Update comment.  Avoid implicit
1831         padding.
1832         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
1833         (_SS_PADSIZE): Adjust to account for all padding.
1834         (struct sockaddr_storage): Update comment.  Avoid implicit
1835         padding.
1836         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
1837         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
1838         (_SS_PADSIZE): Adjust to account for all padding.
1839         (struct sockaddr_storage): Update comment.  Avoid implicit
1840         padding.
1841         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
1842         __SS_SIZE is 126 in this version.
1843         * inet/tst-sockaddr.c: New file.
1844         * inet/Makefile (tests): Add tst-sockaddr.c
1845         (tst-sockaddr.c): Compile with non-strict aliasing.
1846
1847 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
1848
1849         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
1850         [XPG3 || XPG4].
1851         (NL_ARGMAX): Also expect for [XPG3].
1852         (NL_LANGMAX): Likewise.
1853         (NL_MSGMAX): Likewise.
1854         (NL_NMAX): Likewise.
1855         (NL_SETMAX): Likewise.
1856         (NL_TEXTMAX): Likewise.
1857         (NZERO): Likewise.
1858         (TMP_MAX): Likewise.
1859         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
1860         variable.
1861
1862         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
1863         (PF_MAX): Update value.
1864         (AF_KCM): New macro.
1865         (SOL_NETBEUI): Likewise.
1866         (SOL_LLC): Likewise.
1867         (SOL_DCCP): Likewise.
1868         (SOL_NETLINK): Likewise.
1869         (SOL_TIPC): Likewise.
1870         (SOL_RXRPC): Likewise.
1871         (SOL_PPPOL2TP): Likewise.
1872         (SOL_BLUETOOTH): Likewise.
1873         (SOL_PNPIPE): Likewise.
1874         (SOL_RDS): Likewise.
1875         (SOL_IUCV): Likewise.
1876         (SOL_CAIF): Likewise.
1877         (SOL_ALG): Likewise.
1878         (SOL_NFC): Likewise.
1879         (SOL_KCM): Likewise.
1880         (MSG_BATCH): New enum value and macro.
1881
1882 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1883
1884         [BZ #18185]
1885         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
1886         sharing L2 cache to 2 for Knights Landing.
1887
1888 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
1889
1890         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
1891         (FTW_DP): Do not expect for [XPG3 || XPG4].
1892         (FTW_SL): Do not expect for [XPG3].
1893         (FTW_SLN): Likewise.
1894         (FTW_PHYS): Likewise.
1895         (FTW_MOUNT): Likewise.
1896         (FTW_DEPTH): Likewise.
1897         (FTW_CHDIR): Likewise.
1898         (nftw): Likewise.
1899         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
1900         variable.
1901
1902 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1903
1904         * manual/errno.texi: Fix various typos & grammar errors.
1905
1906 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1907
1908         * manual/intro.texi: Fix duplicated typo.
1909
1910 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1911
1912         [BZ #13304]
1913         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
1914         <float.h>, <math_private.h> and <stdlib.h>.
1915         (add_split): New function.
1916         (mul_split): Likewise.
1917         (ext_val): New typedef.
1918         (store_ext_val): New function.
1919         (mul_ext_val): New function.
1920         (compare): New function.
1921         (add_split_ext): New function.
1922         (__fmal): After checking for Inf, NaN and zero, compute result as
1923         an exact sum of scaled double values in round-to-nearest before
1924         adding those up and adjusting for other rounding modes.
1925         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
1926         tests of fma.
1927         * math/auto-libm-test-out: Regenerated.
1928
1929 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1930
1931         [BZ #20119]
1932         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
1933         processor level type mask for CPUID with EAX == 11.
1934
1935 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1936
1937         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
1938         logical threads if the HTT bit is 0.
1939         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
1940         (index_cpu_HTT): Likewise.
1941         (reg_HTT): Likewise.
1942
1943 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1944
1945         [BZ #20115]
1946         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
1947         Remove alignments on jump targets.
1948
1949 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1950
1951         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
1952         (getpwent): Likewise.
1953         (setpwent): Likewise.
1954         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
1955         variable.
1956
1957         * conform/data/search.h-data (insque): Do not expect for [XPG3].
1958         (remque): Likewise.
1959         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
1960         variable.
1961
1962 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1963
1964         * math/libm-test.inc: Update comment not to refer to signs of NaNs
1965         not being tested.
1966
1967 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1968
1969         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1970         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
1971         call.
1972         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1973         (__condvar_cleanup1): Likewise.
1974
1975 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1976
1977         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
1978         New
1979         (__pthread_unwind): Renamed to ...
1980         (PTHREAD_UNWIND): This.
1981         (__pthread_enable_asynccancel): Replace
1982         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
1983
1984 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1985
1986         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
1987         (CLONE_NEWCGROUP): New macro.
1988
1989         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
1990         (Q_GETNEXTQUOTA): New macro.
1991
1992 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1993
1994         [BZ #19907]
1995         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
1996         buffer updated by the previous run.
1997         * string/test-memcpy.c (do_one_test): Likewise.
1998         * benchtests/bench-memmove.c (do_one_test): Add a comment.
1999         * string/test-memmove.c (do_one_test): Likewise.
2000
2001 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2002
2003         [BZ #20094]
2004         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2005         not [__USE_XOPEN].
2006         (unlockpt): Likewise.
2007         (ptsname): Likewise.
2008         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2009         variable.
2010
2011         [BZ #20076]
2012         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2013         instead of [__USE_UNIX98].
2014         (S_ISSOCK): Likewise.
2015         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2016         variable.
2017
2018         [BZ #20074]
2019         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2020         [__USE_POSIX].
2021         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2022         variable.
2023
2024         [BZ #20051]
2025         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2026         (ttyslot): Do not declare.
2027         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2028         (ttyslot): New prototype.
2029         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2030         variable.
2031         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2032
2033 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2034
2035         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2036
2037 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2038
2039         Fix race condition in tst-mallocfork2, use fewer resources.
2040         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2041         to current process group.
2042         (signal_sender): Yield in the non-sleeping case.
2043
2044 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2045
2046         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2047         (ecvt): Likewise.
2048         (fcvt): Likewise.
2049         (gcvt): Likewise.
2050         (getsubopt): Likewise.
2051         (grantpt): Likewise.
2052         (initstate): Likewise.
2053         (l64a): Likewise.
2054         (mktemp): Likewise.
2055         (mkstemp): Likewise.
2056         (ptsname): Likewise.
2057         (random): Likewise.
2058         (realpath): Likewise.
2059         (setstate): Likewise.
2060         (srandom): Likewise.
2061         (ttyslot): Likewise.
2062         (unlockpt): Likewise.
2063         (valloc): Likewise.
2064
2065         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2066         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2067         variable.
2068
2069 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2070
2071         [BZ #20072]
2072         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2073         init_cpu_features only if SHARED is defined.
2074         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2075
2076 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2077
2078         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2079         non-inclusive caches on Intel processors.
2080
2081 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2082
2083         * malloc/malloc.c (dumped_main_arena_start)
2084         (dumped_main_arena_end): New variables.
2085         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2086         (do_check_chunk): Skip dumped fake mmapped chunks.
2087         (munmap_chunk): Likewise.
2088         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2089         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2090         mmapped chunks.
2091         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2092         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2093         and dumped_main_arena_end to cover the dumped heap.
2094
2095 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2096
2097         * conform/data/time.h-data (getdate_err): Do not expect for
2098         [XPG3].
2099         (getdate): Likewise.
2100         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2101         variable.
2102
2103         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2104         (F_ULOCK): Likewise.
2105         (F_TEST): Likewise.
2106         (F_TLOCK): Likewise.
2107         (useconds_t): Likewise.
2108         (intptr_t): Do not expect for [XPG3] or [XPG4].
2109         (brk): Do not expect for [XPG3]
2110         (fchown): Likewise.
2111         (fchdir): Likewise.
2112         (ftruncate): Likewise.
2113         (getdtablesize): Likewise.
2114         (gethostid): Likewise.
2115         (getpagesize): Likewise.
2116         (getpgid): Likewise.
2117         (getsid): Likewise.
2118         (getwd): Likewise.
2119         (lchown): Likewise.
2120         (lockf): Likewise.
2121         (readlink): Likewise.
2122         (sbrk): Likewise.
2123         (setpgrp): Likewise.
2124         (setregid): Likewise.
2125         (setreuid): Likewise.
2126         (symlink): Likewise.
2127         (sync): Likewise.
2128         (truncate): Likewise.
2129         (ualarm): Likewise.
2130         (usleep): Likewise.
2131         (vfork): Likewise.
2132         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2133         variable.
2134
2135         [BZ #20054]
2136         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2137         not [__USE_UNIX98].
2138         * conform/data/unistd.h-data (gethostname): Do not expect for
2139         [XPG3].
2140
2141         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2142         [!POSIX] (S_IFBLK): Likewise.
2143         [!POSIX] (S_IFCHR): Likewise.
2144         [!POSIX] (S_IFIFO): Likewise.
2145         [!POSIX] (S_IFREG): Likewise.
2146         [!POSIX] (S_IFDIR): Likewise.
2147         [!POSIX] (S_IFLNK): Likewise.
2148         [!POSIX] (S_IFSOCK): Likewise.
2149         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2150         variable.
2151         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2152
2153 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2154
2155         * sysdeps/aarch64/memset.S (__memset):
2156         Rewrite of optimized memset.
2157
2158 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2159
2160         [BZ #19703]
2161         Partially async-signal-safe fork for single-threaded processes.
2162         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2163         variable.  Do not acquire and reset/release malloc and libio locks
2164         in single-threaded processes.
2165         * malloc/tst-mallocfork2.c: New file.
2166         * malloc/Makefile (tests): Add it.
2167
2168 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2169
2170         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2171         argument.  Use scratch buffer instead of extend_alloca.
2172         (gethosts): Use scratch buffer instead of extend_alloca.
2173         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2174         extend_alloca.
2175         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2176
2177 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2178
2179         [BZ #20055]
2180         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2181         instead of [__USE_UNIX98].
2182         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2183         [__USE_UNIX98].
2184         * conform/data/termios.h-data (tcgetsid): Do not expect for
2185         [XPG3].
2186         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2187         variable.
2188         (test-xfail-XPG4/termios.h/conform): Likewise.
2189
2190 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2191
2192         Do not use mcheck in localedef.
2193         * locale/programs/localedef.c (turn_on_mcheck)
2194         (__malloc_initialize_hook): Remove.
2195
2196 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2197
2198         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2199         * sysdeps/s390/s390-64/Makefile: Likewise.
2200
2201 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2202
2203         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2204         Remove ifunc-defines.sym.
2205         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2206         Likewise.
2207         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2208         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2209         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2210         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2211         rtld-global-offsets.sym.
2212         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2213         * sysdeps/x86/cpu-features-offsets.sym: This.
2214         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2215         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2216
2217 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2218
2219         [BZ #20073]
2220         * io/sys/stat.h (fchmod): Declare for
2221         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2222         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2223         variable.
2224
2225         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2226         [XPG3] (S_IFSOCK): Likewise.
2227         [XPG3] (S_ISVTX): Likewise.
2228         [XPG3] (S_ISLNK): Likewise.
2229         [XPG3] (S_ISSOCK): Likewise.
2230         [XPG3] (fchmod): Likewise.
2231         [XPG3] (lstat): Likewise.
2232         [XPG3] (mknod): Likewise.
2233
2234         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2235         [XPG3].  Expect type long and XFAIL for [XPG4].
2236         (st_blocks): Likewise.
2237
2238         [BZ #20044]
2239         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2240         (pthread_atfork): New prototype.
2241         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2242         variable.
2243
2244         [BZ #20043]
2245         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2246         prototype.
2247
2248 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2249
2250         [BZ #20017]
2251         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2252         gmtime.
2253
2254 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2255
2256         [BZ #19994]
2257         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2258         flag in _res.options.
2259
2260 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2261
2262         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2263         [XPG3 || XPG4].
2264         (blksize_t): Likewise.
2265         (clockid_t): Likewise.
2266         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2267         variable.
2268         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2269
2270 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2271
2272         * sysdeps/unix/sysv/linux/s390/init-first.c:
2273         Add VDSO_SYMBOL(getcpu).
2274         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2275         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2276         Add VDSO_SYMBOL(getcpu).
2277         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2278         New define HAVE_GETCPU_VSYSCALL.
2279         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2280
2281 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2282
2283         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2284         instead of <sysdeps/x86_64/cacheinfo.c>.
2285         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2286         * sysdeps/x86/cacheinfo.c: Here.
2287
2288 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2289
2290         * malloc/malloc-internal.h: Adjust header file guard.
2291
2292 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2293
2294         [BZ #19787]
2295         * inet/getnameinfo.c (check_sprintf_result): New function.
2296         (CHECKED_SNPRINTF): New macro.
2297         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2298         to the host buffer.
2299         (gni_host_local): Use checked_copy to copy the host name.
2300         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2301         (gni_serv_local): Use checked_copy to copy the service name.
2302         (getnameinfo): Remove unnecessary truncation of result buffers.
2303
2304 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2305
2306         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2307         in case of inet_ntop failure.
2308
2309 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2310
2311         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2312         avoid long lines.
2313         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2314         variables.
2315         (gni_host_inet, gni_host_local): Add comment.
2316         (gni_host): Add comment.  Use temporary to avoid long lines.
2317
2318 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2319
2320         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2321         registers specifiers where general purpose registers specifiers should
2322         have been used.
2323
2324 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2325
2326         [BZ #19779]
2327         CVE-2016-1234
2328         Avoid copying names of directory entries.
2329         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2330         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2331         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2332         (struct readdir_result): New type.
2333         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2334         (GL_READDIR): New macros.
2335         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2336         (convert_dirent, convert_dirent64): New functions.
2337         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2338         convert_dirent64.  Adjust references to the readdir result.
2339         * sysdeps/unix/sysv/linux/i386/glob64.c:
2340         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2341         * posix/bug-glob2.c (LONG_NAME): Define.
2342         (filesystem): Add LONG_NAME.
2343         (my_DIR): Increase the size of room_for_dirent.
2344
2345 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2346
2347         [BZ #20041]
2348         * misc/sys/select.h (__need_timespec): Only define if
2349         [__USE_XOPEN2K].
2350         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2351         variable.
2352         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2353         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2354         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2355
2356 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2357             Segher Boessenkool  <segher@gcc.gnu.org>
2358
2359         [BZ #20004]
2360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2361         (__novec_swapcontext): Add missing load.
2362
2363 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2364
2365         [BZ #20023]
2366         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2367         <time.h>.
2368         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2369         variable.
2370         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2371
2372 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2373
2374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2375         flags CLONE_VM compare.
2376
2377 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2378
2379         [BZ #20031]
2380         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2381         completely empty.
2382
2383 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2384
2385         [BZ #19573]
2386         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2387         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2388         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2389         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2390         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2391         (hesiod_free_list): Mark as hidden.
2392         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2393         res_set, res_get.
2394         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2395         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2396         (hesiod_init): Remove obsolete res_ninit call.
2397         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2398         (hesiod_bind): Do not call init.
2399         (get_txt_records): Use res_mkquery, res_send instead of
2400         res_nmkquery, res_nsend.
2401         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2402         instead of _nss_hesiod_init.
2403         (_nss_hesiod_initgroups_dyn): Likewise.
2404         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2405         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2406         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2407
2408 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2409
2410         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2411         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2412
2413 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2414
2415         * hesiod/hesiod.h: Remove RCS keyword.
2416         * hesiod/hesiod_p.h: Likewise.
2417
2418         * hesiod/hesiod.c: Likewise.
2419
2420 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2421
2422         [BZ #12450]
2423         * locale/iso-639.def: Add Samogitian/sgs.
2424
2425 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2426
2427         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2428
2429         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2430
2431 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2432             Carlos O'Donell  <carlos@redhat.com>
2433
2434         [BZ #19072]
2435         * grp/Makefile (headers): Add grp-merge.h
2436         (routines): Add grp-merge.
2437         * grp/getgrgid_r.c: Include grp-merge.h.
2438         (DEEPCOPY_FN): Define.
2439         (MERGE_FN): Define.
2440         * grp/getgrname_r.c: Include grp-merge.h.
2441         (DEEPCOPY_FN): Define.
2442         (MERGE_FN): Define.
2443         * grp/grp-merge.c: New file.
2444         * grp/grp-merge.h: New file.
2445         * include/grp-merge.h: New file.
2446         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2447         __copy_grp@GLIBC_PRIVATE.
2448         * manual/nss.texi (Actions in the NSS configuration): Describe
2449         return, continue, and merge.
2450         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2451         (DEEPCOPY_FN): Define.
2452         (MERGE_FN): Define.
2453         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2454         (DEEPCOPY_FN): Define.
2455         (MERGE_FN): Define.
2456         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2457         [!MERGE_FN]: Define __merge_einval.
2458         (CHECK_MERGE): Define.
2459         (REENTRANT_NAME): Process merge if do_merge is true.
2460         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2461         (__nss_getent_r): Likewise.
2462         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2463         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2464
2465 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2466
2467         [BZ #20012]
2468         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2469         length to calculate the buffer to read.
2470         (fmemopen_write): Set the buffer position based on bytes written.
2471         (fmemopen_seek): Return EINVAL for invalid whence modes.
2472
2473         [BZ #19957]
2474         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2475         tst-getpid2.
2476         (test): Add tst-clone2.
2477         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2478         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2479         pid/tid fields for CLONE_VM.
2480         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2481         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2482         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2483         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2484         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2485         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2486         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2487         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2489         Likewise.
2490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2491         Likewise.
2492         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2493         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2494         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2495         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2496         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2497         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2498         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2499         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2500
2501 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2502
2503         [BZ #19642]
2504         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2505         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2506         (gni_serv_local, gni_serv): New functions extracted from
2507         getnameinfo.
2508         (getnameinfo): Call gni_host and gni_serv to perform the
2509         processing.  Always free scratch buffer.
2510
2511 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2512
2513         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2514         remaining bytes in the dest string, with zeros.
2515
2516 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2517
2518         [BZ #20010]
2519         CVE-2016-3706
2520         * sysdeps/posix/getaddrinfo.c
2521         (convert_hostent_to_gaih_addrtuple): New function.
2522         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2523         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2524         AF_INET data.
2525
2526 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2527
2528         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2529         callback function gl_readdir.
2530         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2531         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2532         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2533         memcpy to copy the name.
2534         * manual/pattern.texi (Calling Glob): Document requirements for
2535         implementations of the gl_readdir callback function.
2536         * manual/examples/mkdirent.c: New example.
2537         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2538         per the manual guidance.
2539         * posix/tst-gnuglob.c (my_readdir): Likewise.
2540
2541 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2542
2543         [BZ #20014]
2544         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2545         not [__USE_POSIX].
2546         (getchar_unlocked): Likewise.
2547         (putc_unlocked): Likewise.
2548         (putchar_unlocked): Likewise.
2549         (flockfile): Likewise.
2550         (ftrylockfile): Likewise.
2551         (funlockfile): Likewise.
2552         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2553         variable.
2554         (test-xfail-XPG4/stdio.h/conform): Likewise.
2555
2556         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2557         Expect constant.
2558         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2559         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2560         variable.
2561         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2562         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2563
2564         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2565         [__USE_LARGEFILE64] (off64_t): Likewise.
2566         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2567         variable.
2568
2569 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2570
2571         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2572
2573 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2574
2575         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2576         * resolv/res_init.c: Likewise.
2577         * resolv/res_mkquery.c: Likewise.
2578
2579 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2580
2581         * resolv/res_init.c (isascii): Do not define.  Use definition in
2582         <ctype.h>.
2583         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2584         (LOG_AUTH): Remove.
2585         (SPRINTF): Remove, adjust caller.
2586         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2587
2588 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2589
2590         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2591         SUNSECURITY conditional.
2592         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2593
2594 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2595
2596         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2597         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2598         Remove BSD-related preprocessor conditionals.
2599         * conf/portability.h: Remove.
2600
2601 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2602
2603         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2604         * resolv/res_data.c: Likewise.
2605
2606 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2607
2608         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2609         * resolv/res_data.c: Remove code conditional on ultrix.
2610
2611 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2612
2613         * resolv/res_init.c (RFC1535): Do not define.  Remove
2614         RFC1535 preprocessor conditionals.
2615         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2616         because there configuration options which make the resolver
2617         behavior different.
2618
2619 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2620
2621         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2622         RESOLVSORT preprocessor conditionals.
2623         * resolv/nss_dns/dns-host.c: Likewise.
2624         * resolv/res_init.c: Likewise.
2625
2626 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2627
2628         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2629         is never defined.
2630
2631 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2632
2633         * inet/inet_lnaof.c: Remove SCSS keyword.
2634         * inet/inet_mkadr.c: Likewise.
2635         * inet/inet_net.c: Likewise.
2636         * inet/inet_netof.c: Likewise.
2637         * inet/rcmd.c: Likewise.
2638         * inet/rexec.c: Likewise.
2639         * inet/ruserpass.c: Likewise.
2640
2641 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2642
2643         * resolv/inet_addr.c: Remove _LIBC conditionals.
2644         * resolv/res_data.c: Likewise.
2645         * resolv/res_init.c: Likewise.
2646         * resolv/res_mkquery.c: Likewise.
2647         * resolv/res_libc.c: Update comment.
2648         * resolv/README: Update.
2649
2650 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2651
2652         * resolv/gethnamaddr.c: Remove SCSS keyword.
2653         * resolv/herror.c: Likewise.
2654         * resolv/inet_addr.c: Likewise.
2655         * resolv/inet_net_ntop.c: Likewise.
2656         * resolv/inet_net_pton.c: Likewise.
2657         * resolv/inet_neta.c: Likewise.
2658         * resolv/inet_ntop.c: Likewise.
2659         * resolv/inet_pton.c: Likewise.
2660         * resolv/ns_date.c: Remove RCS keyword.
2661         * resolv/ns_name.c: Likewise.
2662         * resolv/ns_netint.c: Likewise.
2663         * resolv/ns_parse.c: Likewise.
2664         * resolv/ns_print.c: Likewise.
2665         * resolv/ns_samedomain.c: Likewise.
2666         * resolv/ns_ttl.c: Likewise.
2667         * resolv/nsap_addr.c: Likewise.
2668         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2669         * resolv/res_data.c: Remove RCS keyword.
2670         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2671         * resolv/res_init.c: Likewise.
2672         * resolv/res_mkquery.c: Likewise.
2673         * resolv/res_query.c: Likewise.
2674         * resolv/res_send.c: Likewise.
2675
2676 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2677
2678         * conform/data/stdio.h-data (fdopen): Expect also for
2679         [XPG3 || XPG4].
2680
2681         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2682         (fseeko): Likewise.
2683         (ftello): Likewise.
2684         (ftrylockfile): Likewise.
2685         (funlockfile): Likewise.
2686         (getc_unlocked): Likewise.
2687         (getchar_unlocked): Likewise.
2688         (putc_unlocked): Likewise.
2689         (putchar_unlocked): Likewise.
2690
2691 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2692
2693         [BZ #19868]
2694         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2695         DNS packet syntax checks (which were not needed before).  Skip
2696         over non-PTR records.
2697
2698 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2699
2700         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2701         definition.  Include <stddef.h> instead.
2702
2703 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2704
2705         [BZ #19831]
2706         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2707         function.
2708         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2709         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2710
2711 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2712
2713         [BZ #19862]
2714         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2715         (getanswer_r): Do not call syslog.
2716         (gaih_getanswer_slice): Likewise.
2717         * resolv/gethnamaddr.c (AskedForGot): Remove.
2718         (getanswer): Do not call syslog.
2719         (gethostbyaddr): Likewise.
2720
2721 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2722
2723         * conform/data/signal.h-data (union sigval): Expect also if
2724         [XOPEN2K].
2725         (struct sigevent): Likewise.
2726         (SIGEV_NONE): Likewise.
2727         (SIGEV_SIGNAL): Likewise.
2728         (SIGEV_THREAD): Likewise.
2729         (SIGRTMIN): Likewise.
2730         (SIGRTMAX): Likewise.
2731         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2732         variable.
2733         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2734
2735 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2736
2737         [BZ #19830]
2738         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2739         (gaih_getanswer_slice): Likewise.
2740         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2741         Also check for availability of RR metadata.
2742
2743 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2744
2745         [BZ #19825]
2746         * resolv/res_send.c (send_vc): Remove early *resplen2
2747         initialization.  Set *resplen2 on socket error.  Call
2748         close_and_return_error for other errors.
2749
2750 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2751
2752         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2753         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2754         (SCM_IUCV_TRGCLS): New define.
2755
2756 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2757
2758         [BZ #20005]
2759         * libio/fmemopen.c (fmemopen_write): Update internal position after
2760         write.
2761         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2762         * stdio-common/tst-fmemopen4.c: New file..
2763
2764 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
2765
2766         [BZ #19996]
2767         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
2768         not [__USE_XOPEN2K].
2769         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
2770         variable.
2771
2772         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
2773         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
2774         variable.
2775
2776         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
2777         [__USE_XOPEN2K8].
2778         [__USE_LARGEFILE64] (off64_t): Likewise.
2779         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
2780         variable.
2781
2782 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
2783
2784         [BZ #19989]
2785         * libio/stdio.h (cuserid): Do not declare if
2786         [__USE_XOPEN2K && !__USE_GNU].
2787         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
2788         variable.
2789
2790 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2791
2792         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2793         (sysdep_routines): Add P8 and PPC64 strcspn targets.
2794         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2795         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
2796         ifunc'ed strcspn.
2797         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
2798         [EALIGN]: Removed.
2799         [END]: Likewise
2800         [STRSPN]: Define instead of the above to control symbol name.
2801         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
2802         New file.
2803         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
2804         Likewise.
2805         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
2806         Likewise.
2807         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
2808         Likewise.
2809         * sysdeps/powerpc/powerpc64/power8/strspn.S:
2810         [INITIAL_MASK]: New macro.
2811         [STRCSPN]: Likewise.
2812         [UPDATE_MASK]: Likewise.
2813         [USE_AS_STRCSPN]: Lisewise.
2814
2815 2016-04-25  Florian Weimer  <fweimer@redhat.com>
2816
2817         [BZ #19931]
2818         * stdio-common/tst-vfprintf-width-prec.c: New file.
2819         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
2820         (tests-special): Add tst-vfprintf-width-prec-mem.out.
2821         (generated): Add mtrace-related files.
2822         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
2823         (tst-%-mem.out): New pattern rule, replaces
2824         tst-printf-bz18872-mem.out.
2825         * stdio-common/vfprintf.c (vfprintf): When handling a precision
2826         specifier, deallocate any previously allocated work buffer.
2827
2828 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2829
2830         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
2831         Add nop before __startcontext, add explaining comments.
2832
2833 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
2834
2835         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
2836         any more. Notably since IPV6_PKTINFO has been reintroduced with a
2837         completely different API.
2838
2839         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
2840         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
2841         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
2842         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
2843         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
2844         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
2845         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
2846         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
2847         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
2848         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2849
2850 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2851
2852         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2853
2854 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
2855
2856         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
2857         when it is the default of 0.
2858
2859 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2860
2861         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
2862         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2863         (sysdep_routines): Add new strcasestr targets.
2864         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2865         (__libc_ifunc_impl_list): Likewise.
2866         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
2867         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
2868         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
2869         * sysdeps/powerpc/powerpc64/power8/Makefile:
2870         New file to add strcasestr-ppc64 to sysdep_routines.
2871         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
2872         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
2873
2874 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
2875
2876         * benchtests/Makefile (wcsmbs-benchset): Include only for
2877         native builds and runs.
2878         (LOCALES): Likewise.
2879         (bench-build): Build timing-type here instead of the bench
2880         target.  Generate locale only for native builds.
2881         * benchtests/README: Add note for cross-building.
2882
2883         * benchtests/Makefile (bench-clean): Clean up extra-objs.
2884
2885         * benchtests/README: Update README to include instructions on
2886         using bench-build.
2887
2888         * Makefile.in (bench-build): New target.
2889         * Rules (PHONY): Add bench-build target.
2890         * benchtests/Makefile (bench): Depend on bench-build.
2891         (bench-build): New target.
2892
2893 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2894
2895         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
2896         profil_reply_port.
2897         (profile_waiter): Do not initialize profil_reply_port.
2898         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
2899         frequency instead of tick length in us.
2900
2901 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
2902
2903         [BZ #18712]
2904         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
2905         (__old_mempcpy_small): Likewise.
2906         (__old_strcpy_small): Likewise.
2907         (__old_stpcpy_small): Likewise.
2908         (__old_strpbrk_c2): Fix compat symbol name.
2909         (__old_strpbrk_c3): Likewise.
2910         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
2911         (__mempcpy_small): Remove.
2912         (__strcpy_small): Remove.
2913         (__stpcpy_small): Remove.
2914
2915 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
2916
2917         [BZ #19400]
2918         * locale/iso-639.def: Add the Talossan/tzl language.
2919
2920 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2921
2922         [BZ #16983]
2923         * locale/programs/ld-address.c (address_finish): Update postal_fmt
2924         comment.  Add "ln" to strchr check on postal_fmt.
2925
2926 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2927
2928         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
2929         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
2930         tel_dom_fmt.
2931
2932 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2933
2934         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2935         (sysdep_routines): Added __strlen_power8.
2936         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
2937         __strlen_power8 entry.
2938         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
2939         Implementation for POWER8.
2940         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
2941         for __strlen_power8.
2942         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
2943         Implementation for POWER8.
2944
2945 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
2946
2947         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
2948
2949 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
2950
2951         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
2952         Goldmont and Airmont processors.
2953
2954 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
2955
2956         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
2957         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
2958         (__STRING2_SMALL_GET32): Remove.
2959         (memset): Remove.
2960         (__memset_1): Remove.
2961         (__memset_gc): Remove.
2962         (__mempcpy): Remove.
2963         (mempcpy): Remove.
2964         (__mempcpy_args): Remove.
2965         (strchr): Remove.
2966         (strcpy): Remove.
2967         (strcpy_args): Remove.
2968         (__stpcpy_args): Remove.
2969         (__strcmp_cc): Remove.
2970         (__strcmp_gc): Remove.
2971         (strstr): Remove.
2972
2973 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
2974
2975         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
2976         * nis/nis_call.c (nis_server_cache_add): Likewise.
2977
2978 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2979
2980         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
2981
2982 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2983
2984         * malloc/arena.c (__malloc_fork_lock_parent)
2985         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
2986         internal_function attribute.
2987
2988 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
2989
2990         * stdio-common/printf_fp.c (__printf_fp_l):
2991         Rename ___printf_fp_l to __printf_fp_l and
2992         remove strong alias. Use libc_hidden_def instead
2993         of ldbl_hidden_def macro.
2994
2995 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2996
2997         Remove malloc hooks from fork handler.  They are no longer needed
2998         because malloc runs right before fork, and no malloc calls from
2999         other fork handlers are not possible anymore.
3000         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3001         declarations.
3002         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3003         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3004         (atfork_recursive_cntr): Remove.
3005         (__malloc_fork_lock_parent): Do not override malloc hooks and
3006         thread_arena.
3007         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3008         thread_arena.
3009         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3010         thread_arena instead of save_arena.
3011
3012 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3013
3014         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3015         (thread_atfork, thread_atfork_static): Remove.
3016         * sysdeps/mach/hurd/malloc-machine.h:
3017         (thread_atfork, thread_atfork_static): Remove.
3018
3019 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3020
3021         [BZ #19431]
3022         Run the malloc fork handler as late as possible to avoid deadlocks.
3023         * malloc/malloc-internal.h: New file.
3024         * malloc/malloc.c: Include it.
3025         * malloc/arena.c (ATFORK_MEM): Remove.
3026         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3027         Update comment.
3028         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3029         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3030         Remove outdated comment.
3031         (ptmalloc_init): Do not call thread_atfork.  Remove
3032         thread_atfork_static.
3033         * malloc/tst-malloc-fork-deadlock.c: New file.
3034         * Makefile (tests): Add tst-malloc-fork-deadlock.
3035         (tst-malloc-fork-deadlock): Link against libpthread.
3036         * manual/memory.texi (Aligned Memory Blocks): Update safety
3037         annotation comments.
3038         * sysdeps/nptl/fork.c (__libc_fork): Call
3039         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3040         __malloc_fork_unlock_child.
3041         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3042
3043 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3044
3045         [BZ #19613]
3046         Remove union wait.
3047         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3048         (w_stopsig, w_stopval): Remove.
3049         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3050         stat_loc argument.
3051         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3052         (__WAIT_STATUS_DEFN): Remove.
3053         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3054         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3055         (wait, wait3, wait4): Use int * for the stat_loc argument.
3056         * posix/wait.c (__wait): Likewise.
3057         * posix/wait3.c (__wait3): Likewise.
3058         * posix/wait4.c (__wait4): Likewise.
3059         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3060         (__WAIT_STATUS_DEFN): Remove.
3061         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3062         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3063         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3064         argument.
3065         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3066         * sysdeps/posix/wait3.c (__wait3): Likewise.
3067         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3068         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3069         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3070         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3071         stat_loc argument.
3072         * manual/process.texi (BSD Wait Functions): Remove union wait.
3073
3074 2016-04-13  Andreas Schwab  <schwab@suse.de>
3075
3076         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3077         (test-extras): Add tst-tlsalign-vars.
3078         * math/Makefile: Wrap long lines.
3079         (libm-vec-test-wrappers): Define.
3080         (test-extras): Add $(libm-vec-test-wrappers).
3081         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3082         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3083         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3084         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3085         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3086         (extra-test-objs): Add corresponding objects.
3087
3088 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3089
3090         [BZ #19928]
3091         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3092         New.
3093         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3094         times of shared cache size.
3095         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3096         (VMOVNT): New.
3097         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3098         (VMOVNT): Likewise.
3099         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3100         (VMOVNT): Likewise.
3101         (VMOVU): Changed to movups for smaller code sizes.
3102         (VMOVA): Changed to movaps for smaller code sizes.
3103         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3104         comments.
3105         (PREFETCH): New.
3106         (PREFETCH_SIZE): Likewise.
3107         (PREFETCHED_LOAD_SIZE): Likewise.
3108         (PREFETCH_ONE_SET): Likewise.
3109         Rewrite to use forward and backward loops, which move 4 vector
3110         registers at a time, to support overlapping addresses and use
3111         non temporal store if size is above the threshold and there is
3112         no overlap between destination and source.
3113
3114 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3115
3116         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3117         Include dl-vdso.
3118         * sysdeps/unix/sysv/linux/mips/Versions: Add
3119         __vdso_clock_gettime.
3120         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3121         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3122         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3123         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3124         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3125         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3126         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3127         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3128         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3129
3130 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3131
3132         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3133         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3134         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3135         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3136         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3137         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3140         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3141         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3142         syscalls generation.
3143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3144         [__NR_pwrite64] (__NR_write): Remove define.
3145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3146         [__NR_pwrite64] (__NR_write): Remove define.
3147         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3148         Remove define.
3149         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3150         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3151         Remove define.
3152         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3153         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3154         Linux implementation as base.
3155         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3156
3157         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3158         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3159         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3160         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3163         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3164         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3165         syscall generation.
3166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3167         [__NR_pread64] (__NR_pread): Remove define.
3168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3169         [__NR_pread64] (__NR_pread): Likewise.
3170         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3171         define.
3172         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3173         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3174         Remove define.
3175         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3176         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3177         Linux implementation as base.
3178         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3179         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3180         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3181
3182         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3183         definition.
3184         (__ALIGNMENT_COUNT): Likewise.
3185         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3186         (__ALIGNMENT_COUNT): Likewise.
3187         (SYSCALL_LL): New define.
3188         (SYSCALL_LL64): Likewise.
3189         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3190         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3191         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3192         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3193
3194         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3195         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3196         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3197         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3198         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3199         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3200
3201 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3202
3203         [BZ #19865]
3204         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3205         original buffer before retry.
3206
3207 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3208
3209         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3210         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3211         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3212         GLRO(dl_auxv) list.
3213         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3214         including <ldsodefs.h>.
3215         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3216
3217 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3218
3219         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3220         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3221         $(CPPFLAGS).
3222
3223 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3224
3225         [BZ #17950]
3226         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3227         Add -mfpmath=387.
3228
3229 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3230
3231         * sysdeps/i386/configure.ac: Change == to = when calling test.
3232         * sysdeps/x86_64/configure.ac: Likewise.
3233         * sysdeps/i386/configure: Regenerated.
3234         * sysdeps/x86_64/configure: Likewise.
3235
3236 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3237
3238         [BZ #16137]
3239         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3240         * benchtests/bench-strcoll.c (input_files): Likewise.
3241         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3242         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3243         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3244
3245 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3246
3247         [BZ #19929]
3248         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3249         [__USE_XOPEN2K8 && !__USE_GNU].
3250         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3251         variable.
3252
3253         [BZ #19925]
3254         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3255         define if [!__USE_MISC && __USE_XOPEN2K].
3256         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3257         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3258         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3259         Likewise.
3260         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3261         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3262         variable.
3263         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3264
3265 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3266
3267         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3268         (sysdep_routines): Add new strspn targets.
3269         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3270         (__libc_ifunc_impl_list): Add strspn.
3271         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3272         New file.
3273         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3274         Likewise.
3275         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3276         Likewise.
3277         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3278         Likewise.
3279
3280 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3281
3282         * misc/hsearch_r.c: Include <limits.h>.
3283
3284 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3285
3286         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3287
3288 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3289
3290         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3291         (MEMCPY_SYMBOL): New.
3292         (MEMPCPY_SYMBOL): Likewise.
3293         (MEMMOVE_CHK_SYMBOL): Likewise.
3294         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3295         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3296         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3297         Provide alias for memcpy in libc.a and ld.so.
3298
3299 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3300
3301         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3302         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3303         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3304         Disabled fro now.
3305         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3306         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3307
3308 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         * benchtests/Makefile (string-benchset): Add memcpy-large,
3311         memmove-large and memset-large.
3312         * benchtests/bench-memcpy-large.c: New file.
3313         * benchtests/bench-memmove-large.c: Likewise.
3314         * benchtests/bench-memmove-large.c: Likewise.
3315         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3316
3317 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3318
3319         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3320         32-bit displacement to avoid long nop between instructions.
3321
3322 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3323
3324         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3325         a comment on VMOVU and VMOVA.
3326
3327 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3328
3329         [BZ #19633]
3330         Use specified locale for number formatting in strfmon_l.
3331         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3332         (__nl_lookup_word): New inline functions.
3333         * include/printf.h (__print_fp_l): Declare.
3334         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3335         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3336         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3337         (___printf_fp): New function.
3338         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3339         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3340         * stdlib/tst-strfmon_l.c (do_test): New test.
3341         * stdlib/Makefile (tests): Add kt.
3342         (LOCALES): Build additional locales.
3343         (tst-strfmon_l.out): Require locales.
3344
3345 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3346
3347         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3348         if not in libc.
3349         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3350         Likewise.
3351         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3352         Likewise.
3353         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3354         Likewise.
3355
3356 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3357
3358         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3359         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3360         with unaligned_erms.
3361         (__memmove_erms): Skip if source == destination.
3362         (__memmove_unaligned_erms): Don't check source == destination
3363         first.
3364
3365 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3366
3367         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3368         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3369
3370 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3371
3372         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3373         * string/strspn.c (strspn): Likewise.
3374
3375 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3376
3377         * benchtests/bench-memset.c (do_test): Support 64-byte
3378         alignment.
3379         (test_main): Test 64-byte alignment.
3380
3381 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3382
3383         * benchtests/bench-memmove.c (test_main): Test 64-byte
3384         alignment.
3385
3386 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3387
3388         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3389
3390 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3391
3392         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3393         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3394         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3395
3396         * string/strpbrk.c (strpbrk): Rewrite function.
3397         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3398         (__strpbrk_c2): Likewise.
3399         (__strpbrk_c3): Likewise.
3400         * string/string-inlines.c
3401         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3402         Likewise.
3403         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3404         Likewise.
3405
3406         * string/strspn.c (strcspn): Rewrite function.
3407         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3408         (__strspn_c1): Remove inline function.
3409         (__strspn_c2): Likewise.
3410         (__strspn_c3): Likewise.
3411         * string/string-inlines.c
3412         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3413         compatibility symbol.
3414         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3415         Likewise.
3416         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3417         Likewise.
3418         * string/string-inlines.c: Include generic version.
3419
3420 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3421             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3422
3423         * string/Version (libc): Add GLIBC_2.24.
3424         * string/strcspn.c (strcspn): Rewrite function.
3425         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3426         (__strcspn_c1): Remove inline function.
3427         (__strcspn_c2): Likewise.
3428         (__strcspn_c3): Likewise.
3429         * string/string-inline.c
3430         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3431         compatibility symbol.
3432         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3433         Likewise.
3434         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3435         Likewise.
3436         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3437
3438 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3439
3440         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3441         Use ahi instead of aghi to adjust stack pointer.
3442
3443 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3444
3445         [BZ #19853]
3446         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3447         TEST to take significant digits as second parameter.
3448         [TEST]: Redefine in terms of TEST_N taking 30
3449         significant digits.
3450         (do_test): Add test case to demonstrate precision
3451         failure in the ldbl-128ibm printf.
3452         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3453         (__mpn_extract_long_double): Carry 7 extra intermediate
3454         bits of precision to aide computing difference when
3455         signs differ.
3456
3457 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3458
3459         [BZ #19881]
3460         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3461         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3462         memset-avx512-unaligned-erms.
3463         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3464         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3465         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3466         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3467         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3468         __memset_sse2_unaligned_erms, __memset_erms,
3469         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3470         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3471         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3472         file.
3473         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3474         Likewise.
3475         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3476         Likewise.
3477         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3478         Likewise.
3479
3480 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3481
3482         [BZ #19776]
3483         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3484         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3485         memmove-avx512-unaligned-erms.
3486         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3487         (__libc_ifunc_impl_list): Test
3488         __memmove_chk_avx512_unaligned_2,
3489         __memmove_chk_avx512_unaligned_erms,
3490         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3491         __memmove_chk_sse2_unaligned_2,
3492         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3493         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3494         __memmove_avx512_unaligned_erms, __memmove_erms,
3495         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3496         __memcpy_chk_avx512_unaligned_2,
3497         __memcpy_chk_avx512_unaligned_erms,
3498         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3499         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3500         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3501         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3502         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3503         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3504         __mempcpy_chk_avx512_unaligned_erms,
3505         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3506         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3507         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3508         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3509         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3510         __mempcpy_erms.
3511         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3512         file.
3513         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3514         Likwise.
3515         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3516         Likwise.
3517         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3518         Likwise.
3519
3520 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3521
3522         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3523         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3524         (La_s390_64_regs): Likewise.
3525         (La_s390_32_retval): Append vector register lrv_v24.
3526         (La_s390_64_retval): Likeweise.
3527         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3528         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3529         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3530         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3531
3532 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3533
3534         [BZ #19916]
3535         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3536         to create a non-vector/vector version for _dl_runtime_resolve and
3537         _dl_runtime_profile. Move implementation to ...
3538         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3539         (_dl_runtime_resolve) Save and restore fpr/vrs.
3540         (_dl_runtime_profile) Save and restore vrs and fix some issues
3541         if _dl_call_pltexit is called.
3542         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3543         Choose the correct resolver function if running on a machine with vx.
3544         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3545         to create a non-vector/vector version for _dl_runtime_resolve and
3546         _dl_runtime_profile. Move implementation to ...
3547         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3548         (_dl_runtime_resolve) Save and restore fpr/vrs.
3549         (_dl_runtime_profile) Save and restore vrs and fix some issues
3550         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3551         Choose the correct resolver function if running on a machine with vx.
3552
3553 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3554
3555         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3556
3557 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3558
3559         [BZ #19509]
3560         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3561         skip_map != NULL.
3562         * elf/tst-dlsym-error.c: New file.
3563         * elf/Makefile (tests): Add tst-dlsym-error.
3564         (tst-dlsym-error): Link against libdl.
3565
3566 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3567
3568         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3569         (__ASSUME_FUTIMESAT): Remove macro.
3570         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3571
3572 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3573
3574         [BZ #19879]
3575         CVE-2016-3075
3576         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3577         copy name.
3578
3579 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3580
3581         [BZ #19837]
3582         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3583         error if parse_line fails.
3584
3585 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3586
3587         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3588         (index_cpu_ERMS): Likewise.
3589         (reg_ERMS): Likewise.
3590
3591 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3592
3593         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3594         PER_LINUX_FDPIC): Add.
3595
3596 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3597
3598         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3599         memcpy-avx512-no-vzeroupper.
3600         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3601         to ...
3602         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3603         (MEMCPY): Don't define.
3604         (MEMCPY_CHK): Likewise.
3605         (MEMPCPY): Likewise.
3606         (MEMPCPY_CHK): Likewise.
3607         (MEMPCPY_CHK): Renamed to ...
3608         (__mempcpy_chk_avx512_no_vzeroupper): This.
3609         (MEMPCPY_CHK): Renamed to ...
3610         (__mempcpy_chk_avx512_no_vzeroupper): This.
3611         (MEMCPY_CHK): Renamed to ...
3612         (__memmove_chk_avx512_no_vzeroupper): This.
3613         (MEMCPY): Renamed to ...
3614         (__memmove_avx512_no_vzeroupper): This.
3615         (__memcpy_avx512_no_vzeroupper): New alias.
3616         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3617
3618 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3619
3620         [BZ #18858]
3621         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3622         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3623         and mempcpy-avx512-no-vzeroupper.
3624         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3625         New.
3626         (MEMPCPY): Likewise.
3627         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3628         (MEMPCPY_CHK): New.
3629         (MEMPCPY): Likewise.
3630         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3631         (MEMPCPY): Likewise.
3632         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3633         (MEMPCPY): Likewise.
3634         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3635         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3636         Likewise.
3637         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3638         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3639
3640 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3641              Amit Pawar  <Amit.Pawar@amd.com>
3642
3643         [BZ #19583]
3644         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3645         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3646         processors.  Set Fast_Copy_Backward for AMD Excavator
3647         processors.
3648         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3649         New.
3650         (index_arch_Fast_Unaligned_Copy): Likewise.
3651         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3652         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3653
3654 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3655
3656         [BZ #19791]
3657         * resolv/res_send.c (close_and_return_error): New function.
3658         (send_dg): Initialize *resplen2 after reopen failure.  Call
3659         close_and_return_error for error returns.  On error paths without
3660         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3661         successful return.
3662
3663 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3664
3665         [BZ# 19860]
3666         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3667         zero if the compiler does not provide the AVX512F bit.
3668
3669 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3670
3671         [BZ #19848]
3672         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3673         from 8 to 4.
3674         (__ieee754_powl): Compare integer exponent against 4 not 8.
3675         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3676         from 8 to 4.
3677         (__ieee754_powl): Compare integer exponent against 4 not 8.
3678         * math/auto-libm-test-in: Add more tests of pow.
3679         * math/auto-libm-test-out: Regenerated.
3680         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3682
3683 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3684
3685         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3686         Make code unconditional.
3687         [!__NR_utimensat]: Remove conditional code.
3688         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3689         Make code unconditional.
3690         [!__NR_utimensat]: Remove conditional code.
3691         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3692         Make code unconditional.
3693         [!__NR_utimensat]: Remove conditional code.
3694
3695 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3696
3697         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3698         Make code unconditional.
3699
3700 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3701
3702         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3703         call-clobbered %eax on retry path.
3704         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3705
3706 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3707
3708         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3709         Don't set %rcx twice before "rep movsb".
3710
3711 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         [BZ #19583]
3714         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3715         inline.  Check family before setting family, model and
3716         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3717         bits here.
3718         (init_cpu_features): Replace HAS_CPU_FEATURE and
3719         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3720         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3721         for Intel processors with usable AVX2.  Call get_common_indeces
3722         for other processors with family == NULL.
3723         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3724         (CPU_FEATURES_ARCH_P): Likewise.
3725         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3726         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3727
3728 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3729
3730         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3731         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3732         $(shared-thread-library) instead of hardcoding the path to libpthread.
3733
3734 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3735
3736         * sysdeps/unix/sysv/linux/kernel-features.h
3737         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3738         * sysdeps/unix/sysv/linux/getdents.c
3739         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3740         [!have_no_getdents64_defined]: Likewise.
3741         (__GETDENTS): Remove __have_no_getdents64 conditional.
3742
3743 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3744
3745         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3746         Remove macro.
3747         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3748         <kernel-features.h>.
3749         (signalfd) [__NR_signalfd4]: Make code unconditional.
3750         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3751
3752 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3753
3754         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3755         style.
3756
3757 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3758
3759         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3760         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3761         __pthread_unwind.
3762         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3763         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
3764         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
3765         (__condvar_cleanup1): Likewise.
3766
3767 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
3768
3769         [BZ #19822]
3770         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
3771         move it to the final $@ location.
3772
3773 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3774
3775         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
3776         access where posix_spawn success and pid argument is null.
3777         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
3778         success case.
3779
3780 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
3781
3782         * sysdeps/mach/hurd/i386/c++-types.data: New file.
3783
3784         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
3785
3786         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
3787         and __fcntl.
3788         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
3789         __fcntl only.
3790         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
3791         adding attribute_hidden to __open and __fcntl.
3792
3793         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
3794         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
3795         depend on libc-modules.h,
3796         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
3797
3798 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
3799
3800         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
3801         Remove macro.
3802         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
3803         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
3804         entry.
3805
3806         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
3807         Remove macro.
3808         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
3809         include <kernel-features.h>.
3810         [!__ASSUME_FALLOCATE]: Remove conditional code.
3811         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
3812
3813 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3814
3815         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
3816         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
3817         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
3818         (_ZGVdN4v_cos_avx2): Likewise.
3819         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
3820         (_ZGVdN4v_cos): Likewise.
3821         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
3822         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
3823         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
3824         (_ZGVdN4v_exp_avx2): Likewise.
3825         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
3826         (_ZGVdN4v_exp): Likewise.
3827         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
3828         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
3829         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
3830         (_ZGVdN4v_log_avx2): Likewise.
3831         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
3832         (_ZGVdN4v_log): Likewise.
3833         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
3834         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
3835         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
3836         (_ZGVdN4vv_pow_avx2): Likewise.
3837         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
3838         (_ZGVdN4vv_pow): Likewise.
3839         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
3840         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
3841         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
3842         (_ZGVdN4v_sin_avx2): Likewise.
3843         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
3844         (_ZGVdN4v_sin): Likewise.
3845         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
3846         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
3847         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
3848         (_ZGVdN4vvv_sincos_avx2): Likewise.
3849         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
3850         (_ZGVdN4vvv_sincos): Likewise.
3851         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
3852         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
3853         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
3854         (_ZGVbN4v_cosf_sse4): Likewise.
3855         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
3856         (_ZGVdN8v_cosf_avx2): Likewise.
3857         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
3858         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
3859         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
3860         (_ZGVbN4v_expf_sse4): Likewise.
3861         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
3862         (_ZGVdN8v_expf_avx2): Likewise.
3863         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
3864         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
3865         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
3866         (_ZGVbN4v_logf_sse4): Likewise.
3867         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
3868         (_ZGVdN8v_logf_avx2): Likewise.
3869         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
3870         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
3871         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
3872         (_ZGVbN4vv_powf_sse4): Likewise.
3873         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
3874         (_ZGVdN8vv_powf_avx2): Likewise.
3875         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
3876         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
3877         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
3878         (_ZGVbN4vvv_sincosf_sse4): Likewise.
3879         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
3880         (_ZGVdN8vvv_sincosf_avx2): Likewise.
3881         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
3882         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
3883         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
3884         (_ZGVbN4v_sinf_sse4): Likewise.
3885         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
3886         (_ZGVdN8v_sinf_avx2): Likewise.
3887         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3888         Use JUMPTARGET to call callee.
3889         (WRAPPER_IMPL_SSE2_ff): Likewise.
3890         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3891         (WRAPPER_IMPL_AVX): Likewise.
3892         (WRAPPER_IMPL_AVX_ff): Likewise.
3893         (WRAPPER_IMPL_AVX_fFF): Likewise.
3894         (WRAPPER_IMPL_AVX512): Likewise.
3895         (WRAPPER_IMPL_AVX512_ff): Likewise.
3896         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3897         Likewise.
3898         (WRAPPER_IMPL_SSE2_ff): Likewise.
3899         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3900         (WRAPPER_IMPL_AVX): Likewise.
3901         (WRAPPER_IMPL_AVX_ff): Likewise.
3902         (WRAPPER_IMPL_AVX_fFF): Likewise.
3903         (WRAPPER_IMPL_AVX512): Likewise.
3904         (WRAPPER_IMPL_AVX512_ff): Likewise.
3905         (WRAPPER_IMPL_AVX512_fFF): Likewise.
3906
3907 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3908
3909         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
3910         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
3911         qualifier.
3912         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
3913         internal_function qualifiers.
3914
3915 2016-03-15  Carlos O'Donell <carlos@redhat.com>
3916
3917         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
3918         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
3919         * math/atest-exp.c (exp_mpn): Mark chk unused.
3920         * math/atest-exp2.c (exp_mpn): Likwise.
3921         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
3922         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
3923
3924 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
3925
3926         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
3927         Remove macro.
3928         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
3929         <kernel-features.h>.
3930         [__NR_ppoll]: Make code unconditional.
3931         [!__ASSUME_PPOLL]: Remove conditional code.
3932
3933         * sysdeps/unix/sysv/linux/kernel-features.h
3934         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
3935         (__ASSUME_ACCEPT4): Likewise.
3936         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3937         Define.
3938         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
3939         Likewise.
3940         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3941         Likewise.
3942         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
3943         Likewise.
3944         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
3945         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
3946         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3947         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3948         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3949         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3950         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3951         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3952         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3953         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3954         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3955         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3956         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3957         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3958         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3959         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3960         Likewise.
3961         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3962         Likewise.
3963         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3964         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3965         0x040300].
3966         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3967         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3968         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3969         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3970         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3971         0x030300].
3972         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
3973         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3974         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3975         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3976         0x040300].
3977         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3978         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3979         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3980         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3981         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3982         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3983         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3984         0x030300].
3985         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3986         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3987         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3988         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3989         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3990         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3991         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3992         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3993         * sysdeps/unix/sysv/linux/s390/kernel-features.h
3994         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3995         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3996         0x040300].
3997         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3998         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3999         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4000         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4001         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4002         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4003         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4004         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4005         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4006         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4007         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4008         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4009         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4010         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4011         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4012         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4013         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4014         Likewise.
4015         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4016         Likewise.
4017
4018 2016-03-15  Andreas Schwab  <schwab@suse.de>
4019
4020         [BZ #19257]
4021         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4022         statp->_u._ext.nscount as loop count.
4023
4024 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4025
4026         * math/test-signgam-finite-c99.c: Also #undef
4027         __LIBC_INTERNAL_MATH_INLINES.
4028         * math/test-signgam-main.c: Likewise.
4029
4030 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4031
4032         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4033         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4034         (MADV_FREE): Likewise.
4035         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4036         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4037         EPOLLEXCLUSIVE.
4038
4039 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4040
4041         * timezone/README: Remove mention of checktab.awk. Mention wiki
4042         SharedSourceFiles.
4043
4044 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4045
4046         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4047         WUNTRACED.
4048
4049 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4050
4051         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4052         order to match the type of p when calling atomic_exchange_acq().
4053
4054 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4055
4056         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4057         cfi_offset calls.
4058         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4059         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4060         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4061         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4062         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4063
4064 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4065
4066         * timezone/checktab.awk: Removed.
4067
4068 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4069
4070         * manual/math.texi (Errors in Math Functions): Document relaxed
4071         accuracy goals for IBM long double.
4072         * math/libm-test.inc (test_exceptions): Always allow spurious
4073         "underflow" and "inexact" exceptions for IBM long double.
4074
4075 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4076
4077         [BZ #19762]
4078         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4079         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4080         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4081         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4082         (bit_arch_*): This for feature array.
4083         (bit_*): Renamed to ...
4084         (bit_cpu_*): This for cpu array.
4085         (index_*): Renamed to ...
4086         (index_arch_*): This for feature array.
4087         (index_*): Renamed to ...
4088         (index_cpu_*): This for cpu array.
4089         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4090         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4091         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4092         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4093         bit_##name with index_cpu_##name and bit_cpu_##name.
4094         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4095         bit_##name with index_arch_##name and bit_arch_##name.
4096
4097 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4098
4099         [BZ #19792]
4100         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4101         Terminate FDE before return label.
4102
4103 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4104
4105         [BZ #19790]
4106         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4107         (rintl): Define as macro.
4108         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4109         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4110         of fesetround.  Ensure results are evaluated before end of scope.
4111         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4112         USE_AS_NEARBYINTL and include s_rintl.c.
4113         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4114         Disable exception traps in new environment.
4115         (libc_feholdsetround_ppc_ctx): Likewise.
4116
4117 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4118
4119         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4120         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4121         (tst_audit10_aux) [__AVX512F__]: ... here.
4122
4123 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4124
4125         * include/sys/auxv.h: New file.
4126
4127 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4128
4129         [BZ #19759]
4130         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4131
4132 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4133
4134         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4135         operand modifier.
4136         (feclearexcept): Likewise.
4137
4138 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4139
4140         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4141         to reflect the entire 32-bit HWCAP.
4142         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4143         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4144
4145 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4146
4147         [BZ #19783]
4148         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4149         $(test-via-rtld-prefix).
4150         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4151
4152 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4153
4154         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4155         union wait.  Report any non-zero exit status as error.
4156
4157 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4158
4159         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4160         configured with --enable-hardcoded-path-in-tests.
4161
4162 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4163
4164         [BZ #19677]
4165         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4166         (__ieee754_remainderl): Put zero low parts in canonical form.
4167         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4168         file.  Based on
4169         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4170         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4171         with wrapper round test-fmodrem-ldbl-128ibm.c.
4172         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4173         file.
4174         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4175         Likewise.
4176         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4177         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4178
4179 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4180
4181         [BZ #19610]
4182         * elf/ldconfig.c (opt_link): Update comment.
4183         (options): Update help string for option -X.
4184         (search_dir): Unlink stale symbolic link only if updating symbolic
4185         links.
4186         * elf/tst-ldconfig-X.sh: New file.
4187         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4188         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4189
4190 2016-03-07  Andreas Schwab  <schwab@suse.de>
4191
4192         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4193         needed arguments.
4194
4195 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4196
4197         [BZ #15333]
4198         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4199         to lstat64.
4200
4201 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4202
4203         * libio/filedoalloc.c (isatty): Remove.
4204         (local_isatty): Add comment.  Call __isatty directly.
4205         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4206         * libio/wfiledoalloc.c (isatty): Remove.
4207         (_IO_wfile_doallocate): Update comment.
4208
4209 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4210
4211         [BZ #19269]
4212         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4213         tst-audit4-aux.o.
4214         (tst-audit10): Depend on tst-audit10-aux.o.
4215         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4216         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4217         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4218         instead of inline AVX code.
4219         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4220         instead of inline AVX512 code.
4221         * sysdeps/x86_64/tst-audit4-aux.c: New file
4222         * sysdeps/x86_64/tst-audit10-aux.c: New file
4223
4224         [BZ #19648]
4225         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4226
4227 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4228
4229         [BZ #14750]
4230         [BZ #10354]
4231         [BZ #18433]
4232         * include/sched.h (__clone): Add hidden prototype.
4233         (__clone2): Likewise.
4234         * include/unistd.h (__dup): Likewise.
4235         * posix/Makefile (tests): Add tst-spawn2.
4236         * posix/tst-spawn2.c: New file.
4237         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4238         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4239         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4240         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4241         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4242         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4243         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4244         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4245         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4246         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4247         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4249         Likewise.
4250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4251         Likewise.
4252         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4253         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4254         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4255         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4256         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4257         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4258         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4259         * sysdeps/unix/sysv/linux/nptl-signals.h
4260         (____nptl_is_internal_signal): New function.
4261         * sysdeps/unix/sysv/linux/spawni.c: New file.
4262
4263         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4264         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4265         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4266         * posix/tst-execvp2.c (do_test): Likewise.
4267         * posix/tst-execvp3.c (do_test): Likewise.
4268         * posix/tst-execvp4.c (do_test): Likewise.
4269         * posix/tst-execvpe1.c: New file.
4270         * posix/tst-execvpe2.c: Likewise.
4271         * posix/tst-execvpe3.c: Likewise.
4272         * posix/tst-execvpe4.c: Likewise.
4273         * posix/tst-execvpe5.c: Likewise.
4274         * posix/tst-execvpe6.c: Likewise.
4275
4276         [BZ #19534]
4277         * posix/execl.c (execl): Remove dynamic memory allocation.
4278         * posix/execle.c (execle): Likewise.
4279         * posix/execlp.c (execlp): Likewise.
4280
4281 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4282
4283         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4284         Replace .text with .text.avx512.
4285         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4286         Likewise.
4287
4288 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4289
4290         * sysdeps/generic/libnsl.abilist: New file.
4291         * sysdeps/generic/libutil.abilist: New file.
4292
4293 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4294
4295         [BZ #19762]
4296         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4297         HAS_ARCH_FEATURE with Fast_Rep_String.
4298         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4299         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4300         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4301         Likewise.
4302         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4303         Likewise.
4304         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4305         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4306         Likewise.
4307         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4308         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4309         Likewise.
4310
4311 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4312
4313         [BZ #19745]
4314         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4315         with *%rax in call.
4316
4317 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4318
4319         [BZ #19745]
4320         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4321         with *__libc_start_main@GOTPCREL(%rip) in call.
4322
4323 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4324
4325         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4326         inside conditional for nonempty $(CXX).
4327
4328         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4329         nonempty.
4330
4331         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4332         to test for empty $(CXX) rather than $(CXX) of "no".
4333
4334 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4335
4336         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4337
4338 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4339             H.J. Lu  <hongjiu.lu@intel.com>
4340
4341         [BZ #18880]
4342         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4343         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4344         enable __memcpy_ssse3_back.
4345
4346 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4347
4348         [BZ #19758]
4349         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4350         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4351
4352 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4353
4354         [BZ #19490]
4355         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4356         (__fentry__): Likewise.
4357
4358 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4359
4360         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4361         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4362
4363 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4364
4365         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4366         __mcount_internal directly.
4367         (C_LABEL(__fentry__)): Likewise.
4368         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4369         directly.
4370
4371 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4372
4373         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4374         (__start_context): Call __setcontext directly.
4375
4376 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4377
4378         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4379         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4380         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4381         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4382         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4383         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4384         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4385         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4386         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4387         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4388         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4389         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4390         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4391         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4392         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4393         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4394         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4395         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4396         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4397         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4398         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4399         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4400         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4401         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4402         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4403         Remove conditional code.
4404         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4405         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4406         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4407         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4408         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4409         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4410         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4411         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4412         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4413         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4414         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4415         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4416
4417 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4418
4419         * NEWS (2.23): Fix typo in bug 19048 text.
4420
4421 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4422
4423         [BZ #14259]
4424         * Makeconfig: Rename msgcatdir to localedir.
4425         Rename inst_msgcatdir to inst_localedir.
4426         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4427         * config.make.in: Add localedir.
4428         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4429         (ldd-rewrite): Likewise.
4430         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4431         (install-others): Use inst_localedir.
4432         (CPPFLAGS): Use localedir.
4433         * locale/Makefile (locale-CPPFLAGS): Likewise.
4434         * po/Makefile (mo-installed): Use inst_localedir.
4435
4436         [BZ #19575]
4437         * localedata/charmaps/GB18030: Update comments regarding PAU to
4438         non-PUA mappings.
4439
4440 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4441
4442         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4443         test for header.
4444         * sysdeps/unix/sysv/linux/configure: Regenerated.
4445         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4446         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4447         Remove conditional code.
4448         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4449
4450         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4451         Define to 3.2.0.
4452         (arch_minimum_kernel): Likewise.
4453         * sysdeps/unix/sysv/linux/configure: Regenerated.
4454         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4455         Define to 2.6.32.
4456         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4457         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4458         (arch_minimum_kernel): Define to 2.6.32.
4459         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4460         * README: Document Linux 3.2 requirement.
4461         * manual/install.texi (Linux): Document Linux 3.2 headers
4462         requirement.
4463         * INSTALL: Regenerated.
4464
4465 2016-02-24  Andreas Schwab  <schwab@suse.de>
4466
4467         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4468         if !NO_LONG_DOUBLE.
4469
4470 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4471
4472         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4473         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4474
4475 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4476
4477         [BZ #19512]
4478         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4479
4480 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4481
4482         * posix/tst-dir.c: Include libc-internal.h.
4483
4484 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4485
4486         [BZ #19056]
4487         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4488         * manual/filesys.texi (Reading/Closing Directory): Mention
4489         deprecaion.
4490         * posix/tst-dir.c (main): Disable deprecation warning in test.
4491
4492 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4493
4494         [BZ #19679]
4495         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4496         Renamed to ...
4497         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4498         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4499         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4500         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4501         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4502         * sysdeps/x86_64/dl-trampoline.h
4503         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4504         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4505
4506 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4507
4508         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4509
4510 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4511
4512         * elf/elf.h (R_386_GOT32X): New.
4513         (R_386_NUM): Update.
4514         (R_X86_64_GOTPCRELX: New.
4515         (R_X86_64_REX_GOTPCRELX): New.
4516         (R_X86_64_NUM): Update.
4517
4518 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4519
4520         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4521
4522 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4523
4524         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4525         assign attr->stackaddr to it, and adjust it down when
4526         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4527         [_STACK_GROWS_UP]: Delete assert.
4528         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4529         Implement stack grows up logic.
4530         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4531         stack grows up logic.
4532
4533 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4534
4535         * NEWS: Update with 2.24 template.
4536
4537 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4538
4539         [BZ #19678]
4540         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4541         Ensure +0.0 is returned when taking the next value below the least
4542         positive value.
4543
4544 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4545
4546         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4547         available.  Do not define NO_THREADS.
4548         * malloc/malloc.c: Do not check NO_THREADS.
4549         * malloc/arena.c: Likewise.
4550
4551 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4552
4553         * malloc/malloc.c (__libc_mallinfo): Update comment.
4554         (struct malloc_par): Remove max_total_mem member, it was always 0.
4555         (int_mallinfo): Store 0 into usmblks (no functional change).
4556         * malloc/hooks.c (struct malloc_state): Document that
4557         max_total_mem is always 0.
4558         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4559         always 0.
4560         * manual/memory.texi (Statistics of Malloc): Likewise.
4561
4562 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4563
4564         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4565         * malloc/arena.c (arena_max): Remove.
4566         (heap_trim, _int_new_arena): Do not update arena_max.
4567
4568 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4569
4570         * resolv/res_init.c (res_ninit): Update comment.
4571
4572 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4573
4574         [BZ #19505]
4575         * posix/spawn_int.h: Add headers and include guard.
4576         (__spawn_valid_fd): New function.
4577         * posix/spawn_faction_addopen.c
4578         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4579         * posix/spawn_faction_addclose.c
4580         (posix_spawn_file_actions_addclose): Likewise.
4581         * posix/spawn_faction_adddup2.c
4582         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4583         second file descriptor.
4584         * posix/spawn_valid_fd.c: New file.
4585         * posix/tst-posix_spawn-fd.c: New file.
4586         * posix/Makefile (routines): Add spawn_valid_fd.
4587         (tests): Add tst-posix_spawn-fd.
4588
4589 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4590
4591         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4592         (do_test): Limit the number of arenas, so that we can use fewer
4593         outer threads.  Limit timeout to 3 seconds, in preparation for a
4594         larger TIMEOUT value.
4595
4596 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4597
4598         [BZ #19674]
4599         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4600         sign in overflowing and underflowing results when overflow or
4601         underflow is detected early.  Include sign in result before rather
4602         than after scaling.
4603
4604         [BZ #19603]
4605         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4606         (__ieee754_remainderl): Adjust sign of integer version of low part
4607         when taking absolute value of high part.
4608         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4609         * math/libm-test.inc (remainder_test_data): Add another test.
4610         (remquo_test_data): Likewise.
4611
4612 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4613
4614         [BZ #19602]
4615         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4616         equal high parts and both low parts zero specially.
4617         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4618         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4619         Add test-fmodl-ldbl-128ibm.
4620
4621         [BZ #19595]
4622         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4623         common logic for all cases of shifting subnormal results.  Do not
4624         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4625         exponent to ldbl_insert_mantissa in subnormal case.
4626
4627         [BZ #19594]
4628         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4629         on high and low parts then adjust result and use
4630         ldbl_canonicalize_int if needed.
4631
4632         [BZ #19593]
4633         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4634         on high part and __floor or __ceil on low part then use
4635         ldbl_canonicalize_int if needed.
4636
4637         [BZ #19592]
4638         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4639         high and low parts then use ldbl_canonicalize_int if needed.
4640
4641         [BZ #17899]
4642         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4643         New function.
4644         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4645         on high and low parts then use ldbl_canonicalize_int if needed.
4646
4647 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4648
4649         * configure: Regenerated.
4650
4651         * po/libc.pot: Regenerated.
4652
4653         * po/be.po: Updated translation.
4654         * po/bg.po: Likewise.
4655         * po/ca.po: Likewise.
4656         * po/cs.po: Likewise.
4657         * po/da.po: Likewise.
4658         * po/el.po: Likewise.
4659         * po/eo.po: Likewise.
4660         * po/es.po: Likewise.
4661         * po/fi.po: Likewise.
4662         * po/fr.po: Likewise.
4663         * po/gl.po: Likewise.
4664         * po/hr.po: Likewise.
4665         * po/hu.po: Likewise.
4666         * po/ia.po: Likewise.
4667         * po/id.po: Likewise.
4668         * po/it.po: Likewise.
4669         * po/ja.po: Likewise.
4670         * po/lt.po: Likewise.
4671         * po/nb.po: Likewise.
4672         * po/nl.po: Likewise.
4673         * po/pt_BR.po: Likewise.
4674         * po/rw.po: Likewise.
4675         * po/sk.po: Likewise.
4676         * po/sl.po: Likewise.
4677         * po/sv.po: Likewise.
4678         * po/tr.po: Likewise.
4679         * po/zh_CN.po: Likewise.
4680         * po/zh_TW.po: Likewise.
4681
4682         * version.h (RELEAES): Set to "development".
4683         (VERSION): Set to 2.23.90.
4684
4685         * version.h (RELEASE): Set to "stable".
4686         (VERSION): Set to 2.23.
4687         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4688
4689         * NEWS: Updated fixed bugs.
4690
4691 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4692             Wilco Dijkstra  <wdijkstr@arm.com>
4693
4694         [BZ #19462]
4695         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4696         (_STRING_INLINE_unaligned): This.
4697         * include/string.h: Include <string_private.h>.
4698         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4699         _STRING_INLINE_unaligned.
4700         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4701         (_STRING_INLINE_unaligned): New.
4702         * sysdeps/aarch64/string_private.h: New file.
4703         * sysdeps/generic/string_private.h: Likewise.
4704         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4705         * sysdeps/s390/string_private.h: Likewise.
4706         * sysdeps/x86/string_private.h: Likewise.
4707         * sysdeps/m68k/m680x0/m68020/bits/string.h
4708         (_STRING_ARCH_unaligned): Renamed to ...
4709         (_STRING_INLINE_unaligned): This.
4710         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4711         to ...
4712         (_STRING_INLINE_unaligned): This.
4713         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4714         to ...
4715         (_STRING_INLINE_unaligned): This.
4716         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4717         to ...
4718         (_STRING_INLINE_unaligned): This.
4719
4720 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4721             H.J. Lu  <hongjiu.lu@intel.com>
4722
4723         [BZ #19590]
4724         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4725         relocation.
4726
4727 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4728
4729         [BZ #18665]
4730         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4731         *herrno_p.
4732         (gaih_getanswer): Document functional behviour. Return tryagain
4733         if any result is tryagain.
4734         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4735         when freed.
4736         * resolv/res_send.c: Add copyright text.
4737         (__libc_res_nsend): Document that MAXPACKET is expected.
4738         (send_vc): Document. Remove buffer reuse.
4739         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4740         size of the buffer. Add Dprint for truncated UDP buffer.
4741
4742 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4743
4744         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4745         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4746         * INSTALL: Regenerate.
4747
4748 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4749             Jonathan Wakely  <jwakely@redhat.com>
4750             Carlos O'Donell  <carlos@redhat.com>
4751
4752         [BZ 19439]
4753         * math/Makefile (tests): Add test-math-isinff.
4754         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4755         * math/bits/mathcalls.h [__USE_MISC]: Use
4756         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4757         functions not in C++11 and which don't conflict e.g. isinff,
4758         isinfl etc.
4759         * math/test-math-isinff.cc: New file.
4760
4761 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4762
4763         * misc/bug18240.c (do_test): Set RLIMIT_AS.
4764
4765 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4766
4767         [BZ #19529]
4768         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
4769
4770 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4771
4772         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4773
4774 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
4775
4776         [BZ #19550]
4777         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
4778         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
4779         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
4780         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
4781         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
4782         New syscall entry.
4783         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
4784         New syscall entry.
4785         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
4786         syscall entry.
4787
4788 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4789
4790         [BZ #18240]
4791         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
4792         unsigned int wraparound.
4793
4794 2016-01-27  Florian Weimer  <fweimer@redhat.com>
4795
4796         [BZ #18240]
4797         * misc/bug18240.c: New test.
4798         * misc/Makefile (tests): Add it.
4799
4800 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4801             Joseph Myers  <joseph@codesourcery.com>
4802
4803         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
4804         load in branch delay slot when less than a word of input left.
4805
4806 2016-01-27  Andreas Schwab  <schwab@suse.de>
4807
4808         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
4809         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
4810         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
4811         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
4812
4813 2016-01-26  David S. Miller  <davem@davemloft.net>
4814
4815         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
4816
4817 2016-01-25  David S. Miller  <davem@davemloft.net>
4818
4819         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
4820         __sqrtl_finite.
4821         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
4822         instead using versioned_symbol.
4823         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
4824         of entries.
4825
4826         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
4827         __sqrtl_finite to GLIBC_2.23
4828
4829 2016-01-25  Ricchard Henderson  <rth@redhat.com>
4830
4831         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4832
4833 2016-01-25  Andreas Schwab  <schwab@suse.de>
4834
4835         [BZ #17514]
4836         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
4837         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
4838         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
4839         * nptl/tst-mutex-errorcheck.c: New file.
4840
4841 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4842
4843         [BZ #18560]
4844         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
4845         (IPCOP_semop): Likewise.
4846         (IPCOP_semget): Likewise.
4847         (IPCOP_semctl): Likewise.
4848         (IPCOP_msgsnd): Likewise.
4849         (IPCOP_msgrcv): Likewise.
4850         (IPCOP_msgget): Likewise.
4851         (IPCOP_msgctl): Likewise.
4852         (IPCOP_shmat): Likewise.
4853         (IPCOP_shmdt): Likewise.
4854         (IPCOP_shmget): Likewise.
4855         (IPCOP_shmctl): Likewise.
4856
4857 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4858
4859         * string/tst-endian.c: Include <libc-internal.h>.
4860         (do_test): Ignore tautological-compare warnings around
4861         "htobeXX (beXXtoh (i)) != i" and
4862         "htoleXX (leXXtoh (i)) != i" if-statements.
4863
4864 2016-01-24  David S. Miller  <davem@davemloft.net>
4865
4866         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
4867         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
4868         alias.
4869         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4870         __sqrtl_finite.
4871
4872         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4873
4874 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
4875
4876         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
4877         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
4878         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4879
4880 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4881
4882         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
4883         (thread_func): Use new function to simplify barrier check.
4884         (do_test): Use new function to simplify checking barrier exit
4885         code, and actually join the child thread.
4886
4887 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4888
4889         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
4890         semicolon.
4891         (__libc_tend): Likewise.
4892         (__libc_tabort): Likewise.
4893
4894 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
4895
4896         * sysdeps/nios2/libm-test-ulps: Update.
4897         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
4898         (__gtsf2): Likewise.
4899         (__unorddf2): Likewise.
4900         (__unordsf2): Likewise.
4901         (__ledf2): Likewise.
4902
4903 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
4904
4905         * nis/nis_table.c (__follow_path): Disable diagnostic for
4906         uninitialized variable that is a false positive for gcc 4.7.
4907         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
4908
4909 2016-01-20  Roland McGrath  <roland@hack.frob.com>
4910
4911         * sysdeps/nacl/lowlevellock-futex.h
4912         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
4913         Always evaluate PRIVATE argument.
4914
4915 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4916
4917         [BZ #19490]
4918         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
4919         (pthread_cond_broadcast): Use ENTRY/END
4920         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
4921         (pthread_cond_signal): Likewise.
4922         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
4923         Likewise.
4924         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
4925         Likewise.
4926         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
4927         Likewise.
4928
4929 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
4930
4931         * sysdeps/ieee754/dbl-64/s_finite.c
4932         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
4933         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
4934         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
4935         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
4936         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
4937
4938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
4939         (__gtsf2): Add as optional for libc.so.
4940         (__unordsf2): Likewise.
4941         (__signbit): Remove for libc.so.
4942         (__signbitl): Likewise.
4943
4944 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
4945
4946         * iconvdata/bug-iconv11.c (test_ibm93x):
4947         Use %zu printf format specifier for size_t argument.
4948
4949 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
4950
4951         * math/gen-libm-test.pl (parse_ulps): Do not reduce
4952         already-recorded ulps.
4953         * sysdeps/arm/libm-test-ulps: Regenerated.
4954         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4955         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4956         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4957
4958 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
4959             Paul Pluzhnikov  <ppluzhnikov@google.com>
4960
4961         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
4962         assembler not supporting AVX-512.
4963
4964 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4965
4966         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4967
4968 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
4971         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4972
4973         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
4974
4975         * sysdeps/arm/libm-test-ulps: Regenerated.
4976
4977 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
4978
4979         [BZ #19451]
4980         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
4981
4982 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
4983
4984         [BZ #19486]
4985         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
4986         * sysdeps/generic/fix-fp-int-convert-overflow.h
4987         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
4988         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
4989         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
4990         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
4991         Likewise.
4992         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
4993         Avoid conversions to long int where inexact exceptions
4994         could be raised.
4995         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
4996         Likewise.
4997         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
4998         Avoid conversions to long long int where inexact exceptions
4999         could be raised.
5000         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5001         Likewise.
5002
5003 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5004
5005         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5006         * configure: Regenerated.
5007
5008 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5009
5010         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5011
5012 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5013
5014         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5015         outside of comment.
5016
5017 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5018
5019         * nptl/tst-barrier1.c: Add description on first line.
5020         * nptl/tst-barrier2.c: Likewise.
5021         * nptl/tst-barrier3.c: Likewise.
5022         * nptl/tst-barrier4.c: Likewise.
5023         * nptl/tst-barrier5.c: Likewise.
5024
5025 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5026
5027         [BZ #18868]
5028         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5029
5030 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5031
5032         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5033         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5034         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5035         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5036         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5037         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5038         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5039         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5040         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5041         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5042         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5043
5044 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5045
5046         [BZ #13065]
5047         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5048         new implementation.
5049         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5050         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5051         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5052         (BARRIER_IN_THRESHOLD): New macro.
5053         * nptl/pthread_barrierattr_setpshared.c
5054         (pthread_barrierattr_setpshared): Clean up.
5055         * nptl/tst-barrier4.c: Correct comment.
5056         * nptl/tst-barrier5.c: New file.
5057         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5058         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5059         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5060         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5061         * nptl/lowlevelbarrier.sym: Remove.
5062         * nptl/DESIGN-barrier.txt: Remove.
5063         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5064         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5065         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5066         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5067         error.
5068         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5069         implementation.
5070
5071 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5072
5073         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5074         (do_child): Mask SIGRTMIN while thr is running.
5075
5076 2016-01-15  Martin Sebor  <msebor@redhat.com>
5077
5078         [BZ #19432]
5079         * iconvdata/Makefile: Add bug-iconv11.
5080         * iconvdata/bug-iconv11.c: New test.
5081         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5082         * iconvdata/ibm933.c: Same.
5083         * iconvdata/ibm935.c: Same.
5084         * iconvdata/ibm937.c: Same.
5085         * iconvdata/ibm939.c: Same.
5086
5087 2016-01-15  Martin Sebor  <msebor@redhat.com>
5088
5089         [BZ #19443]
5090         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5091         [DEBUG] (_ufc_set_bits): Declare used.
5092         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5093         [DEBUG] (print_all): Declare used.
5094         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5095         operands of the ternary ?: expression to target type.
5096         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5097         calling the undeclared abort.
5098         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5099
5100 2016-01-15  Martin Sebor  <msebor@redhat.com>
5101
5102         [BZ #18755]
5103         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5104         warnings.
5105         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5106         (__gai_create_helper_thread): Same.
5107         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5108         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5109         to suppress -Wmaybe-uninitialized warnings.
5110
5111 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5112
5113         [BZ #19465]
5114         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5115         inside if.
5116         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5117         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5118         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5119
5120 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5121
5122         [BZ #19466]
5123         * time/tst-mktime2.c (time_t_max): Removed.
5124         (time_t_min): Likewise.
5125         (TYPE_SIGNED): New.
5126         (TYPE_MINIMUM): Likewise.
5127         (TYPE_MAXIMUM): Likewise.
5128         (TIME_T_MIN): Likewise.
5129         (TIME_T_MAX): Likewise.
5130         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5131         and TIME_T_MIN.
5132         (do_test): Likewise.
5133
5134 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5135
5136         [BZ #19467]
5137         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5138         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5139
5140 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5141
5142         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5143
5144 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5145
5146         * benchtests/Makefile (PYTHON): Define.
5147         (bench-func): Use $(PYTHON) to run python scripts.
5148         ($(objpfx)bench-%.c): Likewise.
5149
5150 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5151
5152         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5153         leading slash when `file_name' is "/".
5154
5155 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5156
5157         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5158         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5159         Likewise.
5160         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5161         Likewise.
5162         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5163         Likewise.
5164         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5165         enum constant and macro.
5166         (PTRACE_SETSIGMASK): Likewise.
5167         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5168         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5169         (PTRACE_GETSIGMASK): Likewise.
5170         (PTRACE_SETSIGMASK): Likewise.
5171         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5172         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5173         Likewise.
5174         (PTRACE_SETSIGMASK): Likewise.
5175         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5176         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5177         (PTRACE_GETSIGMASK): Likewise.
5178         (PTRACE_SETSIGMASK): Likewise.
5179         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5180         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5181         Likewise.
5182         (PTRACE_SETSIGMASK): Likewise.
5183         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5184         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5185         Likewise.
5186         (PTRACE_SETSIGMASK): Likewise.
5187         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5188         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5189         Likewise.
5190         (PTRACE_SETSIGMASK): Likewise.
5191         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5192
5193 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5194             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5195
5196         [BZ #19439]
5197         * math/bits/mathcalls.h
5198         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5199         prototype.
5200         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5201
5202 2016-01-11  Andreas Schwab  <schwab@suse.de>
5203
5204         [BZ #19253]
5205         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5206         cache when TZDEFRULES was used.
5207         * time/tst-tzname.c: New file.
5208         * time/Makefile (test): Add tst-tzname.
5209         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5210         * timezone/Makefile (test-zones): Add $(posixrules-file).
5211         ($(testdata)/$(posixrules-file)): New rule.
5212
5213 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5214
5215         Fix doc quoting problems with Texinfo 5
5216         Without this change, in the info file output, Texinfo 5 quotes code
5217         in text with undirected single quotes 'like this' and generates
5218         code examples that with many PDF readers cannot be cut out of PDFs
5219         and pasted into code.
5220         * manual/libc.texinfo: Configure the libc manual like the GNU
5221         Emacs manual, by using @documentencoding and setting
5222         txicodequoteundirected and txicodequotebacktick.  This way,
5223         Texinfo 5 quotes code in text with directed single quotes ‘like
5224         this’ and produces examples that can be cut out of PDFs.  This
5225         change causes Texinfo 5 to generate info files that contain UTF-8
5226         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5227         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5228
5229 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5230
5231         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5232         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5233         barriers to their respective compiler built-ins.
5234         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5235         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5236         * sysdeps/powerpc/sysdep.h: Likewise.
5237         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5238         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5239         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5240
5241 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5242
5243         * scripts/config.guess: Revert previous shebang change.
5244         * scripts/config.sub: Likewise.
5245         * scripts/mkinstalldirs: Likewise.
5246
5247 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5248
5249         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5250         PPC_FEATURE2_HAS_IEEE128.
5251         * sysdeps/powerpc/dl-procinfo.c:
5252         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5253
5254 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5255
5256         [BZ #19415]
5257         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5258         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5259         (_dl_lookup_address): Rewrite using function resolver trampoline.
5260         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5261         two bits in address.
5262
5263 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5264
5265         * longlong.h: Change !__SHMEDIA__ to
5266         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5267         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5268
5269 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5270             Joseph Myers  <joseph@codesourcery.com>
5271             Mark Shinwell  <shinwell@codesourcery.com>
5272             Andrew Stubbs  <ams@codesourcery.com>
5273             Rich Felker <dalias@libc.org>
5274
5275         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5276
5277 2016-01-07  Richard Henderson  <rth@redhat.com>
5278
5279         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5280
5281 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5282
5283         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5284         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5285         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5286         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5287         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5288
5289 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5290             Joseph Myers  <joseph@codesourcery.com>
5291
5292         * timezone/private.h: Update from tzcode 2015g.
5293         * timezone/tzfile.h: Likewise.
5294         * timezone/tzselect.ksh: Likewise.
5295         * timezone/zdump.c: Likewise.
5296         * timezone/zic.c: Likewise.
5297         * timezone/ialloc.c: Remove file.
5298         * timezone/scheck.c: Likewise.
5299         * timezone/Makefile (extra-objs): Remove variable.
5300         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5301         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5302         -Wno-maybe-uninitialized.
5303         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5304         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5305         (CFLAGS-ialloc.c): Remove variable.
5306         (CFLAGS-scheck.c): Likewise.
5307         * timezone/README: Update list of files from tzcode.
5308
5309 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5310
5311         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5312         instead of __fxprintf when _LIBC is undefined.
5313
5314 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5315
5316         * catgets/test-gencat.sh: Remove space after shebang.
5317         * conform/GlibcConform.pm: Likewise.
5318         * conform/check-header-lists.sh: Likewise.
5319         * conform/conformtest.pl: Likewise.
5320         * conform/linknamespace.pl: Likewise.
5321         * conform/list-header-symbols.pl: Likewise.
5322         * debug/catchsegv.sh: Likewise.
5323         * elf/genrtldtbl.awk: Likewise.
5324         * elf/tst-pathopt.sh: Likewise.
5325         * elf/tst-rtld-load-self.sh: Likewise.
5326         * grp/tst_fgetgrent.sh: Likewise.
5327         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5328         * iconvdata/gen-8bit-gap.sh: Likewise.
5329         * iconvdata/gen-8bit.sh: Likewise.
5330         * iconvdata/run-iconv-test.sh: Likewise.
5331         * intl/tst-gettext.sh: Likewise.
5332         * intl/tst-gettext2.sh: Likewise.
5333         * intl/tst-gettext4.sh: Likewise.
5334         * intl/tst-gettext6.sh: Likewise.
5335         * intl/tst-translit.sh: Likewise.
5336         * io/ftwtest-sh: Likewise.
5337         * libio/test-freopen.sh: Likewise.
5338         * locale/gen-translit.pl: Likewise.
5339         * malloc/tst-mtrace.sh: Likewise.
5340         * manual/check-safety.sh: Likewise.
5341         * manual/libc-texinfo.sh: Likewise.
5342         * manual/tsort.awk: Likewise.
5343         * manual/xtract-typefun.awk: Likewise.
5344         * nptl/tst-cancel-wrappers.sh: Likewise.
5345         * nptl/tst-tls6.sh: Likewise.
5346         * posix/globtest.sh: Likewise.
5347         * posix/tst-getconf.sh: Likewise.
5348         * posix/wordexp-tst.sh: Likewise.
5349         * scripts/check-c++-types.sh: Likewise.
5350         * scripts/check-local-headers.sh: Likewise.
5351         * scripts/config.guess: Likewise.
5352         * scripts/config.sub: Likewise.
5353         * scripts/cpp: Likewise.
5354         * scripts/cross-test-ssh.sh: Likewise.
5355         * scripts/documented.sh: Likewise.
5356         * scripts/evaluate-test.sh: Likewise.
5357         * scripts/gen-libc-abis: Likewise.
5358         * scripts/gen-sorted.awk: Likewise.
5359         * scripts/list-fixed-bugs.py: Likewise.
5360         * scripts/merge-test-results.sh: Likewise.
5361         * scripts/mkinstalldirs: Likewise.
5362         * scripts/rellns-sh: Likewise.
5363         * scripts/test-installation.pl: Likewise.
5364         * scripts/update-copyrights: Likewise.
5365         * stdio-common/tst-printf.sh: Likewise.
5366         * stdio-common/tst-unbputc.sh: Likewise.
5367         * stdlib/tst-fmtmsg.sh: Likewise.
5368         * stdlib/tst-setcontext3.sh: Likewise.
5369         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5370         * sysdeps/unix/make-syscalls.sh: Likewise.
5371
5372 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5373
5374         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5375         asm stw with atomic_exchange_rel.  Add explanatory comment.
5376         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5377         Likewise.
5378
5379 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5380
5381         [BZ #19122]
5382         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5383         * sysdeps/generic/dl-unistd.h: New file.
5384         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5385
5386 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5387
5388          [BZ #19122]
5389          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5390          * sysdeps/generic/dl-mman.h: New file.
5391          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5392
5393 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5394
5395         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5396         trailing whitespace removed.
5397         * scripts/config.guess: Update to version 2016-01-01.
5398         * scripts/config.sub: Update to version 2016-01-01.
5399         * scripts/move-if-change: Update from gnulib.
5400
5401 2016-01-04  Anton Blanchard  <anton@samba.org>
5402
5403         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5404         for array indices.
5405         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5406
5407 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5408
5409         * NEWS: Update copyright dates.
5410         * catgets/gencat.c (print_version): Likewise.
5411         * csu/version.c (banner): Likewise.
5412         * debug/catchsegv.sh: Likewise.
5413         * debug/pcprofiledump.c (print_version): Likewise.
5414         * debug/xtrace.sh (do_version): Likewise.
5415         * elf/ldconfig.c (print_version): Likewise.
5416         * elf/ldd.bash.in: Likewise.
5417         * elf/pldd.c (print_version): Likewise.
5418         * elf/sotruss.sh: Likewise.
5419         * elf/sprof.c (print_version): Likewise.
5420         * iconv/iconv_prog.c (print_version): Likewise.
5421         * iconv/iconvconfig.c (print_version): Likewise.
5422         * locale/programs/locale.c (print_version): Likewise.
5423         * locale/programs/localedef.c (print_version): Likewise.
5424         * login/programs/pt_chown.c (print_version): Likewise.
5425         * malloc/memusage.sh (do_version): Likewise.
5426         * malloc/memusagestat.c (print_version): Likewise.
5427         * malloc/mtrace.pl: Likewise.
5428         * manual/libc.texinfo: Likewise.
5429         * nptl/version.c (banner): Likewise.
5430         * nscd/nscd.c (print_version): Likewise.
5431         * nss/getent.c (print_version): Likewise.
5432         * nss/makedb.c (print_version): Likewise.
5433         * posix/getconf.c (main): Likewise.
5434         * scripts/test-installation.pl: Likewise.
5435         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5436
5437         * All files with FSF copyright notices: Update copyright dates
5438         using scripts/update-copyrights.
5439         * intl/plural.c: Regenerated.
5440         * locale/programs/charmap-kw.h: Likewise.
5441         * locale/programs/locfile-kw.h: Likewise.
5442
5443 2016-01-02  Helge Deller  <deller@gmx.de>
5444
5445         [BZ #19285]
5446         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5447         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5448         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5449         (MADV_xxK_PAGES): Remove.
5450
5451 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5452
5453         [BZ #15421]
5454         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5455         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5456         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5457         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5458
5459 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5460
5461         [BZ #19408]
5462         * sysdeps/unix/sysv/linux/personality.c: New file.
5463         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5464         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5465         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5466         (sysdep_routines): Add personality.
5467         (tests): Add tst-personality.
5468         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5469         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5470         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5471         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5472         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5473         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5474         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5475         Likewise.
5476         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5477         Likewise.
5478         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5479         Likewise.
5480         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5481         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5482         Likewise.
5483
5484 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5485
5486         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5487         (PATH_ARM_SYSTYPE): Remove.
5488         (PATH_CPUINFO): Likewise.
5489         (IO_BASE_FOOTBRIDGE): Likewise.
5490         (IO_SHIFT_FOOTBRIDGE): Likewise.
5491         (struct platform): Likewise.
5492         (init_iosys): Remove compatibility code for 2.4 kernels.
5493         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5494
5495 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5496
5497         * malloc/tst-malloc-thread-fail.c: New file.
5498         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5499         (tst-malloc-thread-fail): Link against libpthread.
5500
5501 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5502
5503         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5504         (get_parser): New function.
5505         (main): New function.
5506
5507 2015-12-29  Rob Wu  <rob@robwu.nl>
5508
5509         [BZ #19369]
5510         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5511
5512 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5513
5514         [BZ #19270]
5515         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5516
5517 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5518
5519         [BZ #15421]
5520         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5521
5522 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5523
5524         [BZ #13690]
5525         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5526         after releasing it.
5527         (__lll_robust_unlock): Likewise.
5528         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5529         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5530         (lll_robust_unlock): Likewise.
5531         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5532         Prevent warnings in callers.
5533
5534 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5535
5536         * malloc/arena.c (list_lock): Update comment.
5537
5538 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5539
5540         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5541         __parse_hwcap_and_convert_at_platform to libc.a.
5542
5543 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5544
5545         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5546         platform and feature support for POWER9.
5547         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5548         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5549         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5550         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5551         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5552         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5553         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5554         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5555
5556 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5557
5558         Harmonize generic stdio-lock support with nptl
5559
5560         This fixes build when _IO_funlockfile is a macro, fixes build where
5561         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5562         stack unwind.
5563
5564         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5565         _IO_release_lock ): Use cleanup attribute on new
5566         _IO_acquire_lock_file variable instead of assuming that
5567         _IO_release_lock will be called.
5568         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5569         _IO_acquire_lock_needs_exceptions_enabled.
5570         (_IO_acquire_lock_clear_flags2): New macro.
5571
5572 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5573
5574         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5575
5576 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5577
5578         [BZ #19182]
5579         * malloc/arena.c (list_lock): Document lock ordering requirements.
5580         (free_list_lock): New lock.
5581         (ptmalloc_lock_all): Comment on free_list_lock.
5582         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5583         (detach_arena): Update comment.  free_list_lock is now needed.
5584         (_int_new_arena): Use free_list_lock around detach_arena call.
5585         Acquire arena lock after list_lock.  Add comment, including FIXME
5586         about incorrect synchronization.
5587         (get_free_list): Switch to free_list_lock.
5588         (reused_arena): Acquire free_list_lock around detach_arena call
5589         and attached threads counter update.  Add two FIXMEs about
5590         incorrect synchronization.
5591         (arena_thread_freeres): Switch to free_list_lock.
5592         * malloc/malloc.c (struct malloc_state): Update comments to
5593         mention free_list_lock.
5594
5595 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5596
5597         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5598         Remove functions.
5599         (sloww, sloww1): Accept argument to offset quadrant.
5600         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5601         quadrant.
5602         (__sin, __cos): Consolidate common code into new functions.
5603         (reduce_sincos_1, do_sincos_1): New functions.
5604         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5605
5606         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5607         code to new functions.
5608         (reduce_sincos_2, do_sincos_2): New functions.
5609         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5610
5611         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5612         common code for sincos.
5613         (__cos) [!IN_SINCOS]: Likewise.
5614         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5615         New function.
5616         (__sincos): Use it.
5617
5618 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5619
5620         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5621         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5622         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5623
5624 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5625
5626         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5627         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5628         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5629         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5630         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5631         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5632         index_Prefer_No_VZEROUPPER): New feature.
5633         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5634         Prefer_No_VZEROUPPER for Knights Landing.
5635
5636 015-12-18  Torvald Riegel  <triegel@redhat.com>
5637
5638         * math/atest-exp2.c (mp_exp_m1): Remove.
5639
5640 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5641
5642         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5643         syscalls.
5644         (__SYSCALL0): New macro.
5645         (__SYSCALL1): Likewise.
5646         (__SYSCALL2): Likewise.
5647         (__SYSCALL3): Likewise.
5648         (__SYSCALL4): Likewise.
5649         (__SYSCALL5): Likewise.
5650         (__SYSCALL6): Likewise.
5651         (__SYSCALL_CONCAT_X): Likewise.
5652         (__SYSCALL_CONCAT): Likewise.
5653         (__SYSCALL_DIST): Likewise.
5654         (__SYSCALL_CALL): Likewise.
5655
5656 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5657
5658         [BZ #19363]
5659         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5660
5661 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5662
5663         [BZ #19375]
5664         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5665         negative subnormals.
5666
5667 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5668
5669         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5670         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5671         (INTERNAL_SYSCALL_NCS): Use it.
5672         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5673
5674 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5675
5676         [BZ #19243]
5677         * malloc/arena.c (get_free_list): Remove assert and adjust
5678         reference count handling.  Add comment about reused_arena
5679         interaction.
5680         (reused_arena): Add comments abount get_free_list interaction.
5681         * malloc/tst-malloc-thread-exit.c: New file.
5682         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5683         (tst-malloc-thread-exit): Link against libpthread.
5684
5685 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5686
5687         [BZ #19367]
5688         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5689         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5690         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5691         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5692         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5693
5694 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5695
5696         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5697         Silvermont optimizations for Knights Landing.
5698
5699 2015-12-15  Andreas Schwab  <schwab@suse.de>
5700
5701         [BZ #17197]
5702         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5703         immediately after emitting SI.
5704         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5705         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5706         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5707         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5708         * iconvdata/bug-iconv10.c: New file.
5709         * iconvdata/Makefile (tests): Add bug-iconv10.
5710         ($(objpfx)bug-iconv10.out): New rule.
5711
5712 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5713
5714         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5715         aliasing violation.
5716
5717 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5718
5719         [BZ #18472]
5720         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5721         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5722         conditionals for them.
5723         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5724         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5725         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5726         sys/kdaemon.h.
5727         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5728         compat-only syscall, obsoleted in glibc 2.23.
5729         (create_module): Likewise.
5730         (get_kernel_syms): Likewise.
5731         (query_module): Likewise.
5732         (uselib): Likewise.
5733         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5734
5735 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5736
5737         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5738         <linux/version.h>.
5739         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5740         conditional code.
5741         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5742         and ioshift_name initialization.
5743
5744 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5745
5746         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5747         Fix indentation.
5748
5749 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5750
5751         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5752
5753 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5754
5755         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5756
5757 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5758             Jakub Wilk  <jwilk@debian.org>
5759
5760         [BZ #19347]
5761         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5762         to change the group of the device to the tty group.
5763
5764 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5765
5766         Split large string section; add truncation advice
5767         * manual/examples/strncat.c: Remove.
5768         This example was misleading, as the code would have undefined
5769         behavior if "hello" was longer than SIZE.  Anyway, the manual
5770         shouldn't encourage strncpy+strncat for this sort of thing.
5771         * manual/string.texi (Copying Strings and Arrays): Split into
5772         three sections Copying Strings and Arrays, Concatenating Strings,
5773         and Truncating Strings, as this section was way too long.  All
5774         cross-referenced changed.  Add advice about string-truncation
5775         functions.  Remove misleading strncat example.
5776
5777 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
5778
5779         * manual/nss.texi (NSS Modules Interface): Document
5780         NSS_STATUS_NOTFOUND and SUCCESS.
5781
5782 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5783
5784         [BZ 18568]
5785         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
5786         201505L, for Unicode 8.
5787
5788 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
5789
5790         * locale/C-translit.h: Regenerate.
5791
5792 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5793
5794         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
5795         and U+0153.
5796
5797 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
5798
5799         [BZ #19351]
5800         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
5801         expanding log(1+z), compare z rather than its square with epsilon
5802         to determine when to avoid evaluating the expansion.
5803
5804         [BZ #19350]
5805         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
5806         Increase overflow threshold.
5807
5808         [BZ #19349]
5809         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
5810         when small.
5811
5812         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5813         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5814         New macro.
5815         [__LINUX_KERNEL_VERSION >= 0x040300]
5816         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5817         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5818         Likewise.
5819         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5820         Likewise.
5821         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5822         Likewise.
5823         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5824         Likewise.
5825         [__LINUX_KERNEL_VERSION >= 0x040300]
5826         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5827         [__LINUX_KERNEL_VERSION >= 0x040300]
5828         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5829         [__LINUX_KERNEL_VERSION >= 0x040300]
5830         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5831         [__LINUX_KERNEL_VERSION >= 0x040300]
5832         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5833         [__LINUX_KERNEL_VERSION >= 0x040300]
5834         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5835         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5836         Likewise.
5837         [__LINUX_KERNEL_VERSION >= 0x040300]
5838         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5839         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5840         Likewise.
5841         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5842         Likewise.
5843         [__LINUX_KERNEL_VERSION >= 0x040300]
5844         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5845         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5846         Likewise.
5847         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5848         Likewise.
5849         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5850         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
5851         Likewise.
5852         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
5853         Likewise.
5854         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5855         Likewise.
5856         [__LINUX_KERNEL_VERSION >= 0x040300]
5857         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5858         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5859         Likewise.
5860         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5861         Likewise.
5862         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5863         Likewise.
5864         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5865         Likewise.
5866         [__LINUX_KERNEL_VERSION >= 0x040300]
5867         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5868         [__LINUX_KERNEL_VERSION >= 0x040300]
5869         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5870         [__LINUX_KERNEL_VERSION >= 0x040300]
5871         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5872         [__LINUX_KERNEL_VERSION >= 0x040300]
5873         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5874         [__LINUX_KERNEL_VERSION >= 0x040300]
5875         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5876         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5877         Likewise.
5878         [__LINUX_KERNEL_VERSION >= 0x040300]
5879         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5880         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5881         Likewise.
5882         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5883         Likewise.
5884         [__LINUX_KERNEL_VERSION >= 0x040300]
5885         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5886         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5887         Likewise.
5888         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5889         Likewise.
5890         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5891         (__ASSUME_SOCKET_SYSCALL): Likewise.
5892         (__ASSUME_BIND_SYSCALL): Likewise.
5893         (__ASSUME_CONNECT_SYSCALL): Likewise.
5894         (__ASSUME_LISTEN_SYSCALL): Likewise.
5895         (__ASSUME_ACCEPT_SYSCALL): Likewise.
5896         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5897         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5898         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5899         (__ASSUME_SEND_SYSCALL): Likewise.
5900         (__ASSUME_SENDTO_SYSCALL): Likewise.
5901         (__ASSUME_RECV_SYSCALL): Likewise.
5902         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5903         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
5904         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5905         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5906         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5907         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5908         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5909         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
5910         Likewise.
5911         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
5912         Likewise.
5913         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
5914         Likewise.
5915         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
5916         Likewise.
5917         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
5918         Likewise.
5919         [__LINUX_KERNEL_VERSION >= 0x020625]
5920         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5921         [__LINUX_KERNEL_VERSION >= 0x020625]
5922         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5923         [__LINUX_KERNEL_VERSION >= 0x020625]
5924         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5925         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
5926         Likewise.
5927         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
5928         Likewise.
5929         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
5930         Likewise.
5931         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
5932         Likewise.
5933         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
5934         Likewise.
5935         [__LINUX_KERNEL_VERSION >= 0x020625]
5936         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5937         [__LINUX_KERNEL_VERSION >= 0x020625]
5938         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5939         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
5940         Likewise.
5941         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
5942         Likewise.
5943
5944 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5945
5946         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
5947         record the current if the current ABI and CPU support the FP64
5948         extension.
5949         (has-modd-spreg): Define to record the current if the current ABI and
5950         CPU support 32-bit floating point values in odd FPU registers.
5951         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5952         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
5953         $(has-modd-spreg) equals yes.
5954         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
5955         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
5956         $(has-modd-spreg) equal yes.
5957
5958 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5959
5960         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
5961         basename.
5962
5963 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
5964
5965         * benchtests/Makefile (bench-math): Move ffs and ffsll...
5966         (bench-string): ... here.
5967         (bench): Add bench-string.
5968         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
5969         to *-benchset to reflect what they are.
5970         (benchset): Adjust.
5971
5972         * benchtests/sincos-inputs: Add inputs from sin-inputs and
5973         cos-inputs.
5974
5975 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
5976
5977         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
5978         __attribute__ ((__simd__)) for vector math function declarations.
5979
5980 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         Fix typo in strncat, wcsncat manual entries
5983         * manual/string.texi (Copying and Concatenation): Fix typos in
5984         sample implementations of strncat and wcsncat, by having them use
5985         the old value of the destination length, not the new one.
5986
5987 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
5988
5989         [BZ #16961]
5990         [BZ #16962]
5991         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
5992         string on the stack for strtod.
5993         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
5994         a string on the stack for strtof.
5995         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
5996         constructing a string on the stack for strtold.
5997         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
5998         __strtold_nan to GLIBC_PRIVATE.
5999         * math/test-nan-overflow.c: New file.
6000         * math/test-nan-payload.c: Likewise.
6001         * math/Makefile (tests): Add test-nan-overflow and
6002         test-nan-payload.
6003
6004 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6005
6006         Consistency about byte vs character in string.texi
6007         * manual/string.texi (String and Array Utilities):
6008         Distinguish more carefully among bytes, multibyte characters,
6009         and wide characters.  Use "byte" when talking about C 'char',
6010         to distinguish it more clearly from multibyte characters.
6011         Say "wide character" or "multibyte character" instead of
6012         "character", when a wide or multibyte character is intended.
6013         Similarly for "multibyte string" versus "string".
6014         Define these terms more carefully.
6015
6016 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6017
6018         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6019         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6020         Likewise.
6021         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6022         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6023         * sysdeps/sh/math_private.h: New file.
6024         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6025         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6026         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6027         long double function name.
6028         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6029         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6030         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6031         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6032         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6033         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6034         Remove __finitel, __isinfl, and __isnanl.
6035         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6036         Likewise.
6037         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6038         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6039         Remove __finitel.
6040         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6041         Likewise.
6042         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6043
6044 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6045
6046         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6047         installed libmvec_nonshared.a.
6048
6049 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6050
6051         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6052         (sysdep_routines): Likewise.
6053         (sysdep-rtld-routines): Likewise.
6054         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6055         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6056         * sysdeps/powerpc/Versions: Added new
6057         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6058         * sysdeps/powerpc/hwcapinfo.c: New file.
6059         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6060         and parse hwcap, hwcap2 and platform number information.
6061         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6062         to store HWCAP+HWCAP2 and platform number.
6063         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6064         for HWCAP+HWCAP2 and platform number in the TCB.
6065         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6066         the HWCAP, HWCAP2 and platform number in the TCB.
6067         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6068         (TLS_INIT_TP): Included calls to add the hwcap and
6069         at_platform values in the TCB in TP initialization.
6070         (TLS_DEFINE_INIT_TP): Likewise.
6071         (THREAD_GET_HWCAP): New macro.
6072         (THREAD_SET_HWCAP): Likewise.
6073         (THREAD_GET_AT_PLATFORM): Likewise.
6074         (THREAD_SET_AT_PLATFORM): Likewise.
6075         * sysdeps/powerpc/powerpc32/dl-machine.h:
6076         (dl_platform_init): New function that calls
6077         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6078         powerpc32.
6079         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6080         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6081         this functionality, static linking case.
6082         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6083         linking case.
6084         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6085         __parse_hwcap_and_convert_at_platform for the static linking case.
6086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6087         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6088         ABI list for GLIBC 2.23.
6089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6090         Likewise.
6091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6092         Likewise.
6093
6094 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6095
6096         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6097         * configure: Regenerate.
6098         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6099         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6100
6101 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6102
6103         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6104         * iconvdata/ibm933.c: Likewise.
6105         * iconvdata/ibm935.c: Likewise.
6106         * iconvdata/ibm937.c: Likewise.
6107         * iconvdata/ibm939.c: Likewise.
6108
6109 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6110
6111         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6112         pthread_join.
6113         * nptl/tst-cancel21.c (tf): Likewise.
6114
6115 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6116
6117         [BZ #19313]
6118         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6119         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6120         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6121         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6122         Likewise.
6123         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6124         Likewise.
6125         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6126         Likewise.
6127         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6128         Likewise.
6129         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6130         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6131         unsigned long int with __CPU_MASK_TYPE.
6132
6133 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6134
6135         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6136
6137 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6138
6139         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6140         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6141         t512.x.
6142         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6143
6144 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6145
6146         [BZ #19214]
6147         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6148         argument to return extended model.  Update family and model
6149         with extended family and model when family == 0x0f.
6150         (init_cpu_features): Updated.
6151
6152 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6153
6154         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6155         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6156
6157         * sysdeps/mach/hurd/mmap64.c: New file.
6158
6159 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6160
6161         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6162         rights for its main user thread in NEWTASK.
6163
6164 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6165
6166         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6167         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6168
6169 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6170
6171         [BZ #14259]
6172         * Makeconfig: Rename localedir to complocaledir.
6173         Rename inst_localedir to inst_complocaledir.
6174         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6175         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6176         * configure.ac: Use libc_cv_complocaledir.
6177         * configure: Regenerate.
6178         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6179         -DCOMPLOCALEDIR.
6180         * locale/findlocale.c: Use COMPLOCALEDIR.
6181         * locale/loadarchive.c: Likewise.
6182         * locale/programs/locale.c: Likewise.
6183         * locale/programs/localedef.c: Likewise.
6184         * locale/programs/locarchive.c: Likewise.
6185         * localedata/Makefile: Use inst_complocaledir.
6186         * sysdeps/gnu/configure: Regenerate.
6187         * sysdeps/hppa/configure: Regenerate.
6188         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6189         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6191         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6192         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6193         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6194         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6195
6196 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6197
6198         [BZ #19058]
6199         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6200         AS_NEEDED.
6201         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6202         workaround.
6203         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6204         libmvec-static-only-routines): Added new file.
6205         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6206
6207 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6208
6209         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6210         of interrupted RPC instead of restoring it.
6211
6212         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6213         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6214         libc_hidden_def.
6215         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6216         into initialized data instead of common. Define rtld_hidden_data_def.
6217         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6218         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6219         libc_hidden_def.
6220         (if_freenameindex): Add libc_hidden_weak.
6221         (if_nameindex): Add libc_hidden_weak.
6222         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6223         __open64.
6224         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6225         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6226         * sysdeps/mach/nanosleep.c: Include <time.h>
6227         (__nanosleep): Rename to __libc_nanosleep.
6228         (__nanosleep): Add weak_alias.
6229         (nanosleep): Update alias.
6230
6231 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6232
6233         * stdlib/strtod_nan.c: New file.
6234         * stdlib/strtod_nan_double.h: Likewise.
6235         * stdlib/strtod_nan_float.h: Likewise.
6236         * stdlib/strtod_nan_main.c: Likewise.
6237         * stdlib/strtod_nan_narrow.h: Likewise.
6238         * stdlib/strtod_nan_wide.h: Likewise.
6239         * stdlib/strtof_nan.c: Likewise.
6240         * stdlib/strtold_nan.c: Likewise.
6241         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6242         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6243         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6244         * wcsmbs/wcstod_nan.c: Likewise.
6245         * wcsmbs/wcstof_nan.c: Likewise.
6246         * wcsmbs/wcstold_nan.c: Likewise.
6247         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6248         strtold_nan.
6249         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6250         wcstof_nan.
6251         * include/stdlib.h (__strtof_nan): Declare and use
6252         libc_hidden_proto.
6253         (__strtod_nan): Likewise.
6254         (__strtold_nan): Likewise.
6255         (__wcstof_nan): Likewise.
6256         (__wcstod_nan): Likewise.
6257         (__wcstold_nan): Likewise.
6258         * include/wchar.h (____wcstoull_l_internal): Declare.
6259         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6260         (____strtoull_l_internal): Remove declaration.
6261         (STRTOF_NAN): Define macro.
6262         (SET_MANTISSA): Remove macro.
6263         (STRTOULL): Likewise.
6264         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6265         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6266         (STRTOF_NAN): Define macro.
6267         (SET_MANTISSA): Remove macro.
6268         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6269         (SET_MANTISSA): Remove macro.
6270         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6271         macro.
6272         (SET_MANTISSA): Remove macro.
6273         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6274         macro.
6275         (SET_MANTISSA): Remove macro.
6276         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6277         (SET_MANTISSA): Remove macro.
6278         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6279         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6280         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6281
6282         [BZ #19266]
6283         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6284         upper case and lower case letters inside NAN(), not using TOLOWER.
6285         * stdlib/tst-strtod-nan-locale-main.c: New file.
6286         * stdlib/tst-strtod-nan-locale.c: Likewise.
6287         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6288         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6289         Depend on $(gen-locales).
6290         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6291         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6292         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6293         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6294         Depend on $(gen-locales).
6295         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6296
6297 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6298
6299         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6300
6301         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6302         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6303         __finitel, __isinfl, and __isnanl.
6304         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6305         Likewise.
6306         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6307         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6308         __finitel.
6309         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6310         Likewise.
6311         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6312
6313 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6314
6315         * malloc/memusage.c (me): Remove redundant getenv call.
6316
6317 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6318
6319         [BZ #19143]
6320         [BZ #19164]
6321         * nptl/check-cpuset.h: Remove.
6322         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6323         Remove CPU set size check.
6324         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6325         Likewise.
6326         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6327         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6328         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6329         (__pthread_setaffinity_new): Remove CPU set size check.
6330         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6331         (__kernel_cpumask_size): Remove.
6332         (__sched_setaffinity_new): Remove CPU set size check.
6333         * manual/threads.texi (Default Thread Attributes): Remove stale
6334         reference to check_cpuset_attr, determine_cpumask_size in comment.
6335         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6336         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6337         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6338         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6339         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6340         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6341         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6342         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6343         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6344         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6345         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6346         skeleton test file.
6347         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6348         tst-affinity-pid.
6349
6350 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6351
6352         * scripts/update-abilist.sh: New file.
6353         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6354         * Makerules (update-all-abi-%, update-all-abi)
6355         (subdir_update-all-abi): New targets.
6356         * elf/Makefile (update-all-abi): New target.
6357
6358 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6359
6360         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6361         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6362         (__libc_lock_define_initialized): Use it.
6363         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6364         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6365         * malloc/malloc.c (main_arena): Likewise.
6366         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6367         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6368
6369 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6370
6371         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6372         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6373         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6374         (PTRACE_O_MASK): Update value.
6375         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6376         New value in enum __ptrace_setoptions.
6377         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6378         (PTRACE_O_MASK): Update value.
6379         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6380         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6381         (PTRACE_O_MASK): Update value.
6382         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6383         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6384         (PTRACE_O_MASK): Update value.
6385         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6386         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6387         (PTRACE_O_MASK): Update value.
6388         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6389         New value in enum __ptrace_setoptions.
6390         (PTRACE_O_MASK): Update value.
6391         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6392         New value in enum __ptrace_setoptions.
6393         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6394         (PTRACE_O_MASK): Update value.
6395
6396         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6397         New macro.
6398         (PACKET_AUXDATA): Likewise.
6399         (PACKET_ORIGDEV): Likewise.
6400         (PACKET_VERSION): Likewise.
6401         (PACKET_HDRLEN): Likewise.
6402         (PACKET_RESERVE): Likewise.
6403         (PACKET_TX_RING): Likewise.
6404         (PACKET_LOSS): Likewise.
6405         (PACKET_VNET_HDR): Likewise.
6406         (PACKET_TX_TIMESTAMP): Likewise.
6407         (PACKET_TIMESTAMP): Likewise.
6408         (PACKET_FANOUT): Likewise.
6409         (PACKET_TX_HAS_OFF): Likewise.
6410         (PACKET_QDISC_BYPASS): Likewise.
6411         (PACKET_ROLLOVER_STATS): Likewise.
6412         (PACKET_FANOUT_DATA): Likewise.
6413         (PACKET_MR_UNICAST): Likewise.
6414
6415         [BZ #19242]
6416         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6417         (TOUPPER): Likewise.
6418         * stdlib/tst-strtol-locale-main.c: New file.
6419         * stdlib/tst-strtol-locale.c: Likewise.
6420         * stdlib/Makefile (tests): Add tst-strtol-locale.
6421         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6422         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6423         Depend on $(gen-locales).
6424         * wcsmbs/tst-wcstol-locale.c: New file.
6425         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6426         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6427         tr_TR.ISO-8859-9.
6428         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6429         Depend on $(gen-locales).
6430
6431 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6432
6433         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6434         __glibc_likely instead of __builtin_expect.  After falling back to
6435         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6436         system interface to register the code pages as occupied.
6437
6438 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6439
6440         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6441         [!ARM_MATH_PRIVATE_H].
6442         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6443         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6444         [!HPPA_MATH_PRIVATE_H].
6445         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6446         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6447         to [!I386_MATH_PRIVATE_H].
6448         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6449         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6450         Change guard to [!M68K_MATH_PRIVATE_H].
6451         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6452         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6453         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6454         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6455         macro.
6456         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6457         [!MIPS_MATH_PRIVATE_H].
6458         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6459         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6460         [!NIO2_MATH_PRIVATE_H].
6461         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6462         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6463         [!TILE_MATH_PRIVATE_H].
6464         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6465
6466         [BZ #15421]
6467         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6468         initialize with 0 and define as weak alias of __signgam.
6469         * include/math.h [!_ISOMAC] (__signgam): Declare.
6470         * math/Makefile (libm-calls): Add w_lgamma_compat.
6471         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6472         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6473         test-signgam-ullong-init.
6474         (tests-static): Add test-signgam-uchar-static,
6475         test-signgam-uchar-init-static, test-signgam-uint-static,
6476         test-signgam-uint-init-static, test-signgam-ullong-static and
6477         test-signgam-ullong-init-static.
6478         (CFLAGS-test-signgam-uchar.c): New variable.
6479         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6480         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6481         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6482         (CFLAGS-test-signgam-uint.c): Likewise.
6483         (CFLAGS-test-signgam-uint-init.c): Likewise.
6484         (CFLAGS-test-signgam-uint-static.c): Likewise.
6485         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6486         (CFLAGS-test-signgam-ullong.c): Likewise.
6487         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6488         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6489         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6490         * math/Versions (libm): Add GLIBC_2.23.
6491         * math/lgamma-compat.h: New file.
6492         * math/test-signgam-main.c: Likewise.
6493         * math/test-signgam-uchar-init-static.c: Likewise.
6494         * math/test-signgam-uchar-init.c: Likewise.
6495         * math/test-signgam-uchar-static.c: Likewise.
6496         * math/test-signgam-uchar.c: Likewise.
6497         * math/test-signgam-uint-init-static.c: Likewise.
6498         * math/test-signgam-uint-init.c: Likewise.
6499         * math/test-signgam-uint-static.c: Likewise.
6500         * math/test-signgam-uint.c: Likewise.
6501         * math/test-signgam-ullong-init-static.c: Likewise.
6502         * math/test-signgam-ullong-init.c: Likewise.
6503         * math/test-signgam-ullong-static.c: Likewise.
6504         * math/test-signgam-ullong.c: Likewise.
6505         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6506         wrapper of w_lgamma_main.c.
6507         * math/w_lgamma_compat.c: New file.
6508         * math/w_lgamma_compatf.c: Likewise.
6509         * math/w_lgamma_compatl.c: Likewise.
6510         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6511         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6512         defining compatibility symbols.
6513         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6514         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6515         wrapper of w_lgammaf_main.c.
6516         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6517         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6518         defining compatibility symbols.
6519         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6520         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6521         wrapper of w_lgammal_main.c.
6522         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6523         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6524         defining compatibility symbols.
6525         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6526         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6527         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6528         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6529         <lgamma-compat.h>.
6530         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6531         (__ieee754_gamma): Define as alias.
6532         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6533         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6534         <lgamma-compat.h>.
6535         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6536         (__ieee754_gammaf): Define as alias.
6537         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6538         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6539         <lgamma-compat.h>.
6540         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6541         (__ieee754_gammal): Define as alias.
6542         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6543         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6544         <math/w_lgamma_compat.c>.
6545         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6546         Define as alias of __lgamma_compat and use in defining lgammal.
6547         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6548         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6549         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6550         (USE_AS_COMPAT): New macro.
6551         (LGAMMA_OLD_VER): Undefine and redefine.
6552         (lgammal): Do not define here.
6553         (gammal): Only define here if [GAMMA_ALIAS].
6554         * conform/linknamespace.pl (@whitelist): Remove signgam.
6555         * sysdeps/nacl/libm.abilist: Update.
6556         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6557         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6558         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6559         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6560         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6561         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6562         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6563         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6564         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6565         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6566         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6567         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6569         Likewise.
6570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6571         Likewise.
6572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6573         Likewise.
6574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6575         Likewise.
6576         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6577         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6578         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6579         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6580         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6582         Likewise.
6583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6584         Likewise.
6585         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6586         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6587         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6588
6589 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6590
6591         [BZ #16364]
6592         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6593         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6594
6595 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6596
6597         * sysdeps/s390/fpu/bits/mathinline.h:
6598         Use __asm__ [__volatile__] instead of asm [volatile].
6599         * sysdeps/s390/abort-instr.h: Likewise.
6600         * sysdeps/s390/atomic-machine.h: Likewise.
6601         * sysdeps/s390/bits/string.h: Likewise.
6602         * sysdeps/s390/dl-tls.h: Likewise.
6603         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6604         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6605         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6606         * sysdeps/s390/fpu/fesetround.c: Likewise.
6607         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6608         * sysdeps/s390/fpu/s_fma.c: Likewise.
6609         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6610         * sysdeps/s390/memusage.h: Likewise.
6611         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6612         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6613         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6614         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6615         * sysdeps/s390/nptl/tls.h: Likewise.
6616         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6617         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6618         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6619         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6620         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6621         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6622         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6623         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6624         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6625         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6626         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6627         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6628         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6629         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6630         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6631         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6632         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6633         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6634         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6635         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6636         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6637         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6638         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6639
6640 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6641             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6642
6643         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6644         Add lwarx hint, and use macro for acquire instruction.
6645         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6646         Likewise.
6647         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6648         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6649         update to use new atomic macros.
6650
6651 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6652
6653         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6654         (__lll_trylock_elision): Fix setting of adapt_count.
6655         * sysdeps/unix/sysv/linux/powerpc/htm.h
6656         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6657         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6658         (_ABORT_SYSCALL): Renumber, and clarify definition.
6659         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6660
6661 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6662
6663         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6664         after system headers to prevent MIN/MAX redefinition.  Define
6665         HAVE_ALLOCA to preserve builtin alloca usage.
6666
6667 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6668
6669         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6670         static and don't set or restore rounding.
6671         (__cos)[IN_SINCOS]: Likewise.
6672         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6673         (__sincos): Set and restore rounding mode.  Remove check for infinite
6674         or NaN input.
6675
6676         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6677
6678         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6679         as used.
6680
6681 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6682
6683         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6684
6685 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6686
6687         * config.make.in (have-glob-dat-reloc): New.
6688         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6689         target supports GLOB_DAT relocaton. AC_SUBST.
6690         * configure: Regenerated.
6691         * elf/Makefile (tests): Add tst-prelink.
6692         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6693         (tst-prelink-ENV): New.
6694         ($(objpfx)tst-prelink-conflict.out): Likewise.
6695         ($(objpfx)tst-prelink-cmp.out): Likewise.
6696         * sysdeps/x86/tst-prelink.c: Moved to ...
6697         * elf/tst-prelink.c: Here.
6698         * sysdeps/x86/tst-prelink.exp: Moved to ...
6699         * elf/tst-prelink.exp: Here.
6700         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6701         (tst-prelink-ENV): Removed.
6702         ($(objpfx)tst-prelink-conflict.out): Likewise.
6703         ($(objpfx)tst-prelink-cmp.out): Likewise.
6704         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6705
6706 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6707
6708         [BZ #14551]
6709         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6710         (__mpn_construct_long_double): If high part overflows to infinity,
6711         set errno and recompute overflowed result of the correct sign.
6712         * sysdeps/ieee754/ldbl-128ibm/Makefile
6713         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6714         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6715         $(libm).
6716         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6717
6718 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6719
6720         [BZ #15479]
6721         [BZ #19238]
6722         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6723         floating-point state after first operation on input.  Restore full
6724         state rather than just rounding mode.
6725         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6726         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6727         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6728
6729         [BZ #19235]
6730         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6731         add 0.5 to integer arguments.
6732         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6733         Likewise.
6734         (.LC2): New object.
6735
6736 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6737
6738         * scripts/pylintrc (reports): Set to no.
6739
6740 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6741
6742         * elf/dl-load.c (open_verify): Take new argument FD.
6743         Skip __open call if passed FD is not -1.
6744         (_dl_map_object, open_path): Update callers.
6745         * elf/dl-sysdep-open.h: New file.
6746         * elf/dl-load.c: Include it.
6747         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6748         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6749         * sysdeps/nacl/dl-sysdep-open.h: New file.
6750         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6751         from libc to rtld.
6752
6753 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6754
6755         [BZ #19228]
6756         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6757         and restore full floating-point state.
6758         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6759         Likewise.
6760         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6761         Likewise.
6762         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6763         Likewise.
6764         * math/test-nearbyint-except-2.c: New file.
6765         * math/Makefile (tests): Add test-nearbyint-except-2.
6766
6767 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
6768
6769         [BZ #19178]
6770         * sysdeps/x86/Makefile (tests): Add tst-prelink.
6771         (tst-prelink-ENV): New.
6772         ($(objpfx)tst-prelink-conflict.out): Likewise.
6773         ($(objpfx)tst-prelink-cmp.out): Likewise.
6774         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6775         * sysdeps/x86/tst-prelink.c: New file.
6776         * sysdeps/x86/tst-prelink.exp: Likewise.
6777
6778 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6779
6780         * math/auto-libm-test-in: Add another test of pow.
6781         * math/auto-libm-test-out: Regenerated.
6782         * math/libm-test.inc (pow_test_data): Add another test.
6783
6784 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6785
6786         [BZ #19219]
6787         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
6788         weak_alias to nearbyintl.
6789
6790 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6791
6792         * sysdeps/aarch64/bits/string.h: New file.
6793         (_STRING_ARCH_unaligned): Define.
6794
6795 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6796
6797         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
6798         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
6799         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
6800         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
6801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
6802
6803 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
6804
6805         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
6806         for original name of the DSO.  Add it to the name list of the DSO
6807         if it is actually given.
6808         (_dl_map_object): Keep track of whether an audit module rewrote
6809         the file name.  If yes, pass the original name to
6810         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
6811         debugging is enabled, log the change of the file name.
6812         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
6813         _dl_map_object_from_fd.
6814         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
6815         * elf/tst-audit11.c: New file
6816         * elf/tst-auditmod11.c: New file.
6817         * elf/tst-audit11mod1.c: New file.
6818         * elf/tst-audit11mod2.c: New file.
6819         * elf/tst-audit11mod2.map: New file.
6820         * elf/tst-audit12.c: New file
6821         * elf/tst-auditmod12.c: New file.
6822         * elf/tst-audit12mod1.c: New file.
6823         * elf/tst-audit12mod2.c: New file.
6824         * elf/tst-audit12mod2.map: New file.
6825         * elf/tst-audit12mod3.c: New file.
6826
6827 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6828
6829         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
6830         Don't create weak aliases,
6831         because versioned symbols are created later.
6832         * sysdeps/s390/s390-32/setjmp.S
6833         (setjmp, _setjmp): Remove weak and rename to an unique name
6834         in SHARED case due to existing versioned symbols.
6835         * sysdeps/s390/s390-64/setjmp.S: Likewise.
6836         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
6837         (getcontext): Create weak alias only in non SHARED case.
6838         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6839
6840 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6841
6842         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
6843         (__ASSUME_*_SYSCALL) Define new macros.
6844         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
6845         Remove socketcall syscalls.
6846         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
6847         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
6848         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
6849         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
6850         * sysdeps/unix/sysv/linux/send.c (__libc_send):
6851         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
6852
6853 2015-11-09  Florian Weimer  <fweimer@redhat.com>
6854
6855         [BZ #12926]
6856         Terminate process on invalid netlink response.
6857         * sysdeps/unix/sysv/linux/netlinkaccess.h
6858         (__netlink_assert_response): Declare.
6859         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
6860         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
6861         (sysdep_routines): Add netlink_assert_response.
6862         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
6863         __netlink_assert_response.
6864         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
6865         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
6866         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
6867         __netlink_assert_response.
6868
6869 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6870
6871         [BZ #19178]
6872         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
6873         (RTYPE_CLASS_PLT): Likewise.
6874         (RTYPE_CLASS_COPY): Likewise.
6875         (RTYPE_CLASS_TLS): Likewise.
6876         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
6877         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
6878         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
6879         DL_DEBUG_PRELINK.
6880
6881 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
6882
6883         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
6884         calls with argument -0.5.
6885         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
6886
6887         * configure.ac (libc_cv_z_nodelete): Remove configure test.
6888         (libc_cv_z_nodlopen): Likewise.
6889         (libc_cv_z_initfirst): Likewise.
6890         * configure: Regenerated.
6891
6892 2015-11-06  Florian Weimer  <fweimer@redhat.com>
6893
6894         Simplify abilist format to be line-based.
6895         * scripts/abilist.awk: Collect descriptors in the descs variable.
6896         (emit): Write descs variable and sort it
6897         externally, with sort.
6898         * sysdeps/**/*.abilist: Convert to new format.
6899
6900 2015-11-06  Mark Wielaard  <mjw@redhat.com>
6901
6902         [BZ #11460]
6903         * io/Makefile (routines): Add fts64.
6904         (tests): Add tst-fts and tst-fts-lfs.
6905         (CFLAGS-fts64.c): New.
6906         * io/Versions (GLIBC_2.23): New.
6907         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
6908         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
6909         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
6910         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
6911         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
6912         (FTSENT64): Likewise.
6913         (fts64_children): Likewise.
6914         (fts64_close): Likewise.
6915         (fts64_open): Likewise.
6916         (fts64_read): Likewise.
6917         (fts64_set): Likewise.
6918         * io/fts64.c: New file.
6919         * io/tst-fts.c: New test.
6920         * io/tst-fts-lfs.c: Likewise.
6921         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
6922         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
6923         fts64_set.
6924         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6925         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6926         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6927         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6928         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6929         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6930         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6931         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6932         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6933         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6934         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6935         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6936         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6938         Likewise.
6939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6940         Likewise.
6941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6943         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6944         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6945         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6946         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6947         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6948         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6949         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6950         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6951         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6952         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6953         * sysdeps/wordsize-64/fts.c: New file.
6954         * sysdeps/wordsize-64/fts64.c: Likewise.
6955         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
6956         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
6957         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
6958         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
6959
6960 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6961
6962         * math/libm-test.inc (NON_FINITE): New macro.
6963         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
6964         * math/gen-libm-test.pl (show_exceptions): Add argument
6965         $non_finite.
6966         (parse_args): Update call to show_exceptions.
6967         * math/test-math-finite.h: New file.
6968         * math/test-math-no-finite.h: Likewise.
6969         * math/test-double-finite.c: Likewise.
6970         * math/test-float-finite.c: Likewise.
6971         * math/test-ldouble-finite.c: Likewise.
6972         * math/test-double.c: Include "test-math-no-finite.h".
6973         * math/test-float.c: Include "test-math-no-finite.h".
6974         * math/test-ldouble.c: Include "test-math-no-finite.h".
6975         * math/test-math-inline.h (TEST_FINITE): New macro.
6976         * math/test-math-vector.h (TEST_FINITE): Likewise.
6977         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
6978         (libm-tests): Add test-float-finite and test-double-finite.
6979         ($(objpfx)test-float-finite.o): New dependency on
6980         $(objpfx)libm-test.stmp.
6981         ($(objpfx)test-double-finite.o): Likewise.
6982         ($(objpfx)test-ldouble-finite.o): Likewise.
6983         (libm-test-no-inline-cflags): New variable.
6984         (libm-test-finite-cflags): Likewise.
6985         (CFLAGS-test-float-finite.c): Likewise.
6986         (CFLAGS-test-double-finite.c): Likewise.
6987         (CFLAGS-test-ldouble-finite.c): Likewise.
6988         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
6989         (CFLAGS-test-double.c): Likewise.
6990         (CFLAGS-test-ldouble.c): Likewise.
6991
6992 2015-11-05  Roland McGrath  <roland@hack.frob.com>
6993
6994         * io/fcntl.c (__fcntl): Add ... to prototype.
6995         * misc/ioctl.c (__ioctl): Likewise.
6996         * misc/syscall.c (syscall): Likewise.
6997
6998 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6999
7000         * scripts/list-fixed-bugs.py: New file.
7001
7002         [BZ #19213]
7003         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7004         returned for argument 1.
7005         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7006         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7007         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7008         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7009         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7010         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7011
7012         [BZ #19211]
7013         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7014         __USE_XOPEN], not if [!__USE_ISOC99].
7015         (lgammaf): Likewise.
7016         (lgammal): Likewise.
7017         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7018         (gammaf): Likewise.
7019         (gammal): Likewise.
7020         * math/test-signgam-finite-c11.c: New file.
7021         * math/test-signgam-finite-c99.c: Likewise.
7022         * math/test-signgam-finite.c: Likewise.
7023         * math/Makefile (tests): Add test-signgam-finite,
7024         test-signgam-finite-c99 and test-signgam-finite-c11.
7025         (CFLAGS-test-signgam-finite.c): New variable.
7026         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7027         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7028
7029         [BZ #19212]
7030         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7031         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7032         500].
7033         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7034         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7035         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7036         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7037         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7038         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7039         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7040         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7041         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7042         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7043
7044         [BZ #19209]
7045         * math/bits/math-finite.h (ldexp): Remove declaration.
7046         (ldexpf): Likewise.
7047         (ldexpl): Likewise.
7048
7049         [BZ #19205]
7050         * math/bits/math-finite.h (acosf): Condition declaration on
7051         [__USE_ISOC99].
7052         (acosl): Likewise.
7053         (acoshf): Likewise.
7054         (acoshl): Likewise.
7055         (asinf): Likewise.
7056         (asinl): Likewise.
7057         (atan2f): Likewise.
7058         (atan2l): Likewise.
7059         (atanhf): Likewise.
7060         (atanhl): Likewise.
7061         (coshf): Likewise.
7062         (coshl): Likewise.
7063         (expf): Likewise.
7064         (expl): Likewise.
7065         (fmodf): Likewise.
7066         (fmodl): Likewise.
7067         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7068         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7069         (j0l): Likewise.
7070         (y0f): Likewise.
7071         (y0l): Likewise.
7072         (j1f): Likewise.
7073         (j1l): Likewise.
7074         (y1f): Likewise.
7075         (y1l): Likewise.
7076         (jnf): Likewise.
7077         (jnl): Likewise.
7078         (ynf): Likewise.
7079         (ynl): Likewise.
7080         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7081         (lgammal_r): Likewise.
7082         (__lgamma_r_finite): New declaration.
7083         (__lgammaf_r_finite): Likewise.
7084         (__lgammal_r_finite): Likewise.
7085         (lgamma): Use __lgamma_r_finite.
7086         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7087         __lgammaf_r_finite.
7088         (lgammal): Condition definition on [__USE_ISOC99].  Use
7089         __lgammal_r_finite.
7090         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7091         __lgamma_r_finite.
7092         (gammaf): Condition definition on [__USE_ISOC99].  Use
7093         __lgammaf_r_finite.
7094         (gammal): Condition definition on [__USE_ISOC99].  Use
7095         __lgammal_r_finite.
7096         (logf): Condition declaration on [__USE_ISOC99].
7097         (logl): Likewise.
7098         (log10f): Likewise.
7099         (log10l): Likewise.
7100         (ldexpf): Likewise.
7101         (ldexpl): Likewise.
7102         (powf): Likewise.
7103         (powl): Likewise.
7104         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7105         __USE_ISOC99].
7106         (remainderf): Condition declaration on [__USE_ISOC99].
7107         (remainderl): Likewise.
7108         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7109         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7110         (scalbl): Likewise.
7111         (sinhf): Condition declaration on [__USE_ISOC99].
7112         (sinhl): Likewise.
7113         (sqrtf): Likewise.
7114         (sqrtl): Likewise.
7115
7116 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7117
7118         * sysdeps/arm/atomic-machine.h
7119         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7120         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7121         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7122         Remove conditional code.
7123         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7124         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7125         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7126         Change conditional to [__ASSEMBLER__].
7127         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7128         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7129         [!__ASSEMBLER__].
7130         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7131         code.
7132         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7133         conditional macro definitions.
7134         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7135         (__arch_compare_and_exchange_val_16_acq): Likewise.
7136         (__arch_compare_and_exchange_val_32_acq): Likewise.
7137         (atomic_exchange_and_add): Likewise.
7138         (atomic_add): Likewise.
7139         (atomic_add_negative): Likewise.
7140         (atomic_add_zero): Likewise.
7141         (atomic_bit_set): Likewise.
7142         (atomic_bit_test_set): Likewise.
7143         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7144         code unconditional.
7145         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7146
7147         * math/test-math-errno.h: New file.
7148         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7149         empty.
7150         (TEST_ERRNO): New macro.
7151         (TEST_EXCEPTIONS): Likewise.
7152         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7153         (TEST_EXCEPTIONS): Likewise.
7154         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7155         * math/test-double.c: Include "test-math-errno.h".
7156         * math/test-float.c: Likewise.
7157         * math/test-ldouble.c: Likewise.
7158         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7159         code unconditional.
7160         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7161         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7162         unconditional.
7163         (test_errno): Only run code if TEST_ERRNO.
7164         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7165
7166 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7167
7168         * nptl/tst-once5.cc: Remove attribution.
7169
7170 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7171
7172         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7173         sqrt, tan, tanh, y0, y1 and yn.
7174         * math/auto-libm-test-out: Regenerated.
7175         * math/libm-test.inc (scalb_test_data): Add more tests.
7176         (scalbn_test_data): Likewise.
7177         (scalbln_test_data): Likewise.
7178         (signbit_test_data): Likewise.
7179         (sin_test_data): Likewise.
7180         (sincos_test_data): Likewise.
7181         (sinh_test_data): Likewise.
7182         (sqrt_test_data): Likewise.
7183         (tan_test_data): Likewise.
7184         (tanh_test_data): Likewise.
7185         (tgamma_test_data): Likewise.
7186         (y0_test_data): Likewise.
7187         (y1_test_data): Likewise.
7188         (yn_test_data): Likewise.
7189         (significand_test_data): Likewise.
7190         * sysdeps/i386/fpu/libm-test-ulps: Update.
7191
7192 2015-11-03  David Kastrup  <dak@gnu.org>
7193
7194         [BZ #18604]
7195         * assert/assert.h (assert): Don't macro-expand failed assertion
7196         expression in error message.
7197         * malloc/malloc.c (assert): Likewise.
7198
7199 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7200
7201         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7202         test.
7203         * configure: Regenerated.
7204
7205 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7206
7207         * math/libm-test.inc (modf_test_data): Add more tests.
7208         (nearbyint_test_data): Likewise.
7209         (nextafter_test_data): Likewise.
7210         (nexttoward_test_data): Likewise.
7211         (pow_test_data): Likewise.
7212         (remainder_test_data): Likewise.
7213         (remquo_test_data): Likewise.
7214         (rint_test_data): Likewise.
7215
7216         [BZ #19201]
7217         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7218         Check for zero remainder in case of large exponents and ensure
7219         correct sign of result in that case.
7220         * math/libm-test.inc (remainder_test_data): Add more tests.
7221
7222         [BZ #6799]
7223         * math/s_nextafter.c: Include <errno.h>.
7224         (__nextafter): Set errno on overflow and underflow.
7225         * math/s_nexttowardf.c: Include <errno.h>.
7226         (__nexttowardf): Set errno on overflow and underflow.
7227         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7228         (__nextafterl): Set errno on overflow and underflow.
7229         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7230         (__nexttoward): Set errno on overflow and underflow.
7231         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7232         (__nexttowardf): Set errno on overflow and underflow.
7233         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7234         (__nextafterf): Set errno on overflow and underflow.
7235         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7236         (__nextafterl): Set errno on overflow and underflow.
7237         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7238         (__nexttoward): Set errno on overflow and underflow.
7239         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7240         (__nexttowardf): Set errno on overflow and underflow.
7241         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7242         (__nextafterl): Set errno on overflow and underflow.
7243         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7244         (__nexttoward): Set errno on overflow and underflow.
7245         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7246         (__nexttowardf): Set errno on overflow and underflow.
7247         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7248         (__nexttoward): Set errno on overflow and underflow.
7249         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7250         (__nexttowardf): Set errno on overflow and underflow.
7251         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7252         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7253         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7254         (__nextafterl): Set errno on overflow and underflow.
7255         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7256         setting to be missing on overflow.  Add more tests.
7257         (nexttoward_test_data): Likewise.
7258
7259         * configure.ac (libc_cv_initfini_array): Remove configure test.
7260         * configure: Regenerated.
7261
7262 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7263
7264         [BZ #19189]
7265         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7266         non-finite argument handle arguments with negative sign.
7267
7268         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7269         result from infinite argument.
7270         (j1_test_data): Likewise.
7271         (jn_test_data): Likewise.
7272         (y0_test_data): Likewise.
7273         (y1_test_data): Likewise.
7274         (yn_test_data): Likewise.
7275
7276         [BZ #16171]
7277         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7278         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7279         * math/w_remainderf.c (dremf): Define as weak alias of
7280         __remainderf.
7281         * math/w_remainderl.c (dreml): Define as weak alias of
7282         __remainderl.
7283         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7284         __remainder.
7285         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7286         __remainderf.
7287         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7288         __remainderl.
7289         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7290         weak alias of remainderl.
7291         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7292         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7293         alias of __remainder.
7294         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7295         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7296         strong alias of __remainderl.
7297         (dreml): Use long_double_symbol.
7298         * math/Makefile (libm-calls): Remove w_drem.
7299         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7300         (CFLAGS-nldbl-drem.c): Remove variable.
7301         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7302         * math/w_drem.c: Remove file.
7303         * math/w_dremf.c: Likewise.
7304         * math/w_dreml.c: Likewise.
7305         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7306         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7307         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7308
7309         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7310         * sysdeps/i386/configure: Regenerated.
7311         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7312         * sysdeps/x86_64/configure: Regenerated.
7313
7314         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7315         test.
7316         (libc_cv_visibility_attribute): Likewise.
7317         (libc_cv_protected_data): Test unconditionally.
7318         (libc_cv_broken_visibility_attribute): Remove configure test.
7319         (libc_cv_have_sdata_section): Test unconditionally.
7320         * configure: Regenerated.
7321
7322         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7323         * include/scratch_buffer.h: Include <stddef.h> instead of
7324         <libc-internal.h>.
7325         (struct scratch_buffer): Use max_align_t instead of
7326         libc_max_align_t.
7327
7328 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7329
7330         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7331         instead of extend_alloca.  Change control flow to avoid a goto.
7332         Remove assert which is trivially always true.
7333
7334 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7335
7336         [BZ #16068]
7337         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7338         (FE_ALL_EXCEPT_X86): New macro.
7339         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7340         FE_ALL_EXCEPT.  Ensure precision control is included in
7341         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7342         handle "denormal operand exception" and clear FZ and DAZ bits.
7343         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7344         (FE_ALL_EXCEPT_X86): New macro.
7345         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7346         FE_ALL_EXCEPT.  Ensure precision control is included in
7347         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7348         handle "denormal operand exception" and clear FZ and DAZ bits.
7349         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7350         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7351         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7352         test-fenv-x87 and test-fenv-sse-2.
7353         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7354
7355         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7356         * math/test-double.h (BUILD_COMPLEX): New macro.
7357         * math/test-float.h (BUILD_COMPLEX): Likewise.
7358         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7359
7360         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7361         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7362         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7363         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7364         instead of DBL_DENORM_MIN in comment.
7365         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7366         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7367         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7368         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7369         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7370         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7371
7372 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7373
7374         [BZ# 19048]
7375         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7376         attached_threads member.
7377         (main_arena): Initialize attached_threads.
7378         * malloc/arena.c (list_lock): Update comment.
7379         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7380         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7381         (deattach_arena): New function.
7382         (_int_new_arena): Initialize arena reference count and deattach
7383         replaced arena.
7384         (get_free_list, reused_arena): Update reference count and deattach
7385         replaced arena.
7386         (arena_thread_freeres): Update arena reference count and only put
7387         unreferenced arenas on the free list.
7388
7389 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7390
7391         [BZ #19181]
7392         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7393         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7394         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7395         * math/test-fenv-clear-main.c: New file.
7396         * math/test-fenv-clear.c: Likewise.
7397         * math/Makefile (tests): Add test-fenv-clear.
7398         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7399         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7400         test-fenv-clear-sse.
7401         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7402
7403         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7404         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7405         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7406
7407 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7408
7409         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7410         static libc.
7411
7412 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7413
7414         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7415         test.
7416         * sysdeps/i386/configure: Regenerated.
7417         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7418         test.
7419         * sysdeps/x86_64/configure: Regenerated.
7420         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7421         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7422         memset-avx2 unconditionally instead of conditionally on
7423         [$(config-cflags-avx2) = yes].
7424         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7425         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7426         unconditional.
7427         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7428         * sysdeps/x86_64/multiarch/memset_chk.S
7429         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7430         to [IS_IN (libc) && SHARED].
7431
7432 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7433
7434         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7435         configure test.
7436         * sysdeps/arm/configure: Regenerated.
7437         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7438         Define variable if not already defined.
7439
7440         [BZ #17404]
7441         * sysdeps/mips/atomic-machine.h
7442         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7443         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7444         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7445
7446         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7447         unconditional.
7448         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7449         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7450         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7451         unconditional.
7452         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7453         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7454         unconditional.
7455         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7456         * stdlib/setenv.c
7457         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7458         code unconditional.
7459         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7460         Remove conditional code.
7461         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7462         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7463         unconditional.
7464         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7465         code.
7466         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7467         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7468         unconditional.
7469         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7470         code.
7471         * sysdeps/ieee754/ldbl-128/k_tanl.c
7472         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7473         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7474         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7475         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7476         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7477         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7478         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7479         unconditional.
7480         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7481         code.
7482         * sysdeps/ieee754/ldbl-96/k_tanl.c
7483         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7484         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7485
7486         * nptl/tst-initializers1-c11.c: New file.
7487         * nptl/tst-initializers1-gnu11.c: Likewise.
7488         * nptl/Makefile (tests): Add these new tests.
7489         (CFLAGS-tst-initializers1-c11.c): New variable.
7490         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7491
7492         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7493         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7494         instead of -std=gnu99.
7495         * configure.ac (systemtap): Test with -std=gnu11 instead of
7496         -std=gnu99.
7497         * configure: Regenerated.
7498         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7499         in compilation command in comment.
7500
7501         * sysdeps/nptl/configure.ac: Remove file.
7502         * sysdeps/nptl/configure: Remove generated file.
7503         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7504         * configure: Regenerated.
7505         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7506         * config.make.in (have-forced-unwind): Remove variable.
7507         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7508         unconditional.
7509         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7510         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7511         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7512         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7513         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7514         unconditional.
7515
7516 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7517
7518         [BZ #19174]
7519         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7520         .skip_lock_out_of_tbegin_retries.
7521         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7522         (__lll_lock_elision): Likewise, and respect a value of
7523         try_tbegin <= 0.
7524
7525 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7526
7527         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7528         statement.
7529
7530 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7531
7532         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7533         variable.
7534         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7535         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7536
7537         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7538         of -std=c1x -D_ISOC11_SOURCE.
7539
7540         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7541         * configure: Regenerated.
7542         * manual/install.texi (Tools for Compilation): Document
7543         requirement for GCC 4.7 or later.
7544         * INSTALL: Regenerated.
7545
7546 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7547
7548         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7549         on CNT to a conditional jump to 'puntdata'.
7550
7551 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7552
7553         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7554         (libc_cv_gcc_tls_model_attr): Likewise.
7555         * configure: Regenerated.
7556
7557         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7558         * configure: Regenerated.
7559         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7560
7561 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7562
7563         * configure.ac (old_glibc_headers): Remove configure test.
7564         * configure: Regenerated.
7565         * config.make.in (old-glibc-headers): Remove variable.
7566         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7567         (install): Remove dependency on remove-old-headers.
7568         (headers2_0): Remove variable.
7569         (remove-old-headers): Remove rule.
7570
7571         * configure.ac (libc_cv_dot_text): Remove configure test.
7572         (libc_cv_asm_set_directive): Use .text instead of
7573         ${libc_cv_dot_text} in configure test.
7574         * configure: Regenerated.
7575
7576 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7577
7578         [BZ #19168]
7579         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7580
7581 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7582
7583         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7584         not support static linking.
7585         * configure: Regenerate.
7586
7587 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7588
7589         * math/libm-test.inc (check_float_internal): Do not special-case
7590         errors up to 0.5 ulp.
7591
7592         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7593         log2.
7594         * math/auto-libm-test-out: Regenerated.
7595         * math/libm-test.inc (MAX_EXP): New macro.
7596         (ilogb_test_data): Add more tests.
7597         (isfinite_test_data): Likewise.
7598         (isgreater_test_data): Likewise.
7599         (isgreaterequal_test_data): Likewise.
7600         (isinf_test_data): Likewise.
7601         (isless_test_data): Likewise.
7602         (islessequal_test_data): Likewise.
7603         (islessgreater_test_data): Likewise.
7604         (isnan_test_data): Likewise.
7605         (isnormal_test_data): Likewise.
7606         (issignaling_test_data): Likewise.
7607         (isunordered_test_data): Likewise.
7608         (j0_test_data): Likewise.
7609         (j1_test_data): Likewise.
7610         (jn_test_data): Likewise.
7611         (lgamma_test_data): Likewise.
7612         (log_test_data): Likewise.
7613         (log10_test_data): Likewise.
7614         (log1p_test_data): Likewise.
7615         (log2_test_data): Likewise.
7616         (logb_test_data): Likewise.
7617         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7618
7619         [BZ #18611]
7620         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7621         avoid excess range and precision on underflow.
7622         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7623         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7624         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7625         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7626         underflow.
7627         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7628         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7629         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7630         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7631         * math/auto-libm-test-in: Do not allow missing errno setting for
7632         tests of j1 and jn.
7633         * math/auto-libm-test-out: Regenerated.
7634
7635 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7636
7637         [BZ #15491]
7638         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7639         floating-point environment instead of clearing all exceptions.
7640         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7641         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7642         merging in "invalid" exceptions from frndint.
7643         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7644         * math/test-nearbyint-except.c: New file.
7645         * math/Makefile (tests): Add test-nearbyint-except.
7646
7647 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7648
7649         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7650
7651         * sysdeps/tile/libm-test-ulps: Regenerated.
7652
7653 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7654
7655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7656         (__NR_sync_file_range2): Assume it is always defined.
7657         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7658         (__NR_sync_file_range): Assume it is always defined.
7659
7660 2015-10-22  Andreas Schwab  <schwab@suse.de>
7661
7662         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7663         INTERNAL_SYSCALL_ERRNO.
7664         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7665         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7666         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7667         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7668         Likewise.
7669         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7670
7671 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7672
7673         * io/tst-fcntl.c (fd): New static variable.
7674         (do_prepare): Open temporary file here....
7675         (do_test): ...not here.
7676
7677         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7678
7679 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7680
7681         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7682         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7683         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7684         Moved before "#ifdef __ASSEMBLER__".
7685
7686 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7687
7688         [BZ #19156]
7689         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7690         arguments very close to 0.
7691
7692 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7693
7694         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7695         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7696
7697 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7698
7699         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7700         New.  Defined for GCC 5 and above when not compiling for
7701         profiling.
7702         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7703
7704         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7705         Renamed to ...
7706         (CFLAGS-epoll_pwait.o): This.
7707         (CFLAGS-mmap.c): Renamed to ...
7708         (CFLAGS-mmap.o): This.
7709         (CFLAGS-mmap64.c): Renamed to ...
7710         (CFLAGS-mmap64.o): This.
7711         (CFLAGS-epoll_pwait.os): New.
7712         (CFLAGS-mmap.os): Likewise.
7713         (CFLAGS-mmap64.os): Likewise.
7714         (CFLAGS-semtimedop.os): Likewise.
7715         (CFLAGS-semtimedop.c): Renamed to ...
7716         (CFLAGS-semtimedop.o): This.
7717
7718 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7719
7720         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7721         warning message.
7722
7723 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7724
7725         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7726         * Makefile ($(objpfx)c++-types-check.out): Filter out
7727         $(+gccwarn-c) instead of -Wstrict-prototypes.
7728
7729         * io/fts.c (fts_open): Convert to prototype-style function
7730         definition.
7731         * malloc/mcheck.c (mcheck): Likewise.
7732         (mcheck_pedantic): Likewise.
7733         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7734         internal_function.
7735         (re_search_internal): Likewise.
7736         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7737         prototype-style function definition.
7738         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7739         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7740         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7741         (xdr_utmpptr): Likewise.
7742         (xdr_utmparr): Likewise.
7743         (xdr_utmpidle): Likewise.
7744         (xdr_utmpidleptr): Likewise.
7745         (xdr_utmpidlearr): Likewise.
7746
7747         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7748         log, log10 and log2.
7749         * math/auto-libm-test-out: Regenerated.
7750         * math/libm-test.inc (fmod_test_data): Add more tests.
7751         (fpclassify_test_data): Likewise.
7752         (frexp_test_data): Likewise.
7753         (hypot_test_data): Likewise.
7754         (ilogb_test_data): Likewise.
7755
7756 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7757
7758         * debug/fortify_fail.c (__fortify_fail): Convert to
7759         prototype-style function definition.  Use internal_function.
7760         * libio/genops.c (save_for_backup): Convert to prototype-style
7761         function definition.
7762         * libio/wgenops.c (save_for_wbackup): Likewise.
7763         * login/grantpt.c (grantpt): Likewise.
7764         * login/ptsname.c (ptsname): Likewise.
7765         (__ptsname_r): Likewise.
7766         * login/unlockpt.c (unlockpt): Likewise.
7767         * mach/msgserver.c (__mach_msg_server): Likewise.
7768         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
7769         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
7770         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
7771         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
7772         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
7773         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
7774         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
7775         Likewise.
7776         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
7777         internal_function.
7778         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
7779         prototype-style function definition.
7780         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
7781         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
7782         (__pthread_create_2_0): Likewise.
7783         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
7784         * nptl/register-atfork.c (__register_atfork): Likewise.
7785         * posix/glob.c (glob): Likewise.
7786         * posix/regcomp.c (re_comp): Likewise.
7787         * posix/regexec.c (re_exec): Likewise.
7788         * stdlib/add_n.c [__STDC__]: Make code unconditional.
7789         [!__STDC__]: Remove conditional code.
7790         * stdlib/cmp.c [__STDC__]: Make code unconditional.
7791         [!__STDC__]: Remove conditional code.
7792         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
7793         [!__STDC__]: Remove conditional code.
7794         * stdlib/divrem.c [__STDC__]: Make code unconditional.
7795         [!__STDC__]: Remove conditional code.
7796         * stdlib/lshift.c [__STDC__]: Make code unconditional.
7797         [!__STDC__]: Remove conditional code.
7798         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
7799         [!__STDC__]: Remove conditional code.
7800         * stdlib/mul.c [__STDC__]: Make code unconditional.
7801         [!__STDC__]: Remove conditional code.
7802         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
7803         [!__STDC__]: Remove conditional code.
7804         * stdlib/rshift.c [__STDC__]: Make code unconditional.
7805         [!__STDC__]: Remove conditional code.
7806         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
7807         function definition.
7808         (STRTOF): Likewise.
7809         * stdlib/strtod_l.c (__STRTOF): Likewise.
7810         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
7811         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
7812         (__strtol_l): Likewise.
7813         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
7814         [!__STDC__]: Remove conditional code.
7815         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
7816         definition.
7817         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7818         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7819         type.
7820         (__strcasecmp): Convert to prototype-style function definition.
7821         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
7822         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7823         type.
7824         (__strncasecmp): Convert to prototype-style function definition.
7825         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
7826         * sunrpc/xdr.c (xdr_union): Likewise.
7827         * sunrpc/xdr_array.c (xdr_array): Likewise.
7828         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
7829         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
7830         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
7831         Likewise.
7832         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
7833         Likewise.
7834         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
7835         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7836         Likewise.
7837         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
7838         (LOCALE_PARAM_PROTO): Likewise.
7839         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
7840         argument type.
7841         (ut_argument_spec): Remove macro.
7842         (ut_argument_spec_iso): Rename to ut_argument_spec.
7843         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
7844         prototype-style function definition.
7845         (memcpy_uppcase): Likewise.
7846         (__strftime_internal): Likewise.
7847         (my_strftime): Likewise.
7848         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
7849         (LOCALE_PARAM_DECL): Likewise.
7850         [_LIBC] (LOCALE_PARAM): Include argument type.
7851         (__strptime_internal): Convert to prototype-style function
7852         definition.
7853         (strptime): Likewise.
7854         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7855         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7856         type.
7857         (__wcscasecmp): Convert to prototype-style function definition.
7858         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
7859         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7860         type.
7861         (__wcsncasecmp): Convert to prototype-style function definition.
7862
7863         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
7864         function definition.
7865         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7866         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7867         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
7868         * elf/dl-minimal.c (_itoa): Likewise.
7869         * hurd/hurdmalloc.c (malloc): Likewise.
7870         (free): Likewise.
7871         (realloc): Likewise.
7872         * inet/inet6_option.c (inet6_option_space): Likewise.
7873         (inet6_option_init): Likewise.
7874         (inet6_option_append): Likewise.
7875         (inet6_option_alloc): Likewise.
7876         (inet6_option_next): Likewise.
7877         (inet6_option_find): Likewise.
7878         * io/ftw.c (FTW_NAME): Likewise.
7879         (NFTW_NAME): Likewise.
7880         (NFTW_NEW_NAME): Likewise.
7881         (NFTW_OLD_NAME): Likewise.
7882         * libio/iofwide.c (_IO_fwide): Likewise.
7883         * libio/strops.c (_IO_str_init_static_internal): Likewise.
7884         (_IO_str_init_static): Likewise.
7885         (_IO_str_init_readonly): Likewise.
7886         (_IO_str_overflow): Likewise.
7887         (_IO_str_underflow): Likewise.
7888         (_IO_str_count): Likewise.
7889         (_IO_str_seekoff): Likewise.
7890         (_IO_str_pbackfail): Likewise.
7891         (_IO_str_finish): Likewise.
7892         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
7893         (_IO_wstr_overflow): Likewise.
7894         (_IO_wstr_underflow): Likewise.
7895         (_IO_wstr_count): Likewise.
7896         (_IO_wstr_seekoff): Likewise.
7897         (_IO_wstr_pbackfail): Likewise.
7898         (_IO_wstr_finish): Likewise.
7899         * locale/programs/localedef.c (normalize_codeset): Likewise.
7900         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7901         (add_locales_to_archive): Likewise.
7902         (delete_locales_from_archive): Likewise.
7903         * malloc/malloc.c (__libc_mallinfo): Likewise.
7904         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
7905         * misc/tsearch.c (__tfind): Likewise.
7906         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
7907         * nptl/pthread_attr_getdetachstate.c
7908         (__pthread_attr_getdetachstate): Likewise.
7909         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
7910         Likewise.
7911         * nptl/pthread_attr_getinheritsched.c
7912         (__pthread_attr_getinheritsched): Likewise.
7913         * nptl/pthread_attr_getschedparam.c
7914         (__pthread_attr_getschedparam): Likewise.
7915         * nptl/pthread_attr_getschedpolicy.c
7916         (__pthread_attr_getschedpolicy): Likewise.
7917         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
7918         Likewise.
7919         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
7920         Likewise.
7921         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
7922         Likewise.
7923         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
7924         Likewise.
7925         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
7926         (__pthread_attr_init_2_0): Likewise.
7927         * nptl/pthread_attr_setdetachstate.c
7928         (__pthread_attr_setdetachstate): Likewise.
7929         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
7930         Likewise.
7931         * nptl/pthread_attr_setinheritsched.c
7932         (__pthread_attr_setinheritsched): Likewise.
7933         * nptl/pthread_attr_setschedparam.c
7934         (__pthread_attr_setschedparam): Likewise.
7935         * nptl/pthread_attr_setschedpolicy.c
7936         (__pthread_attr_setschedpolicy): Likewise.
7937         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
7938         Likewise.
7939         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
7940         Likewise.
7941         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
7942         Likewise.
7943         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
7944         Likewise.
7945         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
7946         Likewise.
7947         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
7948         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
7949         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
7950         use internal_function.
7951         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
7952         prototype-style function definition.
7953         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
7954         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
7955         internal_function.
7956         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
7957         Convert to prototype-style function definition.
7958         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7959         Likewise.
7960         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
7961         Likewise.
7962         (__pthread_mutex_unlock): Likewise.
7963         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
7964         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
7965         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
7966         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
7967         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
7968         * nss/makedb.c (process_input): Likewise.
7969         * posix/fnmatch.c (__strchrnul): Likewise.
7970         (__wcschrnul): Likewise.
7971         (fnmatch): Likewise.
7972         * posix/fnmatch_loop.c (FCT): Likewise.
7973         * posix/glob.c (globfree): Likewise.
7974         (__glob_pattern_type): Likewise.
7975         (__glob_pattern_p): Likewise.
7976         * posix/regcomp.c (re_compile_pattern): Likewise.
7977         (re_set_syntax): Likewise.
7978         (re_compile_fastmap): Likewise.
7979         (regcomp): Likewise.
7980         (regerror): Likewise.
7981         (regfree): Likewise.
7982         * posix/regexec.c (regexec): Likewise.
7983         (re_match): Likewise.
7984         (re_search): Likewise.
7985         (re_match_2): Likewise.
7986         (re_search_2): Likewise.
7987         (re_search_stub): Likewise.  Use internal_function
7988         (re_copy_regs): Likewise.
7989         (re_set_registers): Convert to prototype-style function
7990         definition.
7991         (prune_impossible_nodes): Likewise.  Use internal_function.
7992         * resolv/inet_net_pton.c (inet_net_pton): Convert to
7993         prototype-style function definition.
7994         (inet_net_pton_ipv4): Likewise.
7995         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7996         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
7997         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7998         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
7999         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8000         Make variadic.
8001         * time/strptime_l.c (localtime_r): Convert to prototype-style
8002         function definition.
8003         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8004         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8005         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8006         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8007
8008         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8009         definition.
8010         (_ufc_doit_r): Likewise.
8011         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8012         (_ufc_output_conversion_r): Likewise.
8013         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8014         * inet/rcmd.c (rcmd_af): Likewise.
8015         (rcmd): Likewise.
8016         (ruserok_af): Likewise.
8017         (ruserok): Likewise.
8018         (ruserok2_sa): Likewise.
8019         (ruserok_sa): Likewise.
8020         (iruserok_af): Likewise.
8021         (iruserok): Likewise.
8022         (__ivaliduser): Likewise.
8023         (__validuser2_sa): Likewise.
8024         * inet/rexec.c (rexec_af): Likewise.
8025         (rexec): Likewise.
8026         * inet/ruserpass.c (ruserpass): Likewise.
8027         * locale/programs/xmalloc.c (xcalloc): Likewise.
8028         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8029         * math/w_drem.c (__drem): Likewise.
8030         * math/w_dremf.c (__dremf): Likewise.
8031         * math/w_dreml.c (__dreml): Likewise.
8032         * misc/daemon.c (daemon): Likewise.
8033         * resolv/res_debug.c (p_fqnname): Likewise.
8034         * stdlib/div.c (div): Likewise.
8035         * string/memcmp.c (memcmp_bytes): Likewise.
8036         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8037         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8038
8039         * crypt/cert.c (main): Convert to prototype-style function
8040         definition.
8041         * io/pipe.c (__pipe): Likewise.
8042         * io/pipe2.c (__pipe2): Likewise.
8043         * misc/futimesat.c (futimesat): Likewise.
8044         * misc/utimes.c (__utimes): Likewise.
8045         * posix/execve.c (__execve): Likewise.
8046         * posix/execvp.c (execvp): Likewise.
8047         * posix/execvpe.c (__execvpe): Likewise.
8048         * posix/fexecve.c (fexecve): Likewise.
8049         * socket/socketpair.c (socketpair): Likewise.
8050         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8051         * stdlib/erand48.c (erand48): Likewise.
8052         * stdlib/erand48_r.c (__erand48_r): Likewise.
8053         * stdlib/jrand48.c (jrand48): Likewise.
8054         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8055         * stdlib/lcong48.c (lcong48): Likewise.
8056         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8057         * stdlib/nrand48.c (nrand48): Likewise.
8058         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8059         * stdlib/seed48.c (seed48): Likewise.
8060         * stdlib/seed48_r.c (__seed48_r): Likewise.
8061         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8062         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8063         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8064
8065 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8066
8067         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8068         * configure: Regenerated.
8069         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8070         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8071         unconditional.
8072         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8073         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8074         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8075         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8076         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8077         unconditional.
8078         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8079
8080         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8081         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8082
8083         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8084         function definition.
8085         * crypt/crypt_util.c (__encrypt_r): Likewise.
8086         * libio/genops.c (_IO_no_init): Likewise.
8087         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8088         (_IO_old_fopencookie): Likewise.
8089         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8090         * libio/iogetline.c (_IO_getline): Likewise.
8091         (_IO_getline_info): Likewise.
8092         * libio/iogetwline.c (_IO_getwline): Likewise.
8093         (_IO_getwline_info): Likewise.
8094         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8095         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8096         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8097         (find_entry): Likewise.
8098         (iterate_table): Likewise.
8099         (lookup): Likewise.
8100         * login/forkpty.c (forkpty): Likewise.
8101         * misc/hsearch_r.c (__hsearch_r): Likewise.
8102         * misc/select.c (__select): Likewise.
8103         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8104         Likewise.
8105         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8106         Likewise.
8107         * nptl/old_pthread_cond_timedwait.c
8108         (__pthread_cond_timedwait_2_0): Likewise.
8109         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8110         * nptl/pthread_barrierattr_getpshared.c
8111         (pthread_barrierattr_getpshared): Likewise.
8112         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8113         Likewise.
8114         * nptl/pthread_mutex_setprioceiling.c
8115         (pthread_mutex_setprioceiling): Likewise.
8116         * nptl/pthread_mutexattr_getprioceiling.c
8117         (pthread_mutexattr_getprioceiling): Likewise.
8118         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8119         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8120         Likewise.
8121         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8122         Likewise.
8123         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8124         Likewise.
8125         * socket/recvfrom.c (__recvfrom): Likewise.
8126         * socket/sendto.c (__sendto): Likewise.
8127         * socket/setsockopt.c (__setsockopt): Likewise.
8128         * stdio-common/_itoa.c (_itoa): Likewise.
8129         * stdio-common/_itowa.c (_itowa): Likewise.
8130         * stdio-common/reg-printf.c (__register_printf_specifier):
8131         Likewise.
8132         (__register_printf_function): Likewise.
8133         * stdio-common/tempname.c (__path_search): Likewise.
8134         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8135         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8136         * stdlib/random_r.c (__initstate_r): Likewise.
8137         * stdlib/setenv.c (__add_to_environ): Likewise.
8138         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8139         * streams/getpmsg.c (getpmsg): Likewise.
8140         * streams/putmsg.c (putmsg): Likewise.
8141         * streams/putpmsg.c (putpmsg): Likewise.
8142         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8143         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8144         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8145         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8146         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8147         * sunrpc/svc_udp.c (cache_get): Likewise.
8148         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8149         * sysdeps/mach/hurd/getcwd.c
8150         (__canonicalize_directory_name_internal): Likewise.
8151         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8152         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8153         * sysdeps/mach/hurd/select.c (__select): Likewise.
8154         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8155         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8156         * sysdeps/sparc/nptl/pthread_barrier_init.c
8157         (__pthread_barrier_init): Likewise.
8158         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8159         (__pthread_cond_timedwait): Likewise.
8160         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8161         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8162         Likewise.
8163         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8164         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8165         Likewise.
8166         * sysvipc/semtimedop.c (semtimedop): Likewise.
8167         * time/setitimer.c (__setitimer): Likewise.
8168         * time/strftime_l.c (emacs_strftime): Likewise.
8169
8170 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8171
8172         * config.make.in (have-ssp): Delete.
8173         (stack-protector): New variable.
8174         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8175         cache test for -fstack-protector-strong.  Export stack_protector to
8176         the best ssp flag.
8177         * configure: Regenerated.
8178         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8179         * nscd/Makefile (CFLAGS-nscd): Likewise.
8180         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8181
8182 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8183
8184         [BZ #19122]
8185         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8186         attribute_hidden.
8187
8188 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8189
8190         [BZ #18743]
8191         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8192         code to...
8193         (ELIDE_LOCK): ...here.
8194         (__get_new_count): New function with part of the code from
8195         __elide_lock that updates the value of adapt_count after a
8196         transaction abort.
8197         (__elided_trylock): Moved this code to...
8198         (ELIDE_TRYLOCK): ...here.
8199
8200 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8201
8202         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8203         * configure: Regenerate.
8204         * INSTALL: Regenerate.
8205         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8206         and tweak grammar.
8207
8208 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8209
8210         * login/programs/pt_chown.c: Include signal.h
8211         (main): Clear any signal mask from the parent process.
8212
8213 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8214
8215         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8216         * configure: Regenerated.
8217         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8218         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8219         $(gnu89-inline-CFLAGS).
8220
8221         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8222         test.
8223         (libc_cv_asm_weakext_directive): Likewise.
8224         * configure: Regenerated.
8225         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8226         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8227         * include/libc-symbols.h
8228         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8229         #error.
8230         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8231         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8232
8233         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8234         prototype-style function definition.
8235         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8236         * sysdeps/i386/ffs.c (__ffs): Likewise.
8237         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8238         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8239         Likewise.
8240         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8241         Likewise.
8242         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8243         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8244         Likewise.
8245         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8246         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8247         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8248         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8249         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8250         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8251         * sysdeps/mach/hurd/access.c (__access): Likewise.
8252         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8253         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8254         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8255         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8256         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8257         (cthread_getspecific): Likewise.
8258         (cthread_setspecific): Likewise.
8259         (__libc_getspecific): Likewise.
8260         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8261         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8262         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8263         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8264         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8265         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8266         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8267         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8268         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8269         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8270         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8271         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8272         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8273         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8274         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8275         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8276         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8277         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8278         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8279         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8280         * sysdeps/mach/hurd/link.c (__link): Likewise.
8281         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8282         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8283         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8284         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8285         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8286         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8287         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8288         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8289         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8290         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8291         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8292         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8293         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8294         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8295         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8296         * sysdeps/mach/hurd/send.c (__send): Likewise.
8297         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8298         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8299         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8300         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8301         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8302         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8303         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8304         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8305         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8306         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8307         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8308         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8309         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8310         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8311         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8312         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8313         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8314         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8315         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8316         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8317         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8318         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8319         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8320         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8321         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8322         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8323         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8324         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8325         * sysdeps/posix/alarm.c (alarm): Likewise.
8326         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8327         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8328         * sysdeps/posix/dup.c (__dup): Likewise.
8329         * sysdeps/posix/dup2.c (__dup2): Likewise.
8330         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8331         (main): Likewise.
8332         * sysdeps/posix/flock.c (__flock): Likewise.
8333         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8334         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8335         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8336         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8337         * sysdeps/posix/isatty.c (__isatty): Likewise.
8338         * sysdeps/posix/killpg.c (killpg): Likewise.
8339         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8340         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8341         * sysdeps/posix/raise.c (raise): Likewise.
8342         * sysdeps/posix/remove.c (remove): Likewise.
8343         * sysdeps/posix/rename.c (rename): Likewise.
8344         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8345         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8346         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8347         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8348         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8349         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8350         * sysdeps/posix/sigset.c (sigset): Likewise.
8351         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8352         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8353         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8354         * sysdeps/posix/time.c (time): Likewise.
8355         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8356         (ttyname): Likewise.
8357         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8358         * sysdeps/posix/utime.c (utime): Likewise.
8359         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8360         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8361         Likewise.
8362         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8363         (pthread_spin_trylock): Likewise.
8364         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8365         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8366         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8367         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8368         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8369         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8370         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8371         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8372         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8373         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8374         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8375         * sysdeps/s390/ffs.c (__ffs): Likewise.
8376         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8377         Likewise.
8378         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8379         Likewise.
8380         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8381         Likewise.
8382         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8383         (pthread_barrier_destroy): Likewise.
8384         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8385         (__pthread_barrier_wait): Likewise.
8386         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8387         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8388         (__pthread_barrier_wait): Likewise.
8389         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8390         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8391         (memcmp_not_common_alignment): Likewise.
8392         (MEMCMP): Likewise.
8393         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8394         (_wordcopy_fwd_dest_aligned): Likewise.
8395         (_wordcopy_bwd_aligned): Likewise.
8396         (_wordcopy_bwd_dest_aligned): Likewise.
8397         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8398         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8399         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8400         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8401         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8402         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8403         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8404         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8405         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8406         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8407         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8408         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8409         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8410         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8411         * sysdeps/unix/stime.c (stime): Likewise.
8412         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8413         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8414         Likewise.  Use internal_function.
8415         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8416         Convert to prototype-style function definition.
8417         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8418         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8419         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8420         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8421         Likewise.  Use internal_function.
8422         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8423         prototype-style function definition
8424         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8425         Likewise.
8426         (__getlogin_r): Likewise.
8427         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8428         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8429         (__pthread_cond_broadcast): Likewise.
8430         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8431         (__pthread_cond_destroy): Likewise.
8432         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8433         (__pthread_cond_init): Likewise.
8434         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8435         (__pthread_cond_signal): Likewise.
8436         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8437         (__pthread_cond_wait): Likewise.
8438         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8439         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8440         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8441         Likewise.
8442         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8443         Likewise.
8444         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8445         Likewise.
8446         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8447         Likewise.
8448         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8450         (__ftruncate64): Likewise.
8451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8452         (truncate64): Likewise.
8453         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8454         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8455         (pthread_getcpuclockid): Likewise.
8456         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8457         Likewise.
8458         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8459         Likewise.
8460         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8461         Likewise.
8462         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8463         Likewise.
8464         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8465         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8466         (__libc_sigaction): Likewise.
8467         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8468         Likewise.
8469         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8470         (__sigprocmask): Likewise.
8471         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8472         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8473         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8474         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8475         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8476         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8477         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8478         Likewise.
8479         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8480         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8481         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8482         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8483         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8484         Likewise.
8485         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8486         (__sigprocmask): Likewise.
8487         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8488         (cfgetispeed): Likewise.
8489         (cfsetospeed): Likewise.
8490         (cfsetispeed): Likewise.
8491         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8492         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8493         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8494         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8495         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8496         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8497         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8498         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8499         Likewise.
8500         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8501         Likewise.
8502         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8503         Likewise.
8504         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8505         Likewise.
8506         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8507
8508 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8509
8510         sunrpc: Rewrite with explicit TLS access using __thread.
8511         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8512         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8513         directly.
8514         (__rpc_thread_variables): Access thread_rpc_vars directly.
8515         Eliminate redundant assignment of the tvp variable.
8516
8517 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8518
8519         malloc: Rewrite with explicit TLS access using __thread.
8520         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8521         (tsd_setspecific, tsd_getspecific): Remove.
8522         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8523         (tsd_setspecific, tsd_getspecific): Likewise.
8524         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8525         (tsd_setspecific, tsd_getspecific): Likewise.
8526         * malloc/arena.c (thread_arena): New TLS variable.
8527         (arena_key): Remove variable.
8528         (arena_get): Use thread_arena.
8529         (arena_lookup): Remove macro.
8530         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8531         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8532         (_int_new_arena, get_free_list, reused_arena)
8533         (arena_thread_freeres): Use thread_arena.
8534         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8535         tsd_getspecific, tsd_setspecific from safety annotations.
8536         (Allocating Cleared Space): Remove arena_lookup from safety
8537         annotations.
8538
8539 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8540
8541         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8542         struct scratch_buffer instead of extend_alloca.
8543
8544 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8545
8546         * sysdeps/unix/sysv/linux/kernel-features.h
8547         (__ASSUME_SOCK_CLOEXEC): Remove.
8548         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8549         (__have_paccept): Remove unused macro.
8550         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8551         * misc/syslog.c (openlog_internal): Remove fallback code for
8552         !__ASSUME_SOCK_CLOEXEC.
8553         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8554         missing SOCK_CLOEXEC.
8555         * nscd/connections.c (have_sock_cloexec): Remove definition.
8556         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8557         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8558         !__ASSUME_SOCK_CLOEXEC.
8559         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8560         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8561         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8562         definition.
8563         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8564         code for !__ASSUME_SOCK_CLOEXEC.
8565
8566 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8567
8568         [BZ #18982]
8569         * manual/stdio.texi (Variable Arguments Output): Add portability
8570         note, explaining that vfprintf clobbers the va_list pointer.
8571
8572 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8573
8574         * math/libm-test.inc (fabs_test_data): Add more tests.
8575         (fdim_test_data): Likewise.
8576         (fma_test_data): Likewise.
8577         (fmax_test_data): Likewise.
8578         (fmin_test_data): Likewise.
8579         (fmod_test_data): Likewise.
8580
8581 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8582
8583         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8584         data.
8585
8586 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8587
8588         * math/libm-test.inc (ceil_test_data): Add more tests and more
8589         expectations for "inexact".
8590         (floor_test_data): Add more tests.
8591         (round_test_data): Likewise.
8592         (trunc_test_data): Likewise.
8593
8594         * crypt/cert.c (good_bye): Convert to prototype-style function
8595         definition.
8596         (get8): Likewise.
8597         (put8): Likewise.
8598         * crypt/crypt-entry.c (crypt): Likewise.
8599         (__fcrypt): Likewise.
8600         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8601         (_ufc_set_bits): Likewise.
8602         (_ufc_clearmem): Likewise.
8603         (__init_des_r): Likewise.
8604         (shuffle_sb): Likewise.
8605         (shuffle_sb): Likewise.
8606         (_ufc_setup_salt_r): Likewise.
8607         (_ufc_mk_keytab_r): Likewise.
8608         (_ufc_dofinalperm_r): Likewise.
8609         (encrypt): Likewise.
8610         (__setkey_r): Likewise.
8611         (setkey): Likewise.
8612         * crypt/md5.c (md5_init_ctx): Likewise.
8613         (md5_read_ctx): Likewise.
8614         (md5_finish_ctx): Likewise.
8615         (md5_stream): Likewise.
8616         (md5_buffer): Likewise.
8617         (md5_process_bytes): Likewise.
8618         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8619         (__sha256_finish_ctx): Likewise.
8620         (__sha256_process_bytes): Likewise.
8621         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8622         (__sha512_finish_ctx): Likewise.
8623         (__sha512_process_bytes): Likewise.
8624         * ctype/isctype.c (__isctype): Likewise.
8625         * debug/backtrace.c (__backtrace): Likewise.
8626         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8627         * debug/fgets_chk.c (__fgets_chk): Likewise.
8628         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8629         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8630         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8631         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8632         * debug/memset_chk.c (__memset_chk): Likewise.
8633         * debug/strcat_chk.c (__strcat_chk): Likewise.
8634         * debug/strncat_chk.c (__strncat_chk): Likewise.
8635         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8636         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8637         * dirent/dirfd.c (dirfd): Likewise.
8638         * dirent/getdents.c (__getdirentries): Likewise.
8639         * dirent/getdents64.c (getdirentries64): Likewise.
8640         * dirent/rewinddir.c (__rewinddir): Likewise.
8641         * dirent/seekdir.c (seekdir): Likewise.
8642         * dirent/telldir.c (telldir): Likewise.
8643         * elf/sln.c (makesymlinks): Likewise.
8644         (makesymlink): Likewise.
8645         * gmon/gmon.c (__moncontrol): Likewise.
8646         (__monstartup): Likewise.
8647         (write_hist): Likewise.
8648         (write_call_graph): Likewise.
8649         (write_bb_counts): Likewise.
8650         * grp/setgroups.c (setgroups): Likewise.
8651         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8652         * inet/inet_net.c (inet_network): Likewise.
8653         * inet/inet_netof.c (inet_netof): Likewise.
8654         * inet/rcmd.c (rresvport_af): Likewise.
8655         (rresvport): Likewise.
8656         * io/access.c (__access): Likewise.
8657         * io/chdir.c (__chdir): Likewise.
8658         * io/chmod.c (__chmod): Likewise.
8659         * io/chown.c (__chown): Likewise.
8660         * io/close.c (__close): Likewise.
8661         * io/creat.c (creat): Likewise.
8662         * io/creat64.c (creat64): Likewise.
8663         * io/dup.c (__dup): Likewise.
8664         * io/dup2.c (__dup2): Likewise.
8665         * io/dup3.c (__dup3): Likewise.
8666         * io/euidaccess.c (__euidaccess): Likewise.
8667         * io/faccessat.c (faccessat): Likewise.
8668         * io/fchmod.c (__fchmod): Likewise.
8669         * io/fchmodat.c (fchmodat): Likewise.
8670         * io/fchown.c (__fchown): Likewise.
8671         * io/fchownat.c (fchownat): Likewise.
8672         * io/fcntl.c (__fcntl): Likewise.
8673         * io/flock.c (__flock): Likewise.
8674         * io/fts.c (fts_load): Likewise.
8675         (fts_close): Likewise.
8676         (fts_read): Likewise.
8677         (fts_set): Likewise.
8678         (fts_children): Likewise.
8679         (fts_build): Likewise.
8680         (fts_stat): Likewise.
8681         (fts_sort): Likewise.
8682         (fts_alloc): Likewise.
8683         (fts_lfree): Likewise.
8684         (fts_palloc): Likewise.
8685         (fts_padjust): Likewise.
8686         (fts_maxarglen): Likewise.
8687         (fts_safe_changedir): Likewise.
8688         * io/getwd.c (getwd): Likewise.
8689         * io/isatty.c (__isatty): Likewise.
8690         * io/lchown.c (__lchown): Likewise.
8691         * io/link.c (__link): Likewise.
8692         * io/linkat.c (linkat): Likewise.
8693         * io/lseek.c (__libc_lseek): Likewise.
8694         * io/mkdir.c (__mkdir): Likewise.
8695         * io/mkdirat.c (mkdirat): Likewise.
8696         * io/mkfifo.c (mkfifo): Likewise.
8697         * io/mkfifoat.c (mkfifoat): Likewise.
8698         * io/open.c (__libc_open): Likewise.
8699         * io/open64.c (__libc_open64): Likewise.
8700         * io/readlink.c (__readlink): Likewise.
8701         * io/readlinkat.c (readlinkat): Likewise.
8702         * io/rmdir.c (__rmdir): Likewise.
8703         * io/symlink.c (__symlink): Likewise.
8704         * io/symlinkat.c (symlinkat): Likewise.
8705         * io/ttyname.c (ttyname): Likewise.
8706         * io/ttyname_r.c (__ttyname_r): Likewise.
8707         * io/umask.c (__umask): Likewise.
8708         * io/unlink.c (__unlink): Likewise.
8709         * io/unlinkat.c (unlinkat): Likewise.
8710         * io/utime.c (utime): Likewise.
8711         * libio/clearerr.c (clearerr): Likewise.
8712         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8713         * libio/feof.c (_IO_feof): Likewise.
8714         * libio/feof_u.c (feof_unlocked): Likewise.
8715         * libio/ferror.c (_IO_ferror): Likewise.
8716         * libio/ferror_u.c (ferror_unlocked): Likewise.
8717         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8718         * libio/fileno.c (__fileno): Likewise.
8719         * libio/fputc.c (fputc): Likewise.
8720         * libio/fputc_u.c (fputc_unlocked): Likewise.
8721         * libio/fputwc.c (fputwc): Likewise.
8722         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8723         * libio/freopen.c (freopen): Likewise.
8724         * libio/freopen64.c (freopen64): Likewise.
8725         * libio/fseek.c (fseek): Likewise.
8726         * libio/fseeko.c (fseeko): Likewise.
8727         * libio/fseeko64.c (fseeko64): Likewise.
8728         * libio/ftello.c (__ftello): Likewise.
8729         * libio/ftello64.c (ftello64): Likewise.
8730         * libio/fwide.c (fwide): Likewise.
8731         * libio/genops.c (_IO_un_link): Likewise.
8732         (_IO_link_in): Likewise.
8733         (_IO_least_marker): Likewise.
8734         (_IO_switch_to_main_get_area): Likewise.
8735         (_IO_switch_to_backup_area): Likewise.
8736         (_IO_switch_to_get_mode): Likewise.
8737         (_IO_free_backup_area): Likewise.
8738         (_IO_switch_to_put_mode): Likewise.
8739         (__overflow): Likewise.
8740         (__underflow): Likewise.
8741         (__uflow): Likewise.
8742         (_IO_setb): Likewise.
8743         (_IO_doallocbuf): Likewise.
8744         (_IO_default_underflow): Likewise.
8745         (_IO_default_uflow): Likewise.
8746         (_IO_default_xsputn): Likewise.
8747         (_IO_sgetn): Likewise.
8748         (_IO_default_xsgetn): Likewise.
8749         (_IO_sync): Likewise.
8750         (_IO_default_setbuf): Likewise.
8751         (_IO_default_seekpos): Likewise.
8752         (_IO_default_doallocate): Likewise.
8753         (_IO_init): Likewise.
8754         (_IO_old_init): Likewise.
8755         (_IO_default_sync): Likewise.
8756         (_IO_default_finish): Likewise.
8757         (_IO_default_seekoff): Likewise.
8758         (_IO_sputbackc): Likewise.
8759         (_IO_sungetc): Likewise.
8760         (_IO_set_column): Likewise.
8761         (_IO_set_column): Likewise.
8762         (_IO_adjust_column): Likewise.
8763         (_IO_get_column): Likewise.
8764         (_IO_init_marker): Likewise.
8765         (_IO_remove_marker): Likewise.
8766         (_IO_marker_difference): Likewise.
8767         (_IO_marker_delta): Likewise.
8768         (_IO_seekmark): Likewise.
8769         (_IO_unsave_markers): Likewise.
8770         (_IO_nobackup_pbackfail): Likewise.
8771         (_IO_default_pbackfail): Likewise.
8772         (_IO_default_seek): Likewise.
8773         (_IO_default_stat): Likewise.
8774         (_IO_default_read): Likewise.
8775         (_IO_default_write): Likewise.
8776         (_IO_default_showmanyc): Likewise.
8777         (_IO_default_imbue): Likewise.
8778         (_IO_iter_next): Likewise.
8779         (_IO_iter_file): Likewise.
8780         * libio/getc.c (_IO_getc): Likewise.
8781         * libio/getwc.c (_IO_getwc): Likewise.
8782         * libio/iofclose.c (_IO_new_fclose): Likewise.
8783         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8784         * libio/iofflush.c (_IO_fflush): Likewise.
8785         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
8786         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8787         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
8788         * libio/iofgets.c (_IO_fgets): Likewise.
8789         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
8790         * libio/iofgetws.c (fgetws): Likewise.
8791         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8792         * libio/iofopen64.c (_IO_fopen64): Likewise.
8793         * libio/iofopncook.c (_IO_cookie_read): Likewise.
8794         (_IO_cookie_write): Likewise.
8795         (_IO_cookie_seek): Likewise.
8796         (_IO_cookie_close): Likewise.
8797         (_IO_cookie_seekoff): Likewise.
8798         (_IO_old_cookie_seek): Likewise.
8799         * libio/iofputs.c (_IO_fputs): Likewise.
8800         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
8801         * libio/iofputws.c (fputws): Likewise.
8802         * libio/iofputws_u.c (fputws_unlocked): Likewise.
8803         * libio/iofread.c (_IO_fread): Likewise.
8804         * libio/iofread_u.c (__fread_unlocked): Likewise.
8805         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
8806         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8807         * libio/ioftell.c (_IO_ftell): Likewise.
8808         * libio/iofwrite.c (_IO_fwrite): Likewise.
8809         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8810         * libio/iogets.c (_IO_gets): Likewise.
8811         * libio/iopadn.c (_IO_padn): Likewise.
8812         * libio/iopopen.c (_IO_new_proc_open): Likewise.
8813         (_IO_new_popen): Likewise.
8814         (_IO_new_proc_close): Likewise.
8815         * libio/ioputs.c (_IO_puts): Likewise.
8816         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
8817         (_IO_seekoff): Likewise.
8818         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
8819         (_IO_seekpos): Likewise.
8820         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
8821         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8822         * libio/ioungetc.c (_IO_ungetc): Likewise.
8823         * libio/ioungetwc.c (ungetwc): Likewise.
8824         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8825         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8826         * libio/iowpadn.c (_IO_wpadn): Likewise.
8827         * libio/libc_fatal.c (__libc_fatal): Likewise.
8828         * libio/memstream.c (__open_memstream): Likewise.
8829         (_IO_mem_sync): Likewise.
8830         (_IO_mem_finish): Likewise.
8831         * libio/oldfileops.c (_IO_old_file_init): Likewise.
8832         (_IO_old_file_close_it): Likewise.
8833         (_IO_old_file_finish): Likewise.
8834         (_IO_old_file_fopen): Likewise.
8835         (_IO_old_file_attach): Likewise.
8836         (_IO_old_file_setbuf): Likewise.
8837         (_IO_old_do_write): Likewise.
8838         (old_do_write): Likewise.
8839         (_IO_old_file_underflow): Likewise.
8840         (_IO_old_file_overflow): Likewise.
8841         (_IO_old_file_sync): Likewise.
8842         (_IO_old_file_seekoff): Likewise.
8843         (_IO_old_file_write): Likewise.
8844         (_IO_old_file_xsputn): Likewise.
8845         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
8846         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8847         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
8848         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
8849         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8850         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
8851         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
8852         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8853         (_IO_old_popen): Likewise.
8854         (_IO_old_proc_close): Likewise.
8855         * libio/oldpclose.c (__old_pclose): Likewise.
8856         * libio/pclose.c (__new_pclose): Likewise.
8857         * libio/peekc.c (_IO_peekc_locked): Likewise.
8858         * libio/putc.c (_IO_putc): Likewise.
8859         * libio/putc_u.c (putc_unlocked): Likewise.
8860         * libio/putchar.c (putchar): Likewise.
8861         * libio/putchar_u.c (putchar_unlocked): Likewise.
8862         * libio/putwc.c (putwc): Likewise.
8863         * libio/putwc_u.c (putwc_unlocked): Likewise.
8864         * libio/putwchar.c (putwchar): Likewise.
8865         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
8866         * libio/rewind.c (rewind): Likewise.
8867         * libio/setbuf.c (setbuf): Likewise.
8868         * libio/setlinebuf.c (setlinebuf): Likewise.
8869         * libio/vasprintf.c (_IO_vasprintf): Likewise.
8870         * libio/vscanf.c (_IO_vscanf): Likewise.
8871         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
8872         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
8873         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
8874         * libio/wgenops.c (_IO_least_wmarker): Likewise.
8875         (_IO_switch_to_main_wget_area): Likewise.
8876         (_IO_switch_to_wbackup_area): Likewise.
8877         (_IO_wsetb): Likewise.
8878         (_IO_wdefault_pbackfail): Likewise.
8879         (_IO_wdefault_finish): Likewise.
8880         (_IO_wdefault_uflow): Likewise.
8881         (__woverflow): Likewise.
8882         (__wuflow): Likewise.
8883         (__wunderflow): Likewise.
8884         (_IO_wdefault_xsputn): Likewise.
8885         (_IO_wdefault_xsgetn): Likewise.
8886         (_IO_wdoallocbuf): Likewise.
8887         (_IO_wdefault_doallocate): Likewise.
8888         (_IO_switch_to_wget_mode): Likewise.
8889         (_IO_free_wbackup_area): Likewise.
8890         (_IO_switch_to_wput_mode): Likewise.
8891         (_IO_sputbackwc): Likewise.
8892         (_IO_sungetwc): Likewise.
8893         (_IO_adjust_wcolumn): Likewise.
8894         (_IO_init_wmarker): Likewise.
8895         (_IO_wmarker_delta): Likewise.
8896         (_IO_seekwmark): Likewise.
8897         (_IO_unsave_wmarkers): Likewise.
8898         * libio/wmemstream.c (open_wmemstream): Likewise.
8899         (_IO_wmem_sync): Likewise.
8900         (_IO_wmem_finish): Likewise.
8901         * locale/nl_langinfo.c (nl_langinfo): Likewise.
8902         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
8903         * locale/programs/simple-hash.c (init_hash): Likewise.
8904         (delete_hash): Likewise.
8905         (insert_entry): Likewise.
8906         (set_entry): Likewise.
8907         (next_prime): Likewise.
8908         (is_prime): Likewise.
8909         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
8910         (xmalloc): Likewise.
8911         (xrealloc): Likewise.
8912         * locale/programs/xstrdup.c (xstrdup): Likewise.
8913         * localedata/collate-test.c (xstrcoll): Likewise.
8914         * localedata/xfrm-test.c (xstrcmp): Likewise.
8915         * login/getlogin_r.c (__getlogin_r): Likewise.
8916         * login/getpt.c (__posix_openpt): Likewise.
8917         * login/login_tty.c (login_tty): Likewise.
8918         * login/setlogin.c (setlogin): Likewise.
8919         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
8920         (mach_msg_destroy_port): Likewise.
8921         (mach_msg_destroy_memory): Likewise.
8922         * malloc/mcheck.c (flood): Likewise.
8923         * misc/acct.c (acct): Likewise.
8924         * misc/brk.c (__brk): Likewise.
8925         * misc/chflags.c (chflags): Likewise.
8926         * misc/chroot.c (chroot): Likewise.
8927         * misc/fchflags.c (fchflags): Likewise.
8928         * misc/fstab.c (getfsspec): Likewise.
8929         (getfsfile): Likewise.
8930         * misc/fsync.c (fsync): Likewise.
8931         * misc/ftruncate.c (__ftruncate): Likewise.
8932         * misc/ftruncate64.c (__ftruncate64): Likewise.
8933         * misc/getdomain.c (getdomainname): Likewise.
8934         (getdomainname): Likewise.
8935         * misc/gethostname.c (__gethostname): Likewise.
8936         * misc/getpass.c (getpass): Likewise.
8937         * misc/getttyent.c (skip): Likewise.
8938         (value): Likewise.
8939         * misc/gtty.c (gtty): Likewise.
8940         * misc/hsearch.c (hsearch): Likewise.
8941         (hcreate): Likewise.
8942         * misc/hsearch_r.c (__hcreate_r): Likewise.
8943         (__hdestroy_r): Likewise.
8944         * misc/ioctl.c (__ioctl): Likewise.
8945         * misc/mkdtemp.c (mkdtemp): Likewise.
8946         * misc/mkostemp.c (mkostemp): Likewise.
8947         * misc/mkostemp64.c (mkostemp64): Likewise.
8948         * misc/mkostemps.c (mkostemps): Likewise.
8949         * misc/mkostemps64.c (mkostemps64): Likewise.
8950         * misc/mkstemp.c (mkstemp): Likewise.
8951         * misc/mkstemp64.c (mkstemp64): Likewise.
8952         * misc/mkstemps.c (mkstemps): Likewise.
8953         * misc/mkstemps64.c (mkstemps64): Likewise.
8954         * misc/mktemp.c (__mktemp): Likewise.
8955         * misc/preadv.c (preadv): Likewise.
8956         * misc/preadv64.c (preadv64): Likewise.
8957         * misc/pwritev.c (pwritev): Likewise.
8958         * misc/pwritev64.c (pwritev64): Likewise.
8959         * misc/readv.c (__readv): Likewise.
8960         * misc/revoke.c (revoke): Likewise.
8961         * misc/setdomain.c (setdomainname): Likewise.
8962         * misc/setegid.c (setegid): Likewise.
8963         * misc/seteuid.c (seteuid): Likewise.
8964         * misc/sethostid.c (sethostid): Likewise.
8965         * misc/sethostname.c (sethostname): Likewise.
8966         * misc/setregid.c (__setregid): Likewise.
8967         * misc/setreuid.c (__setreuid): Likewise.
8968         * misc/sstk.c (sstk): Likewise.
8969         * misc/stty.c (stty): Likewise.
8970         * misc/syscall.c (syscall): Likewise.
8971         * misc/syslog.c (setlogmask): Likewise.
8972         * misc/truncate.c (__truncate): Likewise.
8973         * misc/truncate64.c (truncate64): Likewise.
8974         * misc/ualarm.c (ualarm): Likewise.
8975         * misc/usleep.c (usleep): Likewise.
8976         * misc/ustat.c (ustat): Likewise.
8977         * misc/writev.c (__writev): Likewise.
8978         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
8979         * nptl/old_pthread_cond_broadcast.c
8980         (__pthread_cond_broadcast_2_0): Likewise.
8981         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
8982         Likewise.
8983         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
8984         Likewise.
8985         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
8986         Likewise.
8987         * nptl/pt-raise.c (raise): Likewise.
8988         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
8989         Likewise.
8990         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
8991         * nptl/pthread_barrierattr_destroy.c
8992         (pthread_barrierattr_destroy): Likewise.
8993         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
8994         Likewise.
8995         * nptl/pthread_barrierattr_setpshared.c
8996         (pthread_barrierattr_setpshared): Likewise.
8997         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
8998         Likewise.
8999         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9000         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9001         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9002         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9003         Likewise.
9004         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9005         Likewise.
9006         * nptl/pthread_condattr_getpshared.c
9007         (pthread_condattr_getpshared): Likewise.
9008         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9009         Likewise.
9010         * nptl/pthread_condattr_setpshared.c
9011         (pthread_condattr_setpshared): Likewise.
9012         * nptl/pthread_detach.c (pthread_detach): Likewise.
9013         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9014         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9015         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9016         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9017         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9018         Likewise.
9019         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9020         Likewise.
9021         * nptl/pthread_mutex_getprioceiling.c
9022         (pthread_mutex_getprioceiling): Likewise.
9023         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9024         Likewise.
9025         * nptl/pthread_mutexattr_getprotocol.c
9026         (pthread_mutexattr_getprotocol): Likewise.
9027         * nptl/pthread_mutexattr_getpshared.c
9028         (pthread_mutexattr_getpshared): Likewise.
9029         * nptl/pthread_mutexattr_getrobust.c
9030         (pthread_mutexattr_getrobust): Likewise.
9031         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9032         Likewise.
9033         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9034         Likewise.
9035         * nptl/pthread_mutexattr_setprioceiling.c
9036         (pthread_mutexattr_setprioceiling): Likewise.
9037         * nptl/pthread_mutexattr_setprotocol.c
9038         (pthread_mutexattr_setprotocol): Likewise.
9039         * nptl/pthread_mutexattr_setpshared.c
9040         (pthread_mutexattr_setpshared): Likewise.
9041         * nptl/pthread_mutexattr_setrobust.c
9042         (pthread_mutexattr_setrobust): Likewise.
9043         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9044         Likewise.
9045         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9046         Likewise.
9047         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9048         Likewise.
9049         * nptl/pthread_rwlockattr_getkind_np.c
9050         (pthread_rwlockattr_getkind_np): Likewise.
9051         * nptl/pthread_rwlockattr_getpshared.c
9052         (pthread_rwlockattr_getpshared): Likewise.
9053         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9054         Likewise.
9055         * nptl/pthread_rwlockattr_setkind_np.c
9056         (pthread_rwlockattr_setkind_np): Likewise.
9057         * nptl/pthread_rwlockattr_setpshared.c
9058         (pthread_rwlockattr_setpshared): Likewise.
9059         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9060         Likewise.
9061         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9062         Likewise.
9063         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9064         Likewise.
9065         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9066         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9067         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9068         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9069         * nptl/sem_close.c (sem_close): Likewise.
9070         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9071         * nptl/sem_init.c (__old_sem_init): Likewise.
9072         * nptl/sigaction.c (__sigaction): Likewise.
9073         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9074         * posix/_exit.c (_exit): Likewise.
9075         * posix/alarm.c (alarm): Likewise.
9076         * posix/confstr.c (confstr): Likewise.
9077         * posix/fpathconf.c (__fpathconf): Likewise.
9078         * posix/getgroups.c (__getgroups): Likewise.
9079         * posix/getpgid.c (__getpgid): Likewise.
9080         * posix/group_member.c (__group_member): Likewise.
9081         * posix/pathconf.c (__pathconf): Likewise.
9082         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9083         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9084         * posix/setgid.c (__setgid): Likewise.
9085         * posix/setpgid.c (__setpgid): Likewise.
9086         * posix/setuid.c (__setuid): Likewise.
9087         * posix/sleep.c (__sleep): Likewise.
9088         * posix/sysconf.c (__sysconf): Likewise.
9089         * posix/times.c (__times): Likewise.
9090         * posix/uname.c (__uname): Likewise.
9091         * posix/waitid.c (__waitid): Likewise.
9092         * pwd/getpw.c (__getpw): Likewise.
9093         * resolv/base64.c (b64_pton): Likewise.
9094         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9095         * resolv/gethnamaddr.c (Dprintf): Likewise.
9096         (gethostbyname): Likewise.
9097         (gethostbyname2): Likewise.
9098         (gethostbyaddr): Likewise.
9099         (_sethtent): Likewise.
9100         (_gethtbyname): Likewise.
9101         (_gethtbyname2): Likewise.
9102         (_gethtbyaddr): Likewise.
9103         (map_v4v6_address): Likewise.
9104         (map_v4v6_hostent): Likewise.
9105         (addrsort): Likewise.
9106         (ht_sethostent): Likewise.
9107         (ht_gethostbyname): Likewise.
9108         (ht_gethostbyaddr): Likewise.
9109         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9110         (inet_net_ntop_ipv4): Likewise.
9111         * resolv/inet_neta.c (inet_neta): Likewise.
9112         * resolv/inet_ntop.c (inet_ntop): Likewise.
9113         (inet_ntop4): Likewise.
9114         (inet_ntop6): Likewise.
9115         * resolv/inet_pton.c (__inet_pton): Likewise.
9116         (inet_pton4): Likewise.
9117         (inet_pton6): Likewise.
9118         * resolv/res_debug.c (loc_aton): Likewise.
9119         (loc_ntoa): Likewise.
9120         * resource/getpriority.c (__getpriority): Likewise.
9121         * resource/getrusage.c (__getrusage): Likewise.
9122         * resource/nice.c (nice): Likewise.
9123         * resource/setpriority.c (__setpriority): Likewise.
9124         * resource/setrlimit64.c (setrlimit64): Likewise.
9125         * resource/vlimit.c (vlimit): Likewise.
9126         * resource/vtimes.c (vtimes): Likewise.
9127         * rt/aio_error.c (aio_error): Likewise.
9128         * rt/aio_return.c (aio_return): Likewise.
9129         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9130         * signal/kill.c (__kill): Likewise.
9131         * signal/killpg.c (killpg): Likewise.
9132         * signal/raise.c (raise): Likewise.
9133         * signal/sigaction.c (__sigaction): Likewise.
9134         * signal/sigaddset.c (sigaddset): Likewise.
9135         * signal/sigaltstack.c (sigaltstack): Likewise.
9136         * signal/sigandset.c (sigandset): Likewise.
9137         * signal/sigblock.c (__sigblock): Likewise.
9138         * signal/sigdelset.c (sigdelset): Likewise.
9139         * signal/sigempty.c (sigemptyset): Likewise.
9140         * signal/sigfillset.c (sigfillset): Likewise.
9141         * signal/sighold.c (sighold): Likewise.
9142         * signal/sigignore.c (sigignore): Likewise.
9143         * signal/sigintr.c (siginterrupt): Likewise.
9144         * signal/sigisempty.c (sigisemptyset): Likewise.
9145         * signal/sigismem.c (sigismember): Likewise.
9146         * signal/signal.c (signal): Likewise.
9147         * signal/sigorset.c (sigorset): Likewise.
9148         * signal/sigpause.c (__sigpause): Likewise.
9149         * signal/sigpending.c (sigpending): Likewise.
9150         * signal/sigprocmask.c (__sigprocmask): Likewise.
9151         * signal/sigrelse.c (sigrelse): Likewise.
9152         * signal/sigreturn.c (__sigreturn): Likewise.
9153         * signal/sigset.c (sigset): Likewise.
9154         * signal/sigsetmask.c (__sigsetmask): Likewise.
9155         * signal/sigstack.c (sigstack): Likewise.
9156         * signal/sigsuspend.c (__sigsuspend): Likewise.
9157         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9158         * signal/sysv_signal.c (__sysv_signal): Likewise.
9159         * socket/accept.c (accept): Likewise.
9160         * socket/accept4.c (__libc_accept4): Likewise.
9161         * socket/bind.c (__bind): Likewise.
9162         * socket/connect.c (__connect): Likewise.
9163         * socket/getpeername.c (getpeername): Likewise.
9164         * socket/getsockname.c (__getsockname): Likewise.
9165         * socket/getsockopt.c (getsockopt): Likewise.
9166         * socket/listen.c (__listen): Likewise.
9167         * socket/recv.c (__recv): Likewise.
9168         * socket/recvmsg.c (__recvmsg): Likewise.
9169         * socket/send.c (__send): Likewise.
9170         * socket/sendmsg.c (__sendmsg): Likewise.
9171         * socket/shutdown.c (shutdown): Likewise.
9172         * socket/sockatmark.c (sockatmark): Likewise.
9173         * socket/socket.c (__socket): Likewise.
9174         * stdio-common/ctermid.c (ctermid): Likewise.
9175         * stdio-common/cuserid.c (cuserid): Likewise.
9176         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9177         * stdio-common/remove.c (remove): Likewise.
9178         * stdio-common/rename.c (rename): Likewise.
9179         * stdio-common/renameat.c (renameat): Likewise.
9180         * stdio-common/tempname.c (__gen_tempname): Likewise.
9181         * stdio-common/xbug.c (InitBuffer): Likewise.
9182         (AppendToBuffer): Likewise.
9183         (ReadFile): Likewise.
9184         * stdlib/a64l.c (a64l): Likewise.
9185         * stdlib/drand48_r.c (drand48_r): Likewise.
9186         * stdlib/getcontext.c (getcontext): Likewise.
9187         * stdlib/getenv.c (getenv): Likewise.
9188         * stdlib/l64a.c (l64a): Likewise.
9189         * stdlib/llabs.c (llabs): Likewise.
9190         * stdlib/lldiv.c (lldiv): Likewise.
9191         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9192         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9193         * stdlib/putenv.c (putenv): Likewise.
9194         * stdlib/random.c (__srandom): Likewise.
9195         (__initstate): Likewise.
9196         (__setstate): Likewise.
9197         * stdlib/random_r.c (__srandom_r): Likewise.
9198         (__setstate_r): Likewise.
9199         (__random_r): Likewise.
9200         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9201         * stdlib/setcontext.c (setcontext): Likewise.
9202         * stdlib/setenv.c (setenv): Likewise.
9203         (unsetenv): Likewise.
9204         * stdlib/srand48.c (srand48): Likewise.
9205         * stdlib/srand48_r.c (__srand48_r): Likewise.
9206         * stdlib/swapcontext.c (swapcontext): Likewise.
9207         * stdlib/system.c (__libc_system): Likewise.
9208         * stdlib/tst-strtod.c (expand): Likewise.
9209         * stdlib/tst-strtol.c (expand): Likewise.
9210         * stdlib/tst-strtoll.c (expand): Likewise.
9211         * streams/fattach.c (fattach): Likewise.
9212         * streams/fdetach.c (fdetach): Likewise.
9213         * streams/getmsg.c (getmsg): Likewise.
9214         * streams/isastream.c (isastream): Likewise.
9215         * string/ffs.c (__ffs): Likewise.
9216         * string/ffsll.c (ffsll): Likewise.
9217         * string/memcmp.c (memcmp_common_alignment): Likewise.
9218         (memcmp_not_common_alignment): Likewise.
9219         (MEMCMP): Likewise.
9220         * string/memcpy.c (memcpy): Likewise.
9221         * string/memmove.c (MEMMOVE): Likewise.
9222         * string/memset.c (memset): Likewise.
9223         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9224         * string/strchrnul.c (STRCHRNUL): Likewise.
9225         * string/strerror.c (strerror): Likewise.
9226         * string/strndup.c (__strndup): Likewise.
9227         * string/strverscmp.c (__strverscmp): Likewise.
9228         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9229         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9230         (clnttcp_freeres): Likewise.
9231         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9232         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9233         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9234         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9235         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9236         (xdr_callhdr): Likewise.
9237         * sunrpc/rpcinfo.c (udpping): Likewise.
9238         (tcpping): Likewise.
9239         (pstatus): Likewise.
9240         (pmapdump): Likewise.
9241         (brdcst): Likewise.
9242         (deletereg): Likewise.
9243         (getprognum): Likewise.
9244         (getvers): Likewise.
9245         (get_inet_address): Likewise.
9246         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9247         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9248         (svcudp_stat): Likewise.
9249         (svcudp_recv): Likewise.
9250         (svcudp_reply): Likewise.
9251         (svcudp_getargs): Likewise.
9252         (svcudp_freeargs): Likewise.
9253         (svcudp_destroy): Likewise.
9254         * sunrpc/xdr.c (xdr_bytes): Likewise.
9255         (xdr_netobj): Likewise.
9256         (xdr_string): Likewise.
9257         (xdr_wrapstring): Likewise.
9258         * sunrpc/xdr_float.c (xdr_float): Likewise.
9259         (xdr_double): Likewise.
9260         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9261         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9262         * sysvipc/ftok.c (ftok): Likewise.
9263         * sysvipc/msgctl.c (msgctl): Likewise.
9264         * sysvipc/msgget.c (msgget): Likewise.
9265         * sysvipc/msgrcv.c (msgrcv): Likewise.
9266         * sysvipc/msgsnd.c (msgsnd): Likewise.
9267         * sysvipc/semget.c (semget): Likewise.
9268         * sysvipc/semop.c (semop): Likewise.
9269         * sysvipc/shmat.c (shmat): Likewise.
9270         * sysvipc/shmctl.c (shmctl): Likewise.
9271         * sysvipc/shmdt.c (shmdt): Likewise.
9272         * sysvipc/shmget.c (shmget): Likewise.
9273         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9274         * termios/speed.c (cfgetospeed): Likewise.
9275         (cfgetispeed): Likewise.
9276         (cfsetospeed): Likewise.
9277         (cfsetispeed): Likewise.
9278         * termios/tcflow.c (tcflow): Likewise.
9279         * termios/tcflush.c (tcflush): Likewise.
9280         * termios/tcgetattr.c (__tcgetattr): Likewise.
9281         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9282         * termios/tcgetsid.c (tcgetsid): Likewise.
9283         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9284         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9285         * time/adjtime.c (__adjtime): Likewise.
9286         * time/dysize.c (dysize): Likewise.
9287         * time/ftime.c (ftime): Likewise.
9288         * time/getitimer.c (__getitimer): Likewise.
9289         * time/gettimeofday.c (__gettimeofday): Likewise.
9290         * time/gmtime.c (__gmtime_r): Likewise.
9291         (gmtime): Likewise.
9292         * time/localtime.c (__localtime_r): Likewise.
9293         (localtime): Likewise.
9294         * time/offtime.c (__offtime): Likewise.
9295         * time/settimeofday.c (__settimeofday): Likewise.
9296         * time/stime.c (stime): Likewise.
9297         * time/strftime_l.c (tm_diff): Likewise.
9298         (iso_week_days): Likewise.
9299         * time/strptime.c (strptime): Likewise.
9300         * time/time.c (time): Likewise.
9301         * time/timespec_get.c (timespec_get): Likewise.
9302         * time/tzset.c (tzset_internal): Likewise.
9303         (compute_change): Likewise.
9304         (__tz_compute): Likewise.
9305         * wcsmbs/btowc.c (__btowc): Likewise.
9306         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9307         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9308         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9309         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9310         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9311         * wcsmbs/wcscat.c (__wcscat): Likewise.
9312         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9313         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9314         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9315         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9316         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9317         * wcsmbs/wcslen.c (__wcslen): Likewise.
9318         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9319         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9320         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9321         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9322         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9323         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9324         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9325         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9326         * wcsmbs/wcstok.c (wcstok): Likewise.
9327         * wcsmbs/wctob.c (wctob): Likewise.
9328         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9329         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9330         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9331         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9332         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9333         * wcsmbs/wmemset.c (__wmemset): Likewise.
9334         * wctype/wcfuncs.c (__towlower): Likewise.
9335         (__towupper): Likewise.
9336
9337         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9338         (lll_unlock_elision): Add adapt_count parameter.
9339
9340 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9341
9342         * sysdeps/nptl/configure.ac: Do not give errors based on the
9343         results of top-level configure tests.
9344         * sysdeps/nptl/configure: Regenerated.
9345
9346         * configure.ac (libc_cv_Bgroup): Remove configure test.
9347         * configure: Regenerated.
9348         * config.make.in (have-Bgroup): Remove variable.
9349
9350         * configure.ac (sizeof_long_double): Remove configure test.
9351         * configure: Regenerated.
9352         * config.make.in (sizeof-long-double): Remove variable.
9353
9354         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9355         * configure: Regenerated.
9356         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9357         variable.
9358         (exceptions): Likewise.
9359         * sysdeps/arm/configure: Regenerated.
9360         * config.make.in (exceptions): Remove variable.
9361         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9362         $(exceptions).
9363         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9364         (CFLAGS-vdprintf_chk.c): Likewise.
9365         (CFLAGS-printf_chk.c): Likewise.
9366         (CFLAGS-fprintf_chk.c): Likewise.
9367         (CFLAGS-vprintf_chk.c): Likewise.
9368         (CFLAGS-vfprintf_chk.c): Likewise.
9369         (CFLAGS-gets_chk.c): Likewise.
9370         (CFLAGS-fgets_chk.c): Likewise.
9371         (CFLAGS-fgets_u_chk.c): Likewise.
9372         (CFLAGS-fread_chk.c): Likewise.
9373         (CFLAGS-fread_u_chk.c): Likewise.
9374         (CFLAGS-wprintf_chk.c): Likewise.
9375         (CFLAGS-fwprintf_chk.c): Likewise.
9376         (CFLAGS-vwprintf_chk.c): Likewise.
9377         (CFLAGS-vfwprintf_chk.c): Likewise.
9378         (CFLAGS-fgetws_chk.c): Likewise.
9379         (CFLAGS-fgetws_u_chk.c): Likewise.
9380         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9381         (CFLAGS-fputc.c): Likewise.
9382         (CFLAGS-fputwc.c): Likewise.
9383         (CFLAGS-freopen64.c): Likewise.
9384         (CFLAGS-freopen.c): Likewise.
9385         (CFLAGS-fseek.c): Likewise.
9386         (CFLAGS-fseeko64.c): Likewise.
9387         (CFLAGS-fseeko.c): Likewise.
9388         (CFLAGS-ftello64.c): Likewise.
9389         (CFLAGS-ftello.c): Likewise.
9390         (CFLAGS-fwide.c): Likewise.
9391         (CFLAGS-genops.c): Likewise.
9392         (CFLAGS-getc.c): Likewise.
9393         (CFLAGS-getchar.c): Likewise.
9394         (CFLAGS-getwc.c): Likewise.
9395         (CFLAGS-getwchar.c): Likewise.
9396         (CFLAGS-iofclose.c): Likewise.
9397         (CFLAGS-iofflush.c): Likewise.
9398         (CFLAGS-iofgetpos64.c): Likewise.
9399         (CFLAGS-iofgetpos.c): Likewise.
9400         (CFLAGS-iofgets.c): Likewise.
9401         (CFLAGS-iofgetws.c): Likewise.
9402         (CFLAGS-iofputs.c): Likewise.
9403         (CFLAGS-iofputws.c): Likewise.
9404         (CFLAGS-iofread.c): Likewise.
9405         (CFLAGS-iofsetpos64.c): Likewise.
9406         (CFLAGS-iofsetpos.c): Likewise.
9407         (CFLAGS-ioftell.c): Likewise.
9408         (CFLAGS-iofwrite.c): Likewise.
9409         (CFLAGS-iogetdelim.c): Likewise.
9410         (CFLAGS-iogetline.c): Likewise.
9411         (CFLAGS-iogets.c): Likewise.
9412         (CFLAGS-iogetwline.c): Likewise.
9413         (CFLAGS-ioputs.c): Likewise.
9414         (CFLAGS-ioseekoff.c): Likewise.
9415         (CFLAGS-ioseekpos.c): Likewise.
9416         (CFLAGS-iosetbuffer.c): Likewise.
9417         (CFLAGS-iosetvbuf.c): Likewise.
9418         (CFLAGS-ioungetc.c): Likewise.
9419         (CFLAGS-ioungetwc.c): Likewise.
9420         (CFLAGS-oldfileops.c): Likewise.
9421         (CFLAGS-oldiofclose.c): Likewise.
9422         (CFLAGS-oldiofgetpos64.c): Likewise.
9423         (CFLAGS-oldiofgetpos.c): Likewise.
9424         (CFLAGS-oldiofsetpos64.c): Likewise.
9425         (CFLAGS-oldiofsetpos.c): Likewise.
9426         (CFLAGS-peekc.c): Likewise.
9427         (CFLAGS-putc.c): Likewise.
9428         (CFLAGS-putchar.c): Likewise.
9429         (CFLAGS-putwc.c): Likewise.
9430         (CFLAGS-putwchar.c): Likewise.
9431         (CFLAGS-rewind.c): Likewise.
9432         (CFLAGS-wfileops.c): Likewise.
9433         (CFLAGS-wgenops.c): Likewise.
9434         (CFLAGS-oldiofopen.c): Likewise.
9435         (CFLAGS-iofopen.c): Likewise.
9436         (CFLAGS-iofopen64.c): Likewise.
9437         (CFLAGS-oldtmpfile.c): Likewise.
9438         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9439         (CFLAGS-fprintf.c): Likewise.
9440         (CFLAGS-printf.c): Likewise.
9441         (CFLAGS-vfwprintf.c): Likewise.
9442         (CFLAGS-vfscanf.c): Likewise.
9443         (CFLAGS-vfwscanf.c): Likewise.
9444         (CFLAGS-fscanf.c): Likewise.
9445         (CFLAGS-scanf.c): Likewise.
9446         (CFLAGS-isoc99_vfscanf.c): Likewise.
9447         (CFLAGS-isoc99_vscanf.c): Likewise.
9448         (CFLAGS-isoc99_fscanf.c): Likewise.
9449         (CFLAGS-isoc99_scanf.c): Likewise.
9450         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9451         (CFLAGS-isoc99_fwscanf.c): Likewise.
9452         (CFLAGS-isoc99_vwscanf.c): Likewise.
9453         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9454
9455         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9456         after mkstemp64.
9457         * login/tst-utmp.c (do_prepare): Likewise.
9458         * rt/tst-aio.c (do_prepare): Likewise.
9459         * rt/tst-aio64.c (do_prepare): Likewise.
9460
9461 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9462
9463         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9464         (__lll_lock_elision): Remove adapt_count decrement...
9465         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9466         (__lll_trylock_elision): Likewise.
9467         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9468         (__lll_unlock_elision): ... to here. And utilize
9469         new adapt_count parameter.
9470         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9471         (__lll_unlock_elision): Update to include adapt_count
9472         parameter.
9473         (lll_unlock_elision): Pass pointer to adapt_count
9474         variable.
9475
9476 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9477
9478         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9479         Add elision adapt_count parameter to list of arguments.
9480         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9481         (lll_unlock_elision): Update with new parameter list
9482         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9483         (lll_unlock_elision): Likewise.
9484         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9485         (lll_unlock_elision): Likewise.
9486
9487 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9488
9489         [BZ #19122]
9490         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9491         attribute_hidden.
9492
9493         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9494         attribute_hidden.
9495         [IS_IN (rtld)] (__strdup): Likewise.
9496         [IS_IN (rtld)] (__strerror_r): Likewise.
9497         [IS_IN (rtld)] (__strsep_g): Likewise.
9498         [IS_IN (rtld)] (memchr): Likewise.
9499         [IS_IN (rtld)] (memcmp): Likewise.
9500         [IS_IN (rtld)] (memcpy): Likewise.
9501         [IS_IN (rtld)] (memmove): Likewise.
9502         [IS_IN (rtld)] (memset): Likewise.
9503         [IS_IN (rtld)] (rawmemchr): Likewise.
9504         [IS_IN (rtld)] (stpcpy): Likewise.
9505         [IS_IN (rtld)] (strchr): Likewise.
9506         [IS_IN (rtld)] (strcmp): Likewise.
9507         [IS_IN (rtld)] (strlen): Likewise.
9508         [IS_IN (rtld)] (strnlen): Likewise.
9509         [IS_IN (rtld)] (strsep): Likewise.
9510
9511         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9512         attribute_hidden.
9513         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9514
9515         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9516         attribute_hidden.
9517         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9518
9519         * include/setjmp.h (__longjmp): Add attribute_hidden.
9520         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9521
9522         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9523         Add attribute_hidden.
9524
9525         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9526         [IS_IN (rtld)] (__open): Likewise.
9527         [IS_IN (rtld)] (__fcntl): Likewise.
9528
9529         * include/dirent.h (__opendirat): Add attribute_hidden.
9530         (__getdents): Likewise.
9531         (__getdents64): Likewise.
9532         (__alloc_dir): Likewise.
9533         [IS_IN (rtld)] (__closedir): Likewise.
9534         [IS_IN (rtld)] (__fdopendir): Likewise.
9535         [IS_IN (rtld)] (__readdir): Likewise.
9536         [IS_IN (rtld)] (__readdir64): Likewise.
9537         [IS_IN (rtld)] (__rewinddir): Likewise.
9538
9539         * include/dlfcn.h (_dl_catch_error): Moved to ...
9540         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9541         attribute_hidden.
9542
9543         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9544         (_itoa_word): Likewise.
9545
9546         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9547         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9548         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9549         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9550         (_dl_higher_prime_number): Likewise.
9551         (_dl_debug_printf_c): Likewise.
9552         (_dl_signal_cerror): Likewise.
9553         (_dl_receive_error): Likewise.
9554         (_dl_reloc_bad_type): Likewise.
9555         (_dl_resolve_conflicts): Likewise.
9556         (_dl_check_all_versions): Likewise.
9557         (_dl_check_map_versions): Likewise.
9558         (_dl_sort_fini): Likewise.
9559         (_dl_debug_initialize): Likewise.
9560         (_dl_init_paths): Likewise.
9561         (_dl_show_auxv): Likewise.
9562         (_dl_next_ld_env_entry): Likewise.
9563         (_dl_important_hwcaps): Likewise.
9564         (_dl_load_cache_lookup): Likewise.
9565         (_dl_update_slotinfo): Likewise.
9566         (_dl_show_scope): Likewise.
9567
9568         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9569         attribute_hidden.
9570         (_wordcopy_fwd_dest_aligned): Likewise.
9571         (_wordcopy_bwd_aligned): Likewise.
9572         (_wordcopy_bwd_dest_aligned): Likewise.
9573
9574         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9575         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9576         Likewise.
9577         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9578         Likewise.
9579         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9580
9581 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9582
9583         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9584         GCC 5 requirement.
9585
9586 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9587
9588         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9589         test.
9590         * sysdeps/i386/configure: Regenerated.
9591         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9592         code unconditional.
9593
9594         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9595         test.
9596         (libc_cv_asm_popsection_directive): Likewise.
9597         * configure: Regenerated.
9598         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9599         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9600         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9601         (__make_section_unallocated): Make definition unconditional.
9602         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9603         Remove conditional definition.
9604         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9605         (__make_section_unallocated): Likewise.
9606
9607         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9608         * configure: Regenerated.
9609         * config.make.in (static-libgcc): Remove variable.
9610         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9611         $(static-libgcc).
9612         (build-module-helper): Likewise.
9613
9614         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9615         * configure: Regenerated.
9616
9617 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9618
9619         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9620         (struct char_buffer): New type.
9621         (char_buffer_start, char_buffer_size, char_buffer_error)
9622         (char_buffer_rewind, char_buffer_add): New functions.
9623         (ADDW): Remove macro, replaced by the char_buffer_add function.
9624         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9625         of extend_alloca.  Make control flow more explicit.
9626
9627 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9628
9629         [BZ #19137]
9630         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9631         Add -fomit-frame-pointer.
9632         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9633
9634 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9635
9636         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9637         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9638         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9639         only if !__GNUC_PREREQ (5,0).
9640         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9641         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9642         (INTERNAL_SYSCALL_NCS): Likewise.
9643         (LOADREGS_0): New macro for GCC 5.
9644         (ASMARGS_0): Likewise.
9645         (LOADREGS_1): Likewise.
9646         (ASMARGS_1): Likewise.
9647         (LOADREGS_2): Likewise.
9648         (ASMARGS_2): Likewise.
9649         (LOADREGS_3): Likewise.
9650         (ASMARGS_3): Likewise.
9651         (LOADREGS_4): Likewise.
9652         (ASMARGS_4): Likewise.
9653         (LOADREGS_5): Likewise.
9654         (ASMARGS_5): Likewise.
9655         (LOADREGS_6): Likewise.
9656         (ASMARGS_6): Likewise.
9657
9658 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9659
9660         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9661         -fomit-frame-pointer.
9662         (CFLAGS-mmap64.c): Likewise.
9663         (CFLAGS-semtimedop.c): Likewise.
9664         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9665         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9666         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9667         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9668
9669 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9670
9671         [BZ #18928]
9672         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9673         _dl_pointer_guard member.
9674         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9675         initializer.
9676         (security_init): Always set up pointer guard.
9677         (process_envvars): Do not process LD_POINTER_GUARD.
9678
9679 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9680
9681         [BZ #19134]
9682         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9683         (.LC2): Likewise.
9684         (.LC3): Likewise.
9685         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9686
9687 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9688
9689         [BZ #19129]
9690         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9691         r0 and r1.
9692
9693 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9694
9695         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9696
9697 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9698
9699         * include/stap-probe.h: Fix macro definition formatting.
9700
9701 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9702
9703         [BZ #19074]
9704         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9705         load and store num_ifs.
9706
9707 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9708
9709         [BZ #18822]
9710         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9711         (__sched_getaffinity_new): Add libc_hidden_proto and
9712         libc_hidden_def.
9713
9714 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9715
9716         [BZ #19007]
9717         * scripts/localplt.awk: Also allow GOT references.
9718         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9719         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9720         with "+ REL R_386_GLOB_DAT".
9721         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9722         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9723
9724 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9725
9726         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9727         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9728         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9729         Likewise.
9730         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9731         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9732         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9733         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9734         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9735         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9736         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9737         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9738         Likewise.
9739         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9740
9741 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9742
9743         [BZ #19125]
9744         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9745         <math_private.h> and <stdint.h>.
9746         (__llround): Avoid conversions to and from long long int, and
9747         subtractions, where those might raise spurious exceptions.
9748         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9749         <math_private.h> and <stdint.h>.
9750         (__llroundf): Avoid conversions to and from long long int, and
9751         subtractions, where those might raise spurious exceptions.
9752
9753 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9754
9755         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9756         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9757         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9758         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9759         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9760         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9761         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9762         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9763         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
9764         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9765         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9766         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9767         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
9768         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9769         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9770         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
9771         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
9772         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9773         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
9774         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
9775         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9776         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
9777         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
9778         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9779         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
9780         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
9781         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
9782         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9783         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9784         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
9785         (__xstat64_conv): Likewise.
9786         (__xstat32_conv): Likewise.
9787
9788 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9789
9790         * sysdeps/unix/sysv/linux/sysdep.h: New file.
9791         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
9792         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
9793         <sysdeps/unix/sysv/linux/sysdep.h>.
9794         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9795         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
9796         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9797         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9798         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9799         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
9800         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
9801         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9802         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9805         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9806         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9807         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9808         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9809         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9810         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
9811         (sysdep-dl-routines): Add sysdep.
9812         [$(subdir) == nptl] (libpthread-routines): Likewise.
9813         [$(subdir) == rt] (librt-routines): Likewise.
9814         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
9815         PIC when branching to SYSCALL_ERROR_LABEL.
9816         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
9817         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
9818         <sysdeps/unix/sysv/linux/sysdep.h>.
9819         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
9820         (SYSCALL_ERROR_ERRNO): Removed.
9821         (SYSCALL_ERROR_HANDLER): Changed to empty.
9822         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
9823         (__syscall_error): New prototype.
9824         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
9825         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
9826
9827 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9828
9829         [BZ #19124]
9830         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
9831         (_dl_runtime_resolve_avx512): Make it a hidden alias of
9832         _dl_runtime_resolve_avx.
9833         (_dl_runtime_profile_avx512): Make it a hidden alias of
9834         _dl_runtime_profile_avx.
9835
9836 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9837
9838         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
9839         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
9840         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
9841         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
9842
9843         [BZ #16422]
9844         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
9845         New configure test.
9846         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
9847         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
9848         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
9849         <math_private.h> and <stdint.h>.
9850         (__llrint): Avoid conversions to long long int where those might
9851         raise spurious exceptions.
9852         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9853         <math_private.h> and <stdint.h>.
9854         (__llrintf): Avoid conversions to long long int where those might
9855         raise spurious exceptions.
9856
9857 2015-10-12  Andreas Schwab  <schwab@suse.de>
9858
9859         [BZ #18969]
9860         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
9861         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
9862         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
9863         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
9864         $(gen-locales).
9865         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
9866         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
9867         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
9868         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
9869         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
9870         $(gen-locales).
9871         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
9872         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
9873         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
9874         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
9875         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
9876         ($(objpfx)tst-ftell-active-handler.out)
9877         ($(objpfx)tst-ftell-append.out)
9878         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
9879         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
9880         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
9881         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
9882         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
9883         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
9884         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
9885         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
9886         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
9887         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
9888         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
9889         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
9890         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
9891         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
9892         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
9893         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
9894         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
9895         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
9896         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
9897         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
9898         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
9899         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
9900         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
9901         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
9902         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
9903         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
9904         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
9905         $(gen-locales).
9906         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
9907         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
9908         $(gen-locales).
9909         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
9910         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
9911         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
9912         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
9913         $(gen-locales).
9914         * libio/tst_wprintf2.c (main): Use explicit locale.
9915         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
9916
9917 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9918
9919         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
9920         __msg_sig_post.
9921         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
9922
9923 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9924
9925         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
9926         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9927
9928         * sysdeps/arm/libm-test-ulps: Regenerated.
9929
9930         [BZ #15470]
9931         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
9932
9933         [BZ #16399]
9934         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
9935         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
9936         and <fix-fp-int-convert-overflow.h>.
9937         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9938         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9939         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
9940         and <fix-fp-int-convert-overflow.h>.
9941         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
9942         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9943         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
9944         <fix-fp-int-convert-overflow.h>.
9945         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9946         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9947         * sysdeps/ieee754/dbl-64/s_lround.c: Include
9948         <fix-fp-int-convert-overflow.h>.
9949         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
9950         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9951         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
9952         and <fix-fp-int-convert-overflow.h>.
9953         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9954         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9955         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
9956         <limits.h> and <fix-fp-int-convert-overflow.h>.
9957         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9958         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9959         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
9960         and <fix-fp-int-convert-overflow.h>.
9961         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9962         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9963         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
9964         and <fix-fp-int-convert-overflow.h>.
9965         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9966         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9967         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
9968
9969 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
9970
9971         [BZ #18589]
9972         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
9973         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
9974         $(gen-locales).
9975
9976 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9977             Phil Blundell <pb@pbcl.net>
9978
9979         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
9980         * nptl/tst-cancel26.c: New file.
9981         * nptl/tst-cancel27.c: Likewise.
9982
9983 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
9984
9985         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
9986         __ILP32__ isn't defined.
9987         (lrint): Likewise.
9988         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
9989         (lrintf): Likewise.
9990         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
9991         (lrintl): Likewise.
9992         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
9993         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
9994         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
9995
9996 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9997
9998         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
9999         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10000
10001         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10002         file.
10003         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10004         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10005
10006 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10007
10008         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10009         configure test.
10010         * sysdeps/i386/configure: Regenerated.
10011         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10012         configure test.
10013         * sysdeps/x86_64/configure: Regenerated.
10014         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10015         Make code unconditional.
10016
10017         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10018         test.
10019         * sysdeps/i386/configure: Regenerated.
10020         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10021         test.
10022         * sysdeps/x86_64/configure: Regenerated.
10023         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10024         Make code unconditional.
10025         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10026         Likewise.
10027         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10028         Likewise.
10029         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10030         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10031         code unconditional.
10032         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10033         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10034         code unconditional.
10035         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10036         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10037         code unconditional.
10038         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10039         code unconditional.
10040         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10041         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10042         code unconditional.
10043         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10044         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10045         code unconditional.
10046         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10047         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10048         code unconditional.
10049         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10050         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10051         code unconditional.
10052         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10053         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10054
10055         [BZ #19095]
10056         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10057         mantissa to long int before shifting left.
10058
10059 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10060
10061         [BZ #19094]
10062         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10063         <limits.h>.
10064         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10065         when result overflows but exception would not result from cast.
10066         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10067         <limits.h>.
10068         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10069         when result overflows but exception would not result from cast.
10070         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10071         <limits.h>.
10072         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10073         when result overflows but exception would not result from cast.
10074         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10075         <limits.h>.
10076         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10077         when result overflows but exception would not result from cast.
10078         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10079         <limits.h>.
10080         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10081         when result overflows but exception would not result from cast.
10082         * math/libm-test.inc (lrint_test_data): Add more tests.
10083         (llrint_test_data): Likewise.
10084
10085 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10086
10087         [BZ #18872]
10088         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10089         Move out from under [$(run-built-tests) = yes] conditional.
10090         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10091         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10092
10093 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10094
10095         [BZ #18589]
10096         * string/Makefile (tests): Add bug-strcoll2.
10097         (LOCALES): Add cs_CZ.UTF-8.
10098         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10099
10100         [BZ #18589]
10101         * string/bug-strcoll2.c: New file.
10102         * locale/categories.def: Revert commit
10103         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10104         * locale/langinfo.h: Likewise.
10105         * locale/localeinfo.h: Likewise.
10106         * locale/C-collate.c: Likewise.
10107         * locale/programs/ld-collate.c (collate_output): Likewise.
10108         * string/strcoll_l.c (STRDIFF): Likewise.
10109         (STRCOLL): Likewise.
10110         * wcsmbs/wcscoll_l.c: Likewise.
10111
10112 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10113
10114         * math/libm-test.inc (lround_test_data): Do not expect the absence
10115         of "inexact" for some tests with non-integer arguments.
10116         (llround_test_data): Likewise.
10117
10118         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10119         test.
10120         (libc_cv_cc_sse2avx): Likewise.
10121         * sysdeps/i386/configure: Regenerated.
10122         * sysdeps/i386/i686/multiarch/Makefile
10123         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10124         [$(subdir) = math].
10125         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10126         code unconditional.
10127         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10128         Likewise.
10129         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10130         Likewise.
10131         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10132         Likewise.
10133         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10134         test.
10135         (libc_cv_cc_sse2avx): Likewise.
10136         * sysdeps/x86_64/configure: Regenerated.
10137         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10138         unconditional.
10139         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10140         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10141         unconditional.
10142         (_dl_runtime_profile)
10143         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10144         conditional code.
10145         * sysdeps/x86_64/fpu/multiarch/Makefile
10146         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10147         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10148         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10149         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10150         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10151         * sysdeps/x86_64/fpu/multiarch/e_log.c
10152         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10153         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10154         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10155         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10156         Likewise.
10157         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10158         Likewise.
10159         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10160         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10161         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10162         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10163         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10164         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10165         (HAVE_SSE2AVX_SUPPORT): Likewise.
10166
10167 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10168
10169         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10170         instead of #pragma optimize.
10171
10172 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10173
10174         [BZ #17195]
10175         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10176         as is similarly done in systrim and _int_free already.
10177
10178 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10179
10180         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10181
10182 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10183
10184         [BZ #19088]
10185         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10186         <limits.h>.
10187         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10188         overflows but exception would not result from cast.
10189         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10190         and <limits.h>.
10191         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10192         overflows but exception would not result from cast.
10193         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10194         <limits.h>.
10195         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10196         overflows but exception would not result from cast.
10197         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10198         <limits.h>.
10199         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10200         overflows but exception would not result from cast.
10201         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10202         <limits.h>.
10203         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10204         overflows but exception would not result from cast.
10205         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10206         <limits.h>.
10207         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10208         overflows but exception would not result from cast.
10209         * math/libm-test.inc (lround_test_data): Add more tests.
10210         (llround_test_data): Likewise.
10211
10212 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10213
10214         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10215         (CFLAGS-ialloc.c): Ditto.
10216         (CFLAGS-scheck.c): Ditto.
10217
10218 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10219
10220         [BZ #19086]
10221         * manual/filesys.texi (Storage Allocation): Fix argument order for
10222         posix_fallocate64.
10223
10224 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10225
10226         [BZ #19085]
10227         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10228         exponent below 48 inside case for non-overflowing exponent.
10229         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10230
10231 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10232
10233         * iconvdata/cp737.h (from_idx): Add const.
10234         * iconvdata/cp775.h (from_idx): Likewise.
10235
10236 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10237
10238         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10239         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10240         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10241
10242         [BZ #19079]
10243         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10244         file, conditioned on [!_LP64].
10245         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10246         [!_LP64] (__lround): Do not define as function or alias.
10247         [!_LP64] (lround): Likewise.
10248         [!_LP64] (__lroundl): Likewise.
10249         [!_LP64] (lroundl): Likewise.
10250         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10251         macro.
10252         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10253         Likewise.
10254
10255 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10256
10257         * math/libm-test.inc (lrint_test_data): Add more tests.
10258         (llrint_test_data): Likewise.
10259         (lround_test_data): Likewise.
10260         (llround_test_data): Likewise.
10261
10262         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10263         (llrint_test_data): Add tests used for lrint.
10264
10265         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10266         test.
10267         * sysdeps/i386/configure: Regenerated.
10268         * sysdeps/i386/i686/multiarch/Makefile
10269         [$(config-cflags-sse4) = yes]: Make code unconditional.
10270         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10271         Likewise.
10272         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10273         Likewise.
10274         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10275         test.
10276         * sysdeps/x86_64/configure: Regenerated.
10277         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10278         Make code unconditional.
10279         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10280         Likewise.
10281         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10282         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10283
10284         * scripts/rpm2dynsym.sh: Remove file.
10285
10286 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10287
10288         * configure.ac (libc_cv_cxx_thread_local): Define.
10289         * configure: Regenerate.
10290         * config.make.in (have-cxx-thread_local): Define.
10291         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10292         (LDLIBS-tst-thread_local1): Define.
10293         (tests): Add tst-thread_local1.
10294         [have-cxx-thread_local != yes] (tests-unsupported): Add
10295         tst-thread_local1.
10296         * nptl/tst-thread_local1.cc: New file.
10297
10298 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10299
10300         [BZ #19078]
10301         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10302         (u_thres): Likewise.
10303         (__expl): Determine whether to call __kernel_standard_l based on
10304         value of result, not argument.
10305
10306         * math/libm-test.inc (scalb_test_data): Add more expectations for
10307         the "inexact" exception.
10308
10309         [BZ #19077]
10310         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10311         0.0L for argument 1.0L.
10312
10313         [BZ #19076]
10314         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10315         constant 0.0L when computing infinite result.
10316
10317 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10318
10319         [BZ #10432]
10320         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10321         malloc_usable_size.
10322
10323 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10324
10325         [BZ #19018]
10326         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10327         Mangle function pointer before storing it.
10328         (__call_tls_dtors): Demangle function pointer before calling it.
10329
10330 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10331
10332         [BZ #19012]
10333         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10334         Clean up on failure.
10335
10336 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10337
10338         [BZ #19071]
10339         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10340         long int variable to store possibly incremented high part of
10341         mantissa.
10342         * math/libm-test.inc (lround_test_data): Add tests used for
10343         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10344         for tests requiring 64-bit long.  Do not condition tests on
10345         [TEST_FLOAT] unnecessarily.
10346         (llround_test_data): Add tests used for lround.  Add another
10347         expectation for the "inexact" exception.  Do not condition tests
10348         on [TEST_FLOAT] unnecessarily.
10349
10350         [BZ #887]
10351         [BZ #19049]
10352         [BZ #19050]
10353         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10354         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10355         <fix-int-fp-convert-zero.h>.
10356         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10357         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10358         <fix-int-fp-convert-zero.h>.
10359         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10360         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10361         <fix-int-fp-convert-zero.h>.
10362         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10363         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10364         <fix-int-fp-convert-zero.h>.
10365         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10366         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10367         <fix-int-fp-convert-zero.h>.
10368         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10369         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10370         <fix-int-fp-convert-zero.h>.
10371         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10372         * sysdeps/ieee754/flt-32/s_erff.c: Include
10373         <fix-int-fp-convert-zero.h>.
10374         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10375         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10376         <fix-int-fp-convert-zero.h>.
10377         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10378         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10379         <fix-int-fp-convert-zero.h>.
10380         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10381         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10382         <fix-int-fp-convert-zero.h>.
10383         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10384         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10385         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10386         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10387         file.
10388         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10389
10390 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10391
10392         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10393
10394 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10395
10396         [BZ #19059]
10397         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10398         overflowing computation.
10399         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10400         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10401         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10402         Likewise.
10403         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10404         Likewise.
10405         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10406         Likewise.
10407         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10408         Likewise.
10409         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10410         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10411         Likewise.
10412         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10413         Likewise.
10414         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10415
10416         * nss/rewrite_field.c (__nss_rewrite_field): Use
10417         internal_function.
10418         * nss/valid_field.c (__nss_valid_field): Likewise.
10419         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10420
10421 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10422
10423         [BZ #18724]
10424         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10425         (__nss_invalid_field_characters, __nss_valid_field)
10426         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10427         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10428         tst-field.c: New file.
10429         * nss/Makefile (routines): Add valid_field, rewrite_field.
10430         (tests-static): Define unconditionally.
10431         (tests): Include tests-static.
10432         [build-static-nss] (tests-static): Use append.
10433         [build-static-nss] (tests): Remove modification.
10434         * nss/getent.c (print_group): Call putgrent.  Report error.
10435         (print_gshadow): Call putsgent.  Report error.
10436         (print_passwd): Call putpwent.  Report error.
10437         (print_shadow): Call putspent.  Report error.
10438         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10439         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10440         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10441         name, password, directory, shell fields for valid syntax.  Rewrite
10442         GECOS field to match syntax.
10443         * pwd/Makefile (tests): Add tst-putpwent.
10444         * pwd/tst-putpwent.c: New file.
10445         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10446         Check grName, grpasswd, gr_mem fields for valid syntax.
10447         Change loop variable i to size_t.
10448         * grp/Makefile (tests): Add tst-putgrent.
10449         * grp/tst-putgrent.c: New file.
10450         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10451         valid syntax.
10452         * shadow/Makefile (tests): Add tst-putspent.
10453         * shadow/tst-putspent.c: New file.
10454         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10455         sg_mem fields for valid syntax.
10456         * gshadow/Makefile (tests): Add tst-putsgent.
10457         * gshadow/tst-putsgent.c: New file.
10458
10459 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10460
10461         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10462         assembly instructions.
10463
10464 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10465
10466         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10467         prefix from operands.
10468
10469 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10470
10471         [BZ #16347]
10472         [BZ #19046]
10473         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10474         <libc-internal.h>.
10475         (MAXLGM): Do not use diagnostic control macros.
10476         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10477         threshold for ldbl-128ibm.
10478         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10479         instead of multiplying by log then subtracting.
10480         * math/auto-libm-test-in: Add more tests of lgamma.
10481         * math/auto-libm-test-out: Regenerated.
10482
10483         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10484         (TYPE_HEX_DIG): Likewise.
10485         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10486         precisions when printing floating-point numbers.
10487         (check_float_internal): Likewise.
10488
10489 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10490
10491         [BZ #16620]
10492         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10493         of log (10) rounded downward to 48 bits.
10494         (log10_low): Use corresponding low part of log (10).
10495
10496         [BZ #19032]
10497         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10498         compute result as (x - x) / (x - x) not as 0 / 0.
10499         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10500         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10501
10502         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10503         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10504         and expm1.
10505         * math/auto-libm-test-out: Regenerated.
10506         * math/libm-test.inc (acos_test_data): Add more tests.
10507         (asin_test_data): Likewise.
10508         (asinh_test_data): Likewise.
10509         (atan_test_data): Likewise.
10510         (atanh_test_data): Likewise.
10511         (atan2_test_data): Likewise.
10512         (cbrt_test_data): Likewise.
10513         (ceil_test_data): Likewise.
10514         (copysign_test_data): Likewise.
10515         (cos_test_data): Likewise.
10516         (cosh_test_data): Likewise.
10517         (erf_test_data): Likewise.
10518         (erfc_test_data): Likewise.
10519         (exp_test_data): Likewise.
10520         (exp10_test_data): Likewise.
10521         (exp2_test_data): Likewise.
10522         (expm1_test_data): Likewise.
10523         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10524
10525 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10526
10527         [BZ #19006]
10528         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10529         to ...
10530         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10531         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10532         to ...
10533         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10534         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10535         to ...
10536         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10537         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10538         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10539         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10540         to ...
10541         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10542         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10543         Moved to ...
10544         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10545         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10546         Moved to ...
10547         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10548         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10549         to ...
10550         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10551         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10552         Moved to ...
10553         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10554         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10555         to ...
10556         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10557         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10558         Removed.
10559         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10560         Likewise.
10561         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10562         Likewise.
10563         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10564         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10565         Likewise.
10566         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10567         Likewise.
10568         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10569         Likewise.
10570         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10571         Likewise.
10572         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10573         Likewise.
10574         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10575         Likewise.
10576         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10577         Likewise.
10578         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10579         Likewise.
10580         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10581         Likewise.
10582         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10583         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10584         Likewise.
10585         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10586         Likewise.
10587         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10588         Likewise.
10589         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10590         Likewise.
10591         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10592         Likewise.
10593         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10594         Replace ../i486/pthread_cond_timedwait.S with
10595         ../pthread_cond_timedwait.S.
10596
10597 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10598
10599         * math/libm-test.inc (acos_test_data): Refine expectations for
10600         errno and "inexact" exceptions.
10601         (acosh_test_data): Likewise.
10602         (asin_test_data): Likewise.
10603         (asinh_test_data): Likewise.
10604         (atan_test_data): Likewise.
10605         (atanh_test_data): Likewise.
10606         (atan2_test_data): Likewise.
10607         (cbrt_test_data): Likewise.
10608         (ceil_test_data): Likewise.
10609         (copysign_test_data): Likewise.
10610         (cosh_test_data): Likewise.
10611         (erf_test_data): Likewise.
10612         (erfc_test_data): Likewise.
10613         (exp_test_data): Likewise.
10614         (exp10_test_data): Likewise.
10615         (exp2_test_data): Likewise.
10616         (expm1_test_data): Likewise.
10617         (fabs_test_data): Likewise.
10618         (floor_test_data): Likewise.
10619         (fma_test_data): Likewise.
10620         (fmax_test_data): Likewise.
10621         (fmin_test_data): Likewise.
10622         (fmod_test_data): Likewise.
10623         (fpclassify_test_data): Likewise.
10624         (frexp_test_data): Likewise.
10625         (hypot_test_data): Likewise.
10626         (ilogb_test_data): Likewise.
10627         (isgreater_test_data): Likewise.
10628         (isgreaterequal_test_data): Likewise.
10629         (isinf_test_data): Likewise.
10630         (isless_test_data): Likewise.
10631         (islessequal_test_data): Likewise.
10632         (islessgreater_test_data): Likewise.
10633         (isnan_test_data): Likewise.
10634         (isnormal_test_data): Likewise.
10635         (issignaling_test_data): Likewise.
10636         (isunordered_test_data): Likewise.
10637         (j0_test_data): Likewise.
10638         (j1_test_data): Likewise.
10639         (jn_test_data): Likewise.
10640         (lgamma_test_data): Likewise.
10641         (lrint_test_data): Likewise.
10642         (llrint_test_data): Likewise.
10643         (log_test_data): Likewise.
10644         (log10_test_data): Likewise.
10645         (log1p_test_data): Likewise.
10646         (log2_test_data): Likewise.
10647         (logb_test_data): Likewise.
10648         (lround_test_data): Likewise.
10649         (llround_test_data): Likewise.
10650         (modf_test_data): Likewise.
10651         (nearbyint_test_data): Likewise.
10652         (nextafter_test_data): Likewise.
10653         (nexttoward_test_data): Likewise.
10654         (pow_test_data): Likewise.
10655         (remainder_test_data): Likewise.
10656         (remquo_test_data): Likewise.
10657         (rint_test_data): Likewise.
10658         (round_test_data): Likewise.
10659         (signbit_test_data): Likewise.
10660         (sinh_test_data): Likewise.
10661         (sqrt_test_data): Likewise.
10662         (tanh_test_data): Likewise.
10663         (tgamma_test_data): Likewise.
10664         (trunc_test_data): Likewise.
10665         (y0_test_data): Likewise.
10666         (y1_test_data): Likewise.
10667         (yn_test_data): Likewise.
10668         (significand_test_data): Likewise.
10669
10670 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10671
10672         * manual/filesys.texi (Storage Allocation): Document that
10673         posix_fallocate emulation fails when fd is open with O_WRONLY.
10674
10675 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10676
10677         [BZ #19016]
10678         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10679         allow more cases with X^2 + Y^2 >= 0.5.
10680         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10681         normal element in sum instead of special-casing based on values of
10682         arguments.
10683         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10684         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10685         -1 as normal element in sum instead of special-casing based on
10686         values of arguments.
10687         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10688         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10689         (__x2y2m1): Update comment.
10690         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10691         as normal element in sum instead of special-casing based on values
10692         of arguments.
10693         * math/s_clog.c (__clog): Handle more cases using log1p without
10694         hypot.
10695         * math/s_clog10.c (__clog10): Likewise.
10696         * math/s_clog10f.c (__clog10f): Likewise.
10697         * math/s_clog10l.c (__clog10l): Likewise.
10698         * math/s_clogf.c (__clogf): Likewise.
10699         * math/s_clogl.c (__clogl): Likewise.
10700         * math/auto-libm-test-in: Add more tests of clog and clog10.
10701         * math/auto-libm-test-out: Regenerated.
10702         * sysdeps/i386/fpu/libm-test-ulps: Update.
10703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10704
10705 2015-09-28  Martin Sebor  <msebor@redhat.com>
10706
10707         [BZ #18969]
10708         * string/Makefile (LOCALES): Define.
10709         (gen-locales.mk): Include.
10710         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10711         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10712         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10713         on setlocale failure.
10714
10715 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10716
10717         [BZ #18985]
10718         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10719         (__strftime_internal): Likewise.
10720         * time/tst-strftime.c (do_bz18985): New test.
10721         (do_test): Call it.
10722
10723 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10724
10725         [BZ #18956]
10726         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10727         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10728         extracting high part.
10729         * math/auto-libm-test-in: Add another test of pow.
10730         * math/auto-libm-test-out: Regenerated.
10731         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10732
10733 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10734
10735         [BZ #18825]
10736         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10737         New macro.
10738         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10739         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10740         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10741         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10742         DBL_NARROW_EVAL, reloading the PIC register as needed.
10743         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10744         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10745         FLT_NARROW_EVAL.  Use separate return path for case when first
10746         argument is NaN.
10747         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10748         DEFINE_LDBL_MIN.
10749         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10750         PIC register.
10751         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10752         math_check_force_underflow_nonneg.
10753         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10754         underflow for subnormal result.
10755         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10756         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10757         math_check_force_underflow_nonneg.
10758         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10759         math_check_force_underflow.
10760         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10761         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10762         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10763         DEFINE_LDBL_MIN.
10764         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
10765         * math/auto-libm-test-in: Add more tests of pow.
10766         * math/auto-libm-test-out: Regenerated.
10767
10768 2015-09-25  Florian Weimer  <fweimer@redhat.com>
10769
10770         * nss/bug17079.c (init_test_items): Add diagnostic for
10771         inconsistent entries.
10772         (test_buffer_size): Skip inconsistent entries.
10773
10774 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10775
10776         [BZ #13304]
10777         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
10778         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
10779         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
10780
10781         [BZ #13304]
10782         * sysdeps/microblaze/s_fma.c: New file.
10783         * sysdeps/microblaze/s_fmaf.c: Likewise.
10784         * sysdeps/microblaze/sfp-machine.h: Likewise.
10785
10786 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
10787
10788         [BZ #17250]
10789         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
10790         member.
10791
10792 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10793
10794         [BZ #18803]
10795         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
10796         (MO): New macro.
10797         (__ieee754_hypot) [PIC]: Load PIC register.
10798         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
10799         DBL_NARROW_EVAL.
10800         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
10801         math_check_force_underflow_nonneg in case where result might be
10802         tiny.
10803         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10804         Likewise.
10805         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10806         Likewise.
10807         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10808         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10809         * math/auto-libm-test-in: Add more tests of hypot.
10810         * math/auto-libm-test-out: Regenerated.
10811
10812 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
10813
10814         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
10815
10816 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10817
10818         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
10819         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
10820         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10821         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10822         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
10823         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10824         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10825
10826         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
10827         LOAD_PIC_REG.
10828
10829         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
10830         (FLT_CHECK_FORCE_UFLOW): Likewise.
10831         (DBL_CHECK_FORCE_UFLOW): Likewise.
10832         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
10833         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
10834         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
10835         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10836         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10837         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10838         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10839         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10840         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
10841         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10842         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
10843         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
10844         (flt_min): Replace with use of DEFINE_FLT_MIN.
10845         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
10846         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
10847         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10848         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
10849         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
10850         (flt_min): Replace with use of DEFINE_FLT_MIN.
10851         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
10852         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
10853         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10854         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
10855         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
10856         (flt_min): Replace with use of DEFINE_FLT_MIN.
10857         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
10858         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
10859         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10860         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10861         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
10862         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10863         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10864         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
10865         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10866         (__atan): Use DBL_CHECK_FORCE_UFLOW.
10867         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
10868         (flt_min): Replace with use of DEFINE_FLT_MIN.
10869         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
10870         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
10871         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10872         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
10873         main computation.
10874         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
10875         (flt_min): Replace with use of DEFINE_FLT_MIN.
10876         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
10877         main computation.
10878         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
10879         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10880         (MO): New macro.
10881         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
10882         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
10883         (flt_min): Replace with use of DEFINE_FLT_MIN.
10884         (MO): New macro.
10885         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
10886         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
10887         (__log1pl): Use MO.
10888
10889         [BZ #19003]
10890         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
10891         $(config-cflags-nofma).
10892
10893 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10894
10895         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10896
10897 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
10898
10899         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
10900         (TWO127): Likewise.
10901
10902         * sysdeps/generic/math_private.h (fabs_tg): New macro.
10903         (min_of_type): Likewise.
10904         (math_check_force_underflow): Likewise.
10905         (math_check_force_underflow_nonneg): Likewise.
10906         (math_check_force_underflow_complex): Likewise.
10907         * math/e_exp2l.c (__ieee754_exp2l): Use
10908         math_check_force_underflow_nonneg.
10909         * math/k_casinh.c (__kernel_casinh): Likewise.
10910         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10911         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10912         * math/s_catan.c (__catan): Use
10913         math_check_force_underflow_complex.
10914         * math/s_catanf.c (__catanf): Likewise.
10915         * math/s_catanh.c (__catanh): Likewise.
10916         * math/s_catanhf.c (__catanhf): Likewise.
10917         * math/s_catanhl.c (__catanhl): Likewise.
10918         * math/s_catanl.c (__catanl): Likewise.
10919         * math/s_ccosh.c (__ccosh): Likewise.
10920         * math/s_ccoshf.c (__ccoshf): Likewise.
10921         * math/s_ccoshl.c (__ccoshl): Likewise.
10922         * math/s_cexp.c (__cexp): Likewise.
10923         * math/s_cexpf.c (__cexpf): Likewise.
10924         * math/s_cexpl.c (__cexpl): Likewise.
10925         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
10926         * math/s_clog10.c (__clog10): Likewise.
10927         * math/s_clog10f.c (__clog10f): Likewise.
10928         * math/s_clog10l.c (__clog10l): Likewise.
10929         * math/s_clogf.c (__clogf): Likewise.
10930         * math/s_clogl.c (__clogl): Likewise.
10931         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
10932         * math/s_csinf.c (__csinf): Likewise.
10933         * math/s_csinh.c (__csinh): Likewise.
10934         * math/s_csinhf.c (__csinhf): Likewise.
10935         * math/s_csinhl.c (__csinhl): Likewise.
10936         * math/s_csinl.c (__csinl): Likewise.
10937         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
10938         * math/s_csqrtf.c (__csqrtf): Likewise.
10939         * math/s_csqrtl.c (__csqrtl): Likewise.
10940         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
10941         * math/s_ctanf.c (__ctanf): Likewise.
10942         * math/s_ctanh.c (__ctanh): Likewise.
10943         * math/s_ctanhf.c (__ctanhf): Likewise.
10944         * math/s_ctanhl.c (__ctanhl): Likewise.
10945         * math/s_ctanl.c (__ctanl): Likewise.
10946         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
10947         instead of volatile.
10948         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
10949         math_check_force_underflow.
10950         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
10951         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
10952         volatile when forcing underflow.
10953         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10954         math_check_force_underflow_nonneg.
10955         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10956         Likewise.
10957         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
10958         math_check_force_underflow.
10959         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10960         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10961         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10962         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
10963         math_check_force_underflow_nonneg.
10964         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
10965         math_check_force_underflow.
10966         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10967         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
10968         instead of volatile.
10969         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
10970         math_check_force_underflow.
10971         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10972         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10973         math_check_force_underflow_nonneg.
10974         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
10975         math_check_force_underflow.
10976         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10977         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
10978         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
10979         math_check_force_underflow_nonneg.
10980         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10981         Likewise.
10982         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
10983         math_check_force_underflow.
10984         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
10985         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
10986         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10987         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
10988         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10989         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
10990         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10991         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10992         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
10993         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
10994         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10995         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10996         Likewise.
10997         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
10998         math_check_force_underflow_nonneg.
10999         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11000         Likewise.
11001         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11002         math_check_force_underflow.
11003         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11004         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11005         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11006         Likewise.
11007         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11008         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11009         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11010         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11011         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11012         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11013         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11014         instead of volatile.
11015         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11016         math_check_force_underflow.
11017         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11018         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11019         math_check_force_underflow.
11020         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11021         Likewise.
11022         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11023         Use math_check_force_underflow_nonneg.
11024         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11025         math_check_force_underflow.
11026         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11027         Likewise.
11028         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11029         Likewise.
11030         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11031         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11032         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11033         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11034         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11035         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11036         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11037         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11038         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11039         math_check_force_underflow_nonneg.
11040         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11041         math_check_force_underflow.
11042         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11043         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11044         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11045         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11046         math_check_force_underflow_nonneg.
11047         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11048         math_check_force_underflow.
11049         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11050         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11051         instead of volatile.
11052         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11053         math_check_force_underflow.
11054
11055         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11056         * stdlib/strtod_l.c: Include <math_private.h>.
11057         (overflow_value): Use math_narrow_eval.
11058         (underflow_value): Likewise.
11059         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11060         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11061         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11062         (__ieee754_gamma_r): Likewise.
11063         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11064         Likewise.
11065         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11066         Likewise.
11067         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11068         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11069         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11070         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11071         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11072         (__ieee754_gammaf_r): Likewise.
11073         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11074         Likewise.
11075         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11076         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11077         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11078         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11079         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11080         volatile.
11081         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11082         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11083         math_narrow_eval.
11084         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11085         Likewise.
11086         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11087         Likewise.
11088         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11089         Likewise.
11090         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11091         volatile.
11092         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11093         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11094         math_narrow_eval.
11095         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11096         Likewise.
11097         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11098         Likewise.
11099
11100 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11101
11102         * nptl/Versions: Remove ignored symbols.
11103
11104 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11105
11106         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11107         * nss/Makefile (tests): Update.
11108
11109 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11110
11111         * nss/bug18287.c: New file.
11112         * nss/Makefile (tests): Add bug18287.
11113
11114 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11115
11116         * mach/Versions (__mach_host_self_): Add symbol.
11117
11118 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11119
11120         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11121         vm_page_size.
11122
11123 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11124
11125         Really fix sysdeps/i386/fpu/s_scalbn.S build
11126
11127         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11128         (libc: GLIBC_2_22): Remove unused version set.
11129
11130 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11131
11132         * config.make.in (enable-timezone-tools): New variable.
11133         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11134         (enable_timezone_tools): Export to generated files.
11135         * configure: Regenerate.
11136         * INSTALL: Regenerate.
11137         * manual/install.texi (--disable-timezone-tools): Document new flag.
11138         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11139         ifeq ($(enable-timezone-tools),yes) check.
11140
11141 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11142
11143         * timezone/Makefile: Revert previous change.
11144
11145         [BZ #18980]
11146         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11147         (DEFINE_DBL_MIN): Likewise.
11148         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11149         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11150         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11151         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11152         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11153         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11154         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11155         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11156         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11157         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11158         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11159         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11160         (flt_min): Replace with use of DEFINE_FLT_MIN.
11161         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11162         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11163         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11164         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11165         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11166         (flt_min): Replace with use of DEFINE_FLT_MIN.
11167         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11168         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11169         (flt_min): Replace with use of DEFINE_FLT_MIN.
11170         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11171         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11172         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11173         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11174         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11175         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11176         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11177         (__ieee754_pow): Use DBL_NARROW_EVAL.
11178         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11179         (__ieee754_powf): Use FLT_NARROW_EVAL.
11180         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11181         (__ieee754_expf_sse2): Convert double-precision result to single
11182         precision.
11183         * sysdeps/i386/fpu/libm-test-ulps: Update.
11184
11185 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11186
11187         * timezone/Makefile: Ignore unused variable errors due to private.h
11188         (time_t_min) and (time_t_max).
11189         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11190         Likewise.
11191
11192 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11193
11194         [BZ #18981]
11195         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11196         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11197         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11198         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11199         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11200         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11201         (__scalbn): Use DBL_NARROW_EVAL.
11202         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11203         (__scalbnf): Use FLT_NARROW_EVAL.
11204
11205 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11206
11207         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11208         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11209         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11210         * stdio-common/printf_fp.c (___printf_fp):
11211         Use signbit to get the sign. Use isinf macro to allow inlining.
11212         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11213         * stdio-common/printf_size.c (__printf_size): Likewise.
11214
11215 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11216
11217         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11218
11219 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11220
11221         [BZ #18980]
11222         * sysdeps/generic/math_private.h: Include <float.h>.
11223         (math_narrow_eval): New macro.
11224         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11225         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11226         math_narrow_eval on overflowing return value.
11227         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11228         Likewise.
11229         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11230         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11231         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11232         Likewise.
11233         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11234
11235 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11236
11237         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11238         * math/Makefile: Remove isinf_ns.c.
11239         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11240         * math/multc3.c (__multc3): Likewise.
11241         * math/s_casin.c (__casin): Likewise.
11242         * math/s_casinf.c (__casinf): Likewise.
11243         * math/s_casinl.c (__casinl): Likewise.
11244         * math/s_cproj.c (__cproj): Likewise.
11245         * math/s_cprojf.c (__cprojf): Likewise.
11246         * math/s_cprojl.c (__cprofl): Likewise.
11247         * math/s_ctan.c (__ctan): Likewise.
11248         * math/s_ctanf.c (__ctanf): Likewise.
11249         * math/s_ctanh.c (__ctanh): Likewise.
11250         * math/s_ctanhf.c (__ctanhf): Likewise.
11251         * math/s_ctanhl.c (__ctanhl): Likewise.
11252         * math/s_ctanl.c (__ctanl): Likewise.
11253         * math/w_fmod.c (__fmod): Likewise.
11254         * math/w_fmodf.c (__fmodf): Likewise.
11255         * math/w_fmodl.c (_fmodl): Likewise.
11256         * math/w_remainder.c (__remainder): Likewise.
11257         * math/w_remainderf.c (__remainderf): Likewise.
11258         * math/w_remainderl.c (__remainderl): Likewise.
11259         * math/w_scalb.c (__scalb): Likewise.
11260         * math/w_scalbf.c (__scalbf): Likewise.
11261         * math/w_scalbl.c (__scalbl): Likewise.
11262         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11263         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11264         with isinf.
11265         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11266         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11267         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11268         __isinf_nsf with isinf.
11269         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11270         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11271         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11272         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11273         with isinf.
11274         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11275         __isinf_nsl with isinf.
11276         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11277         with isinf.
11278         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11279         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11280         __isinf_nsl with isinf.
11281         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11282         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11283         with isinf.
11284
11285 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11286
11287         * resolv/base64.c (rcsid): Remove unused static.
11288         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11289         static.  (tqpi1): Likewise.
11290         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11291         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11292         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11293         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11294         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11295         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11296         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11297         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11298         Likewise.
11299
11300 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11301
11302         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11303         <nptl/pthreadP.h>.
11304         (_longjmp_unwind): Use __libc_ptf_call.
11305         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11306
11307 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11308
11309         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11310         * sysdeps/arm/__longjmp.S: Likewise.
11311
11312 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11313
11314         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11315         Use __builtin_signbit.
11316         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11317         Use __builtin_signbitf.
11318         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11319         Use __builtin_signbitl.
11320         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11321         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11322
11323 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11324
11325         [BZ #15367]
11326         [BZ #17441]
11327
11328         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11329         * math/math.h (fpclassify): Use __builtin_fpclassify when
11330         available.  (signbit): Use __builtin_signbit(f/l).
11331         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11332         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11333         (isinf): Use __builtin_isinf_sign.
11334
11335 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11336
11337         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11338         * benchtests/bench-math-inlines.c: New benchmark.
11339         * benchtests/bench-util.h: New file.
11340         * benchtests/bench-util.c: New file.
11341         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11342
11343 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11344
11345         * elf/tst-dlmopen1.c: Define TEST_SO.
11346         (do_test): Use TEST_SO.
11347
11348         * elf/dl-load.c: Include libc-internal.h.
11349         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11350
11351 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11352
11353         [BZ #17887]
11354         * time/strptime_l.c (__strptime_internal): Make %z accept
11355         [+-]HH:MM time zones.
11356
11357 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11358
11359         [BZ #17886]
11360         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11361         valid time zone.
11362
11363 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11364
11365         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11366         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11367         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11368         (__ASSUME_FDATASYNC): Delete.
11369
11370 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11371
11372         * conform/linknamespace.pl: Require weak undefined symbols to be
11373         in the standard namespace.
11374         (%strong_syms): Rename to %seen_syms.
11375         (%strong_seen): Rename to %seen_where.
11376
11377 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11378
11379         [BZ #18970]
11380         * misc/error.c (error): Replace pthread_setcancelstate with
11381         __pthread_setcancelstate.
11382         (error_at_line): Likewise.
11383         * posix/wordexp.c (parse_comm): Likewise.
11384         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11385         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11386         (__pthread_setcancelstate): This.
11387         (pthread_setcancelstate): Add an alias.
11388         * nptl/nptl-init.c (pthread_functions): Replace
11389         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11390         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11391         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11392         hidden_proto.
11393         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11394         it with hidden_def.
11395         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11396         (pthread_setcancelstate): Renamed to ...
11397         (__pthread_setcancelstate): This.
11398         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11399         __libc_ptf_call with __pthread_setcancelstate.
11400
11401 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11402             Andreas Schwab  <schwab@suse.de>
11403
11404         [BZ #17118]
11405         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11406         result when imaginary part of argument is infinite using sine and
11407         cosine.
11408         * math/s_ctanf.c (__ctanf): Likewise.
11409         * math/s_ctanl.c (__ctanl): Likewise.
11410         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11411         of result when real part of argument is infinite using sine and
11412         cosine.
11413         * math/s_ctanhf.c (__ctanhf): Likewise.
11414         * math/s_ctanhl.c (__ctanhl): Likewise.
11415         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11416         (ctanh_test_data): Add more tests of ctanh.
11417
11418 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11419
11420         [BZ #15384]
11421         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11422         bit-mask as in subtraction.
11423         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11424         Likewise.
11425         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11426         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11427         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11428
11429         [BZ #18951]
11430         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11431         underflow exception for small results.
11432         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11433         Likewise.
11434         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11435         Likewise.
11436         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11437         Likewise.
11438         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11439         Likewise.
11440         * math/auto-libm-test-in: Add more tests of tgamma.
11441         * math/auto-libm-test-out: Regenerated.
11442
11443 2015-09-17  Andreas Schwab  <schwab@suse.de>
11444
11445         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11446
11447 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11448
11449         [BZ #18977]
11450         * math/bits/mathcalls.h
11451         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11452         not declare.
11453         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11454         Likewise.
11455         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11456         Likewise.
11457         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11458         Likewise.
11459         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11460         Likewise.
11461         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11462         Likewise.
11463         * conform/data/math.h-data
11464         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11465         function.
11466         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11467         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11468         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11469         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11470         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11471         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11472         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11473         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11474         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11475         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11476         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11477
11478         [BZ #6803]
11479         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11480         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11481         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11482         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11483         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11484         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11485         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11486         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11487         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11488         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11489         Likewise.
11490         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11491         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11492         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11494         long_double_symbol calls.
11495         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11496         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11497         strong alias of __ldexpl.
11498         (scalbnl): Define using long_double_symbol.
11499         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11500         Remove alias.
11501         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11502         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11503         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11504         (scalbln_test_data): Add more errno expectations.
11505
11506 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11507
11508         Cache the host port like we cache the task port.  This way we do not
11509         need to call the kernel just to get the port.  Furthermore, we no
11510         longer increase the reference count on every invocation of
11511         `mach_host_self'.
11512
11513         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11514         Protect declarations against the macro expansion.
11515         * mach/mach_init.c (__mach_host_self_): New variable.
11516         (mach_init): Initialize `__mach_host_self_'.
11517         * mach/mach_init.h (__mach_host_self_): New declaration.
11518         (__mach_host_self, mach_host_self): New macros.
11519         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11520         Release reference.
11521
11522 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11523
11524         [BZ #4404]
11525         * po/de.po: Update from Translation Project.
11526
11527         [BZ #16415]
11528         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11529         (__expm1l): Remove code to handle positive infinity and overflow.
11530         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11531         variable.
11532         (__expm1l): Remove code to handle positive infinity and overflow.
11533
11534 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11535             Paul Pluzhnikov  <ppluzhnikov@google.com>
11536
11537         [BZ #18872]
11538         * stdio-common/Makefile (tst-printf-bz18872): New test.
11539         (tst-printf-bz18872-mem.out): Likewise.
11540         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11541         * stdio-common/vfprintf.c: Fix memory leaks.
11542
11543 2015-09-16  Andreas Schwab  <schwab@suse.de>
11544
11545         [BZ #17244]
11546         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11547         Remove extra va_start/va_end calls.
11548
11549         [BZ #17243]
11550         * posix/execl.c (execl): Add missing va_end.
11551         * posix/execle.c (execle): Likewise.
11552         * posix/execlp.c (execlp): Likewise.
11553
11554 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11555
11556         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11557         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11558
11559 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11560
11561         [BZ #18967]
11562         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11563         undefine around includes of <bits/mathcalls.h>.
11564         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11565         not declare function.
11566         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11567         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11568         (scalb): Likewise.
11569         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11570         not define macro.
11571         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11572         variable.
11573         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11574         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11575         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11576
11577         [BZ #18857]
11578         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11579         return non-finite argument without doing ordered comparisons on
11580         it.
11581
11582         [BZ #16296]
11583         * math/fenv.h (fegetround): Use __attribute_pure__.
11584         * include/fenv.h (__fegetround): Likewise.
11585
11586         [BZ #18595]
11587         * math/s_ctan.c (__ctan): Force underflow exception for results
11588         whose real or imaginary part has small absolute value.
11589         * math/s_ctanf.c (__ctanf): Likewise.
11590         * math/s_ctanh.c (__ctanh): Likewise.
11591         * math/s_ctanhf.c (__ctanhf): Likewise.
11592         * math/s_ctanhl.c (__ctanhl): Likewise.
11593         * math/s_ctanl.c (__ctanl): Likewise.
11594         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11595         and ctanh.  Add more tests of ctan and ctanh.
11596
11597         [BZ #15918]
11598         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11599         handling of cases where one argument is an infinity.
11600
11601         [BZ #18875]
11602         [BZ #18966]
11603         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11604         (MO): New macro.
11605         (__ieee754_exp10): For small results, force underflow exception
11606         and remove excess range and precision from return value.
11607         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11608         (MO): New macro.
11609         (__ieee754_exp10f): For small results, force underflow exception
11610         and remove excess range and precision from return value.
11611         * math/auto-libm-test-in: Add more tests of exp10.
11612         * math/auto-libm-test-out: Regenerated.
11613
11614 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11615
11616         [BZ #18875]
11617         [BZ #18961]
11618         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11619         (MO): New macro.
11620         (__ieee754_exp): For small results, force underflow exception and
11621         remove excess range and precision from return value.
11622         (__exp_finite): Likewise.
11623         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11624         (MO): New macro.
11625         (__ieee754_expf): For small results, force underflow exception and
11626         remove excess range and precision from return value.
11627         (__expf_finite): Likewise.
11628         * math/auto-libm-test-in: Add more tests of exp.
11629         * math/auto-libm-test-out: Regenerated.
11630
11631         [BZ #16521]
11632         [BZ #18875]
11633         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11634         small results.
11635         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11636         (MO): New macro.
11637         (__ieee754_exp2): For small results, force underflow exception and
11638         remove excess range and precision from return value.
11639         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11640         (MO): New macro.
11641         (__ieee754_exp2f): For small results, force underflow exception
11642         and remove excess range and precision from return value.
11643         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11644         (MO): New macro.
11645         (__ieee754_exp2l): Force underflow exception for small results.
11646         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11647         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11648         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11649         (MO): New macro.
11650         (__ieee754_exp2l): Force underflow exception for small results.
11651         * math/auto-libm-test-in: Add more tests or exp2.
11652         * math/auto-libm-test-out: Regenerated.
11653
11654 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11655
11656         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11657
11658         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11659         /dev/null.
11660
11661 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11662
11663         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11664         io fs process)): Drop spurious backslash.
11665
11666 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11667
11668         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11669         Use sysinfo system call instead of parsing /proc/meminfo.
11670         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11671         Likewise.
11672
11673 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11674
11675         [BZ #16985]
11676         * programs/localedef.c (main): Display argv[remaining] when
11677         output_path is NULL.
11678
11679 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11680
11681         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11682         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11683         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11684         tanh.
11685         * math/auto-libm-test-out: Regenerated.
11686         * sysdeps/i386/fpu/libm-test-ulps: Update.
11687         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11688         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11690
11691 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11692
11693         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11694         Use 'override' keyword to freeze the value here, preventing
11695         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11696
11697 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11698
11699         [BZ #14912]
11700         * sysdeps/aarch64/bits/atomic.h: Move to ...
11701         * sysdeps/aarch64/atomic-machine.h: ...here.
11702         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11703         _AARCH64_ATOMIC_MACHINE_H.
11704         * sysdeps/alpha/bits/atomic.h: Move to ...
11705         * sysdeps/alpha/atomic-machine.h: ...here.
11706         * sysdeps/arm/bits/atomic.h: Move to ...
11707         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11708         * bits/atomic.h: Move to ...
11709         * sysdeps/generic/atomic-machine.h: ...here.
11710         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11711         * sysdeps/i386/bits/atomic.h: Move to ...
11712         * sysdeps/i386/atomic-machine.h: ...here.
11713         * sysdeps/ia64/bits/atomic.h: Move to ...
11714         * sysdeps/ia64/atomic-machine.h: ...here.
11715         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11716         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11717         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11718         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11719         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11720         * sysdeps/microblaze/bits/atomic.h: Move to ...
11721         * sysdeps/microblaze/atomic-machine.h: ...here.
11722         * sysdeps/mips/bits/atomic.h: Move to ...
11723         * sysdeps/mips/atomic-machine.h: ...here.
11724         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11725         * sysdeps/powerpc/bits/atomic.h: Move to ...
11726         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11727         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11728         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11729         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11730         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11731         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11732         <atomic-machine.h> instead of <bits/atomic.h>.
11733         * sysdeps/s390/bits/atomic.h: Move to ...
11734         * sysdeps/s390/atomic-machine.h: ...here.
11735         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11736         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11737         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11738         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11739         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11740         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11741         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11742         * sysdeps/tile/bits/atomic.h: Move to ...
11743         * sysdeps/tile/atomic-machine.h: ...here.
11744         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11745         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11746         <sysdeps/tile/atomic-machine.h> instead of
11747         <sysdeps/tile/bits/atomic.h>.
11748         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11749         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11750         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11751         <sysdeps/tile/atomic-machine.h> instead of
11752         <sysdeps/tile/bits/atomic.h>.
11753         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11754         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11755         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11756         <sysdeps/arm/atomic-machine.h> instead of
11757         <sysdeps/arm/bits/atomic.h>.
11758         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11759         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11760         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11761         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11762         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11763         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11764         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
11765         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
11766         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
11767         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
11768         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
11769         * sysdeps/x86_64/bits/atomic.h: Move to ...
11770         * sysdeps/x86_64/atomic-machine.h: ...here.
11771         * include/atomic.h: Include <atomic-machine.h> instead of
11772         <bits/atomic.h>.
11773
11774         * sysdeps/mips/mips32/libm-test-ulps: Update.
11775         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11776
11777         [BZ #18952]
11778         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
11779         not convert non-integer negative arguments to int to determine the
11780         value of signgam.
11781         * math/auto-libm-test-in: Add more tests of lgamma.
11782         * math/auto-libm-test-out: Regenerated.
11783
11784         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
11785         cosh, csqrt, erfc, expm1 and lgamma.
11786         * math/auto-libm-test-out: Regenerated.
11787         * sysdeps/i386/fpu/libm-test-ulps: Update.
11788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11789
11790 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
11791
11792         [BZ #2542]
11793         [BZ #2543]
11794         [BZ #2558]
11795         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
11796         __lgamma_neg for arguments from -28.0 to -2.0.
11797         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
11798         __lgamma_negf for arguments from -15.0 to -2.0.
11799         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11800         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
11801         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
11802         Call __lgamma_negl for arguments from -33.0 to -2.0.
11803         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
11804         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11805         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11806         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
11807         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11808         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11810         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
11811         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11812         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11813         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
11814         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
11815         (__lgamma_neg): Likewise.
11816         (__lgamma_negl): Likewise.
11817         (__lgamma_product): Likewise.
11818         (__lgamma_productl): Likewise.
11819         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
11820         * math/auto-libm-test-in: Add more tests of lgamma.
11821         * math/auto-libm-test-out: Regenerated.
11822         * sysdeps/i386/fpu/libm-test-ulps: Update.
11823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11824
11825 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
11826
11827         [BZ #18675]
11828         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
11829
11830 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11831
11832         [BZ #14912]
11833         * bits/libc-lock.h: Move to ...
11834         * sysdeps/generic/libc-lock.h: ...here.
11835         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11836         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
11837         * sysdeps/mach/hurd/libc-lock.h: ...here.
11838         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11839         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
11840         * sysdeps/mach/bits/libc-lock.h: Move to ...
11841         * sysdeps/mach/libc-lock.h: ...here.
11842         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11843         * sysdeps/nptl/bits/libc-lock.h: Move to ...
11844         * sysdeps/nptl/libc-lock.h: ...here.
11845         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11846         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
11847         * sysdeps/nptl/libc-lockP.h: ...here.
11848         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
11849         * crypt/crypt_util.c: Include <libc-lock.h> instead of
11850         <bits/libc-lock.h>.
11851         * dirent/scandir-tail.c: Likewise.
11852         * dlfcn/dlerror.c: Likewise.
11853         * elf/dl-close.c: Likewise.
11854         * elf/dl-iteratephdr.c: Likewise.
11855         * elf/dl-lookup.c: Likewise.
11856         * elf/dl-open.c: Likewise.
11857         * elf/dl-support.c: Likewise.
11858         * elf/dl-writev.h: Likewise.
11859         * elf/rtld.c: Likewise.
11860         * grp/fgetgrent.c: Likewise.
11861         * gshadow/fgetsgent.c: Likewise.
11862         * gshadow/sgetsgent.c: Likewise.
11863         * iconv/gconv_conf.c: Likewise.
11864         * iconv/gconv_db.c: Likewise.
11865         * iconv/gconv_dl.c: Likewise.
11866         * iconv/gconv_int.h: Likewise.
11867         * iconv/gconv_trans.c: Likewise.
11868         * include/link.h: Likewise.
11869         * inet/getnameinfo.c: Likewise.
11870         * inet/getnetgrent.c: Likewise.
11871         * inet/getnetgrent_r.c: Likewise.
11872         * intl/bindtextdom.c: Likewise.
11873         * intl/dcigettext.c: Likewise.
11874         * intl/finddomain.c: Likewise.
11875         * intl/gettextP.h: Likewise.
11876         * intl/loadmsgcat.c: Likewise.
11877         * intl/localealias.c: Likewise.
11878         * intl/textdomain.c: Likewise.
11879         * libidn/idn-stub.c: Likewise.
11880         * libio/libioP.h: Likewise.
11881         * locale/duplocale.c: Likewise.
11882         * locale/freelocale.c: Likewise.
11883         * locale/newlocale.c: Likewise.
11884         * locale/setlocale.c: Likewise.
11885         * login/getutent_r.c: Likewise.
11886         * login/getutid_r.c: Likewise.
11887         * login/getutline_r.c: Likewise.
11888         * login/utmp-private.h: Likewise.
11889         * login/utmpname.c: Likewise.
11890         * malloc/mtrace.c: Likewise.
11891         * misc/efgcvt.c: Likewise.
11892         * misc/error.c: Likewise.
11893         * misc/fstab.c: Likewise.
11894         * misc/getpass.c: Likewise.
11895         * misc/mntent.c: Likewise.
11896         * misc/syslog.c: Likewise.
11897         * nis/nis_call.c: Likewise.
11898         * nis/nis_callback.c: Likewise.
11899         * nis/nss-default.c: Likewise.
11900         * nis/nss_compat/compat-grp.c: Likewise.
11901         * nis/nss_compat/compat-initgroups.c: Likewise.
11902         * nis/nss_compat/compat-pwd.c: Likewise.
11903         * nis/nss_compat/compat-spwd.c: Likewise.
11904         * nis/nss_nis/nis-alias.c: Likewise.
11905         * nis/nss_nis/nis-ethers.c: Likewise.
11906         * nis/nss_nis/nis-grp.c: Likewise.
11907         * nis/nss_nis/nis-hosts.c: Likewise.
11908         * nis/nss_nis/nis-network.c: Likewise.
11909         * nis/nss_nis/nis-proto.c: Likewise.
11910         * nis/nss_nis/nis-pwd.c: Likewise.
11911         * nis/nss_nis/nis-rpc.c: Likewise.
11912         * nis/nss_nis/nis-service.c: Likewise.
11913         * nis/nss_nis/nis-spwd.c: Likewise.
11914         * nis/nss_nisplus/nisplus-alias.c: Likewise.
11915         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
11916         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11917         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
11918         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
11919         * nis/nss_nisplus/nisplus-network.c: Likewise.
11920         * nis/nss_nisplus/nisplus-proto.c: Likewise.
11921         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11922         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
11923         * nis/nss_nisplus/nisplus-service.c: Likewise.
11924         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
11925         * nis/ypclnt.c: Likewise.
11926         * nptl/libc_pthread_init.c: Likewise.
11927         * nss/getXXbyYY.c: Likewise.
11928         * nss/getXXent.c: Likewise.
11929         * nss/getXXent_r.c: Likewise.
11930         * nss/nss_db/db-XXX.c: Likewise.
11931         * nss/nss_db/db-netgrp.c: Likewise.
11932         * nss/nss_db/nss_db.h: Likewise.
11933         * nss/nss_files/files-XXX.c: Likewise.
11934         * nss/nss_files/files-alias.c: Likewise.
11935         * nss/nsswitch.c: Likewise.
11936         * posix/regex_internal.h: Likewise.
11937         * posix/wordexp.c: Likewise.
11938         * pwd/fgetpwent.c: Likewise.
11939         * resolv/res_hconf.c: Likewise.
11940         * resolv/res_libc.c: Likewise.
11941         * shadow/fgetspent.c: Likewise.
11942         * shadow/lckpwdf.c: Likewise.
11943         * shadow/sgetspent.c: Likewise.
11944         * socket/opensock.c: Likewise.
11945         * stdio-common/reg-modifier.c: Likewise.
11946         * stdio-common/reg-printf.c: Likewise.
11947         * stdio-common/reg-type.c: Likewise.
11948         * stdio-common/vfprintf.c: Likewise.
11949         * stdio-common/vfscanf.c: Likewise.
11950         * stdlib/abort.c: Likewise.
11951         * stdlib/cxa_atexit.c: Likewise.
11952         * stdlib/fmtmsg.c: Likewise.
11953         * stdlib/random.c: Likewise.
11954         * stdlib/setenv.c: Likewise.
11955         * string/strsignal.c: Likewise.
11956         * sunrpc/auth_none.c: Likewise.
11957         * sunrpc/bindrsvprt.c: Likewise.
11958         * sunrpc/create_xid.c: Likewise.
11959         * sunrpc/key_call.c: Likewise.
11960         * sunrpc/rpc_thread.c: Likewise.
11961         * sysdeps/arm/backtrace.c: Likewise.
11962         * sysdeps/generic/ldsodefs.h: Likewise.
11963         * sysdeps/generic/stdio-lock.h: Likewise.
11964         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
11965         * sysdeps/i386/backtrace.c: Likewise.
11966         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11967         * sysdeps/m68k/backtrace.c: Likewise.
11968         * sysdeps/mach/hurd/cthreads.c: Likewise.
11969         * sysdeps/mach/hurd/dirstream.h: Likewise.
11970         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11971         * sysdeps/nptl/malloc-machine.h: Likewise.
11972         * sysdeps/nptl/stdio-lock.h: Likewise.
11973         * sysdeps/posix/dirstream.h: Likewise.
11974         * sysdeps/posix/getaddrinfo.c: Likewise.
11975         * sysdeps/posix/system.c: Likewise.
11976         * sysdeps/pthread/aio_suspend.c: Likewise.
11977         * sysdeps/s390/s390-32/backtrace.c: Likewise.
11978         * sysdeps/s390/s390-64/backtrace.c: Likewise.
11979         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
11980         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
11981         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
11982         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
11983         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
11984         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
11985         * sysdeps/unix/sysv/linux/system.c: Likewise.
11986         * sysdeps/x86_64/backtrace.c: Likewise.
11987         * time/alt_digit.c: Likewise.
11988         * time/era.c: Likewise.
11989         * time/tzset.c: Likewise.
11990         * wcsmbs/wcsmbsload.c: Likewise.
11991         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
11992         instead of <bits/libc-lock.h> in comment.
11993
11994 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
11995
11996         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
11997         Only use .set mips2 if the current ISA is below mips2.
11998         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
11999         Likewise.
12000         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12001         mips32r2 if the current ISA is below mips32r2.
12002         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12003         (TLS_IE): Updated to use the TLD_RDHWR macro.
12004         (TLS_LE): Likewise.
12005         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12006         __ASSEMBLER__ condition.
12007
12008 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12009
12010         Fix parallel build of before-compile targets.
12011
12012         * sysdeps/mach/Makefile ($(patsubst
12013         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12014         mach-before-compile target.
12015         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12016         io fs process)): Move rule to dedicated hurd-before-compile target.
12017
12018 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12019
12020         Fix rules generating headers in hurd/ and mach/ when initial make call
12021         has subdir= explicitly set.
12022
12023         * sysdeps/mach/Makefile ($(patsubst
12024         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12025         calling $(MAKE).
12026         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12027         io fs process)): Force subdir to hurd when calling $(MAKE).
12028         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12029         subdir to mach when calling $(MAKE).
12030
12031 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12032
12033         Check sysheaders when looking for Mach and Hurd headers
12034
12035         * sysdeps/mach/configure.ac: Add sysheaders check.
12036         * sysdeps/mach/configure: Regenerate.
12037         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12038         * sysdeps/mach/hurd/configure: Regenerate.
12039
12040 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12041
12042         [BZ #18921]
12043         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12044         Fix inverted sense of test of 'o_directory_works' value.
12045         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12046         Bernhard Voelker <mail@bernhard-voelker.de>.
12047
12048 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12049
12050         [BZ #14912]
12051         * bits/linkmap.h: Move to ...
12052         * sysdeps/generic/linkmap.h: ...here.
12053         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12054         * sysdeps/aarch64/linkmap.h: ...here.
12055         * sysdeps/arm/bits/linkmap.h: Move to ...
12056         * sysdeps/arm/linkmap.h: ...here.
12057         * sysdeps/hppa/bits/linkmap.h: Move to ...
12058         * sysdeps/hppa/linkmap.h: ...here.
12059         * sysdeps/ia64/bits/linkmap.h: Move to ...
12060         * sysdeps/ia64/linkmap.h: ...here.
12061         * sysdeps/mips/bits/linkmap.h: Move to ...
12062         * sysdeps/mips/linkmap.h: ...here.
12063         * sysdeps/s390/bits/linkmap.h: Move to ...
12064         * sysdeps/s390/linkmap.h: ...here.
12065         * sysdeps/sh/bits/linkmap.h: Move to ...
12066         * sysdeps/sh/linkmap.h: ...here.
12067         * sysdeps/x86/bits/linkmap.h: Move to ...
12068         * sysdeps/x86/linkmap.h: ...here.
12069         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12070
12071 2015-09-04  Andreas Schwab  <schwab@suse.de>
12072
12073         [BZ #18635]
12074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12075         (__makecontext): Terminate FDE before return label.
12076         (__novec_makecontext): Likewise.
12077
12078 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12079
12080         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12081         first member of struct sv in syscall macro.
12082
12083 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12084
12085         [BZ #14912]
12086         * bits/stdio-lock.h: Move to ...
12087         * sysdeps/generic/stdio-lock.h: ...here.
12088         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12089         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12090         * sysdeps/nptl/stdio-lock.h: ...here.
12091         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12092         * include/libio.h: Include <stdio-lock.h> instead of
12093         <bits/stdio-lock.h>.
12094         * sysdeps/nptl/fork.c: Likewise.
12095         * sysdeps/pthread/flockfile.c: Likewise.
12096         * sysdeps/pthread/ftrylockfile.c: Likewise.
12097         * sysdeps/pthread/funlockfile.c: Likewise.
12098
12099         [BZ #14912]
12100         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12101         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12102         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12103         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12104         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12105         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12106         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12107
12108 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12109
12110         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12111         (test-xfail-tst-protected1b): New variable.
12112
12113 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12114
12115         [BZ #14912]
12116         * bits/libc-tsd.h: Move to ...
12117         * sysdeps/generic/libc-tsd.h: ...here.
12118         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12119         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12120         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12121         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12122         * include/ctype.h: Include <libc-tsd.h> instead of
12123         <bits/libc-tsd.h>.
12124         * include/rpc/rpc.h: Likewise.
12125         * locale/localeinfo.h: Likewise.
12126         * sunrpc/rpc_thread.c: Likewise.
12127         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12128         * sysdeps/nptl/malloc-machine.h: Likewise.
12129
12130         * Makefile (headers): Remove bits/libc-lock.h.
12131         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12132
12133         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12134         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12135         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12136         <bits/stdio-lock.h>.
12137         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12138         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12139
12140 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12141
12142         [BZ #18757]
12143         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12144         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12145         BZ #18757.
12146
12147 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12148
12149         * malloc/mtrace.pl: Filter out NULL entries.
12150
12151 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12152
12153         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12154         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12155         macro.
12156
12157         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12158         (TCP_CC_INFO): Likewise.
12159         (TCP_SAVE_SYN): Likewise.
12160         (TCP_SAVED_SYN): Likewise.
12161
12162 2015-08-31  Brett Neumeier <brett@neumeier.us>
12163
12164         [BZ #18870]
12165         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12166
12167 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12168
12169         [BZ #18873]
12170         Fix broken overflow check in posix_fallocate
12171         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12172         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12173         Fix parenthesization typo.
12174
12175 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12176
12177         [BZ #18887]
12178         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12179         tst-mntent-blank-passno.
12180         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12181         * misc/tst-mntent-blank-corrupt.c: New test.
12182         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12183         * misc/tst-mntent.c (do_test): ... here.
12184
12185 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12186
12187         [BZ #4404]
12188         * po/de.po: Fix SIGALRM typo.
12189
12190 2015-08-28  James Perkins  <james@loowit.net>
12191
12192         * time/tst-strptime2.c (tests): Replace short list of test
12193         strings for strptime %z specifier with code which exhaustively
12194         tests every combination of sign and 0 to 5 digits. Tests for
12195         rejection of invalid strings.
12196
12197 2015-08-28  James Perkins  <james@loowit.net>
12198
12199         [BZ #16141]
12200         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12201         calculation, removing incorrect decimal time rounding, so that
12202         all minute values result in a valid seconds value.
12203         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12204         offset range limits to UTC-99:59 through UTC+99:59 to parse
12205         current and historical use cases.
12206         * time/tst-strptime2.c (tests): Modify and add tests for the
12207         strptime %z input field descriptor, specifically conversion of
12208         minutes to seconds and validating an offset range of -9959 to
12209         +9959.
12210
12211 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12212             Dmitry V. Levin  <ldv@altlinux.org>
12213
12214         [BZ #18877]
12215         * posix/Makefile (tests): Add tst-mmap-offset.
12216         * posix/tst-mmap.c: New file.
12217         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12218         offset calculation for negative values.
12219
12220 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12221
12222         * sysdeps/i386/init-arch.h: New file.
12223         * sysdeps/i386/i586/init-arch.h: Likewise.
12224         * sysdeps/i386/i686/init-arch.h: Likewise.
12225         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12226         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12227         * sysdeps/x86/cpu-features.h (bit_I586): New.
12228         (bit_I686): Likewise.
12229         (bit_CX8): Likewise.
12230         (bit_CMOV): Likewise.
12231         (index_CX8): Likewise.
12232         (index_CMOV): Likewise.
12233         (index_I586): Likewise.
12234         (index_I686): Likewise.
12235         (reg_CX8): Likewise.
12236         (reg_CMOV): Likewise.
12237         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12238         available at compile-time.
12239         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12240         available at compile-time.
12241         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12242         (USE_I686): Likewise.
12243
12244 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12245
12246         * sysdeps/i386/bcopy.S: New file.
12247         * sysdeps/i386/bzero.S: Likewise.
12248         * sysdeps/i386/memcpy.S: Likewise.
12249         * sysdeps/i386/memmove.S: Likewise.
12250         * sysdeps/i386/mempcpy.S: Likewise.
12251         * sysdeps/i386/memset.S: Likewise.
12252         * sysdeps/i386/bzero.c: Removed.
12253         * sysdeps/i386/memset.c: Likewise.
12254         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12255         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12256         * sysdeps/i386/i586/memset_chk.S: Likewise.
12257         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12258         * sysdeps/i386/memcpy_chk.S: Here.
12259         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12260         * sysdeps/i386/memmove_chk.S: Here.
12261         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12262         * sysdeps/i386/mempcpy_chk.S: Likewise.
12263         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12264         * sysdeps/i386/memset_chk.S: Likewise.
12265
12266 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12267
12268         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12269         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12270         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12271         * soft-fp/fmadf4.c: Ditto.
12272         * soft-fp/fmatf4.c: Ditto.
12273
12274 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12275
12276         * sysdeps/i386/i586/Implies: Removed.
12277         * sysdeps/i386/i686/Implies: Likewise.
12278
12279 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12280
12281         * sysdeps/i386/i486/strlen.S: Moved to ...
12282         * sysdeps/i386/strlen.S: Here.
12283
12284 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12285
12286         * sysdeps/i386/i486/strcat.S: Moved to ...
12287         * sysdeps/i386/strcat.S: Here.
12288
12289 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12290
12291         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12292         * sysdeps/i386/pthread_spin_trylock.S: Here.
12293         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12294         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12295
12296 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12297
12298         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12299         * sysdeps/i386/string-inlines.c: Here.
12300
12301 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12302
12303         * sysdeps/i386/i486/htonl.S: Moved ...
12304         * sysdeps/i386/htonl.S: here.
12305
12306 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12307
12308         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12309         * sysdeps/i386/bits/atomic.h: Here.
12310
12311 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12312
12313         * sysdeps/i386/i486/Versions: Removed.
12314
12315 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12316
12317         [BZ #2898]
12318         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12319         Based on patch by Aurelien Jarno.
12320
12321 2015-08-26  Stan Shebs  <stanshebs@google.com>
12322
12323         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12324         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12325
12326 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12327
12328         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12329         * sysdeps/powerpc/dl-procinfo.c:
12330         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12331         feature so it shows when LD_SHOW_AUXV=1.
12332
12333 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12334
12335         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12336         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12337         definition.  ISA 2.07B no longer requires full sync.
12338
12339 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12340
12341         [BZ #18863]
12342         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12343         (si_call_addr): Define.
12344         (si_syscall): Define.
12345         (si_arch): Define.
12346
12347 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12348
12349         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12350         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12351         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12352         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12353         (__memset_zero_constant_len_parameter): New.
12354         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12355         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12356         (__memset_zero_constant_len_parameter): Don't define if
12357         __memset_chk or USE_AS_BZERO are defined.
12358
12359         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12360         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12361         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12362
12363         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12364         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12365         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12366         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12367         comments.
12368         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12369         -mno-mmx for $(all-rtld-routines).
12370         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12371         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12372         i386.
12373
12374 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12375
12376         * sysdeps/generic/unwind.h
12377         (_Unwind_Word): Use __mode__(__unwind_word__)
12378         instead of __mode__(__word__).
12379         (_Unwind_Sword): Likewise.
12380
12381         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12382         (MAX_NEEDED_INPUT): New define.
12383         (MAX_NEEDED_OUTPUT): New define.
12384
12385         * NEWS: New item for IBM z13 string optimizations.
12386
12387         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12388         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12389         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12390         * sysdeps/s390/multiarch/Makefile
12391         (sysdep_routines): Add memrchr functions.
12392         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12393         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12394
12395         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12396         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12397         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12398         * sysdeps/s390/multiarch/Makefile
12399         (sysdep_routines): Add wmemcmp functions.
12400         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12401         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12402         * benchtests/bench-wmemcmp.c: New File.
12403         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12404
12405         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12406         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12407         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12408         * sysdeps/s390/multiarch/Makefile
12409         (sysdep_routines): Add wmemset functions.
12410         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12411         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12412         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12413         * string/test-memset.c: Add wmemset support.
12414         * wcsmbs/test-wmemset.c: New File.
12415         * wcsmbs/Makefile (strop-tests): Add wmemset.
12416         * benchtests/bench-memset.c: Add wmemset support.
12417         * benchtests/bench-wmemset.c: New File.
12418         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12419
12420         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12421         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12422         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12423         * sysdeps/s390/multiarch/Makefile
12424         (sysdep_routines): Add memccpy functions.
12425         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12426         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12427         * string/memccpy.c: Use MEMCCPY if defined.
12428
12429         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12430         * sysdeps/s390/multiarch/memchr.c: Likewise.
12431         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12432         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12433         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12434         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12435         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12436         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12437         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12438         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12439         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12440         and rawmemchr functions.
12441         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12442         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12443         and wmemchr.
12444         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12445         * string/test-memchr.c: Add wmemchr support.
12446         * wcsmbs/test-wmemchr.c: New File.
12447         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12448         * benchtests/bench-memchr.c: Add wmemchr support.
12449         * benchtests/bench-wmemchr.c: New File.
12450         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12451
12452         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12453         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12454         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12455         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12456         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12457         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12458         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12459         wcscspn functions.
12460         * sysdeps/s390/multiarch/ifunc-impl-list.c
12461         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12462         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12463         * string/test-strcspn.c: Add wcscspn support.
12464         * wcsmbs/test-wcscspn.c: New File.
12465         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12466         * benchtests/bench-strcspn.c: Add wcscspn support.
12467         * benchtests/bench-wcscspn.c: New File.
12468         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12469
12470         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12471         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12472         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12473         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12474         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12475         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12476         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12477         wcspbrk functions.
12478         * sysdeps/s390/multiarch/ifunc-impl-list.c
12479         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12480         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12481         * string/test-strpbrk.c: Add wcspbrk support.
12482         * wcsmbs/test-wcspbrk.c: New File.
12483         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12484         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12485         * benchtests/bench-wcspbrk.c: New File.
12486         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12487
12488         * sysdeps/s390/multiarch/strspn-c.c: New File.
12489         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12490         * sysdeps/s390/multiarch/strspn.c: Likewise.
12491         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12492         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12493         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12494         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12495         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12496         wcsspn functions.
12497         * sysdeps/s390/multiarch/ifunc-impl-list.c
12498         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12499         * string/test-strspn.c: Add wcsspn support.
12500         * wcsmbs/test-wcsspn.c: New File.
12501         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12502         * benchtests/bench-strspn.c: Add wcsspn support.
12503         * benchtests/bench-wcsspn.c: New File.
12504         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12505
12506         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12507         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12508         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12509         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12510         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12511         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12512         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12513         wcsrchr functions.
12514         * sysdeps/s390/multiarch/ifunc-impl-list.c
12515         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12516         * benchtests/bench-wcsrchr.c: New File.
12517         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12518
12519         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12520         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12521         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12522         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12523         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12524         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12525         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12526         wcschrnul functions.
12527         * sysdeps/s390/multiarch/ifunc-impl-list.c
12528         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12529         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12530         * string/test-strchr.c: Add wcschrnul support.
12531         * wcsmbs/test-wcschrnul.c: New File.
12532         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12533         * benchtests/bench-strchr.c: Add wcschrnul support.
12534         * benchtests/bench-wcschrnul.c: New File.
12535         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12536
12537         * sysdeps/s390/multiarch/strchr-c.c: New File.
12538         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12539         * sysdeps/s390/multiarch/strchr.c: Likewise.
12540         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12541         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12542         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12543         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12544         wcschr functions.
12545         * sysdeps/s390/multiarch/ifunc-impl-list.c
12546         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12547         * string/strchr.c (STRCHR): Define and use macro.
12548         * benchtests/bench-wcschr.c: New File.
12549         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12550
12551         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12552         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12553         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12554         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12555         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12556         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12557         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12558         wcsncmp functions.
12559         * sysdeps/s390/multiarch/ifunc-impl-list.c
12560         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12561         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12562         * benchtests/bench-strncmp.c: Add wcsncmp support.
12563         * benchtests/bench-wcsncmp.c: New File.
12564         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12565
12566         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12567         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12568         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12569         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12570         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12571         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12572         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12573         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12574         wcscmp functions.
12575         * sysdeps/s390/multiarch/ifunc-impl-list.c
12576         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12577         * string/strcmp.c (STRCMP): Define and use macro.
12578         * benchtests/bench-wcscmp.c: New File.
12579         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12580         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12581         instead of _HAVE_STRING_ARCH_memchr.
12582
12583         * sysdeps/s390/multiarch/strncat-c.c: New File.
12584         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12585         * sysdeps/s390/multiarch/strncat.c: Likewise.
12586         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12587         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12588         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12589         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12590         wcsncat functions.
12591         * sysdeps/s390/multiarch/ifunc-impl-list.c
12592         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12593         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12594         * string/test-strncat.c: Add wcsncat support.
12595         * wcsmbs/test-wcsncat.c: New File.
12596         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12597         * benchtests/bench-strncat.c: Add wcsncat support.
12598         * benchtests/bench-wcsncat.c: New File.
12599         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12600
12601         * sysdeps/s390/multiarch/strcat-c.c: New File.
12602         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12603         * sysdeps/s390/multiarch/strcat.c: Likewise.
12604         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12605         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12606         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12607         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12608         wcscat functions.
12609         * sysdeps/s390/multiarch/ifunc-impl-list.c
12610         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12611         * string/strcat.c (STRCAT): Define and use macro.
12612         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12613         * string/test-strcat.c: Add wcscat support.
12614         * wcsmbs/test-wcscat.c: New File.
12615         * wcsmbs/Makefile (strop-tests): Add wcscat.
12616         * benchtests/bench-strcat.c: Add wcscat support.
12617         * benchtests/bench-wcscat.c: New File.
12618         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12619
12620         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12621         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12622         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12623         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12624         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12625         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12626         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12627         wcpncpy functions.
12628         * sysdeps/s390/multiarch/ifunc-impl-list.c
12629         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12630         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12631         * string/test-stpncpy.c: Add wcpncpy support.
12632         * wcsmbs/test-wcpncpy.c: New File.
12633         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12634         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12635         * benchtests/bench-wcpncpy.c: New File.
12636         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12637
12638         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12639         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12640         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12641         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12642         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12643         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12644         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12645         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12646         wcsncpy functions.
12647         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12648         * sysdeps/s390/multiarch/ifunc-impl-list.c
12649         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12650         * string/test-strncpy.c: Add wcsncpy support.
12651         * wcsmbs/test-wcsncpy.c: New File.
12652         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12653         * benchtests/bench-strncpy.c: Add wcsncpy support.
12654         * benchtests/bench-wcsncpy.c: New File.
12655         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12656
12657         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12658         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12659         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12660         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12661         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12662         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12663         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12664         wcpcpy functions.
12665         * string/stpcpy.c: Use STPCPY if defined.
12666         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12667         * sysdeps/s390/multiarch/ifunc-impl-list.c
12668         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12669         * string/test-stpcpy.c: Add wcpcpy support.
12670         * wcsmbs/test-wcpcpy.c: New File.
12671         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12672         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12673         * benchtests/bench-wcpcpy.c: New File.
12674         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12675
12676         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12677         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12678         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12679         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12680         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12681         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12682         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12683         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12684         wcscpy functions.
12685         * sysdeps/s390/multiarch/ifunc-impl-list.c
12686         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12687         * benchtests/bench-wcscpy.c: New File.
12688         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12689
12690         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12691         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12692         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12693         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12694         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12695         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12696         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12697         wcsnlen functions.
12698         * sysdeps/s390/multiarch/ifunc-impl-list.c
12699         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12700         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12701         * string/test-strnlen.c: Add wcsnlen support.
12702         * wcsmbs/test-wcsnlen.c: New File.
12703         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12704         * benchtests/bench-strnlen.c: Add wcsnlen support.
12705         * benchtests/bench-wcsnlen.c: New File.
12706         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12707
12708         * sysdeps/s390/multiarch/Makefile: New File.
12709         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12710         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12711         * sysdeps/s390/multiarch/strlen.c: Likewise.
12712         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12713         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12714         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12715         * string/strlen.c (STRLEN): Define and use macro.
12716         * sysdeps/s390/multiarch/ifunc-impl-list.c
12717         (IFUNC_VX_IMPL): New macro function.
12718         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12719         * benchtests/Makefile (wcsmbs-bench): New variable.
12720         (string-bench-all): Added wcsmbs-bench.
12721         * benchtests/bench-wcslen.c: New File.
12722
12723         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12724         s390_vx_libc_ifunc2): New macro function.
12725
12726         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12727         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12728         assembler support.
12729         * sysdeps/s390/configure: Regenerated.
12730
12731         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12732         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12733
12734         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12735         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12736         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12737
12738         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12739         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12740         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12741         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12742         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12743         (memcmp, bcmp): Use __memcmp_default as alias source.
12744         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12745         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12746         Rename to __memcmp_default.
12747         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12748         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12749         (memcpy): Use __memcpy_default as alias source.
12750         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12751         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12752         Rename to __memcpy_default.
12753         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12754         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12755         (memset): Use __memset_default as alias source.
12756         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12757         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12758         Rename to __memset_default.
12759         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12760         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12761         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12762         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12763         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
12764         (memcmp, bcmp): Use __memcmp_default as alias source.
12765         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
12766         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
12767         Rename to __memcmp_default.
12768         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
12769         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
12770         (memcpy): Use __memcpy_default as alias source.
12771         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
12772         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
12773         Rename to __memcpy_default.
12774         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
12775         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
12776         (memset): Use __memset_default as alias source.
12777         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
12778         * sysdeps/s390/s390-64/memset.S (__memset_z900):
12779         Rename to __memset_default.
12780         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
12781         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
12782
12783         [BZ #18610]
12784         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
12785         __ieee_instruction_pointer to __unused.
12786         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
12787         __ieee_instruction_pointer.
12788         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
12789         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
12790         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12791         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12792         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
12793         Mark dxc-field as reserved.
12794
12795 2015-08-25  Roland McGrath  <roland@hack.frob.com>
12796
12797         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
12798         if the weak reference is not null.
12799
12800 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12801
12802         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
12803
12804         [BZ #11214]
12805         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
12806
12807 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12808
12809         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
12810         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
12811         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
12812         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
12813         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
12814         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
12815         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
12816         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
12817         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
12818         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
12819         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
12820         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
12821         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
12822         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
12823         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
12824         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
12825         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
12826         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
12827
12828 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12829
12830         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
12831         register other than r0 for tabort, it has special meaning.
12832         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
12833         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
12834         transaction before starting syscall.
12835
12836 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12837
12838         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
12839
12840 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12841
12842         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
12843
12844         * sysdeps/x86_64/rtld-memcmp.c: Removed.
12845         * sysdeps/x86_64/rtld-memset.S: Likewise.
12846         * sysdeps/x86_64/rtld-strchr.S: Likewise.
12847         * sysdeps/x86_64/rtld-strlen.S: Likewise.
12848         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
12849         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
12850
12851         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
12852
12853 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
12854
12855         * debug/strcpy_chk.c: Improve performance.
12856         * debug/stpcpy_chk.c: Likewise.
12857         * sysdeps/x86_64/strcpy_chk.S: Remove.
12858         * sysdeps/x86_64/stpcpy_chk.S: Remove.
12859
12860         [BZ #18240]
12861         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
12862
12863 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12864
12865         [BZ #15128]
12866         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
12867         ifuncmain8.
12868         (modules-names): Add ifuncmod8.
12869         ($(objpfx)ifuncmain8): New rule.
12870         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
12871         <cpuid.h>.
12872         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
12873         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
12874         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
12875         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
12876         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
12877         * sysdeps/x86_64/dl-trampoline.h: Likewise.
12878         * sysdeps/x86_64/ifuncmain8.c: New file.
12879         * sysdeps/x86_64/ifuncmod8.c: Likewise.
12880         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
12881         Removed.
12882         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
12883         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
12884         Change rtld_savespace_sse to __glibc_unused2.
12885         (RTLD_CHECK_FOREIGN_CALL): Removed.
12886         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
12887         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
12888         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
12889
12890 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12891
12892         * sysdeps/aarch64/bzero.S (__bzero): Remove.
12893
12894 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12895
12896         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
12897         Unconditionally set __fpcr to avoid uninialized warning.
12898         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
12899
12900 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12901
12902         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
12903         is corrupt.
12904
12905         * malloc/arena.c (arena_get2): Drop unused argument.
12906         (arena_lock): Adjust.
12907         (arena_get_retry): Likewise.
12908
12909 2015-08-24  Andreas Schwab  <schwab@suse.de>
12910
12911         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
12912         Don't define.
12913         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
12914         (__ASSUME_IPC64): Don't undef.
12915         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
12916         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12917         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12918         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
12919         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
12920         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
12921         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
12922         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
12923         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
12924         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
12925         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
12926         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
12927         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
12928         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
12929         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
12930         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
12931         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
12932         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
12933         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
12934         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
12935         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
12936
12937 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
12938
12939         * manual/Makefile (install): Only build manual when perl is available.
12940
12941 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12942
12943         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
12944         '#undef memcpy' by '#undef memchr'.
12945
12946 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12947
12948         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
12949         memchr not point to the internal __GI_memchr implementation.
12950
12951 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12952
12953         * timezone/Makefile (CFLAGS-zdump.c): Remove
12954         -Wno-strict-prototypes.
12955         (CFLAGS-zic.c): Likewise.
12956         (CFLAGS-ialloc.c): Likewise.
12957         (CFLAGS-scheck.c): Likewise.
12958
12959         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
12960         -Wno-error=undef.
12961
12962 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12963
12964         * i386/i686/multiarch/strcasestr-c.c: Removed.
12965         * x86_64/multiarch/strcasestr.c: Likewise.
12966         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12967         Remove strcasestr.
12968
12969 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12970
12971         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
12972
12973         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
12974         variables for high and low parts before possibly modifying them.
12975
12976 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12977
12978         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
12979         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
12980         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
12981         of "multiarch/init-arch.h".
12982         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
12983         * sysdeps/x86/init-arch.h: This.
12984
12985 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12986
12987         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
12988         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
12989
12990 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
12991
12992         [BZ #17787]
12993         * manual/macros.texi: Add twoexp macro.
12994         * manual/filesys.texi: Fix exponents.
12995         * manual/llio.texi: Likewise.
12996         * manual/stdio.texi: Likewise.
12997
12998 2015-08-20  Florian Weimer  <fweimer@redhat.com>
12999
13000         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13001         incorrect use.
13002
13003 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13004
13005         [BZ #18370]
13006         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13007         whose real or imaginary part has small absolute value.
13008         * math/s_csqrtf.c (__csqrtf): Likewise.
13009         * math/s_csqrtl.c (__csqrtl): Likewise.
13010         * math/auto-libm-test-in: Add more tests of csqrt.
13011         * math/auto-libm-test-out: Regenerated.
13012         * sysdeps/i386/fpu/libm-test-ulps: Update.
13013
13014 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13015
13016         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13017         __ppc_set_ppr_very_low): New functions.
13018         * manual/platform.texi: Add documentation about
13019         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13020
13021 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13022
13023         * string/stpncpy.c (stpncpy): Improve performance using
13024         __strnlen/memcpy/memset.
13025
13026 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13027
13028         [BZ #18796]
13029         * scripts/test-installation.pl: Don't add -lmvec to build options if
13030         libmvec wasn't built.
13031
13032 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13033
13034         [BZ #14341]
13035         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13036         case when there is a gap between DT_REL and DT_JMPREL sections.
13037         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13038         (LDFLAGS-tst-split-dynreloc): New.
13039         (tst-split-dynreloc-ENV): Likewise.
13040         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13041         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13042
13043 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13044
13045         [BZ #18822]
13046         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13047         attribute_hidden.
13048         (__xstat64_conv): Likewise.
13049         (__xstat32_conv): Likewise.
13050
13051 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13052
13053         [BZ #18822]
13054         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13055         Don't load %ebx when calling __setcontext.  Call __setcontext
13056         with HIDDEN_JUMPTARGET.
13057         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13058         libc_hidden_def.
13059
13060 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13061
13062         * sysdeps/i386/i686/Makefile
13063         [$(subdir) == string] (sysdep_routines): Moved to ...
13064         * sysdeps/i386/Makefile: Here.
13065         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13066         * sysdeps/i386/cacheinfo.c: Here.
13067         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13068         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13069         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13070         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13071
13072 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13073
13074         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13075         __i586__ is defined.
13076         (HAS_I686): Defined to 1 if __i686__ is defined.
13077
13078 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13079
13080         * elf/Makefile [$(have-z-execstack) = yes]
13081         (CPPFLAGS-tst-execstack.c): New variable.
13082
13083         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13084         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13085         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13086         UTMPX || _HAVE_UT_TV].
13087         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13088         UTMPX || _HAVE_UT_TV - 0].
13089
13090 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13091
13092         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13093         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13094         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13095
13096 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13097
13098         * sysdeps/powerpc/dl-procinfo.c:
13099         (_dl_powerpc_cap_flags): Added missing strings for some
13100         hwcap features.
13101         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13102
13103 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         Port the 0x7efe...feff pattern to GCC 6.
13106         See Steve Ellcey's bug report in:
13107         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13108         * string/memrchr.c (MEMRCHR):
13109         * string/rawmemchr.c (RAWMEMCHR):
13110         * string/strchr.c (strchr):
13111         * string/strchrnul.c (STRCHRNUL):
13112         Rewrite code to avoid issues with signed shift overflow.
13113
13114 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13115
13116         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13117         whether cpuid is available only if HAS_CPUID is 0.
13118         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13119         (HAS_I586): Likewise.
13120         (HAS_I686): Likewise.
13121
13122 2015-08-18  Zack Weinberg  <zackw@panix.com>
13123
13124         * misc/Versions (libc): Add GLIBC_2.23.
13125
13126 2015-08-18  Alan Modra  <amodra@gmail.com>
13127
13128         [BZ #18421]
13129         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13130         .Lp__global.
13131         (_start): Load %dp via .Lp__global.
13132         [!SHARED]: Use .section .rodata.
13133
13134 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13135
13136         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13137         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13138
13139 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13140
13141         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13142         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13143
13144 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13145
13146         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13147         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13148
13149 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13150
13151         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13152         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13153
13154 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13155
13156         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13157         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13158
13159 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13160
13161         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13162         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13163
13164 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13165
13166         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13167
13168 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13169
13170         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13171         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13172         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13173         (__ASSUME_LWS_CAS): Delete.
13174
13175 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13176
13177         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13178         * sysdeps/hppa/configure: Regenerated.
13179         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13180         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13181         * sysdeps/hppa/nptl/tls.h: Likewise.
13182
13183 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13184
13185         [BZ #18823]
13186         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13187         for scaling up small arguments.
13188         * math/s_csqrtf.c (__csqrtf): Likewise.
13189         * math/s_csqrtl.c (__csqrtl): Likewise.
13190         * math/auto-libm-test-in: Add more tests of csqrt.
13191         * math/auto-libm-test-out: Regenerated.
13192
13193 2015-08-17  Andreas Schwab  <schwab@suse.de>
13194
13195         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13196         version set GLIBC_2.19.
13197
13198 2015-08-16  Zack Weinberg  <zackw@panix.com>
13199
13200         [BZ #18681]
13201         * misc/regexp.h: This interface is no longer supported.
13202         Remove all contents, leaving only an #error directive.
13203         * misc/regexp.c (loc1, loc2, locs, step, advance):
13204         Demote to compatibility symbols.
13205
13206 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13207
13208         [BZ #18084]
13209         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13210         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13211         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13212         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13213         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13214         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13215         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13216         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13217         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13218
13219 2015-08-15  Zack Weinberg  <zackw@panix.com>
13220
13221         [BZ #18795]
13222         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13223         buffer length is known to be too large, not if it's known to be
13224         small enough.
13225         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13226         overflow at runtime, involving a length parameter, twice: once
13227         with a compile-time constant length parameter, once without.
13228
13229 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13230
13231         [BZ #18824]
13232         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13233         scaling x * y up instead of down.
13234         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13235         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13236         * math/auto-libm-test-in: Add more tests of fma.
13237         * math/auto-libm-test-out: Regenerated.
13238
13239 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13240
13241         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13242
13243 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13244
13245         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13246         unnecessary movq.
13247         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13248         Likewise.
13249
13250 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13251
13252         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13253         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13254         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13255         and tgamma.
13256         * math/auto-libm-test-out: Regenerated.
13257         * sysdeps/i386/fpu/libm-test-ulps: Update.
13258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13259
13260         [BZ #16520]
13261         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13262         (__tanh): Force underflow exception for arguments with small
13263         absolute value.
13264         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13265         (__tanhf): Force underflow exception for arguments with small
13266         absolute value.
13267         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13268         (__tanhl): Force underflow exception for arguments with small
13269         absolute value.
13270         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13271         (__tanhl): Force underflow exception for arguments with small
13272         absolute value.
13273         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13274         (__tanhl): Force underflow exception for arguments with small
13275         absolute value.
13276         * math/auto-libm-test-in: Add more tests of tanh.
13277         * math/auto-libm-test-out: Regenerated.
13278         * sysdeps/i386/fpu/libm-test-ulps: Update.
13279
13280 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13281
13282         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13283         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13284
13285 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13286
13287         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13288         <cpuid.h>.
13289
13290 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13291
13292         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13293         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13294
13295 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13296
13297         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13298         Remove $(objpfx)init-arch.o.
13299         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13300         init-arch.
13301         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13302         (INIT_ARCH_EXT): Defined as empty.
13303         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13304         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13305         __init_cpu_features call.  Replace HAS_XXX with
13306         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13307         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13308         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13309         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13310         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13311         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13312         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13313         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13314         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13315         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13316         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13317         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13318         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13319         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13320         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13321         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13322         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13323         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13324         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13325         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13326         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13327         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13328         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13329         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13330         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13331         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13332         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13333         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13334         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13335         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13336         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13337         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13338         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13339         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13340         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13341         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13342
13343 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13344
13345         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13346         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13347         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13348         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13349         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13350         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13351         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13352         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13353         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13354         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13355         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13356         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13357         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13358         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13359         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13360         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13361         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13362         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13363         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13364         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13365         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13366         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13367         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13368         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13369         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13370         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13371         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13372         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13373         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13374         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13375         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13376         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13377         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13378         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13379         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13380         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13381         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13382         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13383         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13384         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13385         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13386         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13387         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13388
13389 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13390
13391         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13392         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13393         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13394         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13395         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13396         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13397         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13398         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13399         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13400         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13401         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13402         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13403         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13404         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13405         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13406         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13407         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13408         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13409         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13410         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13411         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13412         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13413         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13414         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13415         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13416         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13417         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13418         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13419         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13420         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13421         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13422         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13423         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13424         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13425         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13426         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13427         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13428         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13429         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13430         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13431         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13432         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13433         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13434
13435 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13436
13437         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13438         (dl_platform_init): Call init_cpu_features.
13439         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13440         * sysdeps/i386/i686/cacheinfo.c
13441         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13442         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13443         * sysdeps/i386/i686/multiarch/Versions: Removed.
13444         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13445         Removed.
13446         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13447         * sysdeps/unix/sysv/linux/x86/Makefile
13448         (libpthread-sysdep_routines): Remove init-arch.
13449         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13450         <sysdeps/x86_64/dl-procinfo.c> instead of
13451         sysdeps/generic/dl-procinfo.c>.
13452         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13453         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13454         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13455         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13456         [$(subdir) == elf] (tests-static): Add
13457         tst-get-cpu-features-static.
13458         * sysdeps/x86/Versions: New file.
13459         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13460         * sysdeps/x86/cpu-features.c: Likewise.
13461         * sysdeps/x86/cpu-features.h: Likewise.
13462         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13463         * sysdeps/x86/libc-start.c: Likewise.
13464         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13465         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13466         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13467         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13468         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13469         Assume USE_MULTIARCH is defined and don't check it.
13470         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13471         (is_amd): Likewise.
13472         (max_cpuid): Likewise.
13473         (intel_check_word): Likewise.
13474         (__cache_sysconf): Don't call __init_cpu_features.
13475         (__x86_preferred_memory_instruction): Removed.
13476         (init_cacheinfo): Don't call __init_cpu_features. Replace
13477         __cpu_features with GLRO(dl_x86_cpu_features).
13478         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13479         (dl_platform_init): Call init_cpu_features.
13480         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13481         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13482         * sysdeps/x86_64/multiarch/Versions: Removed.
13483         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13484         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13485         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13486         Removed.
13487         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13488
13489 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13490
13491         [BZ #18820]
13492         * libio/Makefile (test-fmemopen-mem): New test.
13493         * libio/test-fmemopen.c (do_bz18820): New test.
13494         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13495         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13496
13497 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13498
13499         [BZ #16734]
13500         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13501         (FREE_BUF): Delete.
13502         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13503         * libio/genops.c (_IO_setb): Use malloc and free directly.
13504         (_IO_default_doallocate, _IO_default_finish): Likewise.
13505         ( _IO_unbuffer_all): Likewise.
13506         ( libc_freeres_fn): Likewise.
13507         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13508         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13509         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13510         (_IO_wdefault_doallocate): Likewise.
13511
13512 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13513
13514         [BZ #18086]
13515         * sysdeps/posix/nice.c (nice): Restore old errno.
13516         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13517
13518 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13519
13520         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13521
13522 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13523
13524         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13525         __bcopy and add a weak_alias to bcopy.
13526         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13527         for static build.
13528
13529         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13530         cleanup macro usage.
13531         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13532         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13533         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13534         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13535         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13536         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13537         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13538         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13539         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13540         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13541         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13542         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13543         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13544         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13545         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13546         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13547         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13548         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13549         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13550
13551         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13552         libc_hidden_def.
13553         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13554
13555         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13556         (sysdep_routines): Add strstr-ppc64.
13557         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13558
13559 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13560
13561         [BZ #18778]
13562         * elf/Makefile (tests): Add Add tst-nodelete2.
13563         (modules-names): Add tst-nodelete2mod.
13564         (tst-nodelete2mod.so-no-z-defs): New.
13565         ($(objpfx)tst-nodelete2): Likewise.
13566         ($(objpfx)tst-nodelete2.out): Likewise.
13567         (LDFLAGS-tst-nodelete2): Likewise.
13568         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13569         out of loop through all loaded libraries.
13570         * elf/tst-nodelete2.c: New file.
13571         * elf/tst-nodelete2mod.c: Likewise.
13572         * elf/tst-znodelete-zlib.cc: Delete.
13573
13574 2015-08-11  Andreas Schwab  <schwab@suse.de>
13575
13576         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13577         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13578         (__openat64_nocancel): Likewise.
13579
13580 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13581
13582         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13583         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13584         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13585         * math/auto-libm-test-out: Regenerated.
13586         * sysdeps/i386/fpu/libm-test-ulps: Update.
13587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13588
13589 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13590
13591         [BZ #18790]
13592         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13593         threshold for returning +/- 1.
13594         * math/auto-libm-test-in: Add more tests of tanh.
13595         * math/auto-libm-test-out: Regenerated.
13596         * sysdeps/i386/fpu/libm-test-ulps: Update.
13597
13598 2015-08-10  Andreas Schwab  <schwab@suse.de>
13599
13600         [BZ #18781]
13601         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13602         MORE_OFLAGS to oflag.
13603         * io/test-lfs.c (do_test): Test openat64.
13604
13605 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13606
13607         [BZ #18789]
13608         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13609         smaller threshold for returning the argument.
13610         * math/auto-libm-test-in: Add more tests of sinh.
13611         * math/auto-libm-test-out: Regenerated.
13612         * sysdeps/i386/fpu/libm-test-ulps: Update.
13613
13614 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13615
13616         [BZ #18674]
13617         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13618         break.
13619
13620 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13621
13622         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13623         (generated): Don't add $(addprefix z.,$(tzfiles)).
13624
13625 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13626
13627         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13628         * scripts/sysd-rules.awk: Likewise.
13629
13630 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13631
13632         * iconvdata/tst-tables.sh: Change echo -n to printf.
13633         * nss/db-Makefile: Likewise.
13634         * posix/tst-getconf.sh: Likewise.
13635         * stdio-common/tst-unbputc.sh: Likewise.
13636
13637 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13638
13639         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13640         MADV_*_PAGES defines behind this feature check.
13641
13642 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13643
13644         [BZ #18480]
13645         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13646         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13647         Define.
13648         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13649         LOAD_REGS_5, LOAD_REGS_6): Update.
13650         (INTERNAL_SYSCALL): Update using new LOAD defines.
13651         (INTERNAL_SYSCALL_NCS): Likewise.
13652         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13653
13654 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13655
13656         [BZ #16734]
13657         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13658
13659 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13660
13661         [BZ #17905]
13662         * catgets/Makefile (tst-catgets-mem): New test.
13663         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13664         * catgets/open_catalog.c (__open_catalog): Likewise.
13665         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13666
13667 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13668
13669         [BZ #18787]
13670         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13671         clobber registers.
13672         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13673         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13674         Cast return to __typeof (oldval).
13675
13676 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13677
13678         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13679         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13680         and delete sys/syscall.h include.
13681
13682 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13683
13684         [BZ #16517]
13685         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13686         (tan): Force underflow exception for arguments with small absolute
13687         value.
13688         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13689         (__kernel_tanf): Force underflow exception for arguments with
13690         small absolute value.
13691         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13692         (__kernel_tanl): Force underflow exception for arguments with
13693         small absolute value.
13694         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13695         (__kernel_tanl): Force underflow exception for arguments with
13696         small absolute value.
13697         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13698         (__kernel_tanl): Force underflow exception for arguments with
13699         small absolute value.
13700         * math/auto-libm-test-in: Add more tests of tan.
13701         * math/auto-libm-test-out: Regenerated.
13702
13703 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13704
13705         Fix sysdeps/i386/fpu/s_scalbn.S build
13706
13707         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13708
13709 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13710
13711         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13712
13713 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13714
13715         Fix gcrt0.o compilation
13716
13717         When static-start-installed-name is different from
13718         start-installed-name, we must not use the shared objects.
13719
13720         * csu/Makefile
13721         (extra-objs): Add gmon-start.o when building shared library and
13722         $(static-start-installed-name) is different from
13723         $(start-installed-name).
13724         $(objpfx)g$(static-start-installed-name): When building shared
13725         library and $(static-start-installed-name) is different from
13726         $(static-start-installed-name), revert to non-shared rule,
13727         i.e. using $(objpfx)% and gmon-start.o.
13728
13729 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13730
13731         [BZ #16519]
13732         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13733         (__ieee754_sinh): Force underflow exception for arguments with
13734         small absolute value.
13735         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13736         (__ieee754_sinhf): Force underflow exception for arguments with
13737         small absolute value.
13738         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13739         (__ieee754_sinhl): Force underflow exception for arguments with
13740         small absolute value.
13741         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13742         (__ieee754_sinhl): Force underflow exception for arguments with
13743         small absolute value.
13744         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13745         (__ieee754_sinhl): Force underflow exception for arguments with
13746         small absolute value.
13747         * math/auto-libm-test-in: Add more tests of sinh.
13748         * math/auto-libm-test-out: Regenerated.
13749         * sysdeps/i386/fpu/libm-test-ulps: Update.
13750
13751 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13752
13753         * libio/oldfileops.c: Include unistd.h.
13754
13755 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13756
13757         * stdlib/isomac.c: Include ctype.h.
13758
13759 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13760
13761         * dirent/tst-seekdir.c (main): Converted to ...
13762         (do_test): ... this.
13763         (TEST_FUNCTION): New macro.
13764         Include test-skeleton.c.
13765         * elf/tst-dlmodcount.c (main): Converted to ...
13766         (do_test): ... this.
13767         (TEST_FUNCTION): New macro.
13768         Include test-skeleton.c.
13769         * elf/tst-order-main.c (main): Converted to ...
13770         (do_test): ... this.
13771         (TEST_FUNCTION): New macro.
13772         Include test-skeleton.c.
13773         * elf/tst-pie2.c (main): Converted to ...
13774         (do_test): ... this.
13775         (TEST_FUNCTION): New macro.
13776         Include test-skeleton.c.
13777         * inet/tst-ether_aton.c (main): Converted to ...
13778         (do_test): ... this.
13779         (TEST_FUNCTION): New macro.
13780         Include test-skeleton.c.
13781         * misc/tst-mntent.c (main): Converted to ...
13782         (do_test): ... this.
13783         (TEST_FUNCTION): New macro.
13784         Include test-skeleton.c.
13785         * misc/tst-tsearch.c (main): Converted to ...
13786         (do_test): ... this.
13787         (TEST_FUNCTION): New macro.
13788         Include test-skeleton.c.
13789         * posix/tst-regexloc.c (main): Converted to ...
13790         (do_test): ... this.
13791         (TEST_FUNCTION): New macro.
13792         Include test-skeleton.c.
13793         * resolv/tst-aton.c (main): Converted to ...
13794         (do_test): ... this.
13795         (TEST_FUNCTION): New macro.
13796         Include test-skeleton.c.
13797         * stdio-common/test-fwrite.c (main): Converted to ...
13798         (do_test): ... this.
13799         (TEST_FUNCTION): New macro.
13800         Include test-skeleton.c.
13801         * stdio-common/tst-ferror.c (main): Converted to ...
13802         (do_test): ... this.
13803         (TEST_FUNCTION): New macro.
13804         Include test-skeleton.c.
13805         * stdio-common/tst-printf.c (main): Converted to ...
13806         (do_test): ... this.
13807         (TEST_FUNCTION): New macro.
13808         Include test-skeleton.c.
13809         * stdio-common/tst-printfsz.c (main): Converted to ...
13810         (do_test): ... this.
13811         (TEST_FUNCTION): New macro.
13812         Include test-skeleton.c.
13813         * stdlib/tst-strtod.c (main): Converted to ...
13814         (do_test): ... this.
13815         (TEST_FUNCTION): New macro.
13816         Include test-skeleton.c.
13817         * string/tst-strlen.c (main): Converted to ...
13818         (do_test): ... this.
13819         (TEST_FUNCTION): New macro.
13820         Include test-skeleton.c.
13821         * string/tst-svc.c (main): Converted to ...
13822         (do_test): ... this.
13823         (TEST_FUNCTION): New macro.
13824         Include test-skeleton.c.
13825         * time/tst-strptime.c (main): Converted to ...
13826         (do_test): ... this.
13827         (TEST_FUNCTION): New macro.
13828         Include test-skeleton.c.
13829         * timezone/tst-timezone.c (main): Converted to ...
13830         (do_test): ... this.
13831         (TEST_FUNCTION): New macro.
13832         Include test-skeleton.c.
13833
13834 2015-08-05  Zack Weinberg  <zackw@panix.com>
13835
13836         * misc/regexp.h: Update comments.
13837
13838 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
13839
13840         [BZ #18635]
13841         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
13842         before return label.
13843
13844 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13845
13846         [BZ #18661]
13847         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
13848         when calling __errno_location.
13849         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
13850         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
13851
13852 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13853
13854         [BZ #18661]
13855         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
13856         (__lll_timedwait_tid): Align stack to 16 bytes when calling
13857         __gettimeofday.
13858
13859 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13860
13861         [BZ #18661]
13862         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13863         (__start_context): Don't use pop to restore %rdi so that stack
13864         is aligned to 16 bytes when calling __setcontext.
13865
13866 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13867
13868         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
13869         only for libc.
13870         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13871
13872 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13873
13874         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
13875         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
13876         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
13877
13878 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13879
13880         * string/memccpy.c (memccpy):
13881         Improve performance by using memchr/memcpy/__mempcpy.
13882
13883 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13884
13885         * string/strncpy.c (strncpy):
13886         Improve performance by using __strnlen/memcpy.
13887
13888 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13889
13890         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
13891         Optimize to avoid an unnecessary FPCR read.
13892
13893 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13894
13895         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
13896         Optimize to reduce FPCR/FPSR accesses.
13897
13898 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13899
13900         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
13901         dead->data[category] != NULL.
13902
13903 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
13904
13905         [BZ #18647]
13906         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
13907         and |x| close to 1, use absolute value of x when computing log.
13908         * math/auto-libm-test-in: Add more tests of pow.
13909         * math/auto-libm-test-out: Regenerated.
13910
13911 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13912
13913         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
13914         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
13915         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
13916
13917 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
13918
13919         [BZ #18525]
13920         * locales/km_KH: Remove timezone definition.
13921         * locales/lo_LA: Likewise.
13922         * locales/my_MM: Likewise.
13923         * locales/nan_TW@latin: Likewise.
13924         * locales/th_TH: Likewise.
13925         * locales/uk_UA: Likewise.
13926
13927 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
13928
13929         [BZ #18265]
13930         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
13931         (wcsncat): Likewise.
13932         (wcscmp): Likewise.
13933         (wcsncmp): Likewise.
13934
13935 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13936
13937         * test-skeleton.c (usage): New function.
13938         (main): Call usage when opt is '?'.
13939
13940 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13941
13942         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
13943         before first use.
13944
13945 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13946
13947         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
13948         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
13949         in there too.
13950
13951 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
13952
13953         * version.h (RELEASE): Set to "development".
13954         (VERSION): Set to "2.22.90"
13955
13956         * version.h (RELEASE): Set to "stable".
13957         (VERSION): Set to "2.22"
13958         * include/features.h (__GLIBC_MINOR__): Set to 22.
13959
13960 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
13961
13962         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
13963         Restructure macro to avoid "value computed is not used" warning.
13964         (atomic_compare_and_exchange_val_acq): Likewise.
13965
13966 2015-08-04  Andreas Schwab  <schwab@suse.de>
13967
13968         [BZ #18635]
13969         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
13970         ret.
13971         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
13972
13973 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
13974
13975         * po/pl.po: Updated translation.
13976         * po/uk.po: Likewise.
13977         * po/fi.po: Likewise.
13978         * po/ko.po: Likewise.
13979         * po/ru.po: Likewise.
13980         * po/vi.po: Likewise.
13981
13982 2015-07-31  Zack Weinberg  <zackw@panix.com>
13983
13984         [BZ #18681]
13985         * regexp.h: Add unconditional #warning stating that this header
13986         will be removed soon.  Revise banner comment to match.
13987         (compile): Consistently use ERROR instead of RETURN to report
13988         errors (partial fix for bz#18681).
13989         * regexp.c: Don't include regexp.h. Remove some unnecessary
13990         declarations.
13991
13992 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
13993
13994         * po/libc.pot: Regenerated.
13995
13996 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
13997
13998         [BZ #18740]
13999         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14000         float-vlen4-arch-ext-cflags): Removed.
14001         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14002         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14003
14004 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14005
14006         [BZ #14113]
14007         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14008         aligned to __aligned__.
14009         (pthread_cond_t, pthread_rwlock_t): Likewise.
14010
14011 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14012
14013         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14014
14015 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14016
14017         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14018         (struct sigaction): Change sa_flags from a long to an int, and add
14019         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14020
14021 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14022
14023         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14024         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14025         sysdeps/generic/sysdep.h include.
14026         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14027         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14028         sysdeps/hppa/sysdep.h.
14029         (ENTRY, PSEUDO): Undefine before defining.
14030
14031 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14032
14033         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14034         from scratch to use INTERNAL_SYSCALL.
14035
14036 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14037
14038         [BZ #18078]
14039         * scripts/check-localplt.awk: Support alternate relocations.
14040         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14041         sections.
14042         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14043         malloc entries with + REL R_386_GLOB_DAT.
14044         * sysdeps/x86_64/localplt.data: New file.
14045
14046 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14047
14048         [BZ #18731]
14049         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14050         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14051         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14052
14053 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14054
14055         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14056
14057 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14058
14059         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14060         directly in terms of __sync_fetch_and_add and delete (int) cast.
14061
14062 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14063
14064         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14065         the -D_ASM_IA64_CURRENT_H flag.
14066
14067 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14068
14069         [BZ #18641]
14070         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14071
14072 2015-07-27  Andreas Schwab  <schwab@suse.de>
14073
14074         * conform/conformtest.pl (checknamespace): Filter out string
14075         literals while tokenizing.
14076
14077 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14078
14079         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14080         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14081         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14082
14083 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14084
14085         * nptl/tst-join7mod.c: Add #include <string.h>.
14086
14087 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14088
14089         * sysdeps/nios2/libm-test-ulps: Update.
14090
14091 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14092
14093         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14094         Fix order of arguments to the rt_sigprocmask syscall.
14095         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14096         Likewise.
14097
14098 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14099
14100         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14101
14102 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14103
14104         [BZ #18457]
14105         * nptl/Makefile (tests): New test case tst-join7.
14106         (modules-names): New test case module tst-join7mod.
14107         * nptl/tst-join7.c: New file.
14108         * nptl/tst-join7mod.c: New file.
14109         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14110         all translation units in libc.so, libpthread.so and rtld.
14111
14112 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14113
14114         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14115
14116 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14117
14118         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14119         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14120         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14121         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14122         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14123         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14124         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14125         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14126         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14127         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14128         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14129         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14130         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14131         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14132         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14133         implementation.
14134
14135 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14136
14137         [BZ #17711]
14138         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14139         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14140         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14141         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14142         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14143         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14144
14145 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14146
14147         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14148         instead of just saying load lock in the comments.
14149
14150 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14151
14152         * sysdeps/unix/Subdirs: Moved ...
14153         * sysdeps/posix/Subdirs: ... here.
14154         * login/pty.h (struct termios, struct winsize): Add forward decls.
14155         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14156         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14157         * sysdeps/arm/nacl/libc.abilist: Updated.
14158         * sysdeps/nacl/libutil.abilist: New file.
14159
14160         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14161         (SIGWINCH): New macro.
14162
14163         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14164         * sysdeps/arm/nacl/libc.abilist: Add it.
14165
14166 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14167
14168         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14169
14170 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14171
14172         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14173         Swap __glibc_reserved0 and sa_flags order.
14174
14175 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14176
14177         [BZ #18657]
14178         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14179         are pending TLS destructor calls.
14180         * include/link.h (struct link_map): Add concurrency note for
14181         L_TLS_DTOR_COUNT.
14182         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14183         Don't touch the link map flag.  Atomically increment
14184         l_tls_dtor_count.
14185         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14186         Avoid taking the load lock and don't touch the link map flag.
14187         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14188         * stdlib/Makefile (tests): Use it.
14189         * stdlib/tst-tls-atexit.c (do_test): dlopen
14190         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14191         to allow tst-tls-atexit-nodelete test case to use it.
14192
14193 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14194
14195         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14196         to bits/types.h.
14197         (msgqnum_t): New typedef.
14198         (msglen_t): Likewise.
14199         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14200         and msg_qbytes type to msglen_t.
14201
14202 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14203
14204         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14205         pad0 to __glibc_reserved0.
14206         (struct stat64): Likewise.
14207
14208 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14209
14210         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14211         Change sa_flags from a long to an int and add __glibc_reserved0 before
14212         it for padding.
14213
14214 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14215
14216         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14217         anonymous by deleting "siginfo" name.
14218
14219 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14220
14221         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14222         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14223         rather than __nacl_irt_filename.
14224         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14225
14226         * NEWS: New item for arm-nacl port.
14227         * sysdeps/arm/nacl/libc.abilist: New file.
14228         * sysdeps/nacl/ld.abilist: New file.
14229         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14230         * sysdeps/nacl/libanl.abilist: New file.
14231         * sysdeps/nacl/libcrypt.abilist: New file.
14232         * sysdeps/nacl/libdl.abilist: New file.
14233         * sysdeps/nacl/libm.abilist: New file.
14234         * sysdeps/nacl/libpthread.abilist: New file.
14235         * sysdeps/nacl/libresolv.abilist: New file.
14236         * sysdeps/nacl/librt.abilist: New file.
14237
14238 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14239
14240         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14241         __startcontext to initialize the new context.
14242         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14243         up CFI directive to forbid further backtracing.
14244
14245 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14246
14247         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14248         reference.
14249         * charmaps/ANSI_X3.4-1968: Likewise.
14250         * charmaps/BS_4730: Likewise.
14251         * charmaps/BS_VIEWDATA: Likewise.
14252         * charmaps/CP1250: Likewise.
14253         * charmaps/CP1251: Likewise.
14254         * charmaps/CP1252: Likewise.
14255         * charmaps/CP1253: Likewise.
14256         * charmaps/CP1254: Likewise.
14257         * charmaps/CP1255: Likewise.
14258         * charmaps/CP1256: Likewise.
14259         * charmaps/CSN_369103: Likewise.
14260         * charmaps/EBCDIC-DK-NO: Likewise.
14261         * charmaps/GB_1988-80: Likewise.
14262         * charmaps/GREEK-CCITT: Likewise.
14263         * charmaps/GREEK7: Likewise.
14264         * charmaps/INIS-8: Likewise.
14265         * charmaps/ISIRI-3342: Likewise.
14266         * charmaps/ISO_2033-1983: Likewise.
14267         * charmaps/ISO_5427-EXT: Likewise.
14268         * locales/POSIX: Likewise.
14269         * locales/ar_SA: Likewise.
14270         * locales/be_BY: Likewise.
14271         * locales/be_BY@latin: Likewise.
14272         * locales/ca_ES: Likewise.
14273         * locales/cs_CZ: Likewise.
14274         * locales/da_DK: Likewise.
14275         * locales/de_BE: Likewise.
14276         * locales/de_CH: Likewise.
14277         * locales/de_LU: Likewise.
14278         * locales/en_AU: Likewise.
14279         * locales/en_BW: Likewise.
14280         * locales/en_CA: Likewise.
14281         * locales/en_DK: Likewise.
14282         * locales/en_GB: Likewise.
14283         * locales/en_IE: Likewise.
14284         * locales/en_NZ: Likewise.
14285         * locales/en_ZA: Likewise.
14286         * locales/en_ZW: Likewise.
14287         * locales/es_AR: Likewise.
14288         * locales/es_BO: Likewise.
14289         * locales/es_CL: Likewise.
14290         * locales/es_CO: Likewise.
14291         * locales/es_DO: Likewise.
14292         * locales/es_EC: Likewise.
14293         * locales/es_ES: Likewise.
14294         * locales/es_HN: Likewise.
14295         * locales/es_MX: Likewise.
14296         * locales/es_PA: Likewise.
14297         * locales/es_PE: Likewise.
14298         * locales/es_PY: Likewise.
14299         * locales/es_SV: Likewise.
14300         * locales/es_US: Likewise.
14301         * locales/es_UY: Likewise.
14302         * locales/es_VE: Likewise.
14303         * locales/et_EE: Likewise.
14304         * locales/fa_IR: Likewise.
14305         * locales/fo_FO: Likewise.
14306         * locales/fr_CA: Likewise.
14307         * locales/fr_CH: Likewise.
14308         * locales/gv_GB: Likewise.
14309         * locales/he_IL: Likewise.
14310         * locales/hr_HR: Likewise.
14311         * locales/id_ID: Likewise.
14312         * locales/is_IS: Likewise.
14313         * locales/it_CH: Likewise.
14314         * locales/iw_IL: Likewise.
14315         * locales/kl_GL: Likewise.
14316         * locales/ko_KR: Likewise.
14317         * locales/kw_GB: Likewise.
14318         * locales/lg_UG: Likewise.
14319         * locales/lt_LT: Likewise.
14320         * locales/lv_LV: Likewise.
14321         * locales/mi_NZ: Likewise.
14322         * locales/nhn_MX: Likewise.
14323         * locales/nl_BE: Likewise.
14324         * locales/pl_PL: Likewise.
14325         * locales/sk_SK: Likewise.
14326         * locales/sl_SI: Likewise.
14327         * locales/sv_FI: Likewise.
14328         * locales/tl_PH: Likewise.
14329         * locales/tr_TR: Likewise.
14330         * locales/vi_VN: Likewise.
14331
14332 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14333
14334         [BZ #17475]
14335         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14336         of tu_IN and bh_IN.
14337
14338 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14339
14340         [BZ #18694]
14341         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14342         bits/wordsize.h.
14343         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14344
14345 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14346
14347         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14348         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14349         (spawn_thread): New function.
14350         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14351         (do_test): ... here.  Use IS_LOADED to test for its
14352         availability.
14353
14354 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14355
14356         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14357
14358 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14359
14360         [BZ #18696]
14361         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14362         si_addr_bnd.
14363         (si_lower): New.
14364         (si_upper): Likewise.
14365
14366 2015-07-16  David S. Miller  <davem@davemloft.net>
14367
14368         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14369
14370 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14371
14372         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14373         buffer.
14374         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14375         fail output information.
14376
14377 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14378
14379         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14380         and strstr-ppc64..
14381         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14382         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14383         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14384         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14385         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14386
14387 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14388
14389         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14390         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14391         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14392         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14393
14394 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14395
14396         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14397         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14398         rtld_hidden_proto.
14399         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14400
14401 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14402
14403         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14404         the test can fail.
14405
14406         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14407
14408         [BZ #18676]
14409         * elf/tst-nodelete-opened.c: New test case.
14410         * elf/tst-nodelete-opened-lib.c: New test case module.
14411         * elf/Makefile (tests, modules-names): Use them.
14412         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14413         early.
14414
14415 2015-07-15  David S. Miller  <davem@davemloft.net>
14416
14417         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14418         futex-intenal.h
14419         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14420         * sysdeps/sparc/sparc64/Makefile: Likewise.
14421         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14422         Remove space from macro define.
14423         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14424
14425 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14426
14427         [BZ #17475]
14428         * locale/iso-639.def: Update Bhili and Tulu language codes as
14429         per iso639-3.
14430
14431 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14432
14433         * elf/tst-leaks1.c (main): Converted to ...
14434         (do_test): ... this.
14435         (TEST_FUNCTION): New macro.
14436         Include test-skeleton.c.
14437         * localedata/tst-langinfo.c (main): Converted to ...
14438         (do_test): ... this.
14439         (TEST_FUNCTION): New macro.
14440         Include test-skeleton.c.
14441         * math/test-fpucw.c (main): Converted to ...
14442         (do_test): ... this.
14443         (TEST_FUNCTION): New macro.
14444         Include test-skeleton.c.
14445         * math/test-tgmath.c (main): Converted to ...
14446         (do_test): ... this.
14447         (TEST_FUNCTION): New macro.
14448         Include test-skeleton.c.
14449         * math/test-tgmath2.c (main): Converted to ...
14450         (do_test): ... this.
14451         (TEST_FUNCTION): New macro.
14452         Include test-skeleton.c.
14453         * setjmp/tst-setjmp.c (main): Converted to ...
14454         (do_test): ... this.
14455         (TEST_FUNCTION): New macro.
14456         Include test-skeleton.c.
14457         * stdio-common/tst-sscanf.c (main): Converted to ...
14458         (do_test): ... this.
14459         (TEST_FUNCTION): New macro.
14460         Include test-skeleton.c.
14461         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14462         (do_test): ... this.
14463         (TEST_FUNCTION): New macro.
14464         Include test-skeleton.c.
14465
14466         * elf/tst-audit9.c (main): Converted to ...
14467         (do_test): ... this.
14468         (TEST_FUNCTION): New macro.
14469         Include test-skeleton.c.
14470
14471 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14472
14473         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14474
14475 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14476
14477         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14478         New variable.
14479
14480 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14481
14482         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14483
14484 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14485
14486         * sysdeps/generic/dl-fileid.h: New file.
14487         * sysdeps/posix/dl-fileid.h: New file.
14488         * sysdeps/nacl/dl-fileid.h: New file.
14489         * include/link.h: Include <dl-fileid.h>.
14490         (struct link_map): Replace l_dev and l_ino with l_file_id.
14491         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14492         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14493         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14494
14495 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14496
14497         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14498
14499 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14500
14501         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14502         Add iff $CXX is set.
14503         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14504         Likewise.
14505         (tst-nodelete-zmodiff): Likewise.
14506         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14507
14508 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14509
14510         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14511
14512 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14513
14514         * sysdeps/aarch64/fpu/math_private.h
14515         (define math_opt_barrier): Add AArch64 version.
14516         (math_force_eval): Likewise.
14517
14518 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14519
14520         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14521
14522 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14523
14524         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14525         %ld with %jd and cast to intmax_t.
14526         (do_test_length_zero): Likewise.
14527
14528 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14529
14530         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14531
14532 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14533
14534         * sysdeps/tile/libm-test-ulps: Regenerated.
14535
14536         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14537         Comment out the whole function, not just its body.
14538
14539 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14540
14541         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14542         locks.
14543
14544         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14545
14546 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14547
14548         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14549         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14550
14551 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14552
14553         * sysdeps/nptl/futex-internal.h: New file.
14554         * sysdeps/nacl/futex-internal.h: New file.
14555         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14556         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14557         error checking.
14558         (setxid_unmark_thread): Likewise.
14559         (__nptl_setxid): Likewise.
14560         (__wait_lookup_done): Likewise.
14561         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14562         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14563         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14564         * nptl/pthread_once.c (clear_once_control): Likewise.
14565         (__pthread_once_slow): Likewise.
14566         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14567         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14568         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14569         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14570         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14571         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14572         Likewise.
14573         (__pthread_rwlock_rdlock): Likewise.
14574         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14575         Likewise.
14576         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14577         Likewise.
14578         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14579         Likewise.
14580         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14581         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14582         Likewise.
14583         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14584         __ASSUME_PRIVATE_FUTEX check.
14585         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14586         Check that shared futexes are supported.
14587         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14588         wrappers with error checking.
14589         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14590         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14591         * nptl/pthread_barrierattr_setpshared.c
14592         (pthread_barrierattr_setpshared): Check that shared futexes are
14593         supported.
14594         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14595         Likewise.
14596         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14597         Likewise.
14598         * nptl/sem_init.c (futex_private_if_supported): Remove.
14599         (__new_sem_init): Adapt and check that shared futexes are supported.
14600         * nptl/sem_open.c (sem_open): Likewise.
14601         * nptl/sem_post.c (futex_wake): Remove.
14602         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14603         (do_futex_wait): Use futex wrappers with error checking.
14604         * nptl/sem_wait.c: Include lowlevellock.h.
14605         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14606         Use futex_supports_pshared.
14607         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14608         Use futex wrappers with error checking.
14609         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14610         Likewise.
14611         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14612         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14613         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14614         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14615         (futex_wake): Likewise.
14616         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14617         (do_futex_wait): Use futex wrappers with error checking.
14618         (__new_sem_wait_slow): Update EINTR handling.
14619         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14620
14621 2015-07-09  Martin Sebor  <msebor@redhat.com>
14622
14623         [BZ #18435]
14624         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14625         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14626         * nptl/Makefile (test-xfail-tst-once5): Define.
14627
14628 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14629
14630         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14631         * elf/dl-minimal.c: For readability, reorder some definitions and
14632         introduce more page breaks.  Include <stdio.h>.
14633         (__libc_fatal): New function.
14634
14635         * include/unistd.h: Add rtld_hidden_proto for _exit.
14636         * posix/_exit.c: Add rtld_hidden_def.
14637         * sysdeps/mach/hurd/_exit.c: Likewise.
14638         * sysdeps/nacl/_exit.c: Likewise.
14639         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14640         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14641
14642 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14643
14644         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14645         bndmov encoding with zero displacement.
14646
14647 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14648             H.J. Lu  <hongjiu.lu@intel.com>
14649
14650         [BZ #18134]
14651         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14652         * sysdeps/i386/configure: Regenerated.
14653         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14654         (_dl_runtime_profile): Save and restore Intel MPX return bound
14655         registers when calling _dl_call_pltexit.  Add
14656         PRESERVE_BND_REGS_PREFIX before return.
14657         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14658         (LRV_BND1_OFFSET): Likewise.
14659         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14660         lrv_bnd1.
14661         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14662         typo in bndmov encoding.
14663         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14664         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14665         branch instructions to preserve bounds.
14666
14667 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14668
14669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14670         [GLIBC_2.22]: Add fmemopen.
14671
14672 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14673
14674         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14675         returns an error, also try to use host port from __mach_host_self for
14676         the __vm_wire call.
14677         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14678
14679 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14680
14681         [BZ #18400]
14682         [BZ #18648]
14683         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14684         Fix pr_uid and pr_gid members.
14685         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14686         definition to elf_greg_t.
14687
14688 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14689
14690         [BZ #18383]
14691         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14692         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14693         * sysdeps/arm/configure: Regenerated.
14694         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14695         (test-xfail-tst-tlsalign-static): Variable removed.
14696
14697         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14698         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14699         rather than explicit 'ln -s'.
14700
14701         * resolv/rpc/netdb.h: New file.
14702         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14703
14704 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14705
14706         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14707         length buffers.
14708         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14709         test-skeleton.c.
14710
14711         [BZ #6544]
14712         [BZ #11216]
14713         [BZ #12836]
14714         [BZ #13151]
14715         [BZ #13152]
14716         [BZ #14292]
14717         * include/stdio.h (fmemopen): Remove hidden prototype.
14718         (__fmemopen): Add new hidden prototype.
14719         * libio/Makefile: Add oldfmemopen object.
14720         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14721         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14722         compliance.
14723         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14724         symbol compatibility.
14725         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14726         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14727         fmemopen.
14728         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14729         on append and read mode.
14730         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14731         fmemopen.
14732         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14733         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14734         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14735         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14736         Likewise.
14737         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14738         [GLIBC_2.22]: Likewise.
14739         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14740         Likewise.
14741         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14742         Likewise.
14743         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14744         [GLIBC_2.22]: Likewise.
14745         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14746         [GLIBC_2.22]: Likewise.
14747         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14748         [GLIBC_2.22]: Likewise.
14749         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14750         [GLIBC_2.22]: Likewise.
14751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14752         [GLIBC_2.22]: Likewise.
14753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14754         [GLIBC_2.22]: Likewise.
14755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14756         [GLIBC_2.22]: Likewise.
14757         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14758         Likewise.
14759         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14760         Likewise.
14761         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14762         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14763         [GLIBC_2.22]: Likewise.
14764         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
14765         [GLIBC_2.22]: Likewise.
14766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
14767         [GLIBC_2.22]: Likewise.
14768         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
14769         [GLIBC_2.22]: Likewise.
14770         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
14771         Likewise.
14772         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
14773         Likewise.
14774         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
14775         Likewise.
14776         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
14777         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
14778
14779 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14780
14781         [BZ #18643]
14782         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
14783         IPV6_PATHMTU, and IPV6_DONTFRAG.
14784
14785 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
14786
14787         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
14788         and _IO_UNBUFFERED.
14789         * libio/oldfileops.c: Likewise.
14790         * libio/wfileops.c: Likewise.
14791
14792 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14793
14794         * nscd/selinux.c: Delete selinux/flask.h include.
14795
14796 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14797
14798         [BZ #18641]
14799         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
14800         (putpwent): Likewise.
14801         (getpwnam): Likewise.
14802         (getpwent_r): Likewise.
14803         (getpwuid_r): Likewise.
14804         (getpwnam_r): Likewise.
14805         (fgetpwent_r): Likewise.
14806
14807 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14808
14809         [BZ #18557]
14810         * inet/rcmd.c (__validuser2_sa): Check user first to
14811         short-circuit host check.
14812
14813 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
14814             Mikhail Ilin  <m.ilin@samsung.com>
14815
14816         [BZ #17833]
14817         * elf/Makefile (tests): Add tst-nodelete.
14818         (modules-names): Add tst-nodelete-uniquemod.
14819         (tst-nodelete-uniquemod.so-no-z-defs): New.
14820         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
14821         (tst-nodelete-zmod.so-no-z-defs): Likewise.
14822         ($(objpfx)tst-nodelete): Likewise.
14823         ($(objpfx)tst-nodelete.out): Likewise.
14824         (LDFLAGS-tst-nodelete): Likewise.
14825         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
14826         * elf/dl-close.c (_dl_close_worker): Add a parameter to
14827         implement forced object deletion.
14828         (_dl_close): Pass false to _dl_close_worker.
14829         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
14830         * elf/tst-nodelete.cc: New file.
14831         * elf/tst-nodeletelib.cc: Likewise.
14832         * elf/tst-znodeletelib.cc: Likewise.
14833         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
14834
14835 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14836
14837         [BZ #18508]
14838         * stdlib/Makefile ($(objpfx)tst-makecontext3):
14839         Depend on $(libdl).
14840         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
14841         is not called infinitely times.
14842         (backtrace_helper): New function.
14843         (trace_arg): New struct.
14844         (st1): Enlarge stack size.
14845         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
14846         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
14847         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
14848         Likewise.
14849
14850 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14851
14852         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14853
14854 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14855
14856         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
14857         Include sys/types.h instead of bits/types.h.
14858         Remove inclusion of bits/wordsize.h.
14859
14860 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14861
14862         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
14863         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
14864         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
14865         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
14866         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
14867         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
14868
14869 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14870
14871         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
14872         link-defines.sym.
14873         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
14874         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
14875         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
14876         and LR_SIZE.
14877         * sysdeps/i386/link-defines.sym: New file.
14878
14879 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14880
14881         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
14882         (modules-names): Add tst-auditmod3a tst-auditmod3b.
14883         ($(objpfx)tst-audit3): New rule.
14884         ($(objpfx)tst-audit3.out): Likewise.
14885         * sysdeps/i386/tst-audit3.c: New file.
14886         * sysdeps/i386/tst-audit3.h: Likewise.
14887         * sysdeps/i386/tst-auditmod3a.c: Likewise.
14888         * sysdeps/i386/tst-auditmod3b.c: Likewise.
14889
14890 2015-07-07  Torvald Riegel  <triegel@redhat.com>
14891
14892         [BZ #18633]
14893         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
14894         pointer in C code.
14895         (__strcat_c): Likewise.
14896         (__strcat_g): Likewise.
14897
14898 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
14899
14900         [BZ #18592]
14901         * misc/sbrk.c: Set errno to ENOMEM on overflow.
14902
14903 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14904
14905         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
14906         New function.  (__ieee754_sqrtf): New function.
14907         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
14908         New function.
14909         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
14910         New function.
14911
14912 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14913
14914         * sysdeps/ieee754/support.c: Remove unused file.
14915
14916 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14917
14918         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
14919         registers instead of d ones so the layout is kernel abi compatible.
14920         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
14921         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
14922         Likewise.
14923
14924 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14925
14926         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14927
14928 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14929
14930         [BZ #18619]
14931         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
14932         and return argument in case of subnormal argument.
14933
14934 2015-07-01  Martin Sebor  <msebor@redhat.com>
14935
14936         [BZ #18435]
14937         * nptl/Makefile: Add tst-once5.cc.
14938         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14939         Remove macro redefinitions.
14940         * nptl/tst-once5.cc: New test.
14941
14942 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14943
14944         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
14945
14946         * sysdeps/arm/libm-test-ulps: Regenerated.
14947
14948         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
14949         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14950
14951 2015-06-30  Torvald Riegel  <triegel@redhat.com>
14952
14953         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
14954         lll_lock_wait_private and lll_futex_wake probes.
14955
14956         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14957         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
14958         Likewise.
14959         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
14960         atomic_spin_nop.
14961         * sysdeps/x86_64/bits/atomic.h: Likewise.
14962         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
14963         to atomic_spin_nop and move ...
14964         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14965         ... here and ...
14966         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
14967         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
14968         atomic_spin_nop instead of BUSY_WAIT_NOP.
14969         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
14970         Likewise.
14971         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
14972         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14973         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
14974         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
14975         instead of atomic_delay.
14976
14977 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
14978
14979         [BZ #18613]
14980         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
14981         X_ADJ not X when adjusting exponent.
14982         (__ieee754_gamma_r): Do intermediate computations in
14983         round-to-nearest then adjust overflowing and underflowing results
14984         as needed.
14985         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
14986         of X_ADJ not X when adjusting exponent.
14987         (__ieee754_gammaf_r): Do intermediate computations in
14988         round-to-nearest then adjust overflowing and underflowing results
14989         as needed.
14990         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
14991         log of X_ADJ not X when adjusting exponent.
14992         (__ieee754_gammal_r): Do intermediate computations in
14993         round-to-nearest then adjust overflowing and underflowing results
14994         as needed.  Use 1.0L not 1.0f as numerator of division.
14995         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
14996         log of X_ADJ not X when adjusting exponent.
14997         (__ieee754_gammal_r): Do intermediate computations in
14998         round-to-nearest then adjust overflowing and underflowing results
14999         as needed.  Use 1.0L not 1.0f as numerator of division.
15000         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15001         of X_ADJ not X when adjusting exponent.
15002         (__ieee754_gammal_r): Do intermediate computations in
15003         round-to-nearest then adjust overflowing and underflowing results
15004         as needed.  Use 1.0L not 1.0f as numerator of division.
15005         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15006         to auto-libm-test-in.
15007         (tgamma_test): Use ALL_RM_TEST.
15008         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15009         tests of tgamma with spurious-overflow.
15010         * math/auto-libm-test-out: Regenerated.
15011         * math/gen-libm-have-vector-test.sh: Do not check for START.
15012         * sysdeps/i386/fpu/libm-test-ulps: Update.
15013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15014
15015         [BZ #18612]
15016         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15017         arguments, just return 0.5 times the argument, with underflow
15018         forced as needed.
15019         * math/auto-libm-test-in: Add more tests of j1.
15020         * math/auto-libm-test-out: Regenerated.
15021
15022         [BZ #16559]
15023         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15024         (__ieee754_j1): Force underflow exception for small results.
15025         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15026         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15027         (__ieee754_j1f): Force underflow exception for small results.
15028         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15029         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15030         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15031         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15032         (__ieee754_j1l): Force underflow exception for small results.
15033         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15034         * math/auto-libm-test-in: Add more tests of j1 and jn.
15035         * math/auto-libm-test-out: Regenerated.
15036
15037         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15038         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15039         (PF_MPLS): Likewise.
15040         (AF_IB): Likewise.
15041         (AF_MPLS): Likewise.
15042         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15043         value and macro.
15044         (MS_RMT_MASK): Include MS_LAZYTIME.
15045
15046 2015-06-26  Mel Gorman  <mgorman@suse.de>
15047
15048         [BZ #18502]
15049         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15050         already minimal.
15051
15052 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15053
15054         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15055         (DT_MIPS_NUM): Update.
15056         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15057         DT_MIPS_RLD_MAP_REL.
15058
15059 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15060
15061         [BZ #16559]
15062         [BZ #18602]
15063         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15064         round-to-nearest internally then recompute results that
15065         underflowed to zero in the original rounding mode.
15066         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15067         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15068         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15069         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15070         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15071         * sysdeps/i386/fpu/libm-test-ulps: Update.
15072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15073
15074 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15075
15076         * NEWS: Fixed description of link with vector math library.
15077
15078 2015-06-25  Andreas Schwab  <schwab@suse.de>
15079
15080         [BZ #18549]
15081         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15082         * libio/test-fmemopen.c (do_test): Add test for it.
15083
15084 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15085
15086         [BZ #17841]
15087         * Makeconfig (no-pie-ldflag): New.
15088         (+link): Set to $(+link-pie) if default to PIE.
15089         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15090         * config.make.in (build-pie-default): New.
15091         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15092         is default.  AC_SUBST.
15093         * configure: Regenerated.
15094         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15095
15096 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15097
15098         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15099         to 'unsigned int'.
15100
15101         * resolv/gai_misc.h (struct waitlist): Change type of field
15102         counterp to 'volatile unsigned int *'.
15103         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15104         FUTEXADDR and OLDVAL.
15105         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15106         Give local variable TOTAL type 'volatile unsigned int'.
15107         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15108         * resolv/gai_suspend.c (gai_suspend):
15109         Give local variable CNTR type 'unsigned int'.
15110
15111         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15112         counterp to 'volatile unsigned int *'.
15113         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15114         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15115         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15116         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15117         Give local variable TOTAL type 'volatile unsigned int'.
15118         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15119
15120 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15121
15122         [BZ #18383]
15123         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15124         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15125         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15126         comment for i386/x86-64.
15127         (test-xfail-tst-tlsalign-extern-static): Removed.
15128
15129 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15130
15131         * math/test-double.h: New file.
15132         * math/test-float.h: Likewise.
15133         * math/test-ldouble.h: Likewise.
15134         * math/test-math-inline.h: Likewise.
15135         * math/test-math-no-inline.h: Likewise.
15136         * math/test-math-scalar.h: Likewise.
15137         * math/test-math-vector.h: Likewise.
15138         * math/test-vec-loop.h: Remove file.  Contents moved into
15139         test-math-vector.h.
15140         * math/libm-test.inc (MATHCONST): Do not document macro.
15141         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15142         and test-math-scalar.h.
15143         (FUNC): Remove macro.
15144         (FUNC_TEST): Likewise.
15145         (FLOAT): Likewise.
15146         (MATHCONST): Likewise.
15147         (PRINTF_EXPR): Likewise.
15148         (PRINTF_XEXPR): Likewise.
15149         (PRINTF_NEXPR): Likewise.
15150         (TEST_DOUBLE): Likewise.
15151         (TEST_MATHVEC): Likewise.
15152         (__NO_MATH_INLINES): Likewise.
15153         * math/test-float.c: Include test-float.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_FLOAT): Likewise.
15163         (TEST_MATHVEC): Likewise.
15164         (__NO_MATH_INLINES): Likewise.
15165         * math/test-idouble.c: Include test-double.h, test-math-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_DOUBLE): Likewise.
15175         (TEST_MATHVEC): Likewise.
15176         (TEST_INLINE): Likewise.
15177         (__NO_MATH_INLINES): Likewise.
15178         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15179         test-math-scalar.h.
15180         (FUNC): Remove macro.
15181         (FUNC_TEST): Likewise.
15182         (FLOAT): Likewise.
15183         (MATHCONST): Likewise.
15184         (PRINTF_EXPR): Likewise.
15185         (PRINTF_XEXPR): Likewise.
15186         (PRINTF_NEXPR): Likewise.
15187         (TEST_FLOAT): Likewise.
15188         (TEST_MATHVEC): Likewise.
15189         (TEST_INLINE): Likewise.
15190         (__NO_MATH_INLINES): Likewise.
15191         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15192         and test-math-scalar.h.
15193         (FUNC): Remove macro.
15194         (FUNC_TEST): Likewise.
15195         (FLOAT): Likewise.
15196         (MATHCONST): Likewise.
15197         (PRINTF_EXPR): Likewise.
15198         (PRINTF_XEXPR): Likewise.
15199         (PRINTF_NEXPR): Likewise.
15200         (TEST_LDOUBLE): Likewise.
15201         (TEST_MATHVEC): Likewise.
15202         (TEST_INLINE): Likewise.
15203         (__NO_MATH_INLINES): Likewise.
15204         * math/test-ldouble.c: Include test-ldouble.h,
15205         test-math-no-inline.h and test-math-scalar.h.
15206         (FUNC): Remove macro.
15207         (FUNC_TEST): Likewise.
15208         (FLOAT): Likewise.
15209         (MATHCONST): Likewise.
15210         (PRINTF_EXPR): Likewise.
15211         (PRINTF_XEXPR): Likewise.
15212         (PRINTF_NEXPR): Likewise.
15213         (TEST_LDOUBLE): Likewise.
15214         (TEST_MATHVEC): Likewise.
15215         (__NO_MATH_INLINES): Likewise.
15216         * math/test-double-vlen2.h: Include test-double.h,
15217         test-math-no-inline.h and test-math-vector.h.
15218         (FLOAT): Remove macro.
15219         (FUNC): Likewise.
15220         (MATHCONST): Likewise.
15221         (PRINTF_EXPR): Likewise.
15222         (PRINTF_XEXPR): Likewise.
15223         (PRINTF_NEXPR): Likewise.
15224         (TEST_DOUBLE): Likewise.
15225         (TEST_MATHVEC): Likewise.
15226         (__NO_MATH_INLINES): Likewise.
15227         (CNCT): Likewise.
15228         (CONCAT): Likewise.
15229         (WRAPPER_NAME): Likewise.
15230         (WRAPPER_DECL): Likewise.
15231         (WRAPPER_DECL_ff): Likewise.
15232         (WRAPPER_DECL_fFF): Likewise.
15233         (VECTOR_WRAPPER): Likewise.
15234         (VECTOR_WRAPPER_ff): Likewise.
15235         (VECTOR_WRAPPER_fFF): Likewise.
15236         (VEC_LEN): New macro.
15237         * math/test-double-vlen4.h: Include test-double.h,
15238         test-math-no-inline.h and test-math-vector.h.
15239         (FLOAT): Remove macro.
15240         (FUNC): Likewise.
15241         (MATHCONST): Likewise.
15242         (PRINTF_EXPR): Likewise.
15243         (PRINTF_XEXPR): Likewise.
15244         (PRINTF_NEXPR): Likewise.
15245         (TEST_DOUBLE): Likewise.
15246         (TEST_MATHVEC): Likewise.
15247         (__NO_MATH_INLINES): Likewise.
15248         (CNCT): Likewise.
15249         (CONCAT): Likewise.
15250         (WRAPPER_NAME): Likewise.
15251         (WRAPPER_DECL): Likewise.
15252         (WRAPPER_DECL_ff): Likewise.
15253         (WRAPPER_DECL_fFF): Likewise.
15254         (VECTOR_WRAPPER): Likewise.
15255         (VECTOR_WRAPPER_ff): Likewise.
15256         (VECTOR_WRAPPER_fFF): Likewise.
15257         (VEC_LEN): New macro.
15258         * math/test-double-vlen8.h: Include test-double.h,
15259         test-math-no-inline.h and test-math-vector.h.
15260         (FLOAT): Remove macro.
15261         (FUNC): Likewise.
15262         (MATHCONST): Likewise.
15263         (PRINTF_EXPR): Likewise.
15264         (PRINTF_XEXPR): Likewise.
15265         (PRINTF_NEXPR): Likewise.
15266         (TEST_DOUBLE): Likewise.
15267         (TEST_MATHVEC): Likewise.
15268         (__NO_MATH_INLINES): Likewise.
15269         (CNCT): Likewise.
15270         (CONCAT): Likewise.
15271         (WRAPPER_NAME): Likewise.
15272         (WRAPPER_DECL): Likewise.
15273         (WRAPPER_DECL_ff): Likewise.
15274         (WRAPPER_DECL_fFF): Likewise.
15275         (VECTOR_WRAPPER): Likewise.
15276         (VECTOR_WRAPPER_ff): Likewise.
15277         (VECTOR_WRAPPER_fFF): Likewise.
15278         (VEC_LEN): New macro.
15279         * math/test-float-vlen4.h: Include test-float.h,
15280         test-math-no-inline.h and test-math-vector.h.
15281         (FLOAT): Remove macro.
15282         (FUNC): Likewise.
15283         (MATHCONST): Likewise.
15284         (PRINTF_EXPR): Likewise.
15285         (PRINTF_XEXPR): Likewise.
15286         (PRINTF_NEXPR): Likewise.
15287         (TEST_FLOAT): Likewise.
15288         (TEST_MATHVEC): Likewise.
15289         (__NO_MATH_INLINES): Likewise.
15290         (CNCT): Likewise.
15291         (CONCAT): Likewise.
15292         (WRAPPER_NAME): Likewise.
15293         (WRAPPER_DECL): Likewise.
15294         (WRAPPER_DECL_ff): Likewise.
15295         (WRAPPER_DECL_fFF): Likewise.
15296         (VECTOR_WRAPPER): Likewise.
15297         (VECTOR_WRAPPER_ff): Likewise.
15298         (VECTOR_WRAPPER_fFF): Likewise.
15299         (VEC_LEN): New macro.
15300         * math/test-float-vlen8.h: Include test-float.h,
15301         test-math-no-inline.h and test-math-vector.h.
15302         (FLOAT): Remove macro.
15303         (FUNC): Likewise.
15304         (MATHCONST): Likewise.
15305         (PRINTF_EXPR): Likewise.
15306         (PRINTF_XEXPR): Likewise.
15307         (PRINTF_NEXPR): Likewise.
15308         (TEST_FLOAT): Likewise.
15309         (TEST_MATHVEC): Likewise.
15310         (__NO_MATH_INLINES): Likewise.
15311         (CNCT): Likewise.
15312         (CONCAT): Likewise.
15313         (WRAPPER_NAME): Likewise.
15314         (WRAPPER_DECL): Likewise.
15315         (WRAPPER_DECL_ff): Likewise.
15316         (WRAPPER_DECL_fFF): Likewise.
15317         (VECTOR_WRAPPER): Likewise.
15318         (VECTOR_WRAPPER_ff): Likewise.
15319         (VECTOR_WRAPPER_fFF): Likewise.
15320         (VEC_LEN): New macro.
15321         * math/test-float-vlen16.h: Include test-float.h,
15322         test-math-no-inline.h and test-math-vector.h.
15323         (FLOAT): Remove macro.
15324         (FUNC): Likewise.
15325         (MATHCONST): Likewise.
15326         (PRINTF_EXPR): Likewise.
15327         (PRINTF_XEXPR): Likewise.
15328         (PRINTF_NEXPR): Likewise.
15329         (TEST_FLOAT): Likewise.
15330         (TEST_MATHVEC): Likewise.
15331         (__NO_MATH_INLINES): Likewise.
15332         (CNCT): Likewise.
15333         (CONCAT): Likewise.
15334         (WRAPPER_NAME): Likewise.
15335         (WRAPPER_DECL): Likewise.
15336         (WRAPPER_DECL_ff): Likewise.
15337         (WRAPPER_DECL_fFF): Likewise.
15338         (VECTOR_WRAPPER): Likewise.
15339         (VECTOR_WRAPPER_ff): Likewise.
15340         (VECTOR_WRAPPER_fFF): Likewise.
15341         (VEC_LEN): New macro.
15342         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15343         test-vec-loop.h.
15344         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15345         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15346         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15347         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15348         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15349         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15350         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15351
15352 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15353
15354         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15355         (__getlogin_r): ... this.
15356
15357 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15358
15359         [BZ #18594]
15360         * math/s_ccosh.c (__ccosh): Compare with least normal value
15361         instead of comparing class with FP_SUBNORMAL.
15362         * math/s_ccoshf.c (__ccoshf): Likewise.
15363         * math/s_ccoshl.c (__ccoshl): Likewise.
15364         * math/s_cexp.c (__cexp): Likewise.
15365         * math/s_cexpf.c (__cexpf): Likewise.
15366         * math/s_cexpl.c (__cexpl): Likewise.
15367         * math/s_csin.c (__csin): Likewise.
15368         * math/s_csinf.c (__csinf): Likewise.
15369         * math/s_csinh.c (__csinh): Likewise.
15370         * math/s_csinhf.c (__csinhf): Likewise.
15371         * math/s_csinhl.c (__csinhl): Likewise.
15372         * math/s_csinl.c (__csinl): Likewise.
15373         * math/s_ctan.c (__ctan): Likewise.
15374         * math/s_ctanf.c (__ctanf): Likewise.
15375         * math/s_ctanh.c (__ctanh): Likewise.
15376         * math/s_ctanhf.c (__ctanhf): Likewise.
15377         * math/s_ctanhl.c (__ctanhl): Likewise.
15378         * math/s_ctanl.c (__ctanl): Likewise.
15379         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15380         csin, csinh, ctan and ctanh.
15381         * math/auto-libm-test-out: Regenerated.
15382         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15383         * sysdeps/i386/fpu/libm-test-ulps: Update.
15384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15385
15386 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15387
15388         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15389         return value is wrong, print the expected value too.
15390
15391 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15392
15393         [BZ #18585]
15394         * elf/readlib.c (is_gdb_python_file): New.
15395         (process_file): Don't issue errors on filenames with -gdb.py
15396         suffix.
15397
15398 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15399
15400         * math/auto-libm-test-in: Add more tests of csin and csinh.
15401         * math/auto-libm-test-out: Regenerated.
15402         * math/libm-test.inc (csin_test_data): Remove tests moved to
15403         auto-libm-test-in.
15404         (csinh_test_data): Likewise.
15405
15406         [BZ #18593]
15407         * math/s_csin.c (__csin): Negate before rather than after possibly
15408         overflowing multiplication.
15409         * math/s_csinf.c (__csinf): Likewise.
15410         * math/s_csinh.c (__csinh): Likewise.
15411         * math/s_csinhf.c (__csinhf): Likewise.
15412         * math/s_csinhl.c (__csinhl): Likewise.
15413         * math/s_csinl.c (__csinl): Likewise.
15414         * math/auto-libm-test-in: Add some tests of csin and csinh.
15415         * math/auto-libm-test-out: Regenerated.
15416         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15417         (csinh_test_data): Likewise.
15418         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15419
15420         [BZ #18586]
15421         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15422         underflow exception for small results.
15423
15424 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15425
15426         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15427         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15428         variable and included header.
15429         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15430         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15431         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15432         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15433         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15434         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15435         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15436         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15437         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15438         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15439         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15440         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15441         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15442         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15443         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15444         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15445
15446 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15447
15448         [BZ #16526]
15449         [BZ #16538]
15450         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15451         (__sin): Force underflow exception for arguments with small
15452         absolute value.
15453         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15454         (__kernel_sinf): Force underflow exception for arguments with
15455         small absolute value.
15456         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15457         (__kernel_sincosl): Force underflow exception for arguments with
15458         small absolute value.
15459         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15460         (__kernel_sinl): Force underflow exception for arguments with
15461         small absolute value.
15462         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15463         (__kernel_sincosl): Force underflow exception for arguments with
15464         small absolute value.
15465         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15466         (__kernel_sinl): Force underflow exception for arguments with
15467         small absolute value.
15468         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15469         (__kernel_sinl): Force underflow exception for arguments with
15470         small absolute value.
15471         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15472         (__kernel_sinf): Force underflow exception for arguments with
15473         small absolute value.
15474         * math/auto-libm-test-in: Add more tests of sin and sincos.
15475         * math/auto-libm-test-out: Regenerated.
15476
15477         [BZ #18245]
15478         [BZ #18583]
15479         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15480         (__kernel_standard_l): Use feholdexcept and fesetenv around
15481         conversion to double instead of special-casing overflow and
15482         underflow.
15483         * math/libm-test.inc (fmod_test_data): Add more tests.
15484         (remainder_test_data): Likewise.
15485         (sqrt_test_data): Likewise.
15486
15487 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15488
15489         [BZ #17403]
15490         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15491         atomic_read_barrier, atomic_write_barrier): Define.
15492         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15493         atomic_read_barrier, atomic_write_barrier): Define.
15494
15495 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15496
15497         * math/Makefile [$(PERL) != no]
15498         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15499         dependency on libm-test.stmp below the inclusion of Rules.
15500
15501 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15502
15503         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15504         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15505         and included header.
15506         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15507         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15508         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15509         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15510         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15511         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15512         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15513         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15514         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15515         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15516         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15517         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15518         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15519         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15520         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15521         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15522         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15523         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15524         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15525
15526 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15527
15528         [BZ #18371]
15529         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15530         intermediate but not final result might underflow.
15531         * math/s_csqrtf.c (__csqrtf): Likewise.
15532         * math/s_csqrtl.c (__csqrtl): Likewise.
15533         * math/auto-libm-test-in: Add more tests of csqrt.
15534         * math/auto-libm-test-out: Regenerated.
15535         * sysdeps/i386/fpu/libm-test-ulps: Update.
15536
15537         [BZ #18219]
15538         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15539         threshold on absolute value of exponent for which scaling is used.
15540         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15541         * math/auto-libm-test-in: Add more tests of exp2.
15542         * math/auto-libm-test-out: Regenerated.
15543
15544 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15545
15546         [BZ #17977]
15547         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15548         when initializing interface list, based on the bug analysis
15549         and the patch proposed by Eric Newton.
15550         * resolv/tst-res_hconf_reorder.c: New test.
15551         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15552         tst-res_hconf_reorder.
15553         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15554         and $(shared-thread-library).
15555         (tst-res_hconf_reorder-ENV): New variable.
15556
15557         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15558         in comment.
15559
15560 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15561
15562         [BZ #16353]
15563         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15564         (__expm1): Force underflow exception for arguments with small
15565         absolute value.
15566         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15567         (__expm1f): Force underflow exception for arguments with small
15568         absolute value.
15569         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15570         (__expm1): Force underflow exception for arguments with small
15571         absolute value.
15572         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15573         (__expm1f): Force underflow exception for arguments with small
15574         absolute value.
15575         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15576         Check for small arguments before calling __expm1.
15577         * math/auto-libm-test-in: Do not mark underflow exceptions as
15578         possibly missing for bug 16353.
15579         * math/auto-libm-test-out: Regenerated.
15580
15581 2015-06-22  Andreas Schwab  <schwab@suse.de>
15582
15583         [BZ #18513]
15584         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15585         PTR queries.
15586
15587 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15588
15589         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15590
15591         * string/strcoll_l.c: Remove unused struct element idxnow.
15592
15593 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15594
15595         [BZ #18569]
15596         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15597         underflow and return argument in case of subnormal argument.
15598         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15599         Likewise.
15600         * math/auto-libm-test-in: Add more tests of expm1.
15601         * math/auto-libm-test-out: Regenerated.
15602
15603         [BZ #16361]
15604         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15605         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15606         tiny results.
15607         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15608         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15609         tiny results.
15610         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15611         mark underflow exceptions as possibly missing for bug 16361.
15612         * math/auto-libm-test-out: Regenerated.
15613
15614 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15615
15616         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15617         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15618         Remove variable.
15619         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15620         (test-xfail-XOPEN2K8/utmpx.h/conform).
15621
15622         * conform/conformtest.pl ($xerrors): New variable.
15623         (note_error): New function.
15624         (compiletest): New argument $xfail.  Use not_error.
15625         (runtest): Likewise.
15626         (top level): Handle xfail- lines.  Update calls to compiletest and
15627         runtest.  Handle xfail- and optional- in headers listed with
15628         allow-header.
15629         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15630         (O_EXEC): Likewise.
15631         (O_SEARCH): Likewise.
15632         * conform/data/stropts.h-data (ioctl): Likewise.
15633         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15634         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15635         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15636         (msghdr.msg_controllen): Likewise.
15637         (cmsghdr.cmsg_len): Likewise.
15638         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15639         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15640         variable.
15641         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15642         (test-xfail-XPG4/stropts.h/conform): Likewise.
15643         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15644         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15645         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15646         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15647         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15648         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15649         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15650         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15651         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15652         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15653         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15654         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15655         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15656         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15657         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15658         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15659         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15660         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15661         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15662
15663 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15664
15665         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15666         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15667         definitions for proper unfolding of __MATHDECL_VEC.
15668
15669 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15670
15671         * benchtests/bench-strcoll.c:
15672         Include string.h.
15673         (main): Remove unused variable res.
15674
15675 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15676
15677         * timezone/Makefile (%/UTC %/Universal):
15678         Generate test-result files for UTC and Universal.
15679
15680 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15681
15682         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15683
15684 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15685
15686         [BZ #16350]
15687         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15688         for arguments with small absolute value.
15689         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15690         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15691         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15692         (__asinh): Force underflow exception for arguments with small
15693         absolute value.
15694         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15695         (__asinhf): Force underflow exception for arguments with small
15696         absolute value.
15697         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15698         (__asinhl): Force underflow exception for arguments with small
15699         absolute value.
15700         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15701         (__asinhl): Force underflow exception for arguments with small
15702         absolute value.
15703         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15704         (__asinhl): Force underflow exception for arguments with small
15705         absolute value.
15706         * math/auto-libm-test-in: Do not mark underflow exceptions as
15707         possibly missing for bug 16350.
15708         * math/auto-libm-test-out: Regenerated.
15709
15710         * include/bits/ipc.h: Remove file.
15711         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15712         variable.
15713         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15714         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15715         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15716         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15717         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15718         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15719         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15720         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15721         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15722
15723         * math/auto-libm-test-in: Remove spurious underflow allowance for
15724         tests of cexp.
15725         * math/auto-libm-test-out: Regenerated.
15726
15727         [BZ #18558]
15728         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15729         unconditional definition.
15730         (MCAST_BLOCK_SOURCE): Likewise.
15731         (MCAST_UNBLOCK_SOURCE): Likewise.
15732         (MCAST_LEAVE_GROUP): Likewise.
15733         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15734         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15735         (MCAST_MSFILTER): Likewise.
15736         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15737         Remove variable.
15738         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15739         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15740         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15741         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15742         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15743
15744 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15745
15746         * NEWS: Mention addition of x86_64 vector sincosf.
15747         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15748         * math/test-float-vlen4.h: Likewise.
15749         * math/test-float-vlen8.h: Likewise.
15750         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15751         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15752         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15753         * sysdeps/x86_64/fpu/Versions: New versions added.
15754         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15755         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15756         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15757         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15758         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15759         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15760         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15761         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15762         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15763         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
15764         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
15765         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
15766         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
15767         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
15768         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
15769         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
15770         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
15771         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15772         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15773         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15774         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15775         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15776         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15777         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15778
15779         * NEWS: Mention addition of x86_64 vector sincos.
15780         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
15781         * math/math.h (__MATHDECL_VEC): New macro.
15782         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
15783         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
15784         declaration under condition.
15785         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
15786         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
15787         TEST_VEC_LOOP change.
15788         * math/test-double-vlen4.h: Likewise.
15789         * math/test-double-vlen8.h: Likewise.
15790         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
15791         * math/test-float-vlen4.h: Likewise.
15792         * math/test-float-vlen8.h: Likewise.
15793         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15794         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
15795         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15796         * sysdeps/x86_64/fpu/Versions: New versions added.
15797         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15798         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15799         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15800         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
15801         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
15802         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
15803         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
15804         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
15805         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
15806         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
15807         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
15808         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
15809         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
15810         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
15811         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
15812         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
15813         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
15814         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15815         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15816         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15817         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15818         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15819         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15820         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15821
15822         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15823         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15824         redirections for powf.
15825         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15826         * sysdeps/x86_64/fpu/Versions: New versions added.
15827         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15828         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15829         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15830         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
15831         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
15832         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
15833         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
15834         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
15835         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
15836         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
15837         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
15838         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
15839         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
15840         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
15841         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
15842         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
15843         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
15844         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15845         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15846         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15847         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15848         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15849         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15850         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15851         * math/test-float-vlen16.h: Fixed 2 argument macro.
15852         * math/test-float-vlen4.h: Likewise.
15853         * math/test-float-vlen8.h: Likewise.
15854         * NEWS: Mention addition of x86_64 vector powf.
15855
15856 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
15857
15858         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15859         and redefine.
15860         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15861         and redefine.
15862         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
15863         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15864         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15865
15866         [BZ #18553]
15867         * resource/getpriority.c (getpriority): Rename to __getpriority
15868         and define as weak alias of __getpriority.
15869         * resource/setpriority.c (setpriority): Rename to __setpriority
15870         and define as weak alias of __setpriority.
15871         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
15872         __getpriority and define as weak alias of __getpriority.
15873         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
15874         __setpriority and define as weak alias of __setpriority.
15875         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
15876         strong name.
15877         (setpriority): Use __setpriority as strong name.
15878         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
15879         __getpriority and define as weak alias of __getpriority.
15880         * include/sys/resource.h (__getpriority): Declare.  Use
15881         libc_hidden_proto.
15882         (__setpriority): Likewise.
15883         (getpriority): Don't use libc_hidden_proto.
15884         (setpriority): Likewise.
15885         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
15886         getpriority.  Call __setpriority instead of setpriority.
15887         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
15888         Remove variable.
15889
15890         [BZ #18547]
15891         * misc/getttyent.c (getttynam): Rename to __getttynam and define
15892         as weak alias of __getttynam.  Use prototype function definition.
15893         Call __setttyent, __getttyent and __endttyent instead of
15894         setttyent, getttyent and endttyent.
15895         (getttyent): Rename to __getttyent and define as weak alias of
15896         __getttyent.  Call __setttyent instead of setttyent.  Call
15897         __fgets_unlocked instead of fgets_unlocked.
15898         (setttyent): Rename to __setttyent and define as weak alias of
15899         __setttyent.
15900         (endttyent): Rename to __endttyent and define as weak alias of
15901         __endttyent.
15902         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
15903         (__setttyent): Likewise.
15904         (__endttyent): Likewise.
15905         (getttyent): Don't use libc_hidden_proto.
15906         (setttyent): Likewise.
15907         (endttyent): Likewise.
15908         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
15909         __endttyent instead of setttyent, getttyent and endttyent.
15910         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
15911         Remove variable.
15912
15913         [BZ #18546]
15914         * socket/recv.c (__recv): Use libc_hidden_def.
15915         * socket/socket.c (__socket): Likewise.
15916         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15917         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15918         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
15919         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
15920         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
15921         libc_hidden_def.
15922         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
15923         libc_hidden_weak.
15924         * include/sys/socket.h (__socket): Do not use attribute_hidden.
15925         Use libc_hidden_proto.
15926         (__recv): Likewise.
15927         * socket/Versions (libc): Export __recv and __socket at version
15928         GLIBC_PRIVATE.
15929         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
15930         instead of recv.
15931         (init_mq_netlink): Call __socket instead of socket.
15932         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
15933         Remove variable.
15934
15935         [BZ #18545]
15936         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
15937         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
15938         hidden_weak.
15939         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
15940         define as alias of __mq_timedsend.  Use hidden_weak.
15941         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
15942         __mq_timedsend as strong name.
15943         (mq_timedreceive): Use __mq_timedreceive as strong name.
15944         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
15945         (__mq_timedreceive): Likewise.
15946         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
15947         __mq_timedreceive instead of mq_timedreceive.
15948         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
15949         instead of mq_timedsend.
15950         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
15951         Remove variable.
15952
15953         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
15954         hidden_def and hidden_weak instead of libc_hidden_def and
15955         libc_hidden_weak.
15956         (top level): Refer to hidden_def in comment.
15957         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
15958         macro.  Use it instead of libc_hidden_def.
15959         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
15960         specify __GI_* name explicitly.
15961         (mq_timedreceive): Likewise.
15962         (mq_setattr): Likewise.
15963
15964         [BZ #18544]
15965         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
15966         __pthread_barrier_init and define as weak alias of
15967         __pthread_barrier_init.
15968         * sysdeps/sparc/nptl/pthread_barrier_init.c
15969         (pthread_barrier_init): Likewise.
15970         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
15971         __pthread_barrier_wait and define as weak alias of
15972         __pthread_barrier_wait.
15973         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15974         (pthread_barrier_wait): Likewise.
15975         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15976         (pthread_barrier_wait): Likewise.
15977         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
15978         (pthread_barrier_wait): Likewise.
15979         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
15980         (pthread_barrier_wait): Likewise.
15981         * nptl/Versions (libpthread): Export __pthread_barrier_init and
15982         __pthread_barrier_wait at version GLIBC_PRIVATE.
15983         * include/pthread.h (__pthread_barrier_init): Declare.
15984         (__pthread_barrier_wait): Likewise.
15985         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
15986         Call __pthread_barrier_wait instead of pthread_barrier_wait.
15987         (helper_thread): Likewise.
15988         (init_mq_netlink): Call __pthread_barrier_init instead of
15989         pthread_barrier_init.
15990
15991         [BZ #18542]
15992         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
15993         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
15994         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
15995         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
15996         vswscanf.
15997         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
15998         Remove variable.
15999
16000         [BZ #18540]
16001         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16002         strong alias of _IO_fflush.  Use libc_hidden_def.
16003         * libio/iofflush_u.c (fflush_unlocked): Rename to
16004         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16005         Use libc_hidden_weak.
16006         * include/stdio.h (__fflush_unlocked): Declare.  Use
16007         libc_hidden_proto.
16008         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16009         fflush_unlocked.
16010         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16011         Remove variable.
16012
16013         [BZ #18539]
16014         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16015         define as weak alias of __addseverity.
16016         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16017         Remove variable.
16018         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16019         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16020         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16021
16022         [BZ #18536]
16023         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16024         (__tfind): Likewise.
16025         (__tdelete): Likewise.
16026         (__twalk): Likewise.
16027         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16028         __twalk to GLIBC_PRIVATE.
16029         * include/search.h (__tsearch): Use libc_hidden_proto.
16030         (__tfind): Likewise.
16031         (__tdelete): Likewise.
16032         (__twalk): Likewise.
16033         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16034         Call __tdelete instead of tdelete.
16035         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16036         tfind.  Call __tsearch instead of tsearch.
16037         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16038         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16039         Remove variable.
16040         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16041
16042         [BZ #18534]
16043         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16044         (dprintf): Define as a weak alias of __dprintf, not a strong
16045         alias.
16046         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16047         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16048         dprintf.
16049         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16050         Remove variable.
16051         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16052         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16053
16054         [BZ #18533]
16055         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16056         not a strong alias.
16057         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16058         Remove variable.
16059
16060         [BZ #18532]
16061         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16062         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16063         (in6addr_loopback): Rename to __in6addr_loopback and define as
16064         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16065         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16066         libc_hidden_proto.
16067         (__in6addr_any): Likewise.
16068         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16069         in6addr_any.
16070         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16071         variable.
16072         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16073
16074 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16075
16076         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16077         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16078         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16079         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16080         redirections for pow.
16081         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16082         * sysdeps/x86_64/fpu/Versions: New versions added.
16083         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16084         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16085         build of SSE, AVX2 and AVX512 IFUNC versions.
16086         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16087         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16088         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16089         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16090         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16091         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16092         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16093         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16094         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16095         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16096         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16097         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16098         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16099         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16100         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16101         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16102         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16103         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16104         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16105         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16106         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16107         * NEWS: Mention addition of x86_64 vector pow.
16108
16109         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16110         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16111         redirections for expf.
16112         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16113         * sysdeps/x86_64/fpu/Versions: New versions added.
16114         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16115         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16116         build of SSE, AVX2 and AVX512 IFUNC versions.
16117         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16118         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16119         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16120         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16121         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16122         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16123         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16124         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16125         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16126         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16127         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16128         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16129         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16130         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16131         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16132         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16133         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16134         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16135         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16136         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16137         * NEWS: Mention addition of x86_64 vector expf.
16138
16139         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16140         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16141         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16142         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16143         redirections for exp.
16144         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16145         * sysdeps/x86_64/fpu/Versions: New versions added.
16146         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16147         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16148         build of SSE, AVX2 and AVX512 IFUNC versions.
16149         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16150         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16151         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16152         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16153         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16154         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16155         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16156         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16157         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16158         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16159         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16160         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16161         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16162         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16163         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16164         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16165         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16166         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16167         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16168         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16169         * NEWS: Mention addition of x86_64 vector exp.
16170
16171         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16172         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16173         redirections for logf.
16174         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16175         * sysdeps/x86_64/fpu/Versions: New versions added.
16176         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16177         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16178         build of SSE, AVX2 and AVX512 IFUNC versions.
16179         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16180         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16181         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16182         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16183         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16184         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16185         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16186         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16187         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16188         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16189         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16190         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16191         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16192         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16193         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16194         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16195         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16196         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16197         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16198         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16199         * NEWS: Mention addition of x86_64 vector logf.
16200
16201         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16202         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16203         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16204         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16205         redirections for log.
16206         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16207         * sysdeps/x86_64/fpu/Versions: New versions added.
16208         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16209         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16210         build of SSE, AVX2 and AVX512 IFUNC versions.
16211         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16212         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16213         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16214         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16215         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16216         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16217         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16218         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16219         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16220         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16221         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16222         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16223         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16224         test.
16225         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16226         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16227         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16228         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16229         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16230         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16231         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16232         * NEWS: Mention addition of x86_64 vector log.
16233
16234 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16235
16236         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16237         cfi_adjust_cfa_offset argument.
16238         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16239         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16240
16241         [BZ #18034]
16242         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16243         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16244         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16245         ordering using ldar.
16246         (_dl_tlsdesc_dynamic): Likewise.
16247         (_dl_tlsdesc_return_lazy): Likewise.
16248         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16249         relaxed atomics instead of volatile and synchronize with release store.
16250         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16251         volatile.
16252         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16253
16254 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16255
16256         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16257         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16258         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16259         * sysdeps/x86_64/fpu/Versions: New versions added.
16260         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16261         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16262         build of SSE, AVX2 and AVX512 IFUNC versions.
16263         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16264         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16265         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16266         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16267         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16268         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16269         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16270         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16271         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16272         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16273         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16274         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16275         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16276         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16277         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16278         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16279         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16280         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16281         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16282         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16283         * NEWS: Mention addition of x86_64 vector sinf.
16284
16285 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16286
16287         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16288         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16289         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16290         Remove variable.
16291         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16292         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16293
16294 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16295
16296         [BZ #18530]
16297         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16298         strong alias of _IO_fputs.  Use libc_hidden_def.
16299         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16300         and define as weak alias of __fputs_unlocked.  Use
16301         libc_hidden_weak.
16302         * include/stdio.h (__fputs_unlocked): Declare.  Use
16303         libc_hidden_proto.
16304         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16305         fputs_unlocked.
16306
16307         [BZ #18529]
16308         * resolv/netdb.h [__USE_POSIX]: Change condition to
16309         [__USE_XOPEN2K].
16310         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16311         not expect.
16312         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16313         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16314         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16315         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16316         [XPG4 || UNIX98] (AI_ALL): Likewise.
16317         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16318         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16319         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16320         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16321         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16322         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16323         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16324         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16325         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16326         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16327         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16328         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16329         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16330         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16331         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16332         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16333         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16334         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16335         [XPG4 || UNIX98] (gai_strerror): Likewise.
16336         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16337         [XPG4 || UNIX98] (getnameinfo): Likewise.
16338
16339         [BZ #18528]
16340         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16341         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16342         __USE_XOPEN2K8].
16343         (getgrent): Likewise.
16344         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16345         expect.
16346         [XPG3 || POSIX2008] (endgrent): Likewise.
16347         [XPG3] (setgrent): Likewise.
16348         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16349         variable.
16350         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16351
16352         [BZ #18527]
16353         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16354         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16355         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16356         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16357         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16358         * include/unistd.h (__getlogin_r): Declare.  Use
16359         libc_hidden_proto.
16360         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16361         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16362         variable.
16363         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16364         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16365         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16366
16367 2015-06-12  Martin Sebor  <msebor@redhat.com>
16368
16369         [BZ #18512]
16370         * Makerules (check-install-supported): New target.
16371         (install): Add check-install-supported as a dependency.
16372         * manual/install.texi (Installing the C Library): Document
16373         that overriding prefix and exec_prefix is not supported.
16374         Mention DESTDIR.
16375         * INSTALL: Regenerate from the above.
16376
16377 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16378
16379         [BZ #18519]
16380         * posix/Versions (libc): Export __libc_pread at version
16381         GLIBC_PRIVATE.
16382         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16383         instead of pread.
16384         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16385         variable.
16386
16387         [BZ #18522]
16388         * misc/efgcvt_r.c
16389         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16390         (cvt_symbol): Use weak_alias instead of strong_alias.
16391         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16392         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16393         Remove variable.
16394         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16395         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16396
16397         [BZ #18520]
16398         * inet/herrno.c (h_errno): Rename to __h_errno.
16399         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16400         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16401         to __h_errno instead of h_errno.
16402         * nptl/herrno.c (h_errno): Rename to __h_errno.
16403         (__h_errno_location): Refer to __h_errno not h_errno.
16404         * resolv/Versions (h_errno): Rename to __h_errno.
16405         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16406         Remove variable.
16407         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16408
16409 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16410
16411         * configure.ac: More strict check for AVX512 assembler support.
16412         * configure: Regenerated.
16413
16414         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16415         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16416         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16417         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16418         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16419         * sysdeps/x86_64/fpu/Versions: New versions added.
16420         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16421         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16422         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16423         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16424         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16425         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16426         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16427         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16428         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16429         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16430         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16431         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16432         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16433         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16434         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16435         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16436         test.
16437         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16438         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16439         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16440         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16441         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16442         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16443         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16444         * NEWS: Mention addition of x86_64 vector sin.
16445
16446 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16447
16448         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16449         comment.
16450
16451 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16452
16453         [BZ #18479]
16454         * nptl/pt-interp.c: New file.
16455         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16456         Add pt-interp.
16457         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16458         $(common-objpfx)runtime-linker.h.
16459
16460 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16461
16462         * Makeconfig (+interp): Remove unused variable.
16463         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16464         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16465         $(elf-objpfx)runtime-linker.h.
16466         ($(elf-objpfx)runtime-linker.h): Rename to
16467         $(common-objpfx)runtime-linker.h and move ...
16468         * Makerules [$(build-shared) = yes]: ... here.
16469         * elf/interp.c: Include <runtime-linker.h> instead of
16470         <elf/runtime-linker.h>.
16471
16472 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16473
16474         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16475         (__gettimeofday_syscall): Remove vsyscall fallback.
16476         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16477         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16478         Add syscall fallback function.
16479         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16480         if vDSO is not present.
16481         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16482         fallback function.
16483         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16484         present.
16485         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16486         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16487
16488 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16489
16490         [BZ #18497]
16491         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16492         of wcscmp.
16493         (wcscmp): Define as weak alias of WCSCMP.
16494         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16495         wcscoll.
16496         (USE_HIDDEN_DEF): Define.
16497         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16498         __wcscoll.  Don't use libc_hidden_weak.
16499         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16500         wcscmp.
16501         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16502         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16503         __GI_wcscmp.
16504         (weak_alias): Undefine and redefine.
16505         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16506         __wcscmp and define as weak alias of __wcscmp.
16507         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16508         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16509         (__wcscoll): Likewise.
16510         (wcscmp): Don't use libc_hidden_proto.
16511         (wcscoll): Likewise.
16512         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16513         wcscoll.
16514         * posix/regexec.c (check_node_accept_bytes): Likewise.
16515         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16516         variable.
16517         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16518         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16519
16520         [BZ #18507]
16521         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16522         __fstatvfs and define as weak alias of __fstatvfs.  Use
16523         libc_hidden_weak.
16524         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16525         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16526         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16527         Define as alias of __fstatvfs, not fstatvfs.
16528         (fstatvfs64): Likewise.
16529         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16530         Define as alias of __statvfs, not statvfs.
16531         (statvfs64): Likewise.
16532         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16533         Remove variable.
16534
16535 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16536
16537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16538         (HAVE_GETCPU_VSYSCALL): Define.
16539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16540         (HAVE_GETCPU_VSYSCALL): Likewise.
16541         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16542         * sysdeps/unix/sysv/linux/sched_getcpu.c
16543         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16544         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16545         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16546         prototype.
16547         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16548         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16549         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16550         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16551         Define.
16552         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16553         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16554         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16555         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16556
16557 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16558
16559         * sysdeps/x86_64/fpu/Makefile: New file.
16560         * sysdeps/x86_64/fpu/Versions: New file.
16561         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16562         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16563         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16564         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16565         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16566         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16567         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16568         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16569         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16570         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16571         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16572         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16573         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16574         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16575         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16576         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16577         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16578         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16579         * sysdeps/x86_64/configure: Regenerated.
16580         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16581         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16582         * manual/install.texi (Configuring and compiling): Document
16583         --disable-mathvec.
16584         * INSTALL: Regenerated.
16585         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16586
16587         * math/Makefile: Added rules for vector tests.
16588         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16589         declaration under condition.
16590         * math/test-double-vlen2.h: New file.
16591         * math/test-double-vlen4.h: New file.
16592         * math/test-double-vlen8.h: New file.
16593         * math/test-vec-loop.h: Added initialization macro.
16594         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16595         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16596         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16597         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16598         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16599         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16600         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16601         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16602         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16603         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16604         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16605
16606         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16607         * sysdeps/x86_64/fpu/Versions: New versions added.
16608         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16609         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16610         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16611         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16612         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16613         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16614         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16615         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16616         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16617         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16618         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16619         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16620         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16621         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16622         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16623         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16624         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16625         * NEWS: Mention addition of x86_64 vector cosf.
16626
16627         * math/Makefile: Added CFLAGS for new tests.
16628         * math/test-float-vlen16.h: New file.
16629         * math/test-float-vlen4.h: New file.
16630         * math/test-float-vlen8.h: New file.
16631         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16632         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16633         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16634         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16635         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16636         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16637         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16638         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16639         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16640         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16641         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16642
16643 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16644
16645         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16646         * locale/programs/ld-ctype.c: Likewise.
16647
16648 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16649
16650         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16651         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16652         bit_ZMM16_31_state): New macro.
16653         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16654         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16655
16656 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16657
16658         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16659
16660 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16661
16662         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16663
16664 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16665
16666         [BZ #18498]
16667         * libio/memstream.c (open_memstream): Rename to __open_memstream
16668         and define as weak alias of __open_memstream.
16669         * include/stdio.h (__open_memstream): Declare.  Use
16670         libc_hidden_proto.
16671         (open_memstream): Don't use libc_hidden_proto.
16672         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16673         open_memstream.
16674         * posix/getopt.c (_getopt_internal_r): Likewise.
16675         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16676         variable.
16677         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16678         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16679         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16680
16681         [BZ #18496]
16682         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16683         instead of wcrtomb.
16684
16685         [BZ #18483]
16686         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16687         [__USE_XOPEN2K8].  Remove redundant #endif.
16688         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16689         Remove redundant #if.
16690         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16691         Remove variable.
16692         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16693         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16694
16695         [BZ #18495]
16696         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16697         (__iswlower): Likewise.
16698         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16699         (__iswlower): Likewise.
16700         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16701         instead of towlower.
16702         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16703         instead of iswlower.  Call __towupper instead of towupper.
16704         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16705         instead of iswalnum.
16706
16707 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16708
16709         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16710         errors to stderr.
16711
16712 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16713
16714         [BZ #15661]
16715         [BZ #17322]
16716         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16717         Check for overflow properly.  Check for O_APPEND.  Ignore large
16718         file system block sizes.  Add comments about problems.
16719         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16720         * manual/filesys.texi (Storage Allocation): New node.
16721
16722 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16723
16724         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16725         cancellable syscalls.
16726         (SYS_ify): Add guard to no redefine it.
16727         (INLINE_SYSCALL): Likewise.
16728         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16729         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16730         SYSCALL_CANCEL instead.
16731         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16732         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16733         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16734         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16735         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16736         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16737         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16738         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16739         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16740         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16741         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16742         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16743         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16744         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16745         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16746         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16747         Likewise.
16748         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16749         (__libc_pread64): Likewise.
16750         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16751         (__libc_preadv): Likewise.
16752         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16753         (__libc_readv64): Likewise.
16754         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16755         (__libc_pwrite): Likewise.
16756         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16757         (__libc_pwrite64): Likewise.
16758         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16759         (__libc_pwritev): Likewise.
16760         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16761         (__libc_pwritev64): Likewise.
16762         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16763         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
16764         (sync_file_range): Likewise.
16765         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
16766         Likewise.
16767         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
16768         Likewise.
16769         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
16770         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
16771         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
16772         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
16773         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
16774         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
16775         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
16776         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
16777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
16778         Likewise.
16779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16780         (__libc_read64): Likewise.
16781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
16782         Likewise.
16783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
16784         Likewise.
16785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
16786         Likewise.
16787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
16788         Likewise.
16789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16790         (__libc_pread64): Likewise.
16791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
16792         Likewise.
16793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16794         (__libc_pwrite64): Likewise.
16795         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
16796         (sync_file_range): Likewise.
16797         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
16798         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
16799         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
16800         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
16801         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
16802         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
16803         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
16804         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
16805         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
16806         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
16807         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16808         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
16809         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
16810         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
16811         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
16812         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
16813         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
16814         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16815         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
16816         Likewise.
16817         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
16818         Likewise.
16819         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
16820         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
16821         Likewise.
16822         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
16823         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
16824         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
16825         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
16826         Likewise.
16827         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
16828         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
16829         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
16830         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
16831         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
16832
16833 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
16834
16835         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
16836         Include dl-vdso.
16837         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
16838         Use VDSO routines for gettimeofday, clock_gettime if
16839         available.
16840         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
16841         Declare VDSO symbols.
16842         * sysdeps/unix/sysv/linux/arm/sysdep.h:
16843         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
16844         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
16845         * sysdeps/unix/sysv/linux/arm/Versions: Add
16846         __vdso_clock_gettime.
16847
16848 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16849
16850         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
16851         be an inline implementation regardless of library is built within.
16852         (open_not_cancel_2): Likewise.
16853         (__read_nocancel): Likewise.
16854         (__write_nocancel): Likewise.
16855         (openat_not_cancel): Likewise.
16856         (openat_not_cancel_3): Likewise.
16857         (openat64_not_cancel): Likewise.
16858         (openat64_not_cancel_3): Likewise.
16859         (__close_nocancel): Likewise.
16860         (pause_not_cancel): Likewise.
16861         (nanosleep_not_cancel): Likewise.
16862         (sigsuspend_not_cancel): Likewise.
16863
16864 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16865
16866         [BZ #14958]
16867         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
16868         wake-up.
16869         (__pthread_rwlock_rdlock_slow): Likewise.
16870         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
16871         Likewise.
16872         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
16873         Likewise.
16874         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
16875         * nptl/tst-rwlock16.c: New file.
16876         * nptl/Makefile (tests): Add new test.
16877
16878 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16879
16880         [BZ #18324]
16881         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
16882         missing wake-up of readers.
16883         * nptl/tst-rwlock15.c: New file.
16884         * nptl/Makefile (tests): Add new test.
16885
16886 2015-06-03  Roland McGrath  <roland@hack.frob.com>
16887
16888         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
16889         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
16890         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
16891         and __nacl_supply_interface_rtld.
16892         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
16893         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
16894         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
16895         Add __nacl_supply_interface_rtld.
16896         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
16897
16898 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16899
16900         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
16901         isfinite.
16902         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16903         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
16904
16905 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16906
16907         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
16908         __signbit* with standard C99 macros.
16909         * math/e_exp10l.c: Likewise.
16910         * math/e_exp2l.c: Likewise.
16911         * math/e_scalb.c: Likewise.
16912         * math/e_scalbf.c: Likewise.
16913         * math/e_scalbl.c: Likewise.
16914         * math/s_ldexp.c: Likewise.
16915         * math/s_ldexpf.c: Likewise.
16916         * math/s_ldexpl.c: Likewise.
16917         * math/w_atan2.c: Likewise.
16918         * math/w_atan2f.c: Likewise.
16919         * math/w_atan2l.c: Likewise.
16920         * math/w_cosh.c: Likewise.
16921         * math/w_coshf.c: Likewise.
16922         * math/w_coshl.c: Likewise.
16923         * math/w_exp10.c: Likewise.
16924         * math/w_exp10f.c: Likewise.
16925         * math/w_exp10l.c: Likewise.
16926         * math/w_exp2.c: Likewise.
16927         * math/w_exp2f.c: Likewise.
16928         * math/w_exp2l.c: Likewise.
16929         * math/w_fmod.c: Likewise.
16930         * math/w_fmodf.c: Likewise.
16931         * math/w_fmodl.c: Likewise.
16932         * math/w_hypot.c: Likewise.
16933         * math/w_hypotf.c: Likewise.
16934         * math/w_hypotl.c: Likewise.
16935         * math/w_jnl.c: Likewise.
16936         * math/w_lgamma.c: Likewise.
16937         * math/w_lgamma_r.c: Likewise.
16938         * math/w_lgammaf.c: Likewise.
16939         * math/w_lgammaf_r.c: Likewise.
16940         * math/w_lgammal.c: Likewise.
16941         * math/w_lgammal_r.c: Likewise.
16942         * math/w_pow.c: Likewise.
16943         * math/w_powf.c: Likewise.
16944         * math/w_powl.c: Likewise.
16945         * math/w_remainder.c: Likewise.
16946         * math/w_remainderf.c: Likewise.
16947         * math/w_remainderl.c: Likewise.
16948         * math/w_scalb.c: Likewise.
16949         * math/w_scalbf.c: Likewise.
16950         * math/w_scalbl.c: Likewise.
16951         * math/w_scalbln.c: Likewise.
16952         * math/w_scalblnf.c: Likewise.
16953         * math/w_scalblnl.c: Likewise.
16954         * math/w_sinh.c: Likewise.
16955         * math/w_sinhf.c: Likewise.
16956         * math/w_sinhl.c: Likewise.
16957         * math/w_tgamma.c: Likewise.
16958         * math/w_tgammaf.c: Likewise.
16959         * math/w_tgammal.c: Likewise.
16960         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16961         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
16962         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16963         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16964         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16965         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16966         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16967         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16968         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16969         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16970         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16971         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16972         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16973         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16974         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16975         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16976         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16977         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16978         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16979         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16980         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16981         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16982         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16983         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16984         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16985         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16986         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
16987         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16988         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16989         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16990         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
16991         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
16992         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
16993         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
16994         * stdio-common/printf_fp.c: Likewise.
16995         * stdio-common/printf_fphex.c: Likewise.
16996         * stdio-common/printf_size.c: Likewise.
16997
16998 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
16999
17000         [BZ #18470]
17001         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17002         strnlen.
17003         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17004         Remove variable.
17005         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17006         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17007         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17008         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17009         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17010         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17011         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17012         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17013         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17014         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17015
17016         [BZ #18468]
17017         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17018         weak alias of __wmemchr.  Use libc_hidden_weak.
17019         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17020         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17021         instead of wmemchr.
17022
17023 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17024
17025         [BZ #18383]
17026         * elf/tst-tlsalign-extern.c: New file.
17027         * elf/tst-tlsalign-extern-static.c: New file.
17028         * elf/tst-tlsalign-vars.c: New file.
17029         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17030         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17031         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17032         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17033         (test-xfail-tst-tlsalign-extern-static): New variable.
17034
17035 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17036
17037         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17038         Use variable name _sc_err instead of err.
17039         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17040         instead of ret.
17041         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17042         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17043         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17044         (INLINE_SYSCALL): Likewise.
17045
17046         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17047         * include/string.h (__strnlen): Use libc_hidden_proto.
17048         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17049         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17050         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17051         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17052         (libc_hidden_def): Undefine and redefine.
17053         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17054         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17055         __GI_strnlen.
17056         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17057         libc_hidden_def.
17058         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17059
17060         [BZ #18469]
17061         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17062         weak alias of __towlower.  Use libc_hidden_weak.
17063         (towupper): Rename to __towupper and define as weak alias of
17064         __towupper.  Use libc_hidden_weak.
17065         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17066         (__towupper): Likewise.
17067         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17068         __towlower instead of towlower.
17069
17070 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17071
17072         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17073         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17074
17075 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17076
17077         * sysdeps/aarch64/libm-test-ulps: Update.
17078
17079 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17080
17081         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17082         Define.
17083         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17084         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17085         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17086         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17087         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17088         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17089         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17090
17091 2015-06-01  Martin Sebor  <msebor@redhat.com>
17092
17093         [BZ #18116]
17094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17095         (__setcontext): Use extended four-operand version of mtsf whenever
17096         possible.
17097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17098         (__novec_swapcontext): Likewise.
17099
17100 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17101
17102         * benchtests/scripts/compare_bench.py: New file.
17103         * benchtests/scripts/import_bench.py (mean): New function.
17104         (split_list): Likewise.
17105         (do_for_all_timings): Likewise.
17106         (compress_timings): Likewise.
17107
17108         * benchtests/scripts/import_bench.py: New file.
17109         * benchtests/scripts/validate_benchout.py: Import import_bench
17110         instead of jsonschema.
17111         (validate_bench): Remove function.
17112         (main): Use import_bench.
17113
17114 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17115
17116         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17117         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17118
17119 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17120
17121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17122
17123 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17124
17125         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17126         set THREAD_SELF->tid to a magic value and futex-wake it.
17127         Pass its address to the thread_exit system call.
17128         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17129         bit is clear.
17130         * sysdeps/nacl/lowlevellock.h: New file.
17131         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17132
17133         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17134         Add TIMEOUT to current time, don't subtract it.
17135
17136 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17137
17138         [BZ #2981]
17139         [BZ #18422]
17140         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17141         ($(objpfx)tst-audit2.out): Also depend on
17142         $(objpfx)tst-auditmod9b.so.
17143         * elf/tst-audit2.c: Include <dlfcn.h>.
17144         (calloc_called): New.
17145         (calloc): Allow to be called more than once.
17146         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17147
17148 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17149
17150         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17151         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17152
17153 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17154
17155         * stdlib/monetary.h: Fix comment.
17156
17157 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17158
17159         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17160         Avoid using variables in #defines that might cause shadowing.
17161         (INTERNAL_VSYSCALL_CALL): Likewise.
17162
17163 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17164
17165         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17166
17167         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17168         * nptl/lll_timedlock_wait.c: ... to this new file.
17169         * nptl/Makefile (libpthread-routines): Add it.
17170         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17171         * nptl/lll_timedwait_tid.c: ... to this new file.
17172         * nptl/Makefile (libpthread-routines): Add it.
17173         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17174         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17175         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17176         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17177         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17178         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17179         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17180         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17181         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17182         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17183
17184 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17185
17186         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17187         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17188         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17189         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17190         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17191         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17192         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17193         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17194         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17195         * sysdeps/unix/sysv/linux/tile/sysdep.h
17196         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17197         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17198         using vDSO syscall macro.
17199
17200 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17201
17202         [BZ #17293]
17203         * uk_UA: Fix sorting order for Ukrainian locale
17204
17205 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17206
17207         * stdlib/monetary.h: Fix comment.
17208
17209 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17210
17211         [BZ #18234]
17212         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17213         st_mtim and st_ctim members.
17214         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17215         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17216         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17217         (struct stat64): Likewise.
17218         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17219         (struct stat64): Likewise.
17220         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17221         (struct stat64): Likewise.
17222
17223 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17224
17225         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17226         Define and include sysdep-vdso.h.
17227         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17228         Likewise.
17229         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17230         Likewise.
17231         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17232         Define with VDSO_SYMBOL and use PTR_MANGLE.
17233         (__vdso_clock_gettime): Likewise.
17234         (__vdso_clock_getres): Likewise.
17235         (_libc_vdso_platform_setup): Likewise.
17236         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17237         Likewise.
17238         (_libc_vdso_platform_setup): Likewise.
17239         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17240         Likewise.
17241         (__vdso_clock_gettime): Likewise.
17242         (__vdso_clock_getres): Likewise.
17243         (__vdso_get_tbfreq): Likewise.
17244         (__vdso_getcpu): Likewise.
17245         (__vdso_time): Likewise.
17246         (__vdso_sigtramp_rt64): Likewise.
17247         (__vdso_signtramp32): Likewise.
17248         (__vdso_sigtramp_rt32): Likewise.
17249         (_libc_vdso_platform_setup): Likewise.
17250         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17251         Likewise.
17252         (__vdso_clock_gettime): Likewise.
17253         (__vdso_clock_getres): Likewise.
17254         (_libc_vdso_platform_setup): Likewise.
17255         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17256         Likewise.
17257         (__vdso_clock_gettime): Likewise.
17258         (_libc_vdso_platform_setup): Likewise.
17259         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17260         Likewise.
17261         (__vdso_getcpu): Likewise.
17262         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17263         Use VDSO_SYMBOL macro to define.
17264         (__vdso_clock_gettime): Likewise.
17265         (__vdso_clock_getres): Likewise.
17266         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17267         Likewise.
17268         (__vdso_clock_gettime): Likewise.
17269         (__vdso_clock_getres): Likewise.
17270         (__vdso_get_tbfreq): Likewise.
17271         (__vdso_getcpu): Likewise.
17272         (__vdso_time): Likewise.
17273         (__vdso_sigtramp_rt64): Likewise.
17274         (__vdso_signtramp32): Likewise.
17275         (__vdso_sigtramp_rt32): Likewise.
17276         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17277         Likewise.
17278         (__vdso_clock_gettime): Likewise.
17279         (__vdso_clock_getres): Likewise.
17280         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17281         Likewise.
17282         (__vdso_clock_gettime): Likewise.
17283         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17284         Likewise.
17285         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17286         macro.
17287         (INTERNAL_VSYSCALL): Likewise.
17288         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17289         Remove macro.
17290         (INTERNAL_VSYSCALL): Likewise.
17291         (INTERNAL_VSYSCALL_NCS): Likewise.
17292         (INTERNAL_VSYSCALL_CALL): New macro.
17293         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17294         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17295         Likewise.
17296         (INTERNAL_VSYSCALL): Likewise.
17297         (INTERNAL_VSYSCALL_NCS): Likewise.
17298         (INTERNAL_VSYSCALL_CALL): New macro.
17299         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17301         (INLINE_VSYSCALL): Remove macro.
17302         (INTERNAL_VSYSCALL): Remove macro.
17303         (INTERNAL_VSYSCALL_NCS): Remove macro.
17304         (INTERNAL_VSYSCALL_CALL): New macro.
17305         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17306         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17307         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17308         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17309         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17311         (INLINE_VSYSCALL): Remove macro.
17312         (INTERNAL_VSYSCALL): Likewise.
17313         (INTERNAL_VSYSCALL_NCS): Likewise.
17314         (INTERNAL_VSYSCALL_CALL): New macro.
17315         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17316         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17317         PTR_DEMANGLE on vDSO pointer.
17318         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17319         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17320         macro.
17321         (INTERNAL_SYSCALL): Likewise.
17322         (INTERNAL_VSYSCALL_NCS): Remove macro.
17323         (INTERNAL_VSYSCALL_CALL): New macro.
17324         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17325         Remove macro.
17326         (INTERNAL_VSYSCALL): Likewise.
17327         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17328         sysdep-vdso.h instead of libc-vdso.h.
17329         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17330         definition.
17331         (INLINE_VSYSCALL): Likewise.
17332         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17333         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17334         definition.
17335         (INLINE_VSYSCALL): Likewise.
17336         (INTERNAL_VSYSCALL): Likewise.
17337         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17338         * sysdeps/unix/sysv/linux/timespec_get.c
17339         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17340         (timespec_get): Use ANSI prototype.
17341         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17342         and definition for Linux.
17343
17344 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17345
17346         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17347         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17348
17349 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17350
17351         [BZ #2981]
17352         [BZ #18410]
17353         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17354         for missing DT_PLTRELSZ.
17355
17356 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17357
17358         Remove obsolete aliases that broke 'locale -a'
17359         [BZ #18412]
17360         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17361         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17362         breaking some applications that use 'locale -a' output.
17363         Change the encoding of this file from Latin-1 to ASCII to avoid
17364         other potential problems with people grepping this file.
17365
17366 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17367
17368         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17369         -fasynchronous-unwind-tables.
17370         (CFLAGS-sendto.c): Likewise.
17371         (CFLAGS-sendmsg.c): Likewise.
17372         (CFLAGS-connect.c): Likewise.
17373         (CFLAGS-recvmsg.c): Likewise.
17374         (CFLAGS-recvfrom.c): Likewise.
17375         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17376         (SOCKETCALL): New macro: non-cancellable socketcall.
17377         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17378         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17379         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17380         * sysdeps/unix/sysv/linux/accept.c: New file.
17381         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17382         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17383         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17384         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17385         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17386         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17387         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17388         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17389         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17390         * sysdeps/unix/sysv/linux/send.c: Likewise.
17391         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17392         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17393         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17394         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17395         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17396         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17397         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17398         prototype.
17399         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17400         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17401         instead of __internal_xxx function.
17402         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17403         prototype.
17404         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17405         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17406         instead of __internal_xxx function.
17407         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17408         prototype.
17409         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17410         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17411         instead of __internal_xxx function.
17412         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17413         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17414         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17415         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17416         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17417         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17418         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17419         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17420         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17421         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17422         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17423         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17424         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17425         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17426         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17427         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17428         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17429         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17430         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17431         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17434         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17435         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17436         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17437         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17438         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17439         * sysdeps/unix/sysv/linux/send.S: Likewise.
17440         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17441         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17442         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17443         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17444         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17445         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17446         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17447         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17448         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17449         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17450         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17451         socketcall is implemented in GLIBC.
17452
17453 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17454
17455         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17456         (__fma): Ignore uninitialized warnings around packing.
17457         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17458         (__fmaf): Ignore uninitialized warnings around packing.
17459         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17460         (__fmal): Ignore uninitialized warnings around packing.
17461
17462         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17463         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17464         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17465         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17466
17467         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17468         switch statement into default case.
17469         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17470
17471         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17472         a conditional in forcing "inexact".
17473         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17474         Likewise.
17475
17476 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17477
17478         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17479         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17480         for each INTERNAL_SYSCALL use.
17481
17482 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17483
17484         [BZ #438]
17485         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17486         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17487         variable.
17488
17489         [BZ #18444]
17490         * string/basename.c (basename): Rename to __basename and define as
17491         weak alias of __basename.  Use libc_hidden_weak.
17492         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17493         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17494         __basename instead of basename.
17495         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17496         Remove variable.
17497         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17498
17499 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17500
17501         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17502         (_IO_JUMPS_FILE_plus): New.
17503         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17504         _IO_CAST_FIELD_ACCESS.
17505         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17506         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17507         * libio/freopen.c (freopen): Likewise.
17508         * libio/freopen64.c (freopen64): Likewise.
17509         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17510         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17511         * libio/iofwide.c (_IO_fwide): Likewise.
17512         * libio/memstream.c (open_memstream): Likewise.
17513         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17514         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17515         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17516
17517 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17518
17519         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17520         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17521         NADJ.
17522         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17523         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17524         NADJ.
17525         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17526         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17527         NADJ.
17528
17529         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17530         (p == 4) case.
17531
17532         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17533         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17534         Remove variable.
17535         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17536         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17537         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17538
17539 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17540
17541         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17542         Adjust jump table label generation macros.
17543
17544 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17545
17546         * stdio-common/vfprintf.c (vfprintf): Move local variables
17547         args_malloced, specs, specs_malloced, and the code after
17548         do_positional to the printf_positional function.
17549         (printf_positional): New function.
17550
17551 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17552
17553         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17554         function.
17555         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17556         STEP4_TABLE, process_arg): Move macro definitions
17557         out of the vfprintf function.  (Cosmetic change only.)
17558
17559 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17560
17561         * benchtests/Makefile (stdio-common-bench): Define.
17562         (benchset): Add stdio-common-bench.
17563         * sprintf-inputs: New file.
17564         * sprintf-source.c: New file.
17565
17566 2015-05-21  Andreas Schwab  <schwab@suse.de>
17567
17568         [BZ #13028]
17569         [BZ #17053]
17570         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17571         of struct __res_state.
17572         * resolv/res_send.c (__libc_res_nsend): Likewise.
17573         (get_nsaddr): New function.
17574         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17575         statp directly.
17576
17577 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17578
17579         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17580         -D_POSIX_C_SOURCE=199506L.
17581
17582         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17583
17584         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17585         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17586         Do not mention otherwise.
17587         [POSIX] (_XOPEN_VERSION): Do not expect.
17588         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17589         [POSIX] (_POSIX2_C_BIND): Likewise.
17590         [POSIX] (_POSIX2_VERSION): Likewise.
17591         [POSIX] (_XOPEN_XPG2): Likewise.
17592         [POSIX] (_XOPEN_XPG3): Likewise.
17593         [POSIX] (_XOPEN_XPG4): Likewise.
17594         [POSIX] (_XOPEN_UNIX): Likewise.
17595         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17596         [POSIX] (_POSIX_BARRIERS): Likewise.
17597         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17598         [POSIX] (_POSIX_CPUTIME): Likewise.
17599         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17600         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17601         [POSIX] (_POSIX_SHELL): Likewise.
17602         [POSIX] (_POSIX_SPAWN): Likewise.
17603         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17604         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17605         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17606         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17607         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17608         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17609         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17610         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17611         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17612         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17613         [POSIX] (_POSIX2_PBS): Likewise.
17614         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17615         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17616         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17617         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17618         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17619         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17620         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17621         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17622         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17623         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17624         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17625         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17626         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17627         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17628         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17629         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17630         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17631         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17632         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17633         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17634         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17635         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17636         [POSIX] (_SC_2_C_BIND): Likewise.
17637         [POSIX] (_SC_2_C_VERSION): Likewise.
17638         [POSIX] (_SC_2_PBS): Likewise.
17639         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17640         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17641         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17642         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17643         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17644         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17645         [POSIX] (_SC_BARRIERS): Likewise.
17646         [POSIX] (_SC_BASE): Likewise.
17647         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17648         [POSIX] (_SC_DEVICE_IO): Likewise.
17649         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17650         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17651         [POSIX] (_SC_FD_MGMT): Likewise.
17652         [POSIX] (_SC_FIFO): Likewise.
17653         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17654         [POSIX] (_SC_FILE_LOCKING): Likewise.
17655         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17656         [POSIX] (_SC_IOV_MAX): Likewise.
17657         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17658         [POSIX] (_SC_NETWORKING): Likewise.
17659         [POSIX] (_SC_PAGE_SIZE): Likewise.
17660         [POSIX] (_SC_PASS_MAX): Likewise.
17661         [POSIX] (_SC_PIPE): Likewise.
17662         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17663         [POSIX] (_SC_REGEXP): Likewise.
17664         [POSIX] (_SC_SHELL): Likewise.
17665         [POSIX] (_SC_SIGNALS): Likewise.
17666         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17667         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17668         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17669         [POSIX] (_SC_USER_GROUPS): Likewise.
17670         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17671         [POSIX] (_SC_STREAMS): Likewise.
17672         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17673         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17674         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17675         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17676         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17677         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17678         [POSIX] (_PC_FILESIZEBITS): Likewise.
17679         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17680         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17681         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17682         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17683         [POSIX] (uid_t): Likewise.
17684         [POSIX] (gid_t): Likewise.
17685         [POSIX] (off_t): Likewise.
17686         [POSIX] (pid_t): Likewise.
17687         [POSIX] (cuserid): Allow.
17688         (_SC_2_CHAR_TERM): Require constant.
17689         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17690         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17691         variable.
17692
17693 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17694
17695         * sysdeps/nacl/pthread-pids.h: New file.
17696         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17697         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17698
17699         * nptl/pthread-pids.h: New file.
17700         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17701         * nptl/nptl-init.c: Include <pthread-pids.h>.
17702         (__pthread_initialize_minimal_internal):
17703         Call __pthread_initialize_pids instead of set_tid_address syscall.
17704
17705         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17706         * sysdeps/posix/usleep.c: ... here.
17707
17708 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17709
17710         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17711         call_pselect6 object.
17712         [$(subdir) = io]: Remove call_sync_file_range object.
17713         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17714         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17715         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17716         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17717
17718 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17719
17720         * math/s_cproj.c: Add include "math_private.h".
17721         * math/s_cprojf.c: Likewise.
17722         * math/s_cprojl.c: Likewise.
17723
17724 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17725
17726         [BZ #18244]
17727         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17728         high mantissa bit when testing whether P is a NaN.
17729         * math/libm-test.inc (remainder_test_data): Add more tests.
17730         (remquo_test_data): Likewise.
17731
17732         [BZ #18049]
17733         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17734         below -32, return the argument, with underflow if subnormal.
17735         * math/auto-libm-test-in: Add more tests of atanh.
17736         * math/auto-libm-test-out: Regenerated.
17737
17738 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17739
17740         [BZ #18434]
17741         * nptl/tst-sem15.c: New file.
17742         * nptl/Makefile (tests): Add it.
17743         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17744         s/<</>>/ to fix typo in EOVERFLOW check.
17745         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17746
17747 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17748
17749         * manual/strings.texi (envz_remove): Fix typo in safety
17750         annotations.
17751
17752 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17753             Steve Ellcey  <sellcey@imgtec.com>
17754
17755         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17756         in order to avoid strict alias warnings.
17757         (iruserok_af): Ditto for ra.
17758
17759 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17760
17761         [BZ #17581]
17762         * malloc/hooks.c
17763         (magicbyte): Convert to a function and avoid returning 0x01.
17764         (mem2mem_check): Avoid using a length byte equal to the magic byte.
17765         (mem2chunk_check): Fix unsigned comparisons to zero.
17766         Hoist defs of sz and magic.
17767
17768 2015-05-19  Richard Henderson  <rth@redhat.com>
17769
17770         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
17771
17772         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17773
17774 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17775
17776         [BZ #16159]
17777         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
17778         * malloc/arena.c (arena_lock): Check if arena is corrupt.
17779         (reused_arena): Find a non-corrupt arena.
17780         (heap_trim): Pass arena to unlink.
17781         * malloc/hooks.c (malloc_check_get_size): Pass arena to
17782         malloc_printerr.
17783         (top_check): Likewise.
17784         (free_check): Likewise.
17785         (realloc_check): Likewise.
17786         * malloc/malloc.c (malloc_printerr): Add arena argument.
17787         (unlink): Likewise.
17788         (munmap_chunk): Adjust.
17789         (ARENA_CORRUPTION_BIT): New macro.
17790         (arena_is_corrupt): Likewise.
17791         (set_arena_corrupt): Likewise.
17792         (sysmalloc): Use mmap if there are no usable arenas.
17793         (_int_malloc): Likewise.
17794         (__libc_malloc): Don't fail if arena_get returns NULL.
17795         (_mid_memalign): Likewise.
17796         (__libc_calloc): Likewise.
17797         (__libc_realloc): Adjust for additional argument to
17798         malloc_printerr.
17799         (_int_free): Likewise.
17800         (malloc_consolidate): Likewise.
17801         (_int_realloc): Likewise.
17802         (_int_memalign): Don't touch corrupt arenas.
17803         * malloc/tst-malloc-backtrace.c: New test case.
17804
17805         * Makefile (summarize-tests): Fix return value on success.
17806
17807         * manual/string.texi (Envz Functions): Add envz_remove.
17808
17809 2015-05-18  Roland McGrath  <roland@hack.frob.com>
17810
17811         * sysdeps/posix/opendir.c: Include <stdbool.h>.
17812         (invalid_name): New function, broken out of ...
17813         (__opendirat): ... here.  Call it.
17814         (need_isdir_precheck): New function, broken out of ...
17815         (__opendirat): ... here.  Call it.
17816         Use __fxstatat64, not __xstatat64.
17817         (opendir_oflags): New function, broken out of ...
17818         (__opendirat): ... here.  Call it.
17819         (opendir_tail): New function, broken out of ...
17820         (__opendirat): ... here.  Call it.
17821         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
17822         opendir_tail, rather than punting to __opendirat.
17823         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
17824
17825 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17826
17827         * .gitignore: Ignore generated *.pyc.
17828
17829 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
17830
17831         * include/stdio.h: Define __need_wint_t.
17832         * test-skeleton.c: Avoid `for' loop initial declaration.
17833         * nptl/tst-initializers1.c: Use test-skeleton.c.
17834
17835 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17836
17837         [BZ #18418]
17838         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
17839
17840 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17841
17842         [BZ #16352]
17843         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
17844         (__ieee754_atanh): Force underflow exception for results with
17845         small absolute value.
17846         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
17847         (__ieee754_atanhf): Force underflow exception for results with
17848         small absolute value.
17849         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
17850         (__ieee754_atanh): Force underflow exception for results with
17851         small absolute value.
17852         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
17853         (__ieee754_atanhf): Force underflow exception for results with
17854         small absolute value.
17855         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
17856         (__ieee754_atanhl): Force underflow exception for results with
17857         small absolute value.
17858         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
17859         (__ieee754_atanhl): Force underflow exception for results with
17860         small absolute value.
17861         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
17862         (__ieee754_atanhl): Force underflow exception for results with
17863         small absolute value.
17864         * math/auto-libm-test-in: Do not allow missing underflow
17865         exceptions from atanh.
17866         * math/auto-libm-test-out: Regenerated.
17867
17868         [BZ #18221]
17869         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
17870         2**-28 as threshold for returning x or +/- 1/x.
17871         * math/auto-libm-test-in: Add more tests of tan.
17872         * math/auto-libm-test-out: Regenerated.
17873
17874         [BZ #18220]
17875         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
17876         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
17877         * math/auto-libm-test-in: Add another test of lgamma.
17878         * math/auto-libm-test-out: Regenerated.
17879
17880 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
17881
17882         * stdio-common/printf_fp.c (___printf_fp): Use abs.
17883         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
17884         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
17885         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
17886         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
17887         (ADD2A): Use fabs.  (SUB2A): Use fabs.
17888         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
17889         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
17890         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
17891         (log1): Use fabs.  (my_log2): Use fabs.
17892         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
17893         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
17894         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
17895         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
17896         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
17897         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
17898         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
17899         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
17900         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
17901         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
17902         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
17903
17904 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17905
17906         [BZ #18217]
17907         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
17908         as threshold for returning 1 - x.
17909         * math/auto-libm-test-in: Add more tests of erfc.
17910         * math/auto-libm-test-out: Regenerated.
17911
17912 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
17913
17914         [BZ #18196]
17915         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
17916         threshold for large arguments.
17917         * math/auto-libm-test-in: Add another test of atan.
17918         * math/auto-libm-test-out: Regenerated.
17919
17920         [BZ #16339]
17921         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
17922         (__log1p): Force underflow exception for results with small
17923         absolute value.
17924         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
17925         (__log1pf): Force underflow exception for results with small
17926         absolute value.
17927         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
17928         (__log1p): Force underflow exception for results with small
17929         absolute value.
17930         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
17931         (__log1pf): Force underflow exception for results with small
17932         absolute value.
17933         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
17934         (__log1pl): Force underflow exception for results with small
17935         absolute value.
17936         * math/auto-libm-test-in: Do not allow missing underflow
17937         exceptions from log1p.
17938         * math/auto-libm-test-out: Regenerated.
17939
17940 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
17941             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17942
17943         [BZ #16704]
17944         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
17945
17946 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
17947
17948         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
17949         (libmvec): New variable.
17950         * configure.ac: Added option for mathvec build.
17951         * configure: Regenerated.
17952         * mathvec/Depend: New file.
17953         * mathvec/Makefile: New file.
17954         * shlib-versions: Added libmvec.
17955         * math/Makefile: Added rule for libm.so installation.
17956
17957         * bits/math-vector.h: New file.
17958         * bits/libm-simd-decl-stubs.h: New header.
17959         * math/Makefile (headers): Added new header
17960         libm-simd-decl-stubs.h.
17961         * math/math.h (__MATHCALL_VEC): New macro.
17962
17963         * math/gen-libm-have-vector-test.sh: Script generates series of macros
17964         for conditions in testing functions.
17965         * math/Makefile: Added call of libm-have-vector-test.sh.
17966         * math/libm-test.inc (HAVE_VECTOR): New macros.
17967
17968         * math/libm-test.inc: START refactored.
17969         * math/test-double.c (TEST_MATHVEC): Add define.
17970         * math/test-float.c: Likewise.
17971         * math/test-idouble.c: Likewise.
17972         * math/test-ifloat.c: Likewise.
17973         * math/test-ildoubl.c: Likewise.
17974         * math/test-ldouble.c: Likewise.
17975         * sysdeps/generic/math-tests-arch.h
17976         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
17977         architecture check.
17978
17979         * math/test-double.c (FUNC_TEST): New macro.
17980         * math/test-float.c: Likewise.
17981         * math/test-idouble.c: Likewise.
17982         * math/test-ifloat.c: Likewise.
17983         * math/test-ildoubl.c: Likewise.
17984         * math/test-ldouble.c: Likewise.
17985         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
17986
17987 2015-05-13  Roland McGrath  <roland@hack.frob.com>
17988
17989         * sysdeps/nacl/fdopendir.c: New file.
17990
17991         * dirent/scandir-tail.c: New file.
17992         * dirent/scandir64-tail.c: New file.
17993         * dirent/Makefile (routines): Add them.
17994         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
17995         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
17996         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
17997         [!SCANDIR] (SCANDIR_TAIL): New macro.
17998         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
17999         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18000         (SCANDIRAT): Macro removed.
18001         (SCANDIR_TAIL): New macro.
18002         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18003         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18004         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18005         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18006         (READDIR): Macro removed.
18007         (SCANDIR_TAIL): New macro.
18008         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18009         (SCANDIR_TAIL): New macro.
18010
18011         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18012         * dirent/scandir-cancel.c: ... to this new file.
18013         * dirent/Makefile (routines): Add it.
18014         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18015         * sysdeps/unix/sysv/linux/i386/scandir64.c
18016         (SKIP_SCANDIR_CANCEL): Macro removed.
18017         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18018
18019         * dirent/tst-scandir.c: New file.
18020         * dirent/tst-scandir64.c: New file.
18021         * dirent/Makefile (tests): Add them.
18022
18023 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18024
18025         [BZ #18409]
18026         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18027
18028 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18029
18030         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18031         list.
18032
18033 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18034
18035         * benchtests/bench-strcoll.c: New benchmark.
18036         * benchtests/Makefile: Generate locales and run benchmark.
18037         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18038         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18039         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18040         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18041         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18042         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18043         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18044         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18045         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18046         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18047         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18048         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18049         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18050         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18051         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18052         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18053         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18054         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18055         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18056         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18057         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18058         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18059         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18060         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18061
18062 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18063
18064         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18065         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18066
18067 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18068
18069         * posix/uname-values.h: New file.
18070         * posix/uname.c: Include that instead of <config-name.h>.
18071         * sysdeps/nacl/uname-values.h: New file.
18072         * sysdeps/arm/nacl/uname-values.h: New file.
18073
18074 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18075
18076         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18077         splitting into fields.
18078
18079 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18080
18081         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18082         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18083         * locale/localeinfo.h: Add enum collation_encoding_type.
18084         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18085         * programs/ld-collate.c (collate_output): Add encoding type info.
18086         * string/strcoll_l.c (STRDIFF): New function.
18087         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18088         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18089
18090 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18091
18092         [BZ #18397]
18093         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18094         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18095         <fpu_control.h> instead of <math/fpu_control.c>.
18096         * sysdeps/mips/mips32/fpu/Makefile: New file.
18097
18098 2015-05-11  Andreas Schwab  <schwab@suse.de>
18099
18100         [BZ #18007]
18101         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18102         nss_endgrent.
18103         (_nss_compat_endgrent): Call nss_endgrent.
18104         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18105         nss_endpwent.
18106         (_nss_compat_endpwent): Call nss_endpwent.
18107         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18108         needent, call nss_setspent only if non-zero.
18109         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18110         (internal_endspent): Don't call nss_endspent.
18111         (_nss_compat_endspent): Call nss_endspent.
18112         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18113         Remove.  All uses removed.
18114         (internal_setent): Remove parameter stayopen, add parameter
18115         stream.  Use it instead of global variable.
18116         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18117         (internal_endent, internal_getent): Add parameter stream.  Use it
18118         instead of global variable.
18119         (CONCAT(_nss_files_end,ENTNAME))
18120         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18121         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18122         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18123         uses removed.
18124         (internal_setent, internal_endent): Add parameter stream.  Use it
18125         instead of global variable.
18126         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18127         stream.
18128         (get_next_alias): Add parameter stream.
18129         (_nss_files_getaliasent_r): Pass global stream.
18130         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18131         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18132         (_nss_files_gethostbyname4_r): Pass local stream to
18133         internal_setent, internal_getent and internal_endent.  Remove
18134         locking.
18135
18136 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18137
18138         * tst-strfmon1.c (tests): Update expected currency symbol.
18139
18140 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18141
18142         * sysdeps/nacl/gethostname.c: New file.
18143
18144 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18145
18146         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18147         and sinh.
18148         * math/auto-libm-test-out: Regenerated.
18149         * sysdeps/i386/fpu/libm-test-ulps: Update.
18150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18151
18152 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18153
18154         [BZ #18125]
18155         * stdlib/tst-setcontext3.c: New file.
18156         * stdlib/tst-setcontext3.sh: New file.
18157         * stdlib/Makefile (tests): Add tst-setcontext3.
18158         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18159         to verify test program created output file.
18160         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18161         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18162         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18163         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18164
18165 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18166
18167         [BZ #18383]
18168         * elf/tst-tlsalign.c: New file.
18169         * elf/tst-tlsalign-static.c: New file.
18170         * elf/tst-tlsalign-lib.c: New file.
18171         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18172         (tests-static): Add tst-tlsalign-static.
18173         (modules-names): Add tst-tlsalign-lib.
18174         (test-xfail-tst-tlsalign): New variable.
18175         (test-xfail-tst-tlsalign-static): New variable.
18176
18177         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18178         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18179
18180 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18181
18182         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18183         csqrt, erfc, sin and sincos.
18184         * math/auto-libm-test-out: Regenerated.
18185         * sysdeps/i386/fpu/libm-test-ulps: Update.
18186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18187
18188 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18189
18190         * sysdeps/aarch64/libm-test-ulps: Update.
18191
18192 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18193
18194         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18195         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
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-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18201
18202         [BZ #18265]
18203         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18204         (wcsncpy): Likewise.
18205
18206 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18207
18208         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18209         Assume __ASSUME_FALLOCATE is always true.
18210         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18211         (__posix_fallocate64_l64): Likweise.
18212         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18213         (posix_fallocate): Likewise.
18214         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18215         (__posix_fallocate64_l64): Likewise.
18216         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18217         [!__ASSUME_FALLOCATE]: Add comment.
18218
18219 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18220
18221         * sysdeps/unix/sysv/linux/i386/Makefile
18222         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18223         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18224         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18225         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18226         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18227         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18228         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18229
18230 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18231
18232         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18233         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18234         tgamma.
18235         * math/auto-libm-test-out: Regenerated.
18236         * sysdeps/i386/fpu/libm-test-ulps: Update.
18237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18238
18239 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18240
18241         * math/auto-libm-test-in: Add more tests of tgamma.
18242         * math/auto-libm-test-out: Regenerated.
18243         * sysdeps/i386/fpu/libm-test-ulps: Update.
18244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18245
18246         * math/auto-libm-test-in: Add more tests of tanh.
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         * math/auto-libm-test-in: Add more tests of tan.
18252         * math/auto-libm-test-out: Regenerated.
18253         * sysdeps/i386/fpu/libm-test-ulps: Update.
18254         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18255
18256         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18257         * math/auto-libm-test-out: Regenerated.
18258         * sysdeps/i386/fpu/libm-test-ulps: Update.
18259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18260
18261         * math/auto-libm-test-in: Add another test of pow.
18262         * math/auto-libm-test-out: Regenerated.
18263         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18264
18265         * math/auto-libm-test-in: Add more tests of lgamma.
18266         * math/auto-libm-test-out: Regenerated.
18267         * sysdeps/i386/fpu/libm-test-ulps: Update.
18268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18269
18270         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18271         log1p.
18272         * math/auto-libm-test-out: Regenerated.
18273         * sysdeps/i386/fpu/libm-test-ulps: Update.
18274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18275
18276 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18277
18278         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18279         Elf64_Chdr structs and ELFCOMPRESS constants.
18280
18281 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18282
18283         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18284         expm1.
18285         * math/auto-libm-test-out: Regenerated.
18286         * sysdeps/i386/fpu/libm-test-ulps: Update.
18287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18288
18289         * math/auto-libm-test-in: Add more tests of erf and erfc.
18290         * math/auto-libm-test-out: Regenerated.
18291         * sysdeps/i386/fpu/libm-test-ulps: Update.
18292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18293
18294 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18295
18296         * config.h.in (HAVE_AARCH64_BE): Add.
18297
18298 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18299
18300         * math/auto-libm-test-in: Add more tests of csqrt.
18301         * math/auto-libm-test-out: Regenerated.
18302         * sysdeps/i386/fpu/libm-test-ulps: Update.
18303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18304
18305         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18306         * math/auto-libm-test-out: Regenerated.
18307         * sysdeps/i386/fpu/libm-test-ulps: Update.
18308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18309
18310         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18311
18312 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18313
18314         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18315         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18316
18317         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18318         (euidaccess, eaccess): Define as weak aliases.
18319
18320         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18321         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18322         but __suseconds_t is often 'long int' so some sources assume that
18323         type is being used (e.g. they use %ld to print tv_usec).
18324
18325 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18326
18327         [BZ #18007]
18328         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18329         (CVE-2014-8121)
18330         * nss/tst-nss-getpwent.c: New file.
18331         * nss/Makefile (tests): Add new test.
18332
18333 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18334
18335         [BZ #18346]
18336         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18337         exponents less than 48 as cases where high part of mantissa needs
18338         examining to determine whether argument is integral.
18339         * math/libm-test.inc (round_test_data): Add more tests.
18340
18341 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18342
18343         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18344
18345 2015-04-27  David S. Miller  <davem@davemloft.net>
18346
18347         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18348         __tls_get_addr.
18349         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18350
18351 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18352
18353         [BZ#18333]
18354         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18355
18356 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18357
18358         [BZ#18333]
18359         * time/tzset.c (parse_tzname): Return error on memory allocation
18360         failure.
18361         * test-skeleton.c (struct temp_name_list): Change type of name
18362         member to non-const.
18363         (add_temp_file): Create a copy of the file name.
18364         (delete_temp_files): Deallocate memory.
18365         (create_temp_file): Add comment.
18366
18367 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18368
18369         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18370         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18371
18372 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18373
18374         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18375         * sysdeps/arm/configure: Regenerated.
18376
18377 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18378
18379         [BZ #17715]
18380         * time/tzfile.c (__tzfile_read): Check for large values of
18381         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18382         * time/tzset.c (__tzstring_len): New function, based on the old
18383         __tzstring function.
18384         (__tzstring): Call __tzstring_len.
18385         (parse_tzname): New helper function extracted from
18386         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18387         the input string.
18388         (parse_offset): New helper function extracted from
18389         __tzset_parse_tz.  Replace switch with fallthrough with
18390         initialization before sscanf.
18391         (parse_rule): Likewise.
18392         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18393         new-style function definition.
18394         * timezone/Makefile (tests): Add tst-tzset.
18395         (tst-tzset.out): Dependencies on time zone files.
18396         (tst-tzset-ENV): Set TZDIR.
18397         (testdata/XT%): Copy crafted time zone files.
18398         * timezone/README: Mention crafted time zone files.
18399         * timezone/testdata/XT1, timezone/testdata/XT2,
18400         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18401         files.
18402         * timezone/tst-tzset.c: New test.
18403
18404 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18405
18406         * Makeconfig (+gccwarn): Remove -Winline.
18407
18408 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18409
18410         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18411
18412 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18413
18414         * NEWS: Mention sysconf() cache information support for s390.
18415         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18416
18417 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18418
18419         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18420         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18421         (__nearbyint): Likewise.
18422         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18423         (copysignl): Likewise.
18424
18425 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18426
18427         [BZ #18287]
18428         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18429         based on padding.  (CVE-2015-1781)
18430
18431 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18432
18433         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18434         libc-vdso.h.
18435         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18436         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18437         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18438         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18439         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18440         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18441         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18442         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18443         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18444         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18445         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18446         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18447         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18448         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18449         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18450         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18451         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18452         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18453         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18454         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18455         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18456         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18457         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18458
18459 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18460
18461         * stdlib/setenv.c (__add_to_environ):
18462         Dump core quickly if setenv (..., NULL, ...) is called.
18463         This time, do it the right way, and pacify GCC with a pragma.
18464
18465 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18466
18467         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18468         IMAP->l_prev cannot be null, and #if out the code for the contrary
18469         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18470         believe that NS (&_dl_ns[NSID]) could point outside the array.
18471
18472         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18473         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18474         before using NSID as an index.
18475
18476 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18477
18478         [BZ #17825]
18479         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18480         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18481         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18482
18483 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18484
18485         Add preliminary port to Google Native Client on ARM.
18486         * abi-tags (.*-.*-nacl.*): New entry.
18487         * sysdeps/arm/nacl: New directory.
18488         * sysdeps/nacl: New directory.
18489
18490 2015-04-16  David S. Miller  <davem@davemloft.net>
18491
18492         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18493         lowlevellock-futex.h
18494
18495 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18496
18497         * sysdeps/tile/configure.ac: New file.
18498         * sysdeps/tile/configure: Regenerated.
18499
18500 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18501
18502         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18503         conditionals for weak_alias and libc_hidden_weak.
18504         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18505         libc_hidden_weak and weak_alias.
18506         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18507         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18508         and weak_alias for static one.
18509
18510 2015-04-15  David S. Miller  <davem@davemloft.net>
18511
18512         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18513
18514 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18515
18516         [BZ #18206]
18517         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18518           Use signed comparision instead of substraction to avoid
18519           overflow bug.
18520         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18521           Take the sign of ret.
18522         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18523           Do not expect precise return values. Only the sign matters.
18524         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18525         * wcsmbs/test-wcsncmp.c: New File.
18526         * string/test-strncmp.c: Add wcsncmp support.
18527
18528 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18529
18530         [BZ #6792]
18531         * math/w_log1p.c: New file.
18532         * math/w_log1pf.c: Likewise.
18533         * math/w_log1pl.c: Likewise.
18534         * math/Makefile (libm-calls): Add w_log1p.
18535         * math/s_log1pl.c (log1pl): Remove weak_alias.
18536         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18537         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18538         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18539         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18540         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18541         [NO_LONG_DOUBLE] (log1pl): Likewise.
18542         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18543         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18544         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18545         (log1p): Remove long_double_symbol.
18546         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18547         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18548         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18549         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18550         remove weak_alias for corresponding log1p function.
18551         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18552         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18553         * sysdeps/ia64/fpu/w_log1p.c: New file.
18554         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18555         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18556         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18557
18558 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18559
18560         [BZ #18247]
18561         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18562         decimal exponent by 1.
18563         * stdlib/tst-strtod-round-data: Add more tests.
18564         * stdlib/tst-strtod-round.c (tests): Regenerated.
18565
18566 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18567
18568         * math/auto-libm-test-in: Add more tests of clog and clog10.
18569         * math/auto-libm-test-out: Regenerated.
18570         * sysdeps/i386/fpu/libm-test-ulps: Update.
18571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18572
18573 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18574
18575         * Makeconfig (module-cppflags): Exclude all .v.i files.
18576         (skip-module-cppflags): Variable removed.
18577
18578         * configure.ac (libc_config_ok): Initialize before reading
18579         preconfigure scripts, not after.
18580         * configure: Regenerated.
18581
18582         * test-skeleton.c (TIMEOUT): Move #define to top level.
18583         (main): Grok environment variable TEST_DIRECT.  If set, print
18584         test expectation details into that file and then behave as if
18585         given --direct.
18586
18587 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18588
18589         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18590         warning on 32-bit.
18591
18592 2015-04-08  David S. Miller  <davem@davemloft.net>
18593
18594         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18595
18596 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18597
18598         * math/auto-libm-test-in: Add more tests of atanh.
18599         * math/auto-libm-test-out: Regenerated.
18600         * sysdeps/i386/fpu/libm-test-ulps: Update.
18601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18602
18603         * math/auto-libm-test-in: Add more tests of atan.
18604         * math/auto-libm-test-out: Regenerated.
18605         * sysdeps/i386/fpu/libm-test-ulps: Update.
18606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18607
18608 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18609
18610         * elf/pldd.c (main): Rewrite to use struct
18611         scratch_buffer instead of extend_alloca.
18612         * elf/pldd-xx.c (find_maps): Likewise.
18613         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18614         <alloca.h>.
18615         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18616         scratch_buffer instead of extend_alloca.
18617         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18618         grp/compat-initgroups.c.
18619         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18620         Rewrite to use struct scratch_buffer instead of extend_alloca.
18621         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18622         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18623
18624 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18625
18626         * math/auto-libm-test-in: Add more tests of cbrt.
18627         * math/auto-libm-test-out: Regenerated.
18628         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18629
18630         * math/auto-libm-test-in: Add more tests of cabs.
18631         * math/auto-libm-test-out: Regenerated.
18632         * sysdeps/i386/fpu/libm-test-ulps: Update.
18633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18634
18635         [BZ #18210]
18636         [BZ #18211]
18637         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18638         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18639         computations.
18640         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18641         clog10.
18642         * math/auto-libm-test-out: Regenerated.
18643         * sysdeps/i386/fpu/libm-test-ulps: Update.
18644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18645
18646         [BZ #18197]
18647         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18648         (atan): Set FE_TONEAREST mode for internal computations.
18649         * math/auto-libm-test-in: Add more tests of atan.
18650         * math/auto-libm-test-out: Regenerated.
18651
18652 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18653
18654         [BZ #17930]
18655         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18656
18657 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18658
18659         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18660
18661 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18662
18663         * include/scratch_buffer.h: New file.
18664         * malloc/scratch_buffer_grow.c: Likewise.
18665         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18666         * malloc/scratch_buffer_set_array_size.c: Likewise.
18667         * malloc/tst-scratch_buffer.c: Likewise.
18668         * malloc/Makefile (routines): Add scratch_buffer_grow.
18669         (tests): Add test case.
18670         * malloc/Versions (GLIBC_PRIVATE): Export
18671         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18672         __libc_scratch_buffer_set_array_size.
18673
18674 2015-04-06  Richard Henderson  <rth@redhat.com>
18675
18676         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18677         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18678
18679         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18680         unsigned int before printing.
18681
18682 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18683
18684         [BZ #17596]
18685         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18686         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18687
18688 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18689
18690         * include/libc-internal.h (libc_max_align_t): Define.
18691
18692 2015-04-02  Andreas Schwab  <schwab@suse.de>
18693
18694         [BZ #16850]
18695         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18696
18697 2015-04-02  Mel Gorman  <mgorman@suse.de>
18698
18699         [BZ #17195]
18700         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18701         as well as the main arena.
18702
18703 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18704
18705         [BZ #18185]
18706         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18707         sharing L2 cache to 2 for Silvermont/Knights Landing.
18708
18709 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18710
18711         [BZ #17711]
18712         * config.make.in (have-protected-data): New.
18713         * configure.ac: Check linker support for protected data symbol.
18714         * configure: Regenerated.
18715         * elf/Makefile (modules-names): Add tst-protected1moda and
18716         tst-protected1modb if $(have-protected-data) is yes.
18717         (tests): Add tst-protected1a and tst-protected1b if
18718         $(have-protected-data) is yes.
18719         ($(objpfx)tst-protected1a): New.
18720         ($(objpfx)tst-protected1b): Likewise.
18721         (tst-protected1modb.so-no-z-defs): Likewise.
18722         * elf/tst-protected1a.c: New file.
18723         * elf/tst-protected1b.c: Likewise.
18724         * elf/tst-protected1mod.h: Likewise.
18725         * elf/tst-protected1moda.c: Likewise.
18726         * elf/tst-protected1modb.c: Likewise.
18727
18728 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18729
18730         [BZ #17711]
18731         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18732         indicates it is called from do_lookup_x on relocation against
18733         protected data, skip the data definion in the executable from
18734         copy reloc.
18735         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18736         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18737         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18738         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18739         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18740         otherwise to 0.
18741         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18742         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18743         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18744         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18745         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18746         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18747
18748 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18749
18750         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18751         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18752
18753 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18754
18755         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18756         THREAD_SETMEM_NC.
18757         * sysdeps/x86_64/nptl/tls.h: Ditto.
18758
18759 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18760
18761         * dlfcn/tststatic.c (main): Converted to ...
18762         (do_test): ... this.
18763         (TEST_FUNCTION): New macro.
18764         Include test-skeleton.c.
18765
18766 2015-03-26  Alan Modra  <amodra@gmail.com>
18767
18768         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
18769         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
18770         zero for undefined weak.
18771         (elf_machine_plt_conflict): Similarly.
18772
18773 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18774
18775         * math/auto-libm-test-in: Add more tests of acosh, asinh and
18776         atanh.
18777         * math/auto-libm-test-out: Regenerated.
18778         * sysdeps/i386/fpu/libm-test-ulps: Update.
18779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18780
18781         * math/auto-libm-test-in: Add another test of asin.
18782         * math/auto-libm-test-out: Regenerated.
18783         * sysdeps/i386/fpu/libm-test-ulps: Update.
18784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18785
18786         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
18787         Remove macro.
18788         (LLL_EBX_REG): Likewise.
18789         (LLL_ENTER_KERNEL): Likewise.
18790
18791         * math/auto-libm-test-in: Add more tests of asin.
18792         * math/auto-libm-test-out: Regenerated.
18793         * sysdeps/i386/fpu/libm-test-ulps: Update.
18794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18795
18796         [BZ #18138]
18797         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
18798         libc_do_syscall_args): New structure.
18799         (INTERNAL_SYSCALL_MAIN_0): New macro.
18800         (INTERNAL_SYSCALL_MAIN_1): Likewise.
18801         (INTERNAL_SYSCALL_MAIN_2): Likewise.
18802         (INTERNAL_SYSCALL_MAIN_3): Likewise.
18803         (INTERNAL_SYSCALL_MAIN_4): Likewise.
18804         (INTERNAL_SYSCALL_MAIN_5): Likewise.
18805         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
18806         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
18807         Replace conditional definitions by conditional definitions of ....
18808         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
18809         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
18810         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
18811         (libpthread-sysdep_routines): Add libc-do-syscall.
18812         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
18813         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
18814         to __NR_futex not 240.
18815
18816 2015-03-25  Alan Modra  <amodra@gmail.com>
18817
18818         * NEWS: Advertise TLS optimization.
18819         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
18820         (DT_PPC_NUM): Increment.
18821         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
18822         (CHECK_STATIC_TLS): Use here.
18823         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
18824         TLS descriptors.
18825         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
18826         * sysdeps/powerpc/dl-tls.c: New file.
18827         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
18828         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
18829         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
18830         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
18831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
18832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18834
18835 2015-03-25  Alan Modra  <amodra@gmail.com>
18836
18837         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
18838         for overlapping .opd entries" to "support...".
18839         * sysdeps/powerpc/powerpc64/configure: Regenerate
18840
18841 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18842
18843         * math/auto-libm-test-in: Add more tests of acos.
18844         * math/auto-libm-test-out: Regenerated.
18845         * sysdeps/i386/fpu/libm-test-ulps: Update.
18846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18847
18848         * math/auto-libm-test-in: Add more tests of expm1.
18849         * math/auto-libm-test-out: Regenerated.
18850         * sysdeps/i386/fpu/libm-test-ulps: Update.
18851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18852
18853 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
18854
18855         * math/auto-libm-test-in: Add more tests of cosh and sinh.
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         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
18861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18862
18863         * math/auto-libm-test-in: Add more tests of log2.
18864         * math/auto-libm-test-out: Regenerated.
18865         * sysdeps/i386/fpu/libm-test-ulps: Update.
18866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18867
18868 2015-03-23  Roland McGrath  <roland@hack.frob.com>
18869
18870         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
18871         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
18872         _IO_IS_APPENDING bit in READ_WRITE instead.
18873
18874 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18875
18876         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
18877         (__determine_cpumask_size): Replace extend_alloca with a
18878         variable-length array.  Do not treat res == 0 as an error.
18879
18880 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18881
18882         [BZ #18100]
18883         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
18884         and integer overflow.
18885         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
18886         (main): Add integer overflow tests.
18887         * manual/pattern.texi (Calling Wordexp): Document additional use
18888         for WRDE_SYNTAX.
18889
18890 2015-03-23  Alan Modra  <amodra@gmail.com>
18891
18892         * config.h.in: Remove HAVE_ASM_PPC_REL16.
18893         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
18894         and false branch of conditional.
18895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
18896         Likewise.
18897
18898 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
18899
18900         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
18901         libc-modules.h
18902         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
18903         unused declaration of _hurd_intr_rpc_msg_in_trap.
18904         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
18905         defined instead of whether it is non-zero.
18906         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
18907         input constraint instead of both input and output constraint.  Use ecx
18908         clobber instead of %ecx.
18909         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
18910         mutex_unlock): Use a statement expression instead of an expression list.
18911         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
18912         type to vm_size_t instead of vm_address_t.
18913         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
18914         defined instead of whether it is non-zero.
18915         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
18916         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
18917         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
18918         comparisons with mapaddr.
18919         * nscd/nscd-client.h: Include <time.h>.
18920         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
18921         9th parameter to __vm_region instead of int.
18922         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
18923         * scripts/check-local-headers.sh (exclude): Add device/,
18924         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
18925         cthreads.h.
18926
18927 2015-03-19  Roland McGrath  <roland@hack.frob.com>
18928
18929         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
18930         to account for alignment padding.
18931         * sysdeps/arm/memmove.S: Likewise.
18932
18933 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
18934
18935         * sysdeps/unix/sysv/linux/generic/README: New file.
18936
18937 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
18938
18939         [BZ #18138]
18940         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
18941         (futex_abstimed_wait)
18942         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
18943         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
18944         of lll_futex_timed_wait.
18945
18946 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
18947
18948         [BZ #17542]
18949         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
18950
18951 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
18952
18953         [BZ #17090]
18954         [BZ #17620]
18955         [BZ #17621]
18956         [BZ #17628]
18957         * NEWS: Update.
18958         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
18959         entries with Static TLS too.  Skip entries past the end of the
18960         allocated DTV, from Alan Modra.
18961         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
18962         Static TLS DTV entry set up from...
18963         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
18964         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
18965         * nptl/allocatestack.c (init_one_static_tls): ... and here...
18966         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
18967         for Static TLS.
18968         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
18969         that the slot we find is associated with the given map before
18970         using its generation count.
18971         * nptl_db/db_info.c: Include ldsodefs.h.
18972         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
18973         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
18974         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
18975         (link_map::l_tls_offset): New struct field.
18976         (dtv_t::counter): Likewise.
18977         (rtld_global): New struct.
18978         (_rtld_global): New rtld variable.
18979         (dl_tls_dtv_slotinfo_list): New rtld global field.
18980         (dtv_slotinfo_list): New struct.
18981         (dtv_slotinfo): Likewise.
18982         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
18983         (td_lookup): Rename to...
18984         (td_mod_lookup): ... this.  Use new mod parameter instead of
18985         LIBPTHREAD_SO.
18986         * nptl_db/td_thr_tlsbase.c: Include link.h.
18987         (dtv_slotinfo_list, dtv_slotinfo): New functions.
18988         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
18989         addresses even if the DTV is out of date or missing them.
18990         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
18991         index zero-length arrays.
18992         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
18993         (td_lookup): Make it a macro implemented in terms of...
18994         (td_mod_lookup): ... this declaration.
18995         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
18996         (DB_MAIN_VARIABLE): Likewise.
18997
18998 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18999
19000         [BZ #18134]
19001         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19002
19003 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19004
19005         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19006
19007 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19008
19009         [BZ #18128]
19010         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19011         (atomic_add, atomic_increment_and_test)
19012         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19013
19014 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19015
19016         * stdlib/setenv.c (__add_to_environ):
19017         Dump core quickly if setenv (..., NULL, ...) is called.
19018
19019 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19020
19021         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19022         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19023         all the necessary asm magic in one place.
19024         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19025         using those.
19026
19027 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19028
19029         [BZ #14906]
19030         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19031         traced file mtime. Use consistent log message.
19032         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19033         (register_traced_file): Call install_watches. Always set mtime.
19034         (invalidate_cache): Iterate over all trace files. Call install_watches.
19035         (inotify_check_files): Don't inline. Handle watching parent
19036         directories and configuration file movement in and out.
19037         (handle_inotify_events): New function.
19038         (main_loop_poll): Call handle_inotify_events.
19039         (main_loop_epoll): Likewise.
19040         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19041         (struct traced_file): Use array of inotify fds. Add parent directory,
19042         and basename.
19043         (struct database_dyn): Remove unused file_mtime.
19044         (init_traced_file): New inline function.
19045         (define_traced_file): New macro.
19046         * nss/nss_db/db-init.c: Use define_traced_file.
19047         (_nss_db_init): Use init_traced_file.
19048         * nss/nss_files/files-init.c: Use define_traced_file.
19049         (_nss_files_init): Use init_traced_file.
19050
19051 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19052
19053         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19054         [_LIBC]: Do not include <stdlib.h>.
19055         [!_LIBC] (abort): Remove declaration.
19056         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19057         _FP_STATIC_ASSERT instead of conditionally calling abort.
19058         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19059         (_FP_EXTEND_CNAN): Likewise.
19060         (FP_TRUNC): Likewise.
19061         (__FP_CLZ): Likewise.
19062         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19063
19064 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19065
19066         * manual/string.texi (XPG basename): Fix prototype.
19067
19068 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19069
19070         [BZ #18080]
19071         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19072         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19073         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19074         (__setcontext): Likewise.
19075         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19076         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19077         Call rt_sigprocmask syscall one time to set new signal mask
19078         and retrieve the current signal mask instead of two calls.
19079         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19080         (__swapcontext): Likewise.
19081         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19082         * stdlib/tst-setcontext2.c: New file.
19083
19084 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19085
19086         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19087
19088 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19089
19090         [BZ #18093]
19091         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19092         the wrong size.
19093
19094 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19095
19096         [BZ #18043]
19097         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19098
19099 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19100
19101         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19102         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19103         Remove define.
19104         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19105         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19106         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19107         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19108         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19109         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19110         define.
19111         * nptl_db/td_symbol_list.c (td_lookup): Remove
19112         HAVE_ASM_GLOBAL_DOT_NAME code.
19113         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19114         HAVE_ASM_GLOBAL_DOT_NAME check.
19115         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19116         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19117         (DOT_LABEL): Remove define.
19118         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19119         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19120         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19121         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19122         (__TLS_GET_ADDR): Likewise.
19123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19124         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19125
19126 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19127
19128         [BZ #18111]
19129         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19130         (_FPU_SETCW): Initialize cw from fpsr before storing.
19131         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19132         (fesetexceptflag): Rewrite using fpu_control.h.
19133         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19134
19135 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19136
19137         [BZ #18110]
19138         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19139         asms.
19140         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19141
19142 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19143
19144         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19145         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19146         abort.
19147         (_FP_FMA): Likewise.
19148         (_FP_DIV): Likewise.
19149
19150 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19151
19152         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19153         with 0 in that case.
19154         * Makefile (summarize-tests): New canned sequence, factored out of
19155         commands for targets tests and xtests.  Display summary lines that
19156         don't start with PASS: or XFAIL: rather than ones that do start with
19157         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19158         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19159         do start with ERROR: or FAIL:.
19160         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19161         (except for [$(build-shared) = yes]).
19162         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19163         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19164         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19165         * nptl/Makefile: Revert 2015-03-04 changes.
19166         [$(CXX) empty] (tests-unsupported): New variable.
19167         * debug/Makefile: Likewise.
19168
19169         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19170         gnulib file.  Replace __attribute with __attribute__ throughout.
19171
19172 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19173
19174         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19175
19176 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19177
19178         [BZ #18104]
19179         * math/auto-libm-test-in: Add another test of pow.
19180         * math/auto-libm-test-out: Regenerated.
19181
19182 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19183
19184         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19185         $(config-cflags-nofma).
19186
19187 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19188
19189         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19190         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19191         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19192         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19193         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19194         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19195         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19196         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19197         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19198         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19199         Add comment on closing #endif.
19200
19201 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19202
19203         * posix/wordexp.c (CHAR_IN_SET): New macro.
19204         (parse_param): Use it.
19205
19206 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19207
19208         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19209
19210 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19211
19212         [BZ #18043]
19213         * posix/wordexp.c (parse_param): Fix buffer overflow.
19214         * posix/wordexp-test.c (test_case): Add test case.
19215
19216 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19217
19218         [BZ #18042]
19219         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19220         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19221
19222 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19223
19224         [BZ #18043]
19225         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19226         (do_bz18043): Delete.
19227         (at_page_end): New.
19228         (testit): Refactor to have words at the edge of unreadable page.
19229
19230 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19231
19232         [BZ #16734]
19233         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19234         Cleanup read-only streams as well.
19235         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19236
19237 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19238
19239         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19240         <bits/libc-lockP.h>
19241
19242 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19243
19244         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19245         on [__KERNEL__].
19246         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19247         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19248         * soft-fp/op-common.h (_FP_DECL): Likewise.
19249
19250 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19251
19252         * elf/ifuncdep2.c (global): Replace
19253         __attribute__((visibility("protected"))) with
19254         asm (".protected global").
19255         * elf/ifuncmod1.c (global): Likewise.
19256         * elf/ifuncmod5.c (global): Likewise.
19257
19258 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19259
19260         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19261         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19262
19263 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19264
19265         * manual/install.texi (Configuring and compiling):
19266         Document test-wrapper-env-only.
19267         * INSTALL: Regenerated.
19268
19269 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19270
19271         [BZ #18043]
19272         * posix/wordexp.c (parse_param): Fix buffer overflow.
19273         * posix/wordexp-test.c (do_bz18043): Add test case.
19274
19275 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19276
19277         * time/tst-strptime2.c (do_test): Ensure failing tests are
19278         reported correctly.
19279         * time/tst-strptime3.c (do_test): Likewise.
19280
19281 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19282
19283         Fix aio_error thread-safety.
19284         * sysdeps/pthread/aio_error.c: New file
19285         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19286         synchronization.
19287
19288 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19289
19290         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19291         (group_number, vfprintf): Use it.
19292         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19293         (JUMP, REF): Use it.
19294         (WORK_BUFFER_SIZE): New enum constant.
19295         (process_arg, vfprintf): Use it.
19296
19297 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19298
19299         * manual/errno.texi (Error Messages): Complete example function
19300         by adding missing #define.
19301         (program_invocation_name): Add statement indicating GNU
19302         extension and reference which header file declares the variable.
19303         (program_invocation_short_name): Likewise.
19304
19305 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19306
19307         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19308         compatibility note.
19309
19310 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19311
19312         * Makeconfig (test-wrapper-env-only): New variable.
19313         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19314         then use that with $(test-wrapper-env-only) rather than using
19315         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19316
19317 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19318
19319         [BZ #18082]
19320         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19321         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19322         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19323         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19324         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19325         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19326         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19327         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19328         Likewise.
19329         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19330         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19331         Likewise.
19332         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19333         Likewise.
19334         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19335         Likewise.
19336         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19337         Likewise.
19338         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19339         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19340         Likewise.
19341         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19342         Likewise.
19343         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19344         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19345
19346 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19347
19348         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19349         (ETH_ALEN): New macro.
19350         (struct ether_addr): Use it for length of ether_addr_octet.
19351
19352         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19353         (setdb): Don't call __nss_configure_lookup for "rpc".
19354         (do_test): Don't call test_rpc.
19355         (output_rpcent, test_rpc): Functions moved ...
19356         * sunrpc/test-rpcent.c: ... to this new file.
19357         * sunrpc/Makefile (tests): Add it.
19358
19359         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19360         __xpg_sigpause.
19361         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19362         * nptl/tst-signal6.c: Likewise.
19363         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19364         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19365
19366         * configure.ac (libc_cv_cxx_link_ok): New check.
19367         Reset CXX to empty if it fails to link.
19368         * configure: Regenerated.
19369         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19370         bug-atexit3-lib only if $(CXX) is nonempty.
19371         * nptl/Makefile (tests): Likewise for tst-cancel24.
19372         (tests, tests-static): Likewise for tst-cancel24-static.
19373         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19374         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19375         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19376         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19377
19378 2015-03-04  Andreas Schwab  <schwab@suse.de>
19379
19380         [BZ #17631]
19381         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19382         for non-GCC compilers.
19383         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19384         Likewise.
19385
19386 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19387
19388         [BZ #17776]
19389         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19390         integer before bitwise and assembly operations.
19391         (feclearexcept): Likewise.
19392         * math/test-fenvinline.c: New file.
19393         * math/Makefile: Add test-fenvinline test.
19394
19395 2015-03-03  Alan Modra  <amodra@gmail.com>
19396
19397         [BZ #16512]
19398         * scripts/localplt.awk: Strip off symbol version.
19399         * NEWS: Mention bug fix.
19400
19401 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19402
19403         * sysdeps/pthread/timer_routines.c
19404         (timer_free_list, thread_free_list, thread_active_list): Make static.
19405
19406 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19407
19408         [BZ #17779]
19409         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19410         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19411         Undefine.
19412         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19413         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19414         Likewise.
19415         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19416         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19417         Likewise.
19418
19419 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19420
19421         [BZ #18036]
19422         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19423         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19424
19425 2015-03-02  Andreas Schwab  <schwab@suse.de>
19426
19427         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19428         variable name.
19429
19430 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19431
19432         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19433         Return error status.
19434
19435 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19436
19437         [BZ #15969]
19438         * locale/findlocale.c (_nl_find_locale): Introduce const
19439         version of loc_name and drop unsafe type casts.
19440
19441 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19442
19443         * dlfcn/tststatic2.c (main): Converted to ...
19444         (do_test): ... this.
19445         (TEST_FUNCTION): New macro.
19446         Include test-skeleton.c.
19447
19448 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19449
19450         [BZ #17711]
19451         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19452         (tests-pie): Add vismain.
19453         (CFLAGS-vismain.c): New.
19454         * elf/vismain.c: Add comments for PIE requirement.
19455
19456 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19457
19458         [BZ #18046]
19459         [BZ #18047]
19460         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19461         0x1p-56L as threshold for just returning the argument.
19462         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19463         0x1p-32L as threshold for just returning the argument.
19464         * math/auto-libm-test-in: Add more tests of atanh.
19465         * math/auto-libm-test-out: Regenerated.
19466         * sysdeps/i386/fpu/libm-test-ulps: Update.
19467         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19468
19469 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19470
19471         * string/bcopy.c (bcopy): Call memmove for performance.
19472
19473 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19474
19475         * string/bzero.c (__bzero): Call memset for performance.
19476
19477 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19478
19479         [BZ #18068]
19480         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19481         to 00100000.
19482
19483 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19484
19485         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19486
19487 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19488
19489         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19490         (__kernel_standard): Use CSTR macro when setting exc.name.
19491         * sysdeps/ieee754/Makefile [$(subdir) = math]
19492         (CFLAGS-k_standard.c): Remove variable.
19493
19494         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19495         setting p and q from "else if" to "else".
19496         (qzero): Likewise.
19497         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19498         (qone): Likewise.
19499         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19500         (qzerof): Likewise.
19501         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19502         (qonef): Likewise.
19503         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19504         (qzero): Likewise.
19505         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19506         (qone): Likewise.
19507
19508         [BZ #18038]
19509         [BZ #18039]
19510         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19511         return pi/2 for arguments below 0x1p-113L.
19512         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19513         return pi/2 for arguments below 0x1p-106L.
19514         * math/auto-libm-test-in: Add more tests of acos.
19515         * math/auto-libm-test-out: Regenerated.
19516
19517         [BZ #16351]
19518         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19519         (MO): New macro.
19520         (__ieee754_asin): Force underflow exception for results with small
19521         absolute value.
19522         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19523         (MO): New macro.
19524         (__ieee754_asinf): Force underflow exception for results with
19525         small absolute value.
19526         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19527         (__ieee754_asin): Force underflow exception for results with small
19528         absolute value.
19529         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19530         (__ieee754_asinf): Force underflow exception for results with
19531         small absolute value.
19532         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19533         (__ieee754_asinl): Force underflow exception for results with
19534         small absolute value.
19535         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19536         (__ieee754_asinl): Force underflow exception for results with
19537         small absolute value.
19538         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19539         (__ieee754_asinl): Force underflow exception for results with
19540         small absolute value.
19541         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19542         Include <math.h>.
19543         * math/auto-libm-test-in: Do not mark underflow exceptions as
19544         possibly missing for bug 16351.
19545         * math/auto-libm-test-out: Regenerated.
19546
19547         [BZ #18030]
19548         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19549         of power of 2 down when low part has opposite sign.
19550         * math/libm-test.inc (logb_test_data): Add more tests.
19551
19552 2015-02-26  Andreas Schwab  <schwab@suse.de>
19553
19554         [BZ #18032]
19555         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19556         over collating symbol inside a bracket expression.  Minor cleanup.
19557         * posix/tst-fnmatch3.c (do_test): Add test case.
19558
19559 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19560
19561         [BZ #18029]
19562         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19563         Adjust exponent of power of 2 down when low part has opposite
19564         sign.
19565         * math/libm-test.inc (ilogb_test_data): Add more tests.
19566
19567 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19568
19569         [BZ #15969]
19570         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19571         the previous change.
19572
19573         [BZ #15969]
19574         * locale/findlocale.c (_nl_find_locale): Retry archive search
19575         after alias expansion.
19576
19577 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19578
19579         * iconv/tst-iconv3.c (main): Converted to ...
19580         (do_test): ... this.
19581         (TEST_FUNCTION): New macro.
19582         Include test-skeleton.c.
19583
19584         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19585         (convert): Make function static.
19586         (test_unalign): Likewise.  Add const to argument pointee types.
19587         (main): Replace with static function do_test.
19588         Print "Succeeded." only if RET is zero.
19589         (TEST_FUNCTION): New macro.
19590         Include test-skeleton.c.
19591
19592         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19593         returns a null pointer.
19594
19595 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19596
19597         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19598         to __memcpy_ppc only for static builds.
19599
19600 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19601
19602         [BZ #18020]
19603         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19604         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19605         * math/auto-libm-test-in: Add more tests of asinh.
19606         * math/auto-libm-test-out: Regenerated.
19607         * sysdeps/i386/fpu/libm-test-ulps: Update.
19608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19609
19610 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19611
19612         [BZ #15850]
19613         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19614         and ip6_mtuinfo definitions here.
19615         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19616         in this define too.  Update comment.
19617
19618 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19619
19620         * elf/sprof.c (load_shobj): Tweak error message to match others.
19621
19622 2015-02-24  Kevin Easton  <kevin@guarana.org>
19623
19624         [BZ #16145] (partial fix)
19625         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19626         to reduce lock contention.
19627
19628 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19629
19630         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19631         (struct timex): Update time comment.
19632         (ADJ_SETOFFSET): Define.
19633
19634 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19635
19636         [BZ #18019]
19637         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19638         2**56 not 2**28 as threshold for log (2x) formula.
19639         * math/auto-libm-test-in: Add more tests of acosh.
19640         * math/auto-libm-test-out: Regenerated.
19641         * sysdeps/i386/fpu/libm-test-ulps: Update.
19642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19643
19644 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19645
19646         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19647         parenthesis around the buf assignment.
19648         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19649
19650 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19651
19652         [BZ #16783]
19653         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19654         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19655         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19656         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19657         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19658         * math/libm-test.inc (scalb_test_data): Add more tests.
19659
19660 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19661
19662         [BZ #17916]
19663         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19664         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19665
19666 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19667
19668         [BZ #17523]
19669         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19670         * io/bits/fcntl2.h (open): Use it.
19671         (openat): Likewise.
19672         * io/open.c (__libc_open): Likewise.
19673         * io/open64.c (__libc_open64): Likewise.
19674         * io/open64_2.c (__open64_2): Likewise.
19675         * io/open_2.c (__open_2): Likewise.
19676         * io/openat.c (__openat): Likewise.
19677         * io/openat64.c (__openat64): Likewise.
19678         * io/openat64_2.c (__openat64_2): Likewise.
19679         * io/openat_2.c (__openat_2): Likewise.
19680         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19681         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19682         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19683         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19684         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19685         (__open_nocancel): Likewise.
19686         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19687         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19688         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19689
19690 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19691
19692         [BZ #14841]
19693         * resolv/gethnamaddr.c (getanswer): Skip logging if
19694         RES_USE_DNSSEC is set.
19695         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19696
19697 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19698
19699         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19700
19701 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19702
19703         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19704         201304L, for Unicode 7.
19705
19706 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19707
19708         [BZ #17836]
19709         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19710         shared library.  Add gmon-start.os otherwise.
19711         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19712         $(objpfx)gmon-start.os if builing shared library.
19713         ($(objpfx)g$(static-start-installed-name)): Likewise.
19714
19715 2015-02-23  Andreas Schwab  <schwab@suse.de>
19716
19717         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19718
19719 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19720
19721         [BZ #17269]
19722         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19723         (enlarge_userbuf): Likewise.
19724
19725 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19726
19727         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19728         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19729         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19730         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19731
19732 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19733
19734         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19735         expression inside statement expression.
19736
19737 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19738
19739         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19740         <sysdeps/nptl/lowlevellock.h> and remove macros and
19741         functions that are now defined there.
19742         (SYS_futex): Remove.
19743         (lll_compare_and_swap): Remove.
19744         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19745
19746 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19747
19748         [BZ #17999]
19749         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19750         instead of scandirat.
19751         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19752         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19753         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19754         __scandirat.
19755         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19756         (__scandirat): Declare.  Use libc_hidden_proto.
19757         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19758         Remove variable.
19759         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19760
19761 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19762
19763         [BZ #15319]
19764         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
19765         (MO): New macro.
19766         (__ieee754_atan2): For results with small absolute value, force
19767         underflow exception and remove excess range and precision from
19768         return value.
19769         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
19770         (MO): New macro.
19771         (__ieee754_atan2f): For results with small absolute value, force
19772         underflow exception and remove excess range and precision from
19773         return value.
19774         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
19775         (MO): New macro.
19776         (__atan): For results with small absolute value, force underflow
19777         exception and remove excess range and precision from return value.
19778         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
19779         (MO): New macro.
19780         (__atanf): For results with small absolute value, force underflow
19781         exception and remove excess range and precision from return value.
19782         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
19783         <math.h>.
19784         (__ieee754_atan2): Force underflow exception for results with
19785         small absolute value.
19786         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
19787         <math_private.h>.
19788         (atan): Force underflow exception for results with small absolute
19789         value.
19790         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
19791         (__atanf): Force underflow exception for results with small
19792         absolute value.
19793         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
19794         <math.h>.
19795         (__atanl): Force underflow exception for results with small
19796         absolute value.
19797         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
19798         (__atanl): Force underflow exception for results with small
19799         absolute value.
19800         * sysdeps/x86/fpu/bits/mathinline.h
19801         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
19802         (__ieee754_atan2): Only define inline for long double.
19803         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
19804         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
19805         * math/auto-libm-test-in: Do not mark underflow exceptions as
19806         possibly missing for bug 15319.  Add more tests of atan2.
19807         * math/auto-libm-test-out: Regenerated.
19808         * math/libm-test.inc (casin_test_data): Do not mark underflow
19809         exceptions as possibly missing for bug 15319.
19810         (casinh_test_data): Likewise.
19811         * sysdeps/i386/fpu/libm-test-ulps: Update.
19812
19813 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
19814
19815         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
19816         * sysdeps/mips/bits/endian.h: Fix comments.
19817
19818 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19819
19820         [BZ #17996]
19821         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
19822         (hdestroy_r): Likewise.
19823         (hsearch_r): Likewise.
19824         (__hcreate_r): Declare and use libc_hidden_proto.
19825         (__hdestroy_r): Likewise.
19826         (__hsearch_r): Likewise.
19827         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
19828         (hcreate): Call __hcreate_r instead of hcreate_r.
19829         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
19830         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
19831         as weak alias of __hcreate_r.
19832         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
19833         __hdestroy_r.
19834         (hsearch_r): Rename to __hsearch_r and define as weak alias of
19835         __hsearch_r.
19836         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
19837         Remove variable.
19838         (test-xfail-XPG4/search.h/linknamespace): Likewise.
19839         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
19840         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
19841         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
19842
19843 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19844
19845         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
19846         arena_lock into a single arena_get.
19847
19848 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
19849
19850         * dl-reloc.c: Inlucde libc-internal.h.
19851         (_dl_try_allocate_static_tls): Call ALIGN_UP.
19852         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
19853         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
19854         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
19855         (grow_heap): Likewise.
19856         * malloc/malloc.c: Include libc-internal.h.
19857         (do_check_malloc): Call powerof2.
19858         (sysmalloc): Use pagesize. Call ALIGN_UP.
19859         (systrim): Use pagesize.
19860         (mremap_chunk): Use pagesize. Call ALIGN_UP.
19861         (__libc_valloc): Use pagesize.
19862         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
19863
19864 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19865
19866         [BZ #17991]
19867         * include/sys/resource.h (__getrlimit64): Declare.  Use
19868         libc_hidden_proto.
19869         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
19870         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
19871         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
19872         getrlimit64.
19873         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
19874         __getrlimit64.
19875         [!getrlimit64] (getrlimit64): Define as weak alias of
19876         __getrlimit64.  Use libc_hidden_weak.
19877         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
19878         using __getrlimit64 not __new_getrlimit64.
19879         (__GI_getrlimit64): Likewise.
19880         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
19881         Likewise.
19882         (__GI_getrlimit64): Likewise.
19883         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
19884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
19885         (getrlimit): Add __getrlimit64 alias.
19886         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
19887         Likewise.
19888         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
19889         Remove variable.
19890         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
19891         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
19892
19893 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
19894
19895         * libio/fileops.c: Add missing sys/mman.h
19896         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
19897
19898 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19899
19900         * manual/math.texi (Errors in Math Functions): Clarify goals
19901         regarding inexact and underflow exceptions.
19902
19903 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19904
19905         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
19906         * sysdeps/mips/memset.S: Ditto.
19907
19908 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19909
19910         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
19911
19912 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
19913
19914         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
19915         (__v1longjmp): Remove versioned symbol.
19916         (__v1siglongjmp): Remove alias and versioned symbol.
19917         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
19918         (__v2siglongjmp): Likewise.
19919
19920 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19921
19922         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
19923
19924 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
19925
19926         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
19927
19928 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19929
19930         [BZ #17987]
19931         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
19932         zero result does not depend on the sign resulting from
19933         subtraction.
19934         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19935         Likewise.
19936         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19937         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19938         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19939         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19940         * math/libm-test.inc (remquo_test_data): Add more tests.
19941
19942 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19943
19944         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
19945         Problem reported by J William Piggott.
19946
19947 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19948
19949         [BZ #17978]
19950         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
19951         products 4 * y and 2 * y where those would overflow.
19952         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19953         Likewise.
19954         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19955         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19956         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19957         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19958         * math/libm-test.inc (remquo_test_data): Add more tests.
19959
19960         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
19961
19962         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
19963         [defined _COMPILING_NEWLIB].
19964         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
19965         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
19966
19967         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
19968         [!defined __mips_isa_rev || __mips_isa_rev < 6].
19969
19970 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19971
19972         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
19973         acquired.
19974
19975 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
19976
19977         [BZ #17792]
19978         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
19979         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
19980         HOST_STACK_END_ADDR): Likewise.
19981
19982 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
19983
19984         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
19985         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
19986         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
19987
19988 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19989
19990         * sysdeps/generic/c++-types.data: New file.
19991         * sysdeps/generic/ld.abilist: New file.
19992         * sysdeps/generic/libBrokenLocale.abilist: New file.
19993         * sysdeps/generic/libanl.abilist: New file.
19994         * sysdeps/generic/libc.abilist: New file.
19995         * sysdeps/generic/libcrypt.abilist: New file.
19996         * sysdeps/generic/libdl.abilist: New file.
19997         * sysdeps/generic/libm.abilist: New file.
19998         * sysdeps/generic/libpthread.abilist: New file.
19999         * sysdeps/generic/libresolv.abilist: New file.
20000         * sysdeps/generic/librt.abilist: New file.
20001
20002 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20003
20004         [BZ #17569]
20005         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20006         Compute absolute value of x as modified by fmod, not original
20007         value of x.
20008         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20009         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20010         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20011         RUN_TEST_ffI_f1_mod8.
20012         (remquo_test_data): Add more tests.
20013
20014 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20015
20016         * sysdeps/init_array/pt-crti.S: New file.
20017
20018 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20019
20020         [BZ #17967]
20021         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20022         __builtin_fmaf instead of relying on contraction of a * b + c.
20023
20024 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20025
20026         [BZ #17969]
20027         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20028         node.
20029
20030 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20031
20032         [BZ #17964]
20033         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20034         __builtin_fma instead of relying on contraction of a * b + c.
20035
20036 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20037
20038         * Makeconfig (ASFLAGS): Add -Werror=undef.
20039         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20040         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20041         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20042
20043         * Makeconfig (after-link): New variable.
20044         (+link-pie, +link-pie-tests): Use it.
20045         (+link-static, +link-static-tests): Likewise.
20046         (+link, +link-tests): Likewise.
20047         * Makerules (build-module, build-module-asneeded): Likewise.
20048         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20049         Likewise.
20050         * elf/Makefile ($(objpfx)ld.so): Likewise.
20051
20052 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20053
20054         [BZ #17965]
20055         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20056         both struct timeval and struct timespec.
20057
20058 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20059
20060         [BZ #16560]
20061         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20062         and redefine.
20063         (__ieee754_exp2l): Do not multiply small fractional parts by
20064         M_LN2l.
20065         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20066         small argument.
20067         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20068         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20069         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20070         * math/auto-libm-test-in: Add more tests of exp2.
20071         * math/auto-libm-test-out: Regenerated.
20072
20073 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20074
20075         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20076         unaligned path.
20077
20078 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20079
20080         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20081         little endian.
20082
20083 2015-02-12  Andreas Schwab  <schwab@suse.de>
20084
20085         [BZ #15790]
20086         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20087         Filter out elision flags from value returned in kind.
20088         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20089         * nptl/tst-pthread-mutexattr.c: New file.
20090
20091 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20092
20093         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20094         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20095         into gnu-gnu, and update comment to refer to abi-tags.
20096
20097 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20098
20099         [BZ #15467]
20100         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20101         (__sincos): Set errno to EDOM for infinite argument.
20102         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20103         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20104         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20105         (__sincosl): Set errno to EDOM for infinite argument.
20106         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20107         (__sincosl): Set errno to EDOM for infinite argument.
20108         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20109         (__sincosl): Set errno to EDOM for infinite argument.
20110         * math/libm-test.inc (sincos_test_data): Test errno setting.
20111
20112 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20113
20114         * string/strxfrm_l.c: Remove #define STRCMP.
20115         * string/strcoll_l.c: Remove #define STRLEN.
20116         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20117         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20118
20119 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20120
20121         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20122         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20123         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20124         * sysdeps/mips/mips64/Makefile: ... here.
20125         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20126         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20127         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20128         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20129         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20130         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20131         * sysdeps/mips/mips64/n64/Implies: Likewise.
20132
20133 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20134
20135         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20136         <sys/time.h>, <string.h>, and <errno.h>.
20137         (dest_offset, dest_address, value, zero): Remove unused variables.
20138         (ldouble): Remove typedef.
20139         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20140         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20141         1).  Fix code style.
20142         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20143         (check): Function removed.
20144         (CHECK): New macro.
20145         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20146         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20147         Don't call set_sigaction_FP and remove_sigaction_FP here.
20148         (ldouble_test): Just use 'long double' as macro argument, no need for
20149         the 'ldouble' typedef.
20150         (do_test): Set up SIGFPE handler at start, using plain signal rather
20151         than sigaction.  Fix code style.
20152
20153 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20154
20155         [BZ #17949]
20156         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20157         jump label.
20158
20159 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20160
20161         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20162         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20163
20164         * sysdeps/powerpc/configure.ac: Remove file.
20165         * sysdeps/powerpc/configure: Likewise.
20166
20167         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20168         [sysdep_routines]: Remove wordcopy-power6 object.
20169         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20170         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20171         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20172         (__memmove_ppc32): Likewise.
20173         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20174         file.
20175         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20176         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20177         Remove preprocessor.
20178
20179         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20180         [sysdep_routines]: Remove wide chars objects.
20181         [wcsmbs]: New rule for wide char objects.
20182
20183         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20184         Remove wordcopy-power6 obejct.
20185         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20186         Use local call for wordcopy and memcpy symbols.
20187         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20188         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20189         implementation for loader.
20190         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20191
20192         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20193         Remove wordcopy-power7 object.
20194         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20195         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20196         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20197         (_wordcopy_fwd_dest_aligned): Likewise.
20198         (_wordcopy_bwd_aligned): Likewise.
20199         (_wordcopy_bwd_dest_aligned): Likewise.
20200
20201         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20202         Rewrite to call __memmove_ppc instead of include default
20203         implementation.
20204
20205         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20206         Remove wide chars objects.
20207         [wcsmbs]: New rule for wide char objects.
20208
20209 2015-02-09  Andreas Schwab  <schwab@suse.de>
20210
20211         [BZ #17912]
20212         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20213         in terms of __O_DIRECTORY.
20214
20215 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20216
20217         * time/getdate.c: Include <stdbool.h>.
20218         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20219         call PTR_MANGLE.
20220         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20221         PTR_DEMANGLE.
20222
20223 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20224
20225         Add ersatz _Static_assert on older C hosts
20226         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20227         pre-C11 C platform that is not known to support _Static_assert.
20228
20229 2015-02-07  Richard Braun  <rbraun@sceen.net>
20230
20231         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20232         sigstate.
20233         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20234
20235 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20236
20237         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20238         priority against unexistent AIO_PRIO_DELTA_MAX.
20239         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20240         instead of int.
20241         * misc/fchflags.c (fchflags): Likewise.
20242         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20243         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20244         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20245         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20246         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20247         Declare macros.
20248         [__USE_MISC] (chflags, fchflags): Declare functions.
20249         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20250         EINVAL when nfds is greater than FD_SETSIZE.
20251         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20252         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20253         45.
20254         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20255         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20256         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20257         MACH_RCV_TIMED_OUT.
20258         * hurd/hurd/signal.h (_hurd_self_sigstate,
20259         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20260         Explicit casts from void *.
20261         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20262         * abi-tags: Rename gnu-gnu os into gnu.
20263
20264         [BZ #4719]
20265         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20266         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20267         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20268         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20269         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20270         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20271
20272         [BZ #17944]
20273         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20274         duplicates ADDR->sun_path with sockaddr LEN limitation.
20275         * sysdeps/mach/hurd/connect.c: Include <string.h>
20276         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20277         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20278         * sysdeps/mach/hurd/sendto.c: Likewise.
20279         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20280         implementing it by hand.
20281
20282 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20283
20284         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20285         Use sfi_breg on ldr.
20286         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20287         Likewise.
20288
20289         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20290         it's defined.
20291         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20292         Test SIGSETXID only if it's defined.
20293
20294         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20295
20296         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20297         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20298
20299         * nptl/tst-align2.c: Moved ...
20300         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20301         * nptl/Makefile (tests): Remove tst-align2.
20302         * sysdeps/unix/sysv/linux/Makefile
20303         [$(subdir) = nptl] (tests): Add tst-align-clone.
20304         * nptl/tst-getpid1.c: Moved ...
20305         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20306         * nptl/tst-getpid2.c: Moved ...
20307         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20308         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20309         * sysdeps/unix/sysv/linux/Makefile
20310         [$(subdir) = nptl] (tests): ... here.
20311         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20312         * sysdeps/unix/sysv/linux/Makefile
20313         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20314
20315         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20316         Drop trailing \n from perror argument.  Use return rather than exit.
20317
20318         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20319         on [SA_SIGINFO].
20320         * nptl/tst-cancel21.c (do_test): Likewise.
20321         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20322         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20323         [!SA_SIGINFO]: Make it a stub test.
20324
20325         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20326         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20327
20328         * posix/tst-getlogin.c: Move to ...
20329         * login/tst-getlogin.c: ... here.
20330         * posix/Makefile (tests): Move tst-getlogin to ...
20331         * login/Makefile (tests): ... here.
20332
20333         * libio/tst-atime.c (do_test): Move local variables SV and E
20334         inside [ST_NOATIME] conditional.
20335
20336         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20337
20338         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20339
20340         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20341         (wait_code): New function replaces macro.
20342         Call nanosleep rather than syscall.
20343
20344         * nptl/pt-system.c: Rewritten.  Put everything under
20345         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20346         Use IFUNC to redirect when possible.
20347
20348         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20349         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20350         Use IFUNC to redirect when possible.
20351
20352         * nptl/pt-fork.c: Rewritten.  Put everything under
20353         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20354         Use IFUNC to redirect when possible.
20355         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20356
20357         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20358         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20359         unconditionally nowadays.  This included the only reference to
20360         __vdso_clock_gettime that appears outside libc proper.
20361         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20362         Remove version set (containing only __vdso_clock_gettime).
20363         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20364         Add attribute_hidden.
20365         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20366         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20367         libc_hidden_data_def.
20368         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20369         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20370
20371         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20372         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20373         setrpcent, and getrpcport to ...
20374         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20375         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20376         getrpcbynumber_r, and getrpcent_r to ...
20377         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20378         * inet/getrpcbyname.c: Moved ...
20379         * sunrpc/getrpcbyname.c: ... here.
20380         * inet/getrpcbyname_r.c: Moved ...
20381         * sunrpc/getrpcbyname_r.c: ... here.
20382         * inet/getrpcbynumber.c: Moved ...
20383         * sunrpc/getrpcbynumber.c: ... here.
20384         * inet/getrpcbynumber_r.c: Moved ...
20385         * sunrpc/getrpcbynumber_r.c: ... here.
20386         * inet/getrpcent.c: Moved ...
20387         * sunrpc/getrpcent.c: ... here.
20388         * inet/getrpcent_r.c: Moved ...
20389         * sunrpc/getrpcent_r.c: ... here.
20390         * inet/Makefile (routines): Move those to ...
20391         * sunrpc/Makefile (routines): ... here.
20392         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20393         the $(subdirs) list.
20394         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20395         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20396         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20397         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20398
20399         * elf/Makefile (routines): Include $(all-dl-routines), not just
20400         $(dl-routines).
20401         (rtld-routines): Likewise.  Use = rather than :=.
20402         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20403         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20404         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20405         * sysdeps/arm/Makefile: Likewise.
20406         * sysdeps/i386/Makefile: Likewise.
20407         * sysdeps/x86_64/Makefile: Likewise.
20408         * sysdeps/hppa/Makefile [$(subdir) = elf]
20409         (sysdep_routines, sysdep-rtld-routines): Don't add
20410         $(sysdep-dl-routines) to these.
20411         * sysdeps/ia64/Makefile: Likewise.
20412         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20413         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20414         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20415         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20416         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20417         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20418         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20419         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20420         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20421         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20422         these; sysdep-dl-routines alone is enough.
20423
20424 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20425
20426         [BZ #17932]
20427         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20428         where multiplication results in zero and third argument is finite
20429         and nonzero.
20430         * math/auto-libm-test-in: Add more tests of fma.
20431         * math/auto-libm-test-out: Regenerated.
20432
20433         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20434         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20435         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20436         (_FP_CMP_EQ): Likewise.
20437         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20438
20439         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20440         extra argument CHECK_NAN.  Redefine as wrapper around
20441         _FP_EXTEND_CNAN.
20442
20443 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20444
20445         * version.h (RELEASE): Set to "stable".
20446         (VERSION): Set to "2.21"
20447         * include/features.h (__GLIBC_MINOR__): Set to 21.
20448
20449         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20450
20451 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20452             Paul Eggert  <eggert@cs.ucla.edu>
20453
20454         [BZ #16618]
20455         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20456         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20457         size in bytes. Store needed elements in wpmax. Use needed size
20458         in bytes for extend_alloca.
20459
20460 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20461
20462         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20463         binutls 2.25, and texinfo 5.2.
20464         * INSTALL: Regenerate.
20465         * sysdeps/nios2/configure: Regenerate.
20466         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20467         * manual/contrib.texi: Update.
20468         * po/be.po: Update.
20469         * po/bg.po: Update.
20470         * po/ca.po: Update.
20471         * po/cs.po: Update.
20472         * po/da.po: Update.
20473         * po/de.po: Update.
20474         * po/el.po: Update.
20475         * po/eo.po: Update.
20476         * po/es.po: Update.
20477         * po/fi.po: Update.
20478         * po/fr.po: Update.
20479         * po/gl.po: Update.
20480         * po/hr.po: Update.
20481         * po/hu.po: Update.
20482         * po/ia.po: Update.
20483         * po/id.po: Update.
20484         * po/it.po: Update.
20485         * po/ja.po: Update.
20486         * po/ko.po: Update.
20487         * po/lt.po: Update.
20488         * po/nb.po: Update.
20489         * po/nl.po: Update.
20490         * po/pl.po: Update.
20491         * po/pt_BR.po: Update.
20492         * po/ru.po: Update.
20493         * po/rw.po: Update.
20494         * po/sk.po: Update.
20495         * po/sl.po: Update.
20496         * po/sv.po: Update.
20497         * po/tr.po: Update.
20498         * po/uk.po: Update.
20499         * po/vi.po: Update.
20500         * po/zh_CN.po: Update.
20501         * po/zh_TW.po: Update.
20502
20503         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20504         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20505         * sysdeps/hppa/dl-irel.h: Remove #warning.
20506         * sysdeps/hppa/entry.h: Provide prototype for
20507         __canonicalize_funcptr_for_compare and cast argument.
20508         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20509         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20510         * sysdeps/hppa/sotruss-lib.c: New file.
20511         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20512         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20513         (atomic_compare_and_exchange_bool_acq): Likewise.
20514         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20515         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20516
20517         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20518         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20519         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20520
20521 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20522
20523         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20524         called function in non-PIC case.
20525
20526 2015-01-31  David S. Miller  <davem@davemloft.net>
20527
20528         * sysdeps/sparc/sparc32/bits/atomic.h
20529         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20530         unlock not after it.
20531         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20532         volatile register usage warnings from the compiler.
20533
20534         * sysdeps/sparc/nptl/sem_init.c: Delete.
20535         * sysdeps/sparc/nptl/sem_post.c: Delete.
20536         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20537         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20538         * sysdeps/sparc/sparc32/sem_init.c: New file.
20539         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20540         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20541         padding explicitly initialized.
20542         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20543         padding for in-semaphore spinlock.
20544         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20545         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20546         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20547         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20548         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20549         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20550         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20551         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20552         version.
20553         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20554         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20555
20556 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20557
20558         [BZ #17801]
20559         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20560         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20561         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20562         New.
20563         (index_AVX_Fast_Unaligned_Load): Likewise.
20564         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20565         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20566         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20567         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20568         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20569         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20570         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20571         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20572         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20573
20574 2015-01-29  Andreas Schwab  <schwab@suse.de>
20575
20576         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20577
20578 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20579
20580         [BZ #17892]
20581         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20582
20583 2015-01-28  Martin Sebor  <msebor@redhat.com>
20584
20585         * math/README.libm-test: Clarify. Add "How to read the test output."
20586
20587 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20588
20589         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20590         Define to 0.
20591
20592 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20593
20594         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20595         (__HAVE_64B_ATOMICS): Define to 0.
20596
20597 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20598
20599         [BZ #17885]
20600         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20601         value to set as new flag.
20602
20603         [BZ #16576]
20604         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20605         and use _ARCH_PPCSQ instead.
20606         (__ieee754_sqrt): Likewise.
20607         (__ieee754_sqrtf): Likewise.
20608         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20609         _ARCH_PPCSQ is defined.
20610         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20611         fsqrt instruction.
20612         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20613         _ARCH_PPCSQ is defined.
20614         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20615         fsqrts instruction.
20616         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20617
20618 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20619
20620         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20621         bug (GCC BZ #64739).
20622
20623 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20624
20625         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20626         Mark _retval as used.
20627         (lll_futex_wake_unlock): Likewise.
20628         (lll_futex_timed_wait_requeue_pi): Likewise.
20629
20630         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20631         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20632         register variables.
20633
20634         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20635         libm_hidden_def.
20636
20637         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20638         (__bswap_64): Mark as __always_inline.
20639
20640 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20641
20642         [BZ #15378]
20643         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20644         when none of the search directories exist.
20645
20646 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20647
20648         [BZ #17869]
20649         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20650         power8 in .machine directive.
20651
20652         [BZ #17868]
20653         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20654         set dependency from opd value.
20655
20656 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20657
20658         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20659         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20660         architecture.
20661
20662 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20663
20664         [BZ #17870]
20665         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20666         with uint64_t.
20667         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20668         (uint64_t) 1.
20669         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20670         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20671         Replace 1UL with (uint64_t) 1.
20672         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20673         int with uint64_t.
20674
20675 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20676
20677         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20678         (if_freenameindex): Likewise.
20679
20680         * resource/getrlimit64.c: Add missing libc_hidden_def.
20681
20682 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20683
20684         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20685         __label__.
20686         (_FP_FMA): Likewise.
20687         (_FP_TO_INT_ROUND): Likewise.
20688         (_FP_FROM_INT): Likewise.
20689
20690 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20691
20692         [BZ #16418]
20693         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20694         Make code racy and cancel safe.
20695
20696 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20697
20698         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20699         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20700         attribution.
20701
20702         * pwd/tst-getpw.c: Rewrite.
20703
20704         [BZ #17702]
20705         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20706         (modules-names): Add moddummy1 and moddummy2.
20707         ($(objpfx)tst-rec-dlopen): Define.
20708         * dlfcn/moddummy1.c: New file.
20709         * dlfcn/moddummy2.c: New file.
20710         * dlfcn/tst-rec-dlopen.c: New file.
20711         * elf/dl-cache.c (_dl_load_cache_lookup):
20712         Return char*. Copy result with alloca/strcpy/strdup.
20713         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20714         returns char*. Free cached. If not saving realname
20715         free cached.
20716         * elf/dl-open.c (dl_open_worker): Do not assert that
20717         _r_debug->r_state is RT_CONSISTENT.
20718         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20719         returns char*.
20720
20721 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20722             Carlos O'Donell  <carlos@redhat.com>
20723
20724         [BZ #12674]
20725         * nptl/sem_waitcommon.c: New file.
20726         * nptl/sem_wait.c: Include sem_waitcommon.c.
20727         (__sem_wait_cleanup, do_futex_wait): Remove.
20728         (__new_sem_wait): Adapt.
20729         (__new_sem_trywait): New function.
20730         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20731         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20732         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20733         (sem_timedwait): Adapt.
20734         * nptl/sem_post.c (__new_sem_post): Adapt.
20735         (futex_wake): New function.
20736         (__old_sem_post): Add release MO fence.
20737         * nptl/sem_open.c (sem_open): Adapt.
20738         * nptl/sem_init.c (__new_sem_init): Adapt.
20739         (futex_private_if_supported): New function.
20740         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20741         (__old_sem_getvalue): Add using previous code.
20742         * sysdeps/nptl/internaltypes.h: Adapt.
20743         * nptl/tst-sem13.c (do_test): Adapt.
20744         * nptl/tst-sem11.c (main): Adapt.
20745         * nptl/sem_trywait.c: Remove.
20746         * nptl/DESIGN-sem.txt: Remove.
20747         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20748         (gen-as-const-headers): Remove structsem.sym.
20749         * nptl/structsem.sym: Remove.
20750         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20751         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20752         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20753         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20754         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20755         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20756         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20757         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20758         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20759         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20760         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20761         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20762         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20763         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
20764         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
20765         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
20766         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
20767         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
20768         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
20769         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
20770         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
20771         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
20772
20773 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
20774
20775         * INSTALL: Regenerated.
20776
20777         * po/libc.pot: Regenerated.
20778
20779 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
20780             Sandra Loosemore  <sandra@codesourcery.com>
20781             Andrew Jenner  <andrew@codesourcery.com>
20782             Joseph Myers  <joseph@codesourcery.com>
20783             Nathan Sidwell  <nathan@codesourcery.com>
20784
20785         * NEWS: Mention new Nios II port.
20786         * sysdeps/nios2/Implies: New file.
20787         * sysdeps/nios2/Makefile: New file.
20788         * sysdeps/nios2/Subdirs: New file.
20789         * sysdeps/nios2/Versions: New file.
20790         * sysdeps/nios2/__longjmp.S: New file.
20791         * sysdeps/nios2/abort-instr.h: New file.
20792         * sysdeps/nios2/backtrace.c: New file.
20793         * sysdeps/nios2/bits/endian.h: New file.
20794         * sysdeps/nios2/bits/fenv.h: New file.
20795         * sysdeps/nios2/bits/link.h: New file.
20796         * sysdeps/nios2/bits/setjmp.h: New file.
20797         * sysdeps/nios2/bsd-_setjmp.S: New file.
20798         * sysdeps/nios2/bsd-setjmp.S: New file.
20799         * sysdeps/nios2/configure: New generated file.
20800         * sysdeps/nios2/configure.ac: New file.
20801         * sysdeps/nios2/crti.S: New file.
20802         * sysdeps/nios2/crtn.S: New file.
20803         * sysdeps/nios2/dl-init.c: New file.
20804         * sysdeps/nios2/dl-machine.h: New file.
20805         * sysdeps/nios2/dl-sysdep.h: New file.
20806         * sysdeps/nios2/dl-tls.h: New file.
20807         * sysdeps/nios2/dl-trampoline.S: New file.
20808         * sysdeps/nios2/gccframe.h: New file.
20809         * sysdeps/nios2/gmp-mparam.h: New file.
20810         * sysdeps/nios2/jmpbuf-offsets.h: New file.
20811         * sysdeps/nios2/jmpbuf-unwind.h: New file.
20812         * sysdeps/nios2/ldsodefs.h: New file.
20813         * sysdeps/nios2/libc-tls.c: New file.
20814         * sysdeps/nios2/libm-test-ulps: New file.
20815         * sysdeps/nios2/machine-gmon.h: New file.
20816         * sysdeps/nios2/math-tests.h: New file.
20817         * sysdeps/nios2/math_private.h: New file.
20818         * sysdeps/nios2/memusage.h: New file.
20819         * sysdeps/nios2/nptl/Makefile: New file.
20820         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
20821         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
20822         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
20823         * sysdeps/nios2/nptl/pthreaddef.h: New file.
20824         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
20825         * sysdeps/nios2/nptl/tls.h: New file.
20826         * sysdeps/nios2/preconfigure: New file.
20827         * sysdeps/nios2/s_fma.c: New file.
20828         * sysdeps/nios2/s_fmaf.c: New file.
20829         * sysdeps/nios2/setjmp.S: New file.
20830         * sysdeps/nios2/sfp-machine.h: New file.
20831         * sysdeps/nios2/sotruss-lib.c: New file.
20832         * sysdeps/nios2/stackguard-macros.h: New file.
20833         * sysdeps/nios2/stackinfo.h: New file.
20834         * sysdeps/nios2/start.S: New file.
20835         * sysdeps/nios2/sysdep.h: New file.
20836         * sysdeps/nios2/tls-macros.h: New file.
20837         * sysdeps/nios2/tst-audit.h: New file.
20838         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
20839         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
20840         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
20841         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
20842         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
20843         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
20844         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
20845         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
20846         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
20847         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
20848         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
20849         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
20850         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
20851         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
20852         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
20853         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
20854         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
20855         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
20856         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
20857         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
20858         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
20859         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
20860         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
20861         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
20862         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
20863         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
20864         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
20865         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
20866         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
20867         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
20868         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
20869         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
20870         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
20871         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
20872         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
20873         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
20874         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
20875         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
20876         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
20877         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
20878         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
20879         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
20880         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
20881         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
20882
20883 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20884
20885         [BZ #17844]
20886         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
20887         (getutent): Use weak_alias in non SHARED case
20888         and default_symbol_version in SHARED case.
20889         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
20890         (getutent_r, pututline): Likewise.
20891         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
20892         (getutid): Likewise.
20893         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
20894         (getutid_r): Likewise.
20895         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
20896         (getutline): Likewise.
20897         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
20898         (getutline_r): Likewise.
20899         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
20900         (updwtmp): Likewise.
20901
20902 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20903
20904         [BZ #17848]
20905         * sysdeps/s390/s390-32/memcmp.S
20906         (memcmp_g5): Rename to __memcmp_g5.
20907         * sysdeps/s390/s390-32/memcpy.S
20908         (memcpy_g5): Rename to __memcpy_g5.
20909         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20910         (memcpy_mvcle) Rename to __memcpy_mvcle.
20911         * sysdeps/s390/s390-32/memset.S
20912         (memset_g5): Rename to __memset_g5.
20913         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
20914         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20915         and use prefixed functions.
20916         * sysdeps/s390/s390-32/multiarch/memcmp.S
20917         (memcmp_z196): Rename to __memcmp_z196.
20918         (memcmp_z10): Rename to __memcmp_z10.
20919         (memcmp): Set alias to __memcmp_g5.
20920         (bcmp): Set alias to __memcmp_g5.
20921         * sysdeps/s390/s390-32/multiarch/memcpy.S
20922         (memcpy_z196): Rename to __memcpy_z196.
20923         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20924         (memcpy_z10): Rename to __memcpy_z10.
20925         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20926         (memcpy): Set alias to __memcpy_g5.
20927         * sysdeps/s390/s390-32/multiarch/memset.S
20928         (memset_z196): Rename to __memset_z196.
20929         Jump to __memset_mvcle instead of memset_mvcle.
20930         (memset_z10): Rename to __memset_z10.
20931         Jump to __memset_mvcle instead of memset_mvcle.
20932         (memset_mvcle) Rename to __memset_mvcle.
20933         (memset): Set alias to __memset_g5.
20934         * sysdeps/s390/s390-64/memcmp.S
20935         (memcmp_z900): Rename to __memcmp_z900.
20936         * sysdeps/s390/s390-64/memcpy.S
20937         (memcpy_z900): Rename to __memcpy_z900.
20938         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20939         (memcpy_mvcle) Rename to __memcpy_mvcle.
20940         * sysdeps/s390/s390-64/memset.S
20941         (memset_z900): Rename to __memset_z900.
20942         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
20943         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20944         and use prefixed functions.
20945         * sysdeps/s390/s390-64/multiarch/memcmp.S
20946         (memcmp_z196): Rename to __memcmp_z196.
20947         (memcmp_z10): Rename to __memcmp_z10.
20948         (memcmp): Set alias to __memcmp_z900.
20949         (bcmp): Set alias to __memcmp_z900.
20950         * sysdeps/s390/s390-64/multiarch/memcpy.S
20951         (memcpy_z196): Rename to __memcpy_z196.
20952         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20953         (memcpy_z10): Rename to __memcpy_z10.
20954         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20955         (memcpy): Set alias to __memcpy_z900.
20956         * sysdeps/s390/s390-64/multiarch/memset.S
20957         (memset_z196): Rename to __memset_z196.
20958         Jump to __memset_mvcle instead of memset_mvcle.
20959         (memset_z10): Rename to __memset_z10.
20960         Jump to __memset_mvcle instead of memset_mvcle.
20961         (memset_mvcle) Rename to __memset_mvcle.
20962         (memset): Set alias to __memset_z900.
20963
20964 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
20965
20966         [BZ #17748]
20967         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
20968         __fesetenv instead of fesetenv.
20969
20970 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20971
20972         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
20973         macro.
20974
20975 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20976
20977         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
20978         regression on LE.
20979
20980         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
20981         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
20982         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20983         strncmp-power8 object.
20984         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20985         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
20986         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
20987         * NEWS: Update.
20988
20989 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20990             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20991
20992         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
20993         trailing byte check.
20994
20995 2015-01-13  David S. Miller  <davem@davemloft.net>
20996
20997         * include/signal.h (__sigreturn): Guard with __USE_MISC.
20998
20999 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21000
21001         * login/logout.c (logout): Use memset rather than bzero.
21002         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21003         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21004         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21005         (_gethtbyaddr): Likewise.
21006         * locale/programs/simple-hash.c (bcopy): Macro removed.
21007
21008 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21009
21010         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21011         Add strcmp-power8 object.
21012         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21013         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21014         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21015         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21016         __strcmp_power8 implementation.
21017         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21018         * NEWS: Update.
21019
21020         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21021         Add strncpy-power8 and stpncpy-power8 objects.
21022         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21023         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21024         implementations.
21025         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21026         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21027         __stpncpy_power8 implementation.
21028         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21029         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21030         __strncpy_power8 implementation.
21031         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21032         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21033         * NEWS: Update.
21034
21035         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21036         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21037         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21038
21039         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21040         strncat-power8 object.
21041         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21042         __strcat_power8 implementation.
21043         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21044         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21045         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21046         optimized strcat for power8.
21047
21048         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21049         strcpy-power8 and stpcpy-power8 objects.
21050         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21051         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21052         implementations.
21053         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21054         multiarch stpcpy implementation for POWER8.
21055         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21056         multiarch strcpy implementation for POWER8.
21057         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21058         __strcpy_power8 function.
21059         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21060         stpcpy for POWER8.
21061         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21062         strcpy for POWER8.
21063         * NEWS: Update.
21064
21065 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21066
21067         [BZ #16009]
21068         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21069         weights and rules. Use do_xfrm_cached if data fits in cache,
21070         do_xfrm otherwise.  Moved former main loop to...
21071         * (do_xfrm_cached): New function.
21072         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21073         find_idx, find_position and stack_push.
21074         * (find_idx): New function.
21075         * (find_position): Likewise.
21076         * localedata/sort-test.sh: Added test run for do_xfrm.
21077         * localedata/xfrm-test.c (main): Added command line option
21078         -nocache to run the test with strings that are too large for
21079         the STRXFRM cache.
21080
21081 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21082
21083         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21084         variable to lll_futex_wake call, not the value itself.
21085
21086 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21087
21088         [BZ #17803]
21089         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21090         twom64.  Adjust value to 0x1p-64L.
21091         (__scalblnl): Only return standard underflowing result for K <=
21092         -64 not K <= -63; adjust exponent for underflowing result by 64
21093         not 63.
21094         * math/libm-test.inc (scalbn_test_data): Add more tests.
21095         (scalbln_test_data): Likewise.
21096
21097         [BZ #17834]
21098         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21099         0x1p63L.
21100         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21101         not HX.
21102         * math/libm-test.inc (scalbn_test_data): Add more tests.
21103         (scalbln_test_data): Likewise.
21104
21105 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21106             Stefani Seibold  <stefani@seibold.net>
21107
21108         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21109         (sysdep_routines): Add dl-vdso here, ...
21110         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21111         (sysdep_routines): ... not here.
21112         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21113         fallback when vDSO is not presented.
21114         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21115         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21116         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21117         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21118         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21119         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21120         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21121         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21122         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21123         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21124         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21125         fallback configurable symbol when vDSO is not available.
21126         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21127         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21128         be able to redefine fallback symbol when vDSO is not available.
21129         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21130         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21131
21132 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21133
21134         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21135         (TLS_INIT_TP): Add tm_capable initialization.
21136         (TLS_DEFINE_INIT_TP): Likewise.
21137         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21138         TCB.
21139         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21140         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21141         calculation.
21142         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21143         transactoion is lock elision is built and TCB tm_capable is set.
21144         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21146         (INTERNAL_SYSCALL_NCS): Likewise.
21147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21148         (INTERNAL_SYSCALL_NCS): Likewise.
21149         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21150
21151         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21152         for powerpc.
21153         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21154         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21155         and remove it for 32 bits case.
21156         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21157         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21158         initialization.
21159         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21160         Disable lock elision with rdlocks if elision is not available.
21161
21162         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21163         (sysdep_routines): Add lock elision objects.
21164         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21165         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21166         [pthread_mutex_t] (__elision): Add field.
21167         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21168         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21169         elision definitions for powerpc.
21170         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21171         implementation of lock elision for powerpc.
21172         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21173         implementation of timed lock elision for powerpc.
21174         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21175         implementation of trylock with lock elision for powerpc.
21176         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21177         implementaion of unlock for lock elision for powerpc.
21178         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21179         automatic enable lock elision for mutexes.
21180         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21181         transaction execution definitions for powerpc.
21182         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21183         definitions.
21184         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21185         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21186         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21187         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21188         * NEWS: Update.
21189
21190 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21191
21192         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21193         for #include of <shm-directory.h>.
21194
21195 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21196
21197         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21198         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21199
21200 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21201
21202         [BZ #17791]
21203         * NEWS: Mention bug fix.
21204         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21205         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21206         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21207
21208 2015-01-09  Torvald Riegel <triegel@redhat.com>
21209
21210         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21211
21212 2015-01-09  Torvald Riegel <triegel@redhat.com>
21213
21214         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21215
21216 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21217
21218         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21219         pointer and cast to uintptr_t.
21220
21221 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21222
21223         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21224         removed.
21225         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21226
21227 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21228
21229         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21230         of 0.
21231
21232 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21233
21234         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21235         <nptl/pthreadP.h> instead.
21236         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21237
21238         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21239         already defined.
21240         [__SIGRTMIN] (init): Function removed.
21241         [__SIGRTMIN] (initialized): Variable removed.
21242         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21243         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21244         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21245         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21246         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21247         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21248         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21249         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21250         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21251         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21252         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21253         * sysdeps/nptl/allocrtsig.c: New file.
21254         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21255         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21256         * sysdeps/generic/testrtsig.h: File removed.
21257
21258         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21259         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21260
21261         * nptl/nptl-init.c (pthread_functions): Conditionalize
21262         .ptr__nptl_setxid initialization on [SIGSETXID].
21263
21264         * sysdeps/nptl/sys/procfs.h: New file.
21265         * nptl_db/Makefile (headers): Add it.
21266         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21267
21268         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21269         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21270         * nptl/pthread_attr_setaffinity.c: Include it.
21271         * nptl/pthread_setattr_default_np.c: Likewise.
21272         * nptl/check-cpuset.h: New file.
21273
21274 2015-01-08  Richard Henderson  <rth@redhat.com>
21275
21276         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21277         (CFLAGS-tst-execstack-prog.c): Likewise.
21278         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21279
21280 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21281             Sandra Loosemore  <sandra@codesourcery.com>
21282             Andrew Jenner  <andrew@codesourcery.com>
21283             Joseph Myers  <joseph@codesourcery.com>
21284             Nathan Sidwell  <nathan@codesourcery.com>
21285
21286         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21287         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21288         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21289         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21290         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21291         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21292         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21293         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21294         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21295         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21296         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21297         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21298         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21299         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21300         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21301         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21302         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21303
21304 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21305
21306         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21307         timespec struct member in syscall macro.
21308         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21309         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21310         first timeval struct member in syscall macro.
21311         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21312
21313 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21314
21315         [BZ #17748]
21316         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21317         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21318         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21319         __feupdateenv and define as weak alias of __feupdateenv.  Use
21320         libm_hidden_weak.
21321         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21322         libm_hidden_def.
21323         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21324         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21325         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21326         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21327         libm_hidden_def.
21328         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21329         __feupdateenv and define as weak alias of __feupdateenv.  Use
21330         libm_hidden_weak.
21331         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21332         libm_hidden_def.
21333         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21334         __feupdateenv and define as weak alias of __feupdateenv.  Use
21335         libm_hidden_weak.
21336         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21337         libm_hidden_def.
21338         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21339         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21340         (__feupdateenv): Likewise.
21341         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21342         __feupdateenv and define as weak alias of __feupdateenv.  Use
21343         libm_hidden_weak.
21344         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21345         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21346         libm_hidden_def.
21347         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21348         function.
21349         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21350         libm_hidden_def.
21351         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21352         __feupdateenv instead of feupdateenv.
21353         (default_libc_feupdateenv_test): Likewise.
21354         (libc_feresetround_ctx): Likewise.
21355
21356 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21357
21358         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21359         prototype.
21360
21361 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21362
21363         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21364         COLL_SYM in a couple of places to avoid uninitialized variable
21365         wanings on tilegx gcc 4.8.2.
21366
21367 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21368
21369         * sysdeps/aarch64/strcpy.S: New file.
21370         * sysdeps/aarch64/stpcpy.S: New file.
21371         * NEWS: Updated.
21372
21373 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21374
21375         * sysdeps/aarch64/strrchr.S: New file.
21376         * NEWS: Updated.
21377
21378 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21379
21380         [BZ #17658]
21381         * stdlib/setenv.c: Fix memory leak when setting large,
21382         duplicate string.
21383
21384 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21385
21386         [BZ #17273]
21387         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21388         and tabs from buffer before parsing fstab entry.
21389         * misc/tst-mntent.c (main): Add test for mount entry with
21390         trailing spaces and tabs.
21391
21392 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21393
21394         [BZ #17748]
21395         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21396         * math/fesetround.c (fesetround): Rename to __fesetround and
21397         define as weak alias of __fesetround.  Use libm_hidden_weak.
21398         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21399         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21400         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21401         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21402         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21403         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21404         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21405         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21406         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21407         __fesetround_inline.
21408         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21409         __fesetround_inline instead of __fesetround.
21410         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21411         __fesetround and define as weak alias of __fesetround.  Use
21412         libm_hidden_weak.  Call __fesetround_inline instead of
21413         __fesetround.
21414         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21415         __fesetround and define as weak alias of __fesetround.  Use
21416         libm_hidden_weak.
21417         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21418         Likewise.
21419         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21420         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21421         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21422         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21423         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21424         __fesetround and define as weak alias of __fesetround.  Use
21425         libm_hidden_weak.
21426         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21427         __fesetround instead of fesetround.
21428         (default_libc_feholdexcept_setround): Likewise.
21429         (libc_feholdsetround_ctx): Likewise.
21430         (libc_feholdsetround_noex_ctx): Likewise.
21431
21432         [BZ #17748]
21433         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21434         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21435         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21436         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21437         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21438         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21439         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21440         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21441         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21442         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21443         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21444         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21445         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21446         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21447         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21448         libm_hidden_def.
21449         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21450         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21451         Likewise.
21452         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21453         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21454         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21455         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21456         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21457         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21458         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21459         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21460         __fesetenv instead of fesetenv.
21461         (libc_feresetround_noex_ctx): Likewise.
21462         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21463         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21464         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21465         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21466         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21467         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21468         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21469         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21470         (__feupdateenv): Likewise.
21471         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21472         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21473         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21474         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21475
21476 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21477
21478         [BZ #17806]
21479         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21480         addresses have been freed.
21481
21482 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21483
21484         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21485         and nservall.
21486
21487 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21488
21489         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21490         Clean up check_pf allocation pattern. addresses
21491
21492 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21493
21494         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21495         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21496         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21497         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21498         * nptl/pthread_join.c (pthread_join): Likewise.
21499         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21500         * sysdeps/posix/waitid.c (__waitid): Likewise.
21501         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21502         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21503         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21504         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21505         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21506         Likewise.
21507         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21508         (__libc_pread64): Likewise.
21509         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21510         (__libc_pwrite): Likewise.
21511         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21512         (__libc_pwrite64): Likewsie.
21513         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21514         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21515         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21516         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21517         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21518         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21519         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21521         Likewise.
21522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21523         (__libc_pread64): Likewise.
21524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21525         Likewise.
21526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21527         (__libc_pwrite64): Likewise.
21528         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21529         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21530         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21531         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21532         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21533         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21534         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21535         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21536         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21537         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21538         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21539         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21540         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21541         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21542         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21543         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21544         Likewise.
21545
21546 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21547
21548         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21549         (CFLAGS-test-double.c): Likewise.
21550         (CFLAGS-test-ldouble.c): Likewise.
21551         (CPPFLAGS-test-ifloat.c): Likewise.
21552         (CPPFLAGS-test-idouble.c): Likewise.
21553         (CPPFLAGS-test-ildoubl.c): Likewise.
21554         (CFLAGS-test-test-fenv.c): Remove variable.
21555         (CFLAGS-test-misc.c): Likewise.
21556
21557 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21558
21559         [BZ #17797]
21560         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21561         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21562         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21563         CLOCKS_PER_SEC == 1000000.
21564         * time/clocktest.c (main): Replace %ld with %jd and cast to
21565         intmax_t.
21566
21567 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21568
21569         * sysdeps/generic/unwind-resume.h: New file.
21570         * sysdeps/gnu/unwind-resume.c: Include it.
21571         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21572         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21573         argument list.
21574         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21575         global rather than static.
21576         (_Unwind_Resume): Update user.
21577         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21578         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21579         rather than static.  Add __attribute__ ((cold)).
21580         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21581         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21582         * sysdeps/arm/arm-unwind-resume.S: New file.
21583         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21584         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21585         * sysdeps/arm/Makefile [$(subdir) = csu]
21586         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21587         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21588         Add rt-arm-unwind-resume.
21589         [$(subdir) = nptl]
21590         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21591         Add pt-arm-unwind-resume.
21592         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21593         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21594
21595 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21596
21597         [BZ #17748]
21598         * include/fenv.h (__feholdexcept): Declare.  Use
21599         libm_hidden_proto.
21600         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21601         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21602         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21603         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21604         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21605         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21606         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21607         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21608         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21609         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21610         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21611         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21612         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21613         (feholdexcept): Likewise.
21614         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21615         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21616         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21617         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21618         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21619         __feholdexcept instead of feholdexcept.
21620         (default_libc_feholdexcept_setround): Likewise.
21621
21622 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21623
21624         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21625         to avoid using stl/str to align destination.
21626
21627 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21628
21629         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21630
21631 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21632
21633         [BZ #17796]
21634         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21635         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21636         Define as weak alias not strong alias.
21637
21638 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21639
21640         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21641         bltzal with addiupc.
21642         (RTLD_START): Ditto.
21643
21644 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21645
21646         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21647         for __vdso_* functions in declarations.
21648         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21649         definitions.
21650         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21651         INTERNAL_VSYSCALL): Use struct return types to check for error.
21652
21653         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21654         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21655         function with cast from llround().
21656         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21657         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21658         Define.
21659
21660 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21661
21662         [BZ #17793]
21663         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21664         Define as weak alias not strong alias.
21665
21666         [BZ #17635]
21667         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21668         ...
21669         * ctype/ctype-extn.c: ... here.
21670         (__isblank_l): Move to ...
21671         * ctype/ctype-c99_l.c: ... here.  New file.
21672         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21673         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21674         Remove variable.
21675         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21676         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21677         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21678         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21679         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21680
21681         [BZ #17777]
21682         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21683         (posix_fadvise64): Define as weak alias not strong alias.
21684         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21685         (posix_fallocate64): Likewise.
21686         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21687         Remove variable.
21688         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21689         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21690         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21691         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21692         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21693
21694 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21695
21696         [BZ #16191]
21697         * NEWS: Mention bug fix.
21698         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21699         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21700         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21701         (HOST_STACK_END_ADDR): Likewise.
21702
21703 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21704
21705         [BZ #17748]
21706         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21707         * math/fegetround.c (fegetround): Rename to __fegetround and
21708         define as weak alias of __fegetround.  Use libm_hidden_weak.
21709         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21710         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21711         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21712         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21713         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21714         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21715         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21716         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21717         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21718         Undefine after rather than before function definition; use
21719         parentheses around function name in definition.
21720         (__fegetround): Also undefine macro after function definition.
21721         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21722         __fegetround and define as weak alias of __fegetround.  Use
21723         libm_hidden_weak.  Do not undefine as macro.
21724         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21725         Likewise.
21726         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21727         __fegetround and define as weak alias of __fegetround.  Use
21728         libm_hidden_weak.
21729         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21730         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21731         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21732         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21733         __fegetround and define as weak alias of __fegetround.  Use
21734         libm_hidden_weak.
21735         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21736         __fegetround instead of fegetround.
21737
21738         [BZ #17782]
21739         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21740         Condition macro definition on [__USE_MISC].
21741
21742         [BZ #17781]
21743         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21744         (struct sigaction): Change type of sa_flags field to int.
21745
21746         [BZ #17780]
21747         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21748         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21749         __glibc_reserved0.
21750
21751         * nptl/version.c (banner): Use single year in copyright notice.
21752
21753         * NEWS: Update copyright dates.
21754         * catgets/gencat.c (print_version): Likewise.
21755         * csu/version.c (banner): Likewise.
21756         * debug/catchsegv.sh: Likewise.
21757         * debug/pcprofiledump.c (print_version): Likewise.
21758         * debug/xtrace.sh (do_version): Likewise.
21759         * elf/ldconfig.c (print_version): Likewise.
21760         * elf/ldd.bash.in: Likewise.
21761         * elf/pldd.c (print_version): Likewise.
21762         * elf/sotruss.sh: Likewise.
21763         * elf/sprof.c (print_version): Likewise.
21764         * iconv/iconv_prog.c (print_version): Likewise.
21765         * iconv/iconvconfig.c (print_version): Likewise.
21766         * locale/programs/locale.c (print_version): Likewise.
21767         * locale/programs/localedef.c (print_version): Likewise.
21768         * login/programs/pt_chown.c (print_version): Likewise.
21769         * malloc/memusage.sh (do_version): Likewise.
21770         * malloc/memusagestat.c (print_version): Likewise.
21771         * malloc/mtrace.pl: Likewise.
21772         * manual/libc.texinfo: Likewise.
21773         * nptl/version.c (banner): Likewise.
21774         * nscd/nscd.c (print_version): Likewise.
21775         * nss/getent.c (print_version): Likewise.
21776         * nss/makedb.c (print_version): Likewise.
21777         * posix/getconf.c (main): Likewise.
21778         * scripts/test-installation.pl: Likewise.
21779         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21780
21781 2015-01-02  Will Newton  <will.newton@linaro.org>
21782
21783         * sysdeps/arm/armv7/configure: Removed.
21784         * sysdeps/arm/armv7/configure.ac: Likewise.
21785
21786 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21787
21788         * All files with FSF copyright notices: Update copyright dates
21789         using scripts/update-copyrights.
21790         * intl/plural.c: Regenerated.
21791         * locale/programs/charmap-kw.h: Likewise.
21792         * locale/programs/locfile-kw.h: Likewise.
21793
21794 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21795
21796         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
21797
21798 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21799
21800         [BZ #17748]
21801         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
21802         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
21803         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21804         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21805         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21806         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
21807         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21808         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
21809         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21810         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21811         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21812         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21813         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21814         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21815         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
21816         libm_hidden_def.
21817         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
21818         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
21819         Likewise.
21820         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21821         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21822         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21823         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21824         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
21825         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21826         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21827         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
21828         __fegetenv instead of fegetenv.
21829         (libc_feholdsetround_noex_ctx): Likewise.
21830
21831 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
21832
21833         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
21834         (Elf_MIPS_ABIFlags_v0): New structure.
21835         (EF_MIPS_FP64): Define.
21836         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
21837         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
21838         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
21839         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
21840         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
21841         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
21842         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
21843         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
21844         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
21845         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
21846         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
21847         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
21848         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
21849         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
21850         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
21851         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
21852         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
21853         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
21854         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
21855         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
21856         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
21857         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
21858         field.
21859         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
21860         EF_MIPS_FP64.
21861         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
21862         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
21863         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
21864         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
21865         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
21866         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
21867         * sysdeps/mips/tst-abi-interlink.c: Likewise.
21868         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
21869         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
21870         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
21871         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
21872         record the current FP ABI extension.
21873         (mips-mode-switch): Define to show if kernel headers support mode
21874         switching.
21875         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21876         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
21877         supported SYSV ABI version to 3.
21878         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
21879         feature.
21880
21881 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21882             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21883
21884         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
21885         path.
21886         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
21887
21888 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21889
21890         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
21891         __fegetround and redefine to call __fegetround.  Remove condition
21892         on [!__NO_MATH_INLINES].
21893         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
21894         function.
21895         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
21896         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
21897         Remove macro.
21898         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
21899         instead of <fenv_libc.h>.
21900         (__llrintl): Call fegetround instead of __fegetround.
21901         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
21902         instead of <fenv_libc.h>.
21903         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21904         (__lrintl): Call fegetround instead of __fegetround.
21905         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
21906         instead of <fenv_libc.h>.
21907         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21908         (__rintl): Call fegetround instead of __fegetround.
21909
21910 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21911
21912         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
21913         arrays.
21914
21915 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21916
21917         [BZ #17775]
21918         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
21919         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
21920         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
21921
21922 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21923
21924         * sysdeps/i386/tls-macros.h: Include <features.h>.
21925         (TLS_LE): Use non-PIC version for GCC >= 5.0.
21926         (TLS_IE): Likewise.
21927         (TLS_LD): Likewise.
21928         (TLS_GD): Likewise.
21929         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
21930         define for GCC >= 5.0.
21931
21932 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
21933
21934         * math/test-fenv.c (test_single_exception, set_single_exc,
21935         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
21936         feexcp_mask_test, feenable_test, fe_single_test): Add
21937         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
21938         case where they are not used.
21939         * math/libm-test.inc: Likewise.
21940         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
21941         unused in the absence of FP rounding/exception support.
21942         * stdio-common/tst-printf-round.c: Likewise.
21943         * stdlib/tst-strtod-round.c: Likewise.
21944         * stdlib/tst-strtod-underflow.c: Likewise.
21945
21946 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
21947
21948         [BZ #17723]
21949         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
21950         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
21951         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21952         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21953         libm_hidden_weak.
21954         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
21955         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21956         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
21957         libm_hidden_def.
21958         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21959         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21960         libm_hidden_weak.
21961         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
21962         Likewise.
21963         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
21964         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21965         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21966         libm_hidden_weak.
21967         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21968         libm_hidden_def.
21969         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
21970         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
21971         (__feraiseexcept): Likewise.
21972         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21973         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21974         libm_hidden_weak.
21975         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21976         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21977         libm_hidden_def.
21978         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
21979         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
21980         Use libm_hidden_def.
21981         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
21982         libm_hidden_def.
21983         (feraiseexcept): Define as weak not strong alias.  Use
21984         libm_hidden_weak.
21985         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
21986         New inline function.  Factored out of ...
21987         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
21988         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
21989         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
21990         feraiseexcept.
21991         * math/w_acos.c (__acos): Likewise.
21992         * math/w_asin.c (__asin): Likewise.
21993         * math/w_ilogb.c (__ilogb): Likewise.
21994         * math/w_j0.c (y0): Likewise.
21995         * math/w_j1.c (y1): Likewise.
21996         * math/w_jn.c (yn): Likewise.
21997         * math/w_log.c (__log): Likewise.
21998         * math/w_log10.c (__log10): Likewise.
21999         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22000         * sysdeps/aarch64/fpu/math_private.h
22001         (libc_feupdateenv_test_aarch64): Likewise.
22002         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22003         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22004         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22005         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22006         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22007         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22008         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22009         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22010         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22011         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22012
22013 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22014
22015         [BZ #17732]
22016         * io/test-utime.c (main): Replace %ld with %jd and cast to
22017         intmax_t.
22018         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22019         * nptl/tst-mutex5.c: Include <stdint.h>.
22020         (do_test): Replace %ld with %jd and cast to intmax_t.
22021         * posix/tst-regex.c (run_test): Likewise.
22022         (run_test_backwards): Likewise.
22023         * rt/tst-clock.c: Include <stdint.h>.
22024         (clock_test): Replace %ld with %jd and cast to intmax_t.
22025         * rt/tst-cpuclock1.c: Include <stdint.h>.
22026         (do_test): Replace %lu with %ju and cast to uintmax_t.
22027         * rt/tst-cpuclock2.c: Include <stdint.h>.
22028         (do_test): Replace %lu with %ju and cast to uintmax_t.
22029         * rt/tst-mqueue1.c: Include <stdint.h>.
22030         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22031         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22032         intmax_t.
22033         * rt/tst-mqueue4.c (do_test): Likewise.
22034         * rt/tst-timer4.c: Include <stdint.h>.
22035         (check_ts): Replace %ld with %jd and cast to intmax_t.
22036         (do_test): Likewise.
22037         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22038         and cast to intmax_t.
22039         * sysdeps/pthread/tst-timer.c (main): Likewise.
22040         * time/clocktest.c (main): Likewise.
22041         * time/tst-posixtz.c (do_test): Likewise.
22042         * timezone/tst-timezone.c (main): Likewise.
22043
22044 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22045             H.J. Lu  <hongjiu.lu@intel.com>
22046
22047         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22048         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22049         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22050         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22051         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22052         version if bit_Fast_Unaligned_Load is set.
22053         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22054         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22055         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22056         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22057         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22058         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22059         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22060         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22061         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22062         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22063         to 4.
22064         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22065         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22066         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22067         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22068
22069 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22070
22071         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22072         instead of #if to avoid a Wundef warning.
22073         * stdlib/tst-limits.c (do_test): Likewise.
22074
22075         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22076         parallel other exception macros.
22077         (fegetenv): Convert from macro to extern inline so that it applies
22078         retroactively to inline functions already seen by the compiler.
22079         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22080
22081         * posix/Makefile (before-compile): Use $(objpfx) for
22082         posix-conf-vars-def.h.
22083
22084 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22085
22086         * posix/getconf.c (main): Use size_t for type of I.
22087         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22088         NSPEC.
22089
22090         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22091         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22092         * posix/posix-envs.def: Likewise.
22093         * sysdeps/posix/sysconf.c: Likewise.
22094         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22095         (specs): Remove array.
22096         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22097         array.
22098
22099         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22100         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22101         (__sysconf): Use CONF_IS_* macros.
22102
22103         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22104         ($(objpfx)posix-conf-vars-def.h): New target.
22105         * posix/posix-conf-vars.list: New file.
22106         * posix/posix-conf-vars.h: New file.
22107         * posix/confstr.c: Include posix-conf-vars.h.
22108         (confstr): Use CONF_IS_* macros.
22109         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22110         CONF_IS_* macros.
22111         * scripts/gen-posix-conf-vars.awk: New file.
22112
22113 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22114
22115         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22116         fegetround): Add no-op macros to avoid linknamespace issues.
22117
22118         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22119         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22120
22121         * sysdeps/unix/sysv/linux/tile/sysdep.h
22122         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22123         assembly-specific section to avoid a redefinition warning.
22124
22125         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22126         long before casting to pointer to avoid a cast warning.
22127
22128 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22129
22130         * sysdeps/tile/tilegx/Implies: New file.
22131
22132 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22133
22134         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22135
22136 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22137
22138         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22139
22140 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22141
22142         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22143         not define.
22144         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22145         <kernel-features.h>.
22146         (__utimes) [__NR_utimes]: Make code unconditional.
22147         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22148         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22149         (__ASSUME_UTIMES): Do not undefine.
22150         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22151         (__ASSUME_UTIMES): Likewise.
22152         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22153         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22154         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22155         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22156
22157 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22158
22159         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22160
22161 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22162
22163         [BZ #17747]
22164         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22165         alias to weak alias for j0l, y0l.
22166         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22167         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22168
22169         [BZ #17746]
22170         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22171         conversion.
22172
22173 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22174
22175         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22176         to zero if not already defined.
22177
22178 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22179
22180         [BZ #17724]
22181         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22182         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22183         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22184         (char *) casts added.
22185         * sysdeps/ieee754/k_standardf.c: New file.
22186         * sysdeps/ieee754/k_standardl.c: Likewise.
22187         * math/Makefile (libm-support): Remove k_standard.
22188         (libm-calls): Add k_standard.
22189
22190 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22191
22192         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22193         Optimize to avoid an unnecessary FPCR read.
22194
22195 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22196
22197         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22198         Optimize to reduce FPCR/FPSR accesses.
22199
22200 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22201
22202         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22203         Call libc_fetestexcept_aarch64.
22204
22205 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22206
22207         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22208         Call libc_fesetround_aarch64.
22209
22210 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22211
22212         [BZ #17733]
22213         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22214         (__bind): Do not define as weak alias.
22215         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22216         define.
22217         (__getsockname): Do not define as weak alias.
22218
22219 2014-12-22  Will Newton  <will.newton@linaro.org>
22220
22221         * manual/install.texi: Document that we require bison 2.7
22222         or above.
22223         * INSTALL: Regenerate.
22224         * configure.ac: Use AC_CHECK_PROG_VER instead of
22225         AC_PATH_PROG when checking for bison and check for
22226         version 2.7 or above.
22227         * configure: Regenerate.
22228
22229 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22230
22231         [BZ #17745]
22232         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22233         * sysdeps/tile/ffsll.c (ffsll): To here.
22234
22235         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22236
22237 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22238
22239         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22240         if not defined.
22241         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22242         definition.
22243         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22244         hidden ___tls_get_addr.
22245         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22246         hidden __tls_get_addr.
22247         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22248         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22249         Likewise.
22250
22251 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22252
22253         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22254         _dl_init call.
22255
22256 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22257
22258         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22259         from "call _dl_init@PLT".
22260         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22261
22262 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22263
22264         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22265         guarantees.
22266
22267 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22268
22269         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22270
22271 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22272
22273         [BZ #17744]
22274         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22275         strnlen.
22276
22277 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22278
22279         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22280         of multu on MIPSr6.
22281         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22282         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22283         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22284         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22285         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22286
22287 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22288
22289         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22290         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22291         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22292         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22293         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22294         mips32r6/mips64r6.
22295         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22296
22297 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22298
22299         * string/strncat.c (STRNCAT): Simplify implementation.
22300
22301 2014-12-19  David S. Miller  <davem@davemloft.net>
22302
22303         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22304         access the quad as both a long double and as a series of 4 words.
22305
22306         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22307         link_map->l_info array access.
22308
22309 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22310
22311         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22312
22313         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22314         * math/atest-exp2.c (TIMEOUT): Likewise.
22315         * math/atest-sincos.c (TIMEOUT): Likewise.
22316
22317 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22318
22319         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22320         -Wno-error with -fno-builtin-lround.
22321
22322 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22323
22324         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22325         Contains futex constants and functions moved over from ...
22326         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22327         <lowlevellock-futex.h>.
22328         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22329         (lll_timedwait_tid): Add comments and parentheses around macro
22330         arguments.
22331
22332 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22333
22334         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22335         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22336         (__lll_private_flag): Remove.
22337         (lll_futex_wait): Likewise.
22338         (lll_futex_timed_wait): Likewise.
22339         (lll_futex_wake): Likewise.
22340         (lll_futex_requeue): Likewise.
22341         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22342         (__lll_timedwait_tid): Spell out argument names.
22343         (lll_timedwait_tid): Add comments and parentheses around macro
22344         arguments.
22345         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22346         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22347
22348 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22349
22350         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22351         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22352         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22353         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22354         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22355         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22356         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22357         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22358         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22359         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22360         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22361         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22362         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22363         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22364         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22365         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22366         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22367         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22368         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22369
22370 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22371
22372         * sysdeps/x86_64/x32/Makefile: New file.
22373
22374 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22375
22376         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22377         1L with (mp_limb_t) 1.
22378
22379 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22380
22381         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22382         * nptl/libc_pthread_init.c: ... here.
22383         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22384         * nptl/register-atfork.c: ... here.
22385
22386         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22387         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22388         Use assert_perror to check its return value.
22389         (__gai_create_helper_thread): Likewise.
22390
22391         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22392
22393         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22394
22395 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22396
22397         [BZ #17725]
22398         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22399         __profil_counter.
22400         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22401         Likewise.
22402         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22403         Likewise.
22404         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22405         Likewise.
22406         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22407         (profil_counter): Likewise.
22408         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22409         (profil_counter): Likewise.
22410         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22411         Likewise.
22412         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22413         Likewise.
22414         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22415         (profil_counter): Likewise.
22416         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22417         Likewise.
22418         [!__profil_counter] (profil_counter): Define as weak alias of
22419         __profil_counter.
22420         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22421         (profil_counter): Rename to __profil_counter.
22422         [!__profil_counter] (profil_counter): Define as weak alias of
22423         __profil_counter.
22424         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22425         (profil_counter): Rename to __profil_counter.
22426         [!__profil_counter] (profil_counter): Define as weak alias of
22427         __profil_counter.
22428         * sysdeps/posix/profil.c: Update comment referring to
22429         profil_counter.
22430         (__profil): Use __profil_counter instead of profil_counter.
22431         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22432         __profil_counter.  Use __profil_counter_ushort and
22433         __profil_counter_uint in definitions.
22434         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22435         instead of profil_counter_uint and profil_counter_ushort.
22436
22437         [BZ #17722]
22438         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22439         define as weak alias of __inet_makeaddr.
22440         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22441         as weak alias of __inet_addr.
22442         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22443         as weak alias of __inet_pton.  Use libc_hidden_weak.
22444         * include/arpa/inet.h (__inet_pton): Declare.  Use
22445         libc_hidden_proto.
22446         (inet_makeaddr): Don't use libc_hidden_proto.
22447         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22448         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22449         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22450         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22451         Remove variable.
22452         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22453         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22454
22455 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22456
22457         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22458
22459 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22460
22461         * stdio-common/bug-vfprintf-nargs.c (do_test):
22462         Cast value to intptr_t to avoid format warning
22463         for usage with PRIdPTR printing macro.
22464
22465 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22466
22467         * libio/tst-widetext.c (do_test):
22468         Use format type %td instead of %Zd for ptrdiff_t
22469         in order to avoid format warning.
22470
22471 2014-12-17  Andreas Schwab  <schwab@suse.de>
22472
22473         * nscd/mem.c (gc): Add size_t cast to match printf format.
22474
22475 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22476
22477         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22478         (init): Apply PTR_MANGLE to pointers before storing them.
22479         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22480         before using them.
22481
22482 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22483
22484         [BZ #17719]
22485         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22486         define as weak alias of __memrchr.
22487         (__memrchr): Do not define as strong alias of memrchr.
22488         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22489         Remove variable.
22490         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22491         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22492         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22493
22494         [BZ #17717]
22495         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22496         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22497         (if_indextoname): Rename to __if_indextoname and define as weak
22498         alias of __if_indextoname.  Use libc_hidden_weak.
22499         (if_freenameindex): Rename to __if_freenameindex and define as
22500         weak alias of __if_freenameindex.
22501         (if_nameindex): Rename to __if_nameindex and define as weak alias
22502         of __if_nameindex.
22503         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22504         __if_nametoindex and define as weak alias of __if_nametoindex.
22505         Use libc_hidden_weak.
22506         (if_freenameindex): Rename to __if_freenameindex and define as
22507         weak alias of __if_freenameindex.
22508         (if_nameindex): Rename to __if_nameindex and define as weak alias
22509         of __if_nameindex.
22510         (if_indextoname): Rename to __if_indextoname and define as weak
22511         alias of __if_indextoname.  Use libc_hidden_weak.
22512         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22513         __if_nametoindex and define as weak alias of __if_nametoindex.
22514         Use libc_hidden_weak.
22515         (if_freenameindex): Rename to __if_freenameindex and define as
22516         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22517         (if_nameindex_netlink): Use __if_freenameindex instead of
22518         if_freenameindex.
22519         (if_nameindex): Rename to __if_nameindex and define as weak alias
22520         of __if_nameindex.  Use libc_hidden_weak.
22521         (if_indextoname): Rename to __if_indextoname and define as weak
22522         alias of __if_indextoname.  Use libc_hidden_weak.
22523         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22524         libc_hidden_proto.
22525         [!_ISOMAC] (__if_freenameindex): Likewise.
22526         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22527         if_nametoindex.
22528         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22529         variable.
22530         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22531         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22532         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22533         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22534         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22535         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22536         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22537
22538         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22539         Remove variable.
22540         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22541         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22542
22543 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22544
22545         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22546         subscript above bounds'
22547
22548         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22549         bounds.
22550
22551 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22552
22553         * libio/tst-fopenloc.c: Use test-skeleton.c.
22554
22555         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22556         (entry): Rename to ITEM.
22557         (do_test, comp): Adjust.
22558
22559         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22560
22561 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22562
22563         * string/tester.c: Include <libc-internal.h>.
22564         (test_memset): Ignore -Wmemset-transposed-args.
22565
22566 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22567
22568         * misc/tst-mntent2.c (do_test): Fix warning.
22569
22570 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22571
22572         * elf/tst-unique4lib.cc(a): Mark as used.
22573
22574 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22575
22576         [BZ #17630]
22577         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22578         names.
22579
22580 2014-12-16  Allan McRae  <allan@archlinux.org>
22581
22582         * stdio-common/Makefile (tests): Re-add bug26.
22583
22584 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22585
22586         [BZ #17657]
22587         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22588         static array.
22589
22590 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22591
22592         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22593         (__lll_lock_wait): Likewise.
22594         (__lll_timedlock_wait): Likewise.
22595         (__lll_timedwait_tid): Likewise.
22596         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22597         (__lll_robust_timedlock_wait): Likewise.
22598         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22599         (lll_cond_trylock): Likewise.
22600         (__lll_lock): Likewise.
22601         (__lll_robust_lock): Likewise.
22602         (__lll_cond_lock): Likewise.
22603         (lll_robust_cond_lock): Likewise.
22604         (__lll_timedlock): Likewise.
22605         (__lll_robust_timedlock): Likewise.
22606         (__lll_unlock): Likewise.
22607         (__lll_robust_unlock): Likewise.
22608         (lll_wait_tid): Likewise.
22609         (lll_timedwait_tid): Likewise.
22610
22611 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22612
22613         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22614
22615 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22616
22617         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22618
22619 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22620
22621         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22622         * stdio-common/tst-sprintf.c: Likewise.
22623
22624 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22625
22626         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22627
22628 2014-12-15  Jeff Law  <law@redhat.com>
22629
22630         [BZ #16617]
22631         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22632         on the heap.  (CVE-2012-3406)
22633         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22634         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22635         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22636
22637 2014-12-15  Will Newton  <will.newton@linaro.org>
22638
22639         * manual/install.texi: Bump required version of texinfo
22640         to 4.7 from 4.5.
22641         * INSTALL: Regenerated.
22642         * configure.ac: Check for makeinfo version 4.7 and above.
22643         * configure: Regenerated.
22644
22645 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22646
22647         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22648         PREFIX, string constant to insert between directory and name.
22649         * sysdeps/posix/shm_open.c: Update caller.
22650         * sysdeps/posix/shm_unlink.c: Likewise.
22651         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22652         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22653         (SEM_SHM_PREFIX): New macro.
22654         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22655         [$(have-thread-library) = no].
22656         * nptl/Makefile (libpthread-routines): Add shm-directory.
22657         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22658         * sysdeps/nptl/shm-directory.h: New file.
22659         * sysdeps/posix/shm-directory.c
22660         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22661         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22662         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22663         INTERNAL_SYSCALL.
22664         (__where_is_shmfs): Function removed.
22665         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22666         Variables removed.
22667         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22668         Use SHM_GET_NAME.
22669         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22670
22671         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22672         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22673         unconditional for use inside libpthread.
22674         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22675
22676 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22677
22678         * nptl/pthread_getaffinity.c: New file.
22679         * nptl/pthread_setaffinity.c: New file.
22680         * nptl/pthread_getname.c: New file.
22681         * nptl/pthread_setname.c: New file.
22682
22683         * nptl/pthread_create.c (START_THREAD_DEFN)
22684         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22685
22686 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22687             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22688
22689         * resolv/res_send.c (send_vc): Disable warning resplen may
22690         be used uninitialized.
22691
22692 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22693
22694         * nptl/tst-mutex6.c
22695         (ATTR_NULL): New define checks ATTR against NULL.
22696         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22697         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22698
22699 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22700
22701         [BZ #17581]
22702         * malloc/hooks.c
22703         (mem2mem_check): Revert my previous change.
22704         (malloc_check_get_size): Revert my previous change.
22705         (mem2chunk_check): Revert my previous change.
22706
22707 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22708
22709         * sysdeps/posix/shm-directory.c: New file.
22710         * sysdeps/posix/shm-directory.h: New file.
22711         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22712         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22713         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22714         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22715         Transmute EPERM to EACCES.
22716         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22717         from ...
22718         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22719         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22720
22721 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22722
22723         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22724         pointer and cast to uintptr_t.
22725         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22726         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22727         Add cast to avoid warning.
22728         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22729
22730 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22731
22732         * nptl/semaphore.h: Move to ...
22733         * sysdeps/pthread/semaphore.h: ... here.
22734         * Makefile (installed-headers): Change nptl/semaphore.h to
22735         sysdeps/pthread/semaphore.h.
22736
22737 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22738
22739         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22740         generated error format strings.
22741
22742         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22743         -Wformat-extra-args warnings for scanf formats.
22744         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22745         test of zero-length format (duh).
22746         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22747         corner-case scanf format test.
22748         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22749         generated fprintf format string.
22750         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22751         corner-case sprintf format tests.
22752         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22753         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22754         -Wformat-extra-args warnings throughout.
22755         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22756         (CFLAGS-scanf4.c): Likewise.
22757         (CFLAGS-scanf7.c): Likewise.
22758         (CFLAGS-tst-sprintf.c): Likewise.
22759         (CFLAGS-tst-printf.c): Likewise.
22760         (CFLAGS-tst-printfsz.c): Likewise.
22761
22762 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22763
22764         * include/cpio.h: New file.
22765         * include/fmtmsg.h: Likewise.
22766
22767         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
22768         corresponding format argument to size_t.
22769         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
22770         arguments.
22771         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
22772         corresponding format argument to size_t.
22773         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
22774         arguments.
22775         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
22776         corresponding format argument to size_t.
22777         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
22778         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
22779         (CFLAGS-tst-mbswcs2.c): Likewise.
22780         (CFLAGS-tst-mbswcs3.c): Likewise.
22781         (CFLAGS-tst-mbswcs4.c): Likewise.
22782         (CFLAGS-tst-mbswcs5.c): Likewise.
22783         (CFLAGS-tst-trans.c): Likewise.
22784
22785 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22786
22787         * posix/regexbug1.c (main): Use "%s" format with regerror results,
22788         rather than assuming they won't contain any '%'s.
22789
22790 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
22791
22792         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
22793         inhibit_loop_to_libcall to avoid recursive calls.
22794         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
22795         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
22796
22797 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22798
22799         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
22800         prototype.
22801
22802 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22803
22804         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
22805         integer value instead of boolean.
22806
22807 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22808
22809         * malloc/malloc.c: Fix powerof2 check.
22810
22811 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22812
22813         * locale/programs/locfile.h (maybe_swap_uint32):
22814         Remove inline and add unused attribute.
22815
22816 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22817
22818         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
22819         Truncating assembler expression to a .long expression.
22820
22821 2014-12-11  Andreas Schwab  <schwab@suse.de>
22822
22823         * elf/rtld.c (struct map_args): Constify str member.
22824         (do_preload): Constify fname argument.
22825
22826 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22827
22828         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
22829         constants definition.
22830
22831 2014-12-11  Andreas Schwab  <schwab@suse.de>
22832
22833         [BZ #16657]
22834         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
22835         FORCE_ELISION instead of DO_ELISION.
22836         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
22837         Remove.
22838         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
22839         Likewise.
22840
22841         * iconvdata/gconv-modules: Remove duplicate entry.
22842
22843 2014-12-11  Will Newton  <will.newton@linaro.org>
22844
22845         Merge gettext 0.19.3 into intl/.
22846
22847         This involves a number of cosmetic changes to comments
22848         and ANSI function definitions and prototypes throughout
22849         all the files. The gettext copyright header is used but
22850         with the date ranges taken from the glibc copy.
22851
22852         * NEWS: Add gettext merge to 2.21.
22853         * intl/bindtextdom.c: Switch to gettext copyright.
22854         Use ANSI definitions and prototypes.
22855         Use gl_* locking primitives rather than __libc_* ones.
22856         Use __builtin_expect rather than __glibc_likely/unlikely.
22857         * intl/dcgettext.c: Switch to gettext copyright.
22858         Use ANSI definitions and prototypes.
22859         * intl/dcigettext.c: Switch to gettext copyright.
22860         Use ANSI definitions and prototypes.
22861         (INTDIV0_RAISES_SIGFPE): New define.
22862         Use gl_* locking primitives rather than __libc_* ones.
22863         Include eval-plural.h instead of plural-eval.c.
22864         Use __builtin_expect rather than __glibc_likely/unlikely.
22865         * intl/dcngettext.c: Switch to gettext copyright.
22866         Use ANSI definitions and prototypes.
22867         * intl/dgettext.c: Likewise.
22868         * intl/dngettext.c: Likewise.
22869         * intl/plural-eval.c: Renamed to...
22870         * intl/eval-plural.h: ...this.
22871         * intl/explodename.c: Switch to gettext copyright.
22872         Use ANSI definitions and prototypes.
22873         (_nl_explode_name): Use strchr instead of __rawmemchr.
22874         * intl/finddomain.c: Switch to gettext copyright.
22875         Use ANSI definitions and prototypes.
22876         Use gl_* locking primitives rather than __libc_* ones.
22877         (_nl_find_domain): Use malloc rather than alloca for
22878         allocation of temporary locale name.
22879         * intl/gettext.c: Switch to gettext copyright.
22880         Use ANSI definitions and prototypes.
22881         * intl/gettextP.h: Switch to gettext copyright.
22882         Use ANSI definitions and prototypes.
22883         Use gl_* locking primitives rather than __libc_* ones.
22884         * intl/gmo.h: Switch to gettext copyright.
22885         (struct sysdep_string): Move struct segment_pair outside of
22886         struct definition.
22887         * intl/hash-string.c: Use ANSI definitions and prototypes.
22888         * intl/hash-string.h: Switch to gettext copyright.
22889         Use ANSI definitions and prototypes.
22890         * intl/l10nflist.c: Switch to gettext copyright.
22891         Use ANSI definitions and prototypes.
22892         (_nl_normalize_codeset): Avoid integer overflow.
22893         * intl/loadinfo.h: Switch to gettext copyright.
22894         Use ANSI definitions and prototypes.
22895         (LIBINTL_DLL_EXPORTED): New define.
22896         (PATH_SEPARATOR): New define.
22897         * intl/loadmsgcat.c: Switch to gettext copyright.
22898         * intl/localealias.c: Switch to gettext copyright.
22899         Use ANSI definitions and prototypes.
22900         (_nl_expand_alias): Use PATH_SEPARATOR.
22901         * intl/ngettext.c: Switch to gettext copyright.
22902         Use ANSI definitions and prototypes.
22903         * intl/plural-exp.c: Likewise.
22904         * intl/plural-exp.h: Switch to gettext copyright.
22905         Use ANSI definitions and prototypes.
22906         (struct expression): Move definition of enum operator outside
22907         of struct definition.
22908         * intl/plural.c: Regenerate.
22909         * intl/plural.y: Switch to gettext copyright.
22910         Use ANSI definitions and prototypes.
22911         Port to bison 3.0.
22912         * intl/textdomain.c: Switch to gettext copyright.
22913         Use ANSI definitions and prototypes.
22914         Use gl_* locking primitives rather than __libc_* ones.
22915
22916 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
22917
22918         * debug/warning-nop.c: Add used atrribute.
22919
22920 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22921
22922         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
22923
22924         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
22925         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
22926         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
22927
22928 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22929             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22930
22931         [BZ #17634]
22932         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
22933         Undefine after defining function.  Define as weak alias of
22934         __wcschr.  Use libc_hidden_weak.
22935         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
22936         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
22937         (libc_hidden_def): Also define __GI___wcschr alias.
22938         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
22939         __wcschr and define as weak alias of __wcschr.
22940         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
22941         __wcschr.
22942         [!WCSCHR] (DEFAULT_WCSCHR): Define.
22943         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
22944         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
22945         libc_hidden_weak.  Do not use libc_hidden_def.
22946         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
22947         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
22948         __GI___wcschr alias.
22949         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
22950         [IS_IN (libc)] (wcschr): Define as macro expanding to
22951         __redirect_wcschr.
22952         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
22953         [IS_IN (libc)] (__wcschr_power6): Likewise.
22954         [IS_IN (libc)] (__wcschr_power7): Likewise.
22955         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
22956         instead of wcschr.
22957         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
22958         __libc_wcschr.
22959         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
22960         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
22961         __wcschr and define as weak alias of __wcschr.  Use
22962         libc_hidden_builtin_def.
22963         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
22964         as weak alias of __wcschr.  Use libc_hidden_weak.
22965         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
22966         wcschr.
22967         * time/era.c (_nl_init_era_entries): Likewise.
22968         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
22969         variable.
22970         (test-xfail-XPG3/time.h/linknamespace): Likewise.
22971         (test-xfail-XPG4/time.h/linknamespace): Likewise.
22972
22973 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22974
22975         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
22976         format for long int variable.
22977
22978 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
22979
22980         [BZ #10672]
22981         * manual/search.texi: (Array Sort Function): Remove claim how to make
22982         qsort stable.
22983
22984 2014-12-10  Andreas Schwab  <schwab@suse.de>
22985
22986         [BZ #12847]
22987         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
22988         user-controlled locks.
22989
22990 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
22991
22992         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
22993         register.
22994
22995 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22996
22997         * configure.ac (--disable-werror): New configure option.
22998         (enable_werror): New AC_SUBST.
22999         * configure: Regenerated.
23000         * config.make.in (enable-werror): New variable.
23001         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23002         -Wno-error=undef.
23003         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23004         * manual/install.texi (Configuring and compiling): Document
23005         --disable-werror.
23006         * INSTALL: Regenerated.
23007         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23008         (CFLAGS-tst-chk2.c): Likewise.
23009         (CFLAGS-tst-chk3.c): Likewise.
23010         (CFLAGS-tst-chk4.cc): Likewise.
23011         (CFLAGS-tst-chk5.cc): Likewise.
23012         (CFLAGS-tst-chk6.cc): Likewise.
23013         (CFLAGS-tst-lfschk1.c): Likewise.
23014         (CFLAGS-tst-lfschk2.c): Likewise.
23015         (CFLAGS-tst-lfschk3.c): Likewise.
23016         (CFLAGS-tst-lfschk4.cc): Likewise.
23017         (CFLAGS-tst-lfschk5.cc): Likewise.
23018         (CFLAGS-tst-lfschk6.cc): Likewise.
23019
23020         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23021         (main): Disable -Wdeprecated-declarations around calls to
23022         register_printf_function.
23023
23024         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23025         (do_test): Disable -Wdiv-by-zero around some calls to
23026         fwrite_unlocked and fread_unlocked.
23027
23028         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23029         (DIAG_POP_NEEDS_COMMENT): Likewise.
23030         (_DIAG_STR1): Likewise.
23031         (_DIAG_STR): Likewise.
23032         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23033         * stdio-common/bug21.c: Include <libc-internal.h>.
23034         (do_test): Disable -Wformat around call to sscanf.
23035         * stdio-common/scanf14.c: Include <libc-internal.h>.
23036         (main): Disable -Wformat around some calls to scanf functions.
23037
23038 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23039
23040         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23041
23042 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23043
23044         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23045         stack variable alignment.
23046
23047 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23048
23049         [BZ #17682]
23050         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23051         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23052         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23053         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23054         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23055         __getrlimit instead of getrlimit.
23056         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23057         __gettimeofday instead of gettimeofday.
23058         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23059         Likewise.
23060         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23061         Likewise.
23062         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23063         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23064         Remove variable.
23065         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23066         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23067
23068 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23069
23070         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23071         for wide-character tests.
23072
23073 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23074
23075         * io/openat64.c: #include <libc-internal.h>
23076         (__openat64): Prototypify.  Use ignore_value on MODE.
23077         * io/openat.c: Likewise.
23078         * misc/reboot.c: #include <libc-internal.h>
23079         (reboot): Prototypify.  Use ignore_value on HOWTO.
23080         * misc/ptrace.c: #include <libc-internal.h>
23081         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23082
23083 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23084
23085         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23086         XPG4, UNIX98 and XOPEN2K.
23087         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23088         Remove variable.
23089         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23090
23091 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23092
23093         * libio/fileops.c: Use ISO C style for function definitions.
23094         * libio/iofopen.c: Likewise.
23095         * libio/wfileops.c: Likewise.
23096
23097         [BZ #17653]
23098         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23099         offset on EOF.
23100         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23101         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23102         (fgets_func): Function pointer to fgets and fgetws.
23103         (do_ftell_test): Add test to verify ftell value after read
23104         EOF.
23105         (do_test): Set fgets_func.
23106
23107         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23108         O_TRUNC flag for w and w+ modes.
23109         (do_rewind_test): Likewise.
23110         (do_ftell_test): Likewise.
23111         (do_write_test): Likewise.
23112
23113         [BZ #17647]
23114         * libio/fileops.c (do_ftell): Seek only when there are
23115         unflushed writes.
23116         * libio/wfileops.c (do_ftell_wide): Likewise.
23117         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23118         test case.
23119         (do_one_test): Call it.
23120
23121 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23122
23123         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23124         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23125         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23126         Remove variable.
23127         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23128         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23129         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23130
23131 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23132
23133         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23134         Remove variable.
23135         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23136
23137         [BZ #17668]
23138         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23139         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23140         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23141         __freeifaddrs.  Use libc_hidden_weak.
23142         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23143         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23144         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23145         __freeifaddrs.  Use libc_hidden_weak.
23146         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23147         __getifaddrs and define as weak alias of __getifaddrs.  Use
23148         libc_hidden_weak.
23149         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23150         __freeifaddrs.  Use libc_hidden_weak.
23151         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23152         Remove variable.
23153         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23154         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23155
23156 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23157
23158         [BZ #17601]
23159         * sysdeps/mips/start.S (__start): Use indirect jump to call
23160         __libc_start_main.
23161
23162 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23163
23164         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23165
23166         * nptl/tst-mutex1.c: Include <stdbool.h>.
23167         [!ATTR] (ATTR_NULL): New macro.
23168         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23169         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23170         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23171
23172         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23173         to char *.
23174
23175         [BZ #17665]
23176         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23177         Change conditional to [__USE_MISC].
23178
23179         [BZ #17664]
23180         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23181         fgets_unlocked.
23182         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23183         __fgets_unlocked.
23184         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23185         fgets_unlocked.
23186         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23187         Remove variable.
23188         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23189         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23190         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23191         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23192         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23193         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23194         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23195         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23196         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23197
23198         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23199
23200 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23201
23202         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23203         Remove strpbrk objects.
23204         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23205         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23206         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23207         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23208         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23209         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23210
23211         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23212         Remove strcspn objects.
23213         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23214         (__libc_ifunc_impl_list): Remove strcspn implementation.
23215         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23216         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23217         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23218         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23219
23220         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23221         Remove strspn objetcs.
23222         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23223         (__libc_ifunc_impl_list): Remove strspn implementation.
23224         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23225         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23226         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23227         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23228
23229 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23230
23231         [BZ #17581]
23232         * malloc/hooks.c
23233         (mem2mem_check): Add a terminator to the chain of checking blocks.
23234         (malloc_check_get_size): Use it here.
23235         (mem2chunk_check): Ditto.
23236
23237 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23238
23239         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23240         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23241
23242 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23243
23244         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23245
23246         * nptl/nptl-init.c: Include libc-internal.h.
23247         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23248
23249         * elf/ldconfig.c (search_dir): Expand comment.
23250
23251 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23252
23253         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23254         variable.
23255         (linknamespace-symlist-stdlibs-tests): Likewise.
23256         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23257         instead of $(objpfx)symlist-stdlibs.
23258         (linknamespace-libs-isoc): New variable.
23259         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23260         (linknamespace-libs-ISO): New variable.
23261         (linknamespace-libs-ISO99): Likewise.
23262         (linknamespace-libs-ISO11): Likewise.
23263         (linknamespace-libs-XPG3): Likewise.
23264         (linknamespace-libs-XPG4): Likewise.
23265         (linknamespace-libs-POSIX): Likewise.
23266         (linknamespace-libs-UNIX98): Likewise.
23267         (linknamespace-libs-XOPEN2K): Likewise.
23268         (linknamespace-libs-POSIX2008): Likewise.
23269         (linknamespace-libs-XOPEN2K8): Likewise.
23270         ($(objpfx)symlist-stdlibs): Replace by
23271         $(linknamespace-symlist-stdlibs-tests).  Use
23272         $(linknamespace-libs-$*) as set of libraries.
23273         ($(linknamespace-header-tests)): Update dependencies.  Use
23274         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23275         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23276         * conform/linknamespace.pl: Remove comment about considering
23277         definitions of symbols from irrelevant libraries.
23278
23279 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23280
23281         [BZ #13862]
23282         * elf/dl-tls.c: Include <atomic.h>.
23283         (oom): Remove #ifdef SHARED/#endif.
23284         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23285         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23286         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23287         big enough.
23288         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23289         * nptl/Makefile (tests): Add tst-stack4.
23290         (modules-names): Add tst-stack4mod.
23291         ($(objpfx)tst-stack4): New.
23292         (tst-stack4mod.sos): Likewise.
23293         ($(objpfx)tst-stack4.out): Likewise.
23294         ($(tst-stack4mod.sos)): Likewise.
23295         (clean): Likewise.
23296         * nptl/tst-stack4.c: New file.
23297         * nptl/tst-stack4mod.c: Likewise.
23298
23299 2014-11-27  J. Brown  <jb999@gmx.de>
23300
23301         * sysdeps/x86/bits/string.h: Add recent CPUs.
23302
23303 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23304
23305         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23306         sigblock.
23307
23308         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23309         feof.
23310
23311         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23312         variable.
23313
23314 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23315
23316         * nscd/connections.c: Include libc-internal.h because of macro
23317         usage ignore_value.
23318
23319 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23320
23321         * string/bits/string3.h (__warn_memset_zero_len): Don't
23322         declare for gcc newer than 5.0.
23323         (memset): Don't test for zero-length __LEN for gcc newer than
23324         5.0.
23325
23326 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23327
23328         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23329         size_t for %zu format.
23330
23331         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23332         difference, not %ju.
23333
23334 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23335
23336         * include/libc-internal.h (ignore_value): New macro.
23337         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23338         with ignore_value.
23339
23340         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23341         definition.
23342
23343         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23344         pthread_cleanup_push to void *.
23345
23346         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23347         Undefine.
23348
23349         [BZ #16619]
23350         [BZ #16740]
23351         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23352         instead of 1L << 52.
23353
23354         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23355         * libio/bug-rewind2.c (do_test): Likewise.
23356
23357         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23358         * debug/test-strcpy_chk-ifunc.c: Likewise.
23359         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23360         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23361         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23362         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23363         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23364         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23365         * Rules [$(multi-arch) = no] (tests): Do not filter out
23366         $(tests-ifunc).
23367         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23368         * debug/Makefile (tests-ifunc): Remove variable.
23369         (tests): Do not add $(tests-ifunc).
23370         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23371         (tests): Do not add $(tests-ifunc).
23372         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23373         [TEST_IFUNC]: Remove conditionals.
23374         * string/test-string.h (TEST_IFUNC): Remove macro.
23375         [TEST_IFUNC]: Remove conditionals.
23376
23377         * string/test-strchr.c [!WIDE] (L): New macro.
23378         [WIDE] (L): Likewise.
23379         (check1): Use CHAR instead of char.  Use L on string and character
23380         constants.
23381
23382 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23383
23384         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23385         tests.
23386         * sysdeps/powerpc/bits/atomic.h
23387         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23388         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23389         (atomic_exchange_and_add_acq): Likewise.
23390         (atomic_exchange_and_add_rel): Likewise.
23391         * sysdeps/powerpc/powerpc32/bits/atomic.h
23392         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23393         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23394         * sysdeps/powerpc/powerpc64/bits/atomic.h
23395         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23396         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23397
23398 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23399
23400         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23401         Change synchronization of __sched_fifo_min_prio and
23402         __sched_fifo_max_prio.
23403         * nptl/pthread_mutexattr_getprioceiling.c
23404         (pthread_mutexattr_getprioceiling): Likewise.
23405         * nptl/pthread_mutexattr_setprioceiling.c
23406         (pthread_mutexattr_setprioceiling): Likewise.
23407         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23408         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23409         Likewise.
23410
23411 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23412
23413         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23414         void.
23415
23416 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23417
23418         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23419         third argument const.
23420
23421 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23422
23423         fnmatch: work around GCC compiler warning bug with uninit var
23424         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23425         This works around a bug with x86-64 GCC 4.9.2 and earlier
23426         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23427         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23428         used uninitialized in this function [-Wmaybe-uninitialized]".
23429
23430 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23431
23432         * posix/bug-regex31.c (main): Return RES not 0.
23433
23434 2014-11-25  Anton Blanchard <anton@samba.org>
23435
23436         * sysdeps/powerpc/bits/atomic.h
23437         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23438
23439 2014-11-24  Sterling Augustine  <saugustine@google.com>
23440
23441         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23442
23443 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23444
23445         [BZ #17608]
23446         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23447
23448 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23449
23450         [BZ #17633]
23451         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23452         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23453         variable.
23454         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23455         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23456
23457 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23458
23459         * string/strncpy.c (strncpy): Improve performance by using memset.
23460
23461 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23462
23463         * string/strcpy.c (strcpy):
23464         Improve performance by using strlen and memcpy.
23465
23466 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23467
23468         * string/strcoll_l.c (get_next_seq): __always_inline.
23469         * string/strcoll_l.c (do_compare): __always_inline.
23470
23471 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23472
23473         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23474         defined.
23475         * include/mqueue.h: Likewise.
23476         * include/stdlib.h: Likewise.
23477
23478         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23479         (get_null_defines): Adjust.
23480         * sunrpc/Makefile: Adjust comment.
23481         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23482         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23483         (CFLAGS-interp.c): Likewise.
23484         (CFLAGS-ldconfig.c): Likewise.
23485         (CPPFLAGS-.os): Likewise.
23486         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23487         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23488         * extra-modules.mk (extra-modules.mk): Likewise.
23489         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23490         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23491         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23492         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23493         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23494         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23495         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23496         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23497         * iconvdata/Makefile (CPPFLAGS): Likewise.
23498         (cpp-srcs-left): Add libof for all iconvdata routines.
23499         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23500         * include/assert.h: Likewise.
23501         * include/ctype.h: Likewise.
23502         * include/errno.h: Likewise.
23503         * include/libc-symbols.h: Likewise.
23504         * include/math.h: Likewise.
23505         * include/netdb.h: Likewise.
23506         * include/resolv.h: Likewise.
23507         * include/stdio.h: Likewise.
23508         * include/stdlib.h: Likewise.
23509         * include/string.h: Likewise.
23510         * include/sys/stat.h: Likewise.
23511         * include/wctype.h: Likewise.
23512         * intl/l10nflist.c: Likewise.
23513         * libidn/idn-stub.c: Likewise.
23514         * libio/libioP.h: Likewise.
23515         * nptl/libc_multiple_threads.c: Likewise.
23516         * nptl/pthreadP.h: Likewise.
23517         * posix/regex_internal.h: Likewise.
23518         * resolv/res_hconf.c: Likewise.
23519         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23520         * sysdeps/arm/memmove.S: Likewise.
23521         * sysdeps/arm/sysdep.h: Likewise.
23522         * sysdeps/generic/_itoa.h: Likewise.
23523         * sysdeps/generic/symbol-hacks.h: Likewise.
23524         * sysdeps/gnu/errlist.awk: Likewise.
23525         * sysdeps/gnu/errlist.c: Likewise.
23526         * sysdeps/i386/i586/memcpy.S: Likewise.
23527         * sysdeps/i386/i586/memset.S: Likewise.
23528         * sysdeps/i386/i686/memcpy.S: Likewise.
23529         * sysdeps/i386/i686/memmove.S: Likewise.
23530         * sysdeps/i386/i686/mempcpy.S: Likewise.
23531         * sysdeps/i386/i686/memset.S: Likewise.
23532         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23533         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23534         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23535         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23536         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23537         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23538         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23539         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23540         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23541         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23542         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23543         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23544         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23545         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23546         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23547         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23548         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23549         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23550         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23551         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23552         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23553         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23554         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23555         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23556         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23557         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23558         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23559         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23560         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23561         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23562         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23563         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23564         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23565         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23566         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23567         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23568         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23569         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23570         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23571         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23572         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23573         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23574         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23575         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23576         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23577         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23578         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23579         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23580         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23581         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23582         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23583         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23584         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23585         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23586         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23587         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23588         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23589         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23590         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23591         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23592         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23593         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23594         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23595         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23596         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23597         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23598         * sysdeps/posix/closedir.c: Likewise.
23599         * sysdeps/posix/opendir.c: Likewise.
23600         * sysdeps/posix/readdir.c: Likewise.
23601         * sysdeps/posix/rewinddir.c: Likewise.
23602         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23603         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23604         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23605         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23606         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23607         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23608         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23609         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23610         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23611         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23612         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23613         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23614         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23615         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23616         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23617         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23618         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23619         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23620         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23621         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23622         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23623         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23624         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23625         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23626         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23627         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23628         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23629         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23630         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23631         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23632         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23633         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23634         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23635         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23636         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23637         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23638         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23639         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23640         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23641         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23642         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23643         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23644         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23645         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23646         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23647         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23648         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23649         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23650         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23651         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23652         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23653         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23654         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23655         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23656         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23657         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23658         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23659         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23660         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23661         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23662         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23663         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23664         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23665         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23666         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23667         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23668         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23669         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23670         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23671         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23672         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23673         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23674         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23675         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23676         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23677         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23678         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23679         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23680         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23681         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23682         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23683         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23684         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23685         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23686         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23687         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23688         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23689         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23690         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23691         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23692         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23693         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23694         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23695         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23696         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23697         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23698         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23699         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23700         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23701         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23702         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23703         * sysdeps/unix/alpha/sysdep.S: Likewise.
23704         * sysdeps/unix/alpha/sysdep.h: Likewise.
23705         * sysdeps/unix/make-syscalls.sh: Likewise.
23706         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23707         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23708         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23709         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23710         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23711         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23712         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23713         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23714         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23715         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23716         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23717         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23718         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23719         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23720         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23721         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23722         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23723         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23724         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23725         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23726         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23727         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23728         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23729         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23730         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23731         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23732         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23735         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23736         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23737         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23738         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23739         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23740         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23741         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23742         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23743         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23744         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23745         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23746         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23747         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23748         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23749         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23750         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23751         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23752         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23753         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23754         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23755         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23756         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23757         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23758         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23759         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23760         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23761         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23762         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23763         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23764         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
23765         * sysdeps/x86_64/memcpy.S: Likewise.
23766         * sysdeps/x86_64/memmove.c: Likewise.
23767         * sysdeps/x86_64/memset.S: Likewise.
23768         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
23769         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23770         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
23771         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
23772         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
23773         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23774         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23775         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
23776         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
23777         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
23778         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
23779         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
23780         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
23781         * sysdeps/x86_64/multiarch/memset.S: Likewise.
23782         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23783         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
23784         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
23785         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
23786         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23787         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23788         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
23789         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
23790         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23791         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23792         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
23793         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
23794         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
23795         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
23796         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23797         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
23798         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
23799         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
23800         * sysdeps/x86_64/strcmp.S: Likewise.
23801
23802         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
23803
23804         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
23805         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
23806         * elf/rtld-Rules: Likewise.
23807         * elf/setup-vdso.h: Likewise.
23808         * include/assert.h: Likewise.
23809         * include/bits/stdlib-float.h: Likewise.
23810         * include/errno.h: Likewise.
23811         * include/sys/stat.h: Likewise.
23812         * include/unistd.h: Likewise.
23813         * sysdeps/aarch64/setjmp.S: Likewise.
23814         * sysdeps/alpha/setjmp.S: Likewise.
23815         * sysdeps/arm/__longjmp.S: Likewise.
23816         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
23817         * sysdeps/arm/setjmp.S: Likewise.
23818         * sysdeps/arm/sysdep.h: Likewise.
23819         * sysdeps/generic/_itoa.h: Likewise.
23820         * sysdeps/generic/dl-sysdep.h: Likewise.
23821         * sysdeps/generic/ldsodefs.h: Likewise.
23822         * sysdeps/i386/dl-tls.h: Likewise.
23823         * sysdeps/i386/setjmp.S: Likewise.
23824         * sysdeps/m68k/setjmp.c: Likewise.
23825         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
23826         * sysdeps/mach/hurd/opendir.c: Likewise.
23827         * sysdeps/posix/getcwd.c: Likewise.
23828         * sysdeps/posix/opendir.c: Likewise.
23829         * sysdeps/posix/profil.c: Likewise.
23830         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23831         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23832         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23833         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
23834         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
23835         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
23836         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
23837         * sysdeps/s390/dl-tls.h: Likewise.
23838         * sysdeps/s390/s390-32/setjmp.S: Likewise.
23839         * sysdeps/s390/s390-64/setjmp.S: Likewise.
23840         * sysdeps/sh/sh3/setjmp.S: Likewise.
23841         * sysdeps/sh/sh4/setjmp.S: Likewise.
23842         * sysdeps/unix/alpha/sysdep.h: Likewise.
23843         * sysdeps/unix/arm/sysdep.S: Likewise.
23844         * sysdeps/unix/i386/sysdep.S: Likewise.
23845         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23846         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
23847         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23848         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23849         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23850         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23851         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
23852         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23853         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23854         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23855         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
23856         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23857         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23860         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23861         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23862         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23863         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23864         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23865         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23866         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23867         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23868         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23869         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23870         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23871         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23872         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23873         * sysdeps/x86_64/setjmp.S: Likewise.
23874
23875         * include/math.h: Use IS_IN instead of IS_IN_libm.
23876         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
23877         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23878         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23879         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
23880         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23881         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23882         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23883         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23884         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23885         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23886         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
23887         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
23888         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
23889         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
23890         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
23891         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
23892         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
23893         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
23894         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
23895         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
23896         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
23897         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
23898         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
23899         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
23900         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
23901         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
23902         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
23903         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23904         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
23905         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
23906         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
23907         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
23908         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
23909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23910         Likewise.
23911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
23912         Likewise.
23913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
23914         Likewise.
23915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
23916         Likewise.
23917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
23918         Likewise.
23919         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
23920         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
23921         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
23922         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23923         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23924         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23925         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
23926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
23927         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
23928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
23929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
23930         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
23931         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
23932         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
23933         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
23934         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23935         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
23936         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
23937         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23938         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
23939         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
23940         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
23941         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
23942         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
23943         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
23944         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
23945         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
23946
23947         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
23948         * nptl/pthreadP.h: Likewise.
23949         * nptl_db/structs.def: Likewise.
23950         * sysdeps/arm/sysdep.h: Likewise.
23951         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23952         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23953         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
23954         * sysdeps/unix/alpha/sysdep.h: Likewise.
23955         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23956         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23957         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23958         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23959         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23960         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23961         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23962         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23963         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23964         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23965         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23966         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23967         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23968         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23971         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23972         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23973         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23974         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23975         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23976         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23977         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23978         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23979         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
23980         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23981
23982         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
23983         * nptl/pthreadP.h: Likewise.
23984         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23985         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23986         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23987         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23988         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23989         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23990         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23991         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23992         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23993         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23994         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23995         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
23997         Likewise.
23998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
23999         Likewise.
24000         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24001         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24002         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24003         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24004         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24005         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24006         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24007         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24008
24009         * dlfcn/dladdr.c: Use IS_IN.
24010         * dlfcn/dladdr1.c: Likewise.
24011         * dlfcn/dlclose.c: Likewise.
24012         * dlfcn/dlerror.c: Likewise.
24013         * dlfcn/dlinfo.c: Likewise.
24014         * dlfcn/dlmopen.c: Likewise.
24015         * dlfcn/dlopen.c: Likewise.
24016         * dlfcn/dlsym.c: Likewise.
24017         * dlfcn/dlvsym.c: Likewise.
24018
24019         * include/ifaddrs.h: Use IS_IN.
24020         * inet/check_pf.c: Likewise.
24021         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24022         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24023
24024         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24025         IS_IN_ldconfig.
24026         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24027         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24028
24029         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24030         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24031         IS_IN (libc).
24032
24033         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24034
24035         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24036         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24037         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24038         * include/libc-symbols.h (IS_IN_LIB): New macro.
24039         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24040         * include/netdb.h: Likewise.
24041         * include/stap-probe.h: Remove all uses of IN_LIB.
24042
24043         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24044         instead of IN_MODULE.
24045         * include/libc-symbols.h (IN_MODULE): Define using
24046         MODULE_NAME.
24047         (PASTE_NAME, PASTE_NAME1): New macros.
24048         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24049         of IN_LIB.
24050         (STAP_PROBE_ASM): Likewise.
24051
24052 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24053
24054         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24055         __mach_init in dlopened libc.
24056
24057 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24058
24059         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24060         * sysdeps/arm/preconfigure: Regenerate.
24061
24062 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24063
24064         * nptl/pthread_create.c (__pthread_create_2_1): Set
24065         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24066         when copying values from IATTR into PD.
24067
24068 2014-11-21  Will Newton  <will.newton@linaro.org>
24069             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24070
24071         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24072         Refactor inline-asm.  Also add comment.
24073
24074         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24075         ElfW macro instead of hardcoded Elf64 types.
24076         (la_aarch64_gnu_pltenter): Likewise.
24077         * sysdeps/aarch64/dl-machine.h
24078         (elf_machine_runtime_setup): Use ElfW(Addr).
24079
24080         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24081         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24082         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24083         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24084         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24085         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24086         (R_AARCH64_TLS_DTPMOD): This.
24087         (R_AARCH64_TLS_DTPREL64): Rename to ...
24088         (R_AARCH64_TLS_DTPREL): This.
24089         (R_AARCH64_TLS_TPREL64): Rename to ...
24090         (R_AARCH64_TLS_TPREL): This.
24091         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24092         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24093         R_AARCH64_TLS_TPREL64.
24094         (elf_machine_rela): Likewise.
24095
24096 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24097
24098         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24099         by setting it to 0.  64b atomics are not supported currently.
24100
24101 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24102
24103         [BZ #16469]
24104         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24105         search domain names.
24106
24107 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24108
24109         [BZ #16469]
24110         * NEWS: Update.
24111         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24112         trailing dot.
24113         * posix/tst-getaddrinfo5.c: New.
24114         * posix/Makefile (tests): Add it.
24115
24116 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24117
24118         [BZ #14498]
24119         * NEWS: Fixed.
24120         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24121         after parsing line but before break_if_match.
24122         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24123         if there is a protocol mismatch.
24124
24125 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24126
24127         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24128         because the potential race is on the user-supplied stream.
24129
24130 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24131
24132         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24133         string literal if not passed a buffer.
24134         * manual/job.texi (ctermid): Update reasoning, note deviation
24135         from posix, suggest mtasurace when not passed a buffer, for
24136         future non-preliminary safety notes.
24137
24138 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24139
24140         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24141         of not passing it a buffer.
24142         Reported by Peng Haitao.
24143
24144 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24145
24146         * manual/Makefile ($(objpfx)stamp-summary): Require
24147         check-safety.sh to pass.
24148         * manual/check-safety.sh: Wish for verification that every
24149         @deftypefn and @deftypefun is followed by a @safety remark.
24150
24151 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24152
24153         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24154
24155         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24156         PTHREAD_CANCEL_ASYNCHRONOUS.
24157         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24158         send SIGCANCEL.
24159
24160         * nptl/default-sched.h: New file.
24161         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24162         * nptl/pthread_create.c: Include it.
24163         (__pthread_create_2_1): Use collect_default_sched instead of making
24164         Linux syscalls here directly.
24165
24166 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24167
24168         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24169         __pthread_once): Use C11 atomics.
24170
24171 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24172
24173         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24174
24175 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24176
24177         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24178         atomic_thread_fence_acquire, atomic_thread_fence_release,
24179         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24180         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24181         atomic_compare_exchange_weak_relaxed,
24182         atomic_compare_exchange_weak_acquire,
24183         atomic_compare_exchange_weak_release,
24184         atomic_exchange_acquire, atomic_exchange_release,
24185         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24186         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24187         atomic_fetch_and_acquire,
24188         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24189
24190 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24191
24192         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24193         USE_ATOMIC_COMPILER_BUILTINS): Define.
24194         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24195         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24196         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24197         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24198         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24199         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24200         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24201         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24202         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24203         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24204         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24205         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24206         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24207         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24208         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24209         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24210         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24211         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24212         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24213         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24214         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24215         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24216         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24217         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24218         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24219         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24220         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24221         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24222         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24223         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24224         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24225         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24226         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24227         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24228         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24229         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24230         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24231         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24232         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24233         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24234
24235 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24236
24237         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24238         the sched_priority value here.  It was already checked when the user
24239         called pthread_attr_setschedparam.
24240
24241         * nptl/tst-bad-schedattr.c: New file.
24242         * nptl/Makefile (tests): Add it.
24243
24244 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24245             Florian Weimer  <fweimer@redhat.com>
24246             Joseph Myers  <joseph@codesourcery.com>
24247             Adam Conrad  <adconrad@0c3.net>
24248             Andreas Schwab  <schwab@suse.de>
24249             Brooks  <bmoses@google.com>
24250
24251         [BZ #17625]
24252         * wordexp-test.c (__dso_handle): Add prototype.
24253         (__register_atfork): Likewise.
24254         (__app_register_atfork): New function.
24255         (registered_forks): New global.
24256         (register_fork): New function.
24257         (test_case): Add 3 new tests for WRDE_CMDSUB.
24258         (main): Call __app_register_atfork.
24259         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24260         fork count is non-zero fail the test.
24261         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24262         is set.
24263         (parse_dollars): Remove check for WRDE_NOCMD.
24264         (parse_dquote): Likewise.
24265
24266 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24267
24268         * Makeconfig (built-modules): List non-library modules to be
24269         built.
24270         (module-cppflags): Include libc-modules.h for
24271         everything except shlib-versions.v.i.
24272         (CPPFLAGS): Use it.
24273         (before-compile): Add libc-modules.h.
24274         ($(common-objpfx)libc-modules.h,
24275         $(common-objpfx)libc-modules.stmp): New targets.
24276         (common-generated): Add libc-modules.h and libc-modules.stmp.
24277         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24278         * include/libc-symbols.h: Don't include libc-modules.h.
24279         * include/libc-modules.h: Remove file.
24280         * scripts/gen-libc-modules.awk: New script to generate
24281         libc-modules.h.
24282         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24283         Depend on libc-modules.stmp.
24284
24285         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24286
24287         * Makeconfig (in-module): Get value of libof set for the
24288         translation unit.
24289         (CPPFLAGS): Use $(in-module).
24290         * Makerules: Don't suffix routine names for nonlib.
24291         * include/libc-modules.h: New file.
24292         * include/libc-symbols.h: Include libc-modules.h
24293         (IS_IN): New macro to replace IS_IN_* macros.
24294         * elf/Makefile: Set libof-* for each routine.
24295         * elf/rtld-Rules: Likewise.
24296         * extra-modules.mk: Likewise.
24297         * iconv/Makefile: Likewise.
24298         * iconvdata/Makefile: Likewise.
24299         * locale/Makefile: Likewise.
24300         * malloc/Makefile: Likewise.
24301         * nss/Makefile: Likewise.
24302         * sysdeps/gnu/Makefile: Likewise.
24303         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24304         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24305         * sysdeps/s390/s390-64/Makefile: Likewise.
24306         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24307         CPPFLAGS for nscd instead of nonlib.
24308
24309 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24310
24311         * nptl/createthread.c: New file.
24312
24313         * nptl/createthread.c: Moved ...
24314         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24315
24316         * nptl/createthread.c: Add proper top-line comment.
24317         (do_clone): Folded into ...
24318         (create_thread): ... here.  Take new arguments STOPPED_START and
24319         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24320         increment __nptl_threads, do event-reporting logic, do
24321         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24322         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24323         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24324         just send SIGCANCEL.
24325         * nptl/pthread_create.c: Forward-declare create_thread before
24326         including createthread.c.
24327         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24328         declaration, and new macro START_THREAD_SELF to replace argument.
24329         Remove return statement.
24330         (report_thread_creation): New function.
24331         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24332         synchronization logic, and __nptl_nthreads increment here, around
24333         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24334         PD->parent_cancelhandling here, before create_thread.  When
24335         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24336         __deallocate_stack, and ENOMEM translation here.
24337
24338 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24339
24340         [BZ #17616]
24341         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24342         (mptwo): Rename to __mptwo.
24343         (__inv): Use __mptwo instead of mptwo.
24344         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24345         (mptwo): Rename to __mptwo.
24346         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24347         of mpone and __mptwo instead of mptwo.
24348         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24349         instead of mpone.
24350         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24351         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24352         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24353         of mpone and __mptwo instead of mptwo.
24354         (__mpranred): Use __mpone instead of mpone.
24355         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24356         variable.
24357         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24358         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24359         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24360         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24361         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24362         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24363         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24364         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24365         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24366         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24367         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24368         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24369         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24370         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24371         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24372         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24373         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24374         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24375         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24376
24377 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24378
24379         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24380         replace BSD Handler xref with BSD Signal Handling.
24381
24382 2014-11-17  Richard Henderson  <rth@redhat.com>
24383
24384         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24385         (_FP_PACK_RAW_2): Remove.
24386         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24387         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24388         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24389         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24390         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24391         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24392         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24393         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24394         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24395         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24396         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24397         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24398         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24399         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24400         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24401         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24402
24403 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24404
24405         * signal/signal.h [__USE_MISC]
24406         (struct sigvec): Remove type.
24407         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24408         (sigvec): Remove declaration.
24409         * sysdeps/posix/sigvec.c: Moved ...
24410         * signal/sigvec.c: ... here, replacing old file.
24411         (struct sigvec): New type, copied from old signal.h definition.
24412         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24413         (__sigvec): Convert definition to prototype.
24414         (sigvec): Replace weak_alias with compat_symbol.
24415         * signal/Versions (libc: GLIBC_2.21): New version set.
24416         * include/signal.h: Remove __sigvec declaration.
24417         * sysdeps/unix/bsd/sigvec.c: Remove file.
24418         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24419         * manual/signal.texi (BSD Handler): Remove subsection.
24420         Move siginterrupt up to ...
24421         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24422         (Blocking in BSD): Fold subsection into its parent.
24423         * NEWS: Mention sigvec removal.
24424
24425 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24426
24427         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24428         (DLA_FMS): Make definition conditional only on [__FMA4__].
24429         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24430         definition.
24431
24432         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24433         Make definition conditional only on [PROF].
24434         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24435         definition.
24436         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24437         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24438
24439         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24440         !__GNUC__].
24441         * include/signal.h (__sigpause): Move declaration above call to
24442         libc_hidden_proto.
24443         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24444         variable.
24445         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24446         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24447
24448 2014-11-14  David S. Miller  <davem@davemloft.net>
24449
24450         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24451         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24452
24453 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24454
24455         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24456         * configure: Regenerated.
24457         * manual/install.texi (Tools for Compilation): Document a
24458         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24459         compiler verified to work.
24460         * INSTALL: Regenerated.
24461
24462         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24463         redeclare with asm name.
24464         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24465         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24466         including <string.h>.
24467         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24468         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24469         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24470         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24471         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24472         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24473         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24474
24475 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24476
24477         * stdlib/strtol.c (__strtol): Use prototype definition.
24478
24479         [BZ #17594]
24480         * stdlib/strtol.c (SYM__): New macro.
24481         (SYM__1): Likewise.
24482         (__strtol): Likewise.
24483         (strtol): Rename to __strtol and define as weak alias of
24484         __strtol.  Use libc_hidden_weak.
24485
24486 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24487
24488         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24489         Use numbered labels in inline assembly.
24490
24491 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24492
24493         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24494         Add setjmp LIBC_PROBE.
24495         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24496         Likewise.
24497         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24498         Add longjmp, longjmp_target LIBC_PROBE.
24499         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24500         Likewise.
24501
24502 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24503
24504         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24505         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24506         to get rid of unused variable warning.
24507
24508 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24509
24510         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24511         Check for unwind_backtrace ==  NULL only in SHARED case.
24512         (__backchain_backtrace): Compile only in SHARED case.
24513         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24514         Likewise.
24515         (__backchain_backtrace): Declare as static.
24516
24517 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24518
24519         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24520         (__libc_multiple_threads_ptr): Variable moved ...
24521         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24522
24523 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24524
24525         * conform/GlibcConform.pm: New file.
24526         * conform/conformtest.pl: Use GlibcConform module.
24527         * conform/linknamespace.pl: New file.
24528         * conform/list-header-symbols.pl: Likewise.
24529         * conform/Makefile (linknamespace-symlists-base): New variable.
24530         (linknamespace-symlists-tests): Likewise.
24531         (linknamespace-header-base): Likewise.
24532         (linknamespace-header-tests): Likewise.
24533         (tests-special): Add new tests.
24534         ($(linknamespace-symlists-tests)): New rule.
24535         (linknamespace-libs): New variable.
24536         ($(objpfx)symlist-stdlibs): New rule.
24537         ($(linknamespace-header-tests)): Likewise.
24538         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24539         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24540         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24541         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24542         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24543         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24544         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24545         (test-xfail-ISO/math.h/linknamespace): Likewise.
24546         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24547         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24548         (test-xfail-ISO/time.h/linknamespace): Likewise.
24549         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24550         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24551         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24552         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24553         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24554         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24555         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24556         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24557         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24558         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24559         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24560         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24561         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24562         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24563         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24564         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24565         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24566         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24567         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24568         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24569         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24570         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24571         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24572         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24573         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24574         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24575         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24576         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24577         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24578         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24579         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24580         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24581         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24582         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24583         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24584         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24585         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24586         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24587         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24588         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24589         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24590         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24591         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24592         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24593         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24594         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24595         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24596         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24597         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24598         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24599         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24600         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24601         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24602         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24603         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24604         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24605         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24606         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24607         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24608         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24609         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24610         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24611         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24612         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24613         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24614         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24615         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24616         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24617         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24618         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24619         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24620         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24621         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24622         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24623         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24624         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24625         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24626         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24627         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24628         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24629         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24630         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24631         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24632         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24633         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24634         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24635         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24636         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24637         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24638         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24639         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24640         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24641         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24642         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24643         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24644         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24645         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24646         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24647         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24648         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24649         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24650         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24651         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24652         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24653         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24654         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24655         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24656         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24657         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24658         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24659         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24660         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24661         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24662         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24663         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24664         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24665         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24666         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24667         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24668         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24669         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24670         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24671         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24672         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24673         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24674         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24675         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24676         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24677         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24678         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24679         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24680         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24681         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24682         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24683         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24684         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24685         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24686         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24687         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24688         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24689         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24690         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24691         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24692         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24693         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24694         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24695         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24696         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24697         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24698         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24699
24700         [BZ #17589]
24701         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24702         of fgets_unlocked.
24703
24704         [BZ #17585]
24705         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24706         (memmem): Rename to __memmem and define as weak alias of
24707         __memmem.  Use libc_hidden_weak.
24708         (__memmem): Use libc_hidden_def.
24709         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24710         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24711         memmem.
24712
24713         [BZ #17582]
24714         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24715         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24716         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24717         and define as weak alias of __fgets_unlocked.  Use
24718         libc_hidden_weak.
24719         (__fgets_unlocked): Use libc_hidden_def.
24720         * include/stdio.h (__fgets_unlocked): Declare.  Use
24721         libc_hidden_proto.
24722         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24723         __fgets_unlocked instead of fgets_unlocked.
24724         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24725         (GET_NPROCS_CONF_PARSER): Likewise.
24726         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24727         (GET_NPROCS_CONF_PARSER): Likewise.
24728
24729         [BZ #17574]
24730         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24731         weak alias of __wmemset.  Use libc_hidden_weak.
24732         (__wmemset): Use libc_hidden_def.
24733         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24734         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24735         of wmemset.
24736
24737         [BZ #17573]
24738         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24739         with asm name __mempcpy.
24740         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24741
24742         [BZ #17572]
24743         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24744         and define as weak alias of __rawmemchr.
24745         (__rawmemchr): Do not define as strong alias of rawmemchr.
24746
24747         [BZ #17571]
24748         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24749         alias of __qsort_r.
24750         (qsort): Call __qsort_r instead of qsort_r.
24751         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24752         (__qsort_r): Declare.  Call libc_hidden_proto.
24753         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24754         instead of qsort_r.
24755         * nscd/gai.c (__qsort_r): Define to qsort_r.
24756         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24757         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24758         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24759
24760         [BZ #17570]
24761         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24762         define as weak alias of __malloc_info.
24763
24764         [BZ #17584]
24765         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
24766         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24767         (__rewinddir): Use libc_hidden_def.
24768         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
24769         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24770         (__rewinddir): Use libc_hidden_def.
24771         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
24772         weak alias of __rewinddir.  Don't use libc_hidden_def.
24773         (__rewinddir): Use libc_hidden_def.
24774         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
24775         (__rewinddir): Use libc_hidden_proto.
24776         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
24777         rewinddir.
24778         (__getcwd): Use __rewinddir instead of rewinddir.
24779
24780         [BZ #17583]
24781         * libio/fileno.c (fileno): Rename to __fileno and define as weak
24782         alias of __fileno.  Use libc_hidden_weak.
24783         (__fileno): Use libc_hidden_def.
24784         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
24785         * libio/ftello.c (ftello): Rename to __ftello and define as weak
24786         alias of __ftello.
24787         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
24788         __ftello.
24789         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
24790         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
24791         libc_hidden_def.
24792         (fread_unlocked): Don't use libc_hidden_ver.
24793         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
24794         and define as weak alias of __fread_unlocked.  Don't use
24795         libc_hidden_def.
24796         (__fread_unlocked): Use libc_hidden_def.
24797         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
24798         (ftello): Don't use libc_hidden_proto.
24799         (__ftello): Declare.  Use libc_hidden_proto.
24800         (fread_unlocked): Don't use libc_hidden_proto.
24801         (__fread_unlocked): Declare.  Use libc_hidden_proto.
24802         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
24803         and __ftello instead of fileno, fread_unlocked and ftello.
24804
24805 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
24806
24807         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
24808         GOT12.
24809         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
24810         Likewise.
24811         (_dl_start_user): Likewise.
24812         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
24813
24814 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
24815             Siddhesh Poyarekar  <siddhesh@redhat.com>
24816
24817         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
24818         Move argv and envp down instead of moving argc up.
24819         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
24820
24821 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
24822
24823         [BZ #17506]
24824         * test-skeleton.c (main): Return successful if one of
24825         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
24826         * string/tst-strcoll-overflow.c: Define expected status.
24827
24828 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
24829
24830         [BZ #17475]
24831         * locale/iso-639.def: Define Bhili and Tulu language codes.
24832
24833 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
24834
24835         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
24836
24837 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
24838
24839         [BZ #17555]
24840         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
24841
24842 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
24843
24844         * configure.ac: Updated check of minimal required version to
24845         2.22.
24846         * manual/install.texi (Tools for Compilation): Updated version
24847         number.
24848         * configure: Regenerated.
24849         * INSTALL: Likewise.
24850
24851 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
24852
24853         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
24854         __tls_get_addr.
24855
24856 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
24857
24858         * include/sys/wait.h (__libc_waitpid): Remove declaration.
24859         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
24860         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24861         libc_hidden_weak.
24862         (waitpid): Define as alias of __waitpid.
24863         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
24864         __waitpid.
24865         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24866         libc_hidden_weak.
24867         (waitpid): Define as alias of __waitpid.
24868         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
24869         __libc_waitpid alias.
24870         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
24871         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
24872         Likewise.
24873         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
24874         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
24875         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
24876         alias.
24877         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
24878         __waitpid.
24879         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24880         libc_hidden_weak.
24881         (waitpid): Define as alias of __waitpid.
24882
24883 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
24884
24885         * manual/llio.texi: Add comment that write safety has been
24886         fixed in Linux.
24887
24888         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
24889         (localplt-build-dso): Add elf/ld.so.
24890         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
24891         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
24892         and free for ld.so.
24893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
24894         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
24895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
24896         Likewise.
24897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
24898         Likewise.
24899         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
24900         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
24901         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
24902         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
24903         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24904         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
24905         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
24906         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
24907         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
24908         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
24909         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24910
24911 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
24912
24913         [BZ #14132]
24914         * include/libc-symbols.h (INTUSE): Remove macro.
24915         (INTDEF): Likewise.
24916         (INTVARDEF): Likewise.
24917         (_INTVARDEF): Likewise.
24918         (INTDEF2): Likewise.
24919         (INTVARDEF2): Likewise.
24920         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
24921         rtld_hidden_def instead of INTVARDEF.
24922         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
24923         (_dl_starting_up_internal): Remove declaration.
24924         (_dl_starting_up): Use rtld_hidden_proto.
24925         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
24926         declaration.
24927         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
24928         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
24929         _dl_starting_up.
24930         * elf/dl-writev.h (_dl_writev): Likewise.
24931         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
24932         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
24933         _dl_starting_up_internal.
24934
24935 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24936
24937         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
24938         test-skeleton.c.
24939
24940 2014-11-05  Will Newton  <will.newton@linaro.org>
24941
24942         * benchtests/Makefile: (bench-malloc): Add malloc thread
24943         scalability benchmark.
24944         * benchtests/bench-malloc-threads.c: New file.
24945
24946 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
24947
24948         * sysdeps/aarch64/strchrnul.S: New file.
24949
24950 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24951
24952         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
24953         definition.
24954         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
24955         Likwise.
24956         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
24957         Likewise.
24958         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
24959         Likewise.
24960         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
24961         Likewise.
24962         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
24963         Likewise.
24964
24965 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
24966
24967         * catgets/test-gencat.c: Use test-skeleton.c.
24968         * catgets/tst-catgets.c: Likewise.
24969         * csu/tst-empty.c: Likewise.
24970         * elf/tst-audit2.c: Likewise.
24971         * elf/tst-global1.c: Likewise.
24972         * elf/tst-pathopt.c: Likewise.
24973         * elf/tst-piemod1.c: Likewise.
24974         * elf/tst-tls10.c: Likewise.
24975         * elf/tst-tls11.c: Likewise.
24976         * elf/tst-tls12.c: Likewise.
24977         * gnulib/tst-gcc.c: Likewise.
24978         * iconvdata/tst-e2big.c: Likewise.
24979         * iconvdata/tst-loading.c: Likewise.
24980         * iconv/tst-iconv1.c: Likewise.
24981         * iconv/tst-iconv2.c: Likewise.
24982         * inet/test-inet6_opt.c: Likewise.
24983         * inet/tst-gethnm.c: Likewise.
24984         * inet/tst-network.c: Likewise.
24985         * inet/tst-ntoa.c: Likewise.
24986         * intl/tst-codeset.c: Likewise.
24987         * intl/tst-gettext2.c: Likewise.
24988         * intl/tst-gettext3.c: Likewise.
24989         * intl/tst-ngettext.c: Likewise.
24990         * intl/tst-translit.c: Likewise.
24991         * io/test-stat.c: Likewise.
24992         * libio/test-fmemopen.c: Likewise.
24993         * libio/tst-freopen.c: Likewise.
24994         * libio/tst-sscanf.c: Likewise.
24995         * libio/tst-ungetwc1.c: Likewise.
24996         * libio/tst-ungetwc2.c: Likewise.
24997         * libio/tst-widetext.c: Likewise.
24998         * localedata/tst-ctype.c: Likewise.
24999         * localedata/tst-digits.c: Likewise.
25000         * localedata/tst-leaks.c: Likewise.
25001         * localedata/tst-mbswcs1.c: Likewise.
25002         * localedata/tst-mbswcs2.c: Likewise.
25003         * localedata/tst-mbswcs3.c: Likewise.
25004         * localedata/tst-mbswcs4.c: Likewise.
25005         * localedata/tst-mbswcs5.c: Likewise.
25006         * localedata/tst-setlocale.c: Likewise.
25007         * localedata/tst-trans.c: Likewise.
25008         * localedata/tst-wctype.c: Likewise.
25009         * localedata/tst-xlocale1.c: Likewise.
25010         * login/tst-grantpt.c: Likewise.
25011         * malloc/tst-calloc.c: Likewise.
25012         * malloc/tst-malloc.c: Likewise.
25013         * malloc/tst-mallocstate.c: Likewise.
25014         * malloc/tst-mcheck.c: Likewise.
25015         * malloc/tst-mtrace.c: Likewise.
25016         * malloc/tst-obstack.c: Likewise.
25017         * math/atest-exp2.c: Likewise.
25018         * math/atest-exp.c: Likewise.
25019         * math/atest-sincos.c: Likewise.
25020         * math/test-matherr.c: Likewise.
25021         * math/test-misc.c: Likewise.
25022         * math/test-powl.c: Likewise.
25023         * math/tst-definitions.c: Likewise.
25024         * misc/tst-dirname.c: Likewise.
25025         * misc/tst-efgcvt.c: Likewise.
25026         * misc/tst-fdset.c: Likewise.
25027         * misc/tst-hsearch.c: Likewise.
25028         * misc/tst-mntent2.c: Likewise.
25029         * nptl/tst-sem7.c: Likewise.
25030         * nptl/tst-sem8.c: Likewise.
25031         * nptl/tst-sem9.c: Likewise.
25032         * nss/test-netdb.c: Likewise.
25033         * posix/tst-fnmatch.c: Likewise.
25034         * posix/tst-getlogin.c: Likewise.
25035         * posix/tst-gnuglob.c: Likewise.
25036         * posix/tst-mmap.c: Likewise.
25037         * pwd/tst-getpw.c: Likewise.
25038         * resolv/tst-inet_ntop.c: Likewise.
25039         * rt/tst-timer.c: Likewise.
25040         * stdio-common/test-fseek.c: Likewise.
25041         * stdio-common/test-popen.c: Likewise.
25042         * stdio-common/test-vfprintf.c: Likewise.
25043         * stdio-common/tst-cookie.c: Likewise.
25044         * stdio-common/tst-fileno.c: Likewise.
25045         * stdio-common/tst-gets.c: Likewise.
25046         * stdio-common/tst-obprintf.c: Likewise.
25047         * stdio-common/tst-perror.c: Likewise.
25048         * stdio-common/tst-sprintf2.c: Likewise.
25049         * stdio-common/tst-sprintf3.c: Likewise.
25050         * stdio-common/tst-sprintf.c: Likewise.
25051         * stdio-common/tst-swprintf.c: Likewise.
25052         * stdio-common/tst-tmpnam.c: Likewise.
25053         * stdio-common/tst-unbputc.c: Likewise.
25054         * stdio-common/tst-wc-printf.c: Likewise.
25055         * stdlib/tst-environ.c: Likewise.
25056         * stdlib/tst-fmtmsg.c: Likewise.
25057         * stdlib/tst-limits.c: Likewise.
25058         * stdlib/tst-rand48-2.c: Likewise.
25059         * stdlib/tst-rand48.c: Likewise.
25060         * stdlib/tst-random2.c: Likewise.
25061         * stdlib/tst-random.c: Likewise.
25062         * stdlib/tst-strtol.c: Likewise.
25063         * stdlib/tst-strtoll.c: Likewise.
25064         * stdlib/tst-tls-atexit.c: Likewise.
25065         * stdlib/tst-xpg-basename.c: Likewise.
25066         * string/test-ffs.c: Likewise.
25067         * string/tst-bswap.c: Likewise.
25068         * string/tst-inlcall.c: Likewise.
25069         * string/tst-strtok.c: Likewise.
25070         * string/tst-strxfrm.c: Likewise.
25071         * sysdeps/x86_64/tst-audit10.c: Likewise.
25072         * sysdeps/x86_64/tst-audit3.c: Likewise.
25073         * sysdeps/x86_64/tst-audit4.c: Likewise.
25074         * sysdeps/x86_64/tst-audit5.c: Likewise.
25075         * time/tst-ftime_l.c: Likewise.
25076         * time/tst-getdate.c: Likewise.
25077         * time/tst-mktime3.c: Likewise.
25078         * time/tst-mktime.c: Likewise.
25079         * time/tst-posixtz.c: Likewise.
25080         * time/tst-strptime2.c: Likewise.
25081         * time/tst-strptime3.c: Likewise.
25082         * wcsmbs/tst-btowc.c: Likewise.
25083         * wcsmbs/tst-mbrtowc.c: Likewise.
25084         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25085         * wcsmbs/tst-wchar-h.c: Likewise.
25086         * wcsmbs/tst-wcpncpy.c: Likewise.
25087         * wcsmbs/tst-wcrtomb.c: Likewise.
25088         * wcsmbs/tst-wcsnlen.c: Likewise.
25089         * wcsmbs/tst-wcstof.c: Likewise.
25090
25091 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25092
25093         [BZ #14132]
25094         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25095         INTDEF.
25096         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25097         declaration.
25098         (_dl_mcount): Use rtld_hidden_proto.
25099         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25100         _dl_mcount.
25101         * elf/rtld.c (_rtld_global_ro): Likewise.
25102
25103         [BZ #14132]
25104         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25105         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25106         of _dl_init_internal.
25107         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25108         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25109         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25110         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25111         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25112         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25113         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25114         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25115         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25116         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25117         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25118         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25119         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25120         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25121         * sysdeps/tile/dl-start.S (_start): Likewise.
25122         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25123         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25124
25125         [BZ #14132]
25126         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25127         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25128         (rtld_progname): Make macro definition unconditional.
25129         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25130         INTDEF.
25131         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25132         (dl_main): Likewise.
25133         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25134         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25135         instead of _dl_argv_internal.
25136         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25137         __GI__dl_argv instead of INTUSE(_dl_argv).
25138         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25139         __GI__dl_argv instead of _dl_argv_internal.
25140
25141         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25142         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25143         macro.
25144         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25145         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25146         New macro.
25147         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25148         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25149         macro.
25150         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25151         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25152
25153 2014-11-04  Andreas Schwab  <schwab@suse.de>
25154
25155         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25156
25157 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25158
25159         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25160         mtvsrd instruction in binary form.
25161
25162 2014-11-03  Andreas Schwab  <schwab@suse.de>
25163
25164         [BZ #17522]
25165         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25166         for less than MB_LEN_MAX use a local buffer of that size.
25167         * libio/tst-fputws.c: New file.
25168         * libio/Makefile (tests): Add tst-fputws.
25169
25170 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25171
25172         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25173         the size of the fpu_fr.fpu_dregs[] array.
25174
25175 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25176
25177         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25178         (__nanosleep): Do not define as alias.
25179         (nanosleep): Define as alias of __nanosleep.
25180         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25181         __libc_nanosleep name.
25182
25183 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25184
25185         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25186         install.texi in comment.
25187
25188 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25189
25190         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25191         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25192         ... add here and use lwsync or sync ...
25193         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25194         ... and add here using lwsync.
25195
25196 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25197
25198         * elf/dl-machine-reject-phdr.h: New file.
25199         * elf/dl-load.c: #include that.
25200         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25201         if that returned true.
25202
25203 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25204
25205         [BZ #17496]
25206         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25207         gen-as-const-headers chunk.  Add a big scare comment after the last
25208         safe place to touch before-compile.
25209
25210 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25211
25212         * manual/install.texi (Tools for Compilation): Update autoconf
25213         version requirements.
25214         * INSTALL: Regenerated.
25215
25216         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25217         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25218         (__libc_pselect): Likewise.
25219
25220         [BZ #14138]
25221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25225
25226 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25227
25228         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25229         correct barrier instruction.
25230         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25231         Likewise.
25232         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25233         Likewise.
25234
25235 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25236
25237         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25238         after defining inlines.  Instead, just use parens to defeat macro
25239         expansion of __isctype in its declaration.
25240
25241 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25242
25243         * include/sys/uio.h (__libc_readv): Remove declaration.
25244         (__libc_writev): Likewise.
25245         * misc/readv.c (__libc_readv): Rename to __readv.
25246         (__readv): Do not define as alias.
25247         (readv): Define as alias of __readv.
25248         * misc/writev.c (__libc_writev): Rename to __writev.
25249         (__writev): Do not define as alias.
25250         (writev): Define as alias of __writev.
25251         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25252         (__readv): Do not define as alias.
25253         (readv): Define unconditionally as alias of __readv.
25254         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25255         (__writev): Do not define as alias.
25256         (writev): Define unconditionally as alias of __writev.
25257         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25258         name.
25259         (writev): Do not define __libc_writev name.
25260
25261 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25262
25263         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25264         (convert_charseq): New function, broken out of ...
25265         (use_from_charmap): ... here.  Call it.
25266         (use_to_charmap): Use convert_charseq and free instead of duplicating
25267         its code with a variable-length stack struct.
25268
25269 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25270
25271         * include/fcntl.h (__libc_creat): Remove declaration.
25272         * io/creat.c (__libc_creat): Rename to creat.
25273         (creat): Do not define as alias.
25274         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25275         of creat instead of __libc_creat.
25276         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25277         to creat.
25278         (creat): Do not define as alias.
25279         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25280         __libc_creat.
25281         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25282         __libc_creat name.
25283         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25284         Likewise.
25285
25286 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25287
25288         * manual/llio.texi: Add comments discussing why write() may be
25289         considered MT-unsafe on Linux.
25290
25291 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25292
25293         * dl-load.c (local_strdup): Remove.
25294         (expand_dynamic_string_token): Use __strdup.
25295         (decompose_rpath): Likewise.
25296         (_dl_map_object): Likewise.
25297
25298 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25299
25300         [BZ #14132]
25301         * sysdeps/generic/unwind-dw2-fde.c
25302         (__register_frame_info_bases_internal): Do not declare.
25303         (__register_frame_info_table_bases_internal): Likewise.
25304         (__deregister_frame_info_bases_internal): Likewise.
25305         (__register_frame_info_bases): Declare and use hidden_proto before
25306         definition.  Use hidden_def instead of INTDEF.
25307         (__register_frame_info_table_bases): Likewise.
25308         (__deregister_frame_info_bases): Likewise.
25309         (__register_frame_info): Do not use INTUSE.
25310         (__register_frame): Likewise.
25311         (__register_frame_info_table): Likewise.
25312         (__register_frame_table): Likewise.
25313         (__deregister_frame_info): Likewise.
25314         (__deregister_frame): Likewise.
25315
25316 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25317
25318         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25319         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25320         not undefine.
25321         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25322         Likewise.
25323         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25324         Likewise.
25325
25326 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25327
25328         [BZ #14138]
25329         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25330         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25331         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25332         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25333         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25334         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25335         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25336         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25337         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25338         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25339         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25340         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25341         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25342         syscall.
25343         (setfsuid): Likewise.
25344         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25345         (setfsuid): Likewise.
25346         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25347         (setfsuid): Likewise.
25348         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25349         Likewise.
25350         (setfsuid): Likewise.
25351         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25352         (setfsuid): Likewise.
25353         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25354         Likewise.
25355         (setfsuid): Likewise.
25356
25357 2014-10-27  Andreas Schwab  <schwab@suse.de>
25358
25359         [BZ #17501]
25360         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25361         check for Slow_SSE4_2 feature bit.
25362         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25363         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25364         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25365         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25366
25367 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25368
25369         * configure.ac: Validate compiler version with a empirical test of
25370         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25371         $CC -v output.
25372         * configure: Regenerated.
25373
25374         * inet/htons.c (htons): Prototypify.
25375         * inet/htonl.c (htonl): Likewise.
25376
25377 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25378
25379         * string/strncat.c (strncat): Improve performance by using strlen.
25380
25381 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25382
25383         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25384
25385 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25386
25387         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25388         Call libc_fetestexcept_aarch64.
25389
25390 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25391
25392         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25393         Call libc_feholdexcept_aarch64.
25394
25395 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25396
25397         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25398         Call get_rounding_mode.
25399
25400 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25401
25402         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25403         Simplify logic.
25404
25405 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25406
25407         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25408         Simplify logic.
25409
25410 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25411
25412         [BZ #14138]
25413         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25414         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25415         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25416         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25417         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25418         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25419         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25420         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25421         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25422         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25423         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25424         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25425         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25426         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25427         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25428         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25429         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25430         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25431         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25432         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25433         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25434         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25435         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25436         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25437         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25438         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25439         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25440         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25441         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25442         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25443         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25444         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25445         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25446         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25447         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25448         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25449         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25450         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25451         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25452         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25453         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25454         syscall.
25455         (geteuid): Likewise.
25456         (getgid): Likewise.
25457         (getuid): Likewise.
25458         (getresgid): Likewise.
25459         (getresuid): Likewise.
25460         (getgroups): Likewise.
25461         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25462         (geteuid): Likewise.
25463         (getgid): Likewise.
25464         (getuid): Likewise.
25465         (getresgid): Likewise.
25466         (getresuid): Likewise.
25467         (getgroups): Likewise.
25468         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25469         (geteuid): Likewise.
25470         (getgid): Likewise.
25471         (getuid): Likewise.
25472         (getresgid): Likewise.
25473         (getresuid): Likewise.
25474         (getgroups): Likewise.
25475         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25476         Likewise.
25477         (geteuid): Likewise.
25478         (getgid): Likewise.
25479         (getuid): Likewise.
25480         (getresgid): Likewise.
25481         (getresuid): Likewise.
25482         (getgroups): Likewise.
25483         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25484         (geteuid): Likewise.
25485         (getgid): Likewise.
25486         (getuid): Likewise.
25487         (getresgid): Likewise.
25488         (getresuid): Likewise.
25489         (getgroups): Likewise.
25490         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25491         Likewise.
25492         (geteuid): Likewise.
25493         (getgid): Likewise.
25494         (getuid): Likewise.
25495         (getgroups): Likewise.
25496
25497         [BZ #14138]
25498         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25499         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25500         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25501         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25502         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25503         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25504         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25505         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25506         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25507         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25508         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25509         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25510         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25511         __chown.
25512         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25513         (lchown): Likewise.
25514         (fchown): Likewise.
25515         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25516         Likewise.
25517         (lchown): Likewise.
25518         (fchown): Likewise.
25519         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25520         (lchown): Likewise.
25521         (fchown): Likewise.
25522         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25523         Likewise.
25524         (lchown): Likewise.
25525         (fchown): Likewise.
25526
25527 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25528
25529         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25530         Simplify logic.
25531
25532 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25533
25534         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25535         Cleanup logic.
25536
25537 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25538
25539         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25540         Remove unused include.
25541
25542 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25543
25544         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25545         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25546         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25547         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25548
25549 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25550             Helge Deller <deller@gmx.de>
25551
25552         [BZ #17508]
25553         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25554         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25555         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25556
25557 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25558
25559         [BZ #14132]
25560         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25561         Remove macro definition.
25562         (__ashrdi3_v_glibc20): Likewise.
25563         (__lshrdi3_v_glibc20): Likewise.
25564         (__cmpdi2_v_glibc20): Likewise.
25565         (__ucmpdi2_v_glibc20): Likewise.
25566         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25567         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25568         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25569         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25570         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25571         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25572
25573 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25574
25575         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25576         old GNU extension [0] syntax.
25577         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25578         alloca rather than an array member with variable length.
25579         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25580         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25581         (parse_opt): ... here.  Likewise use alloca there.
25582         Validate the -i argument before checking for rootness.
25583         (send_shutdown): New function, broken out of ...
25584         (parse_opt): ... here.
25585
25586 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25587
25588         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25589         macro to get at the _rt_local_ro field.
25590         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25591         ([PIC] case) or _dl_hwcap ([!PIC] case).
25592         * sysdeps/arm/setjmp.S: Likewise.
25593
25594         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25595         * sysdeps/arm/configure.ac: New check to define it.
25596         * sysdeps/arm/configure: Regenerated.
25597         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25598         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25599         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25600         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25601         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25602         Use move/movt pair instead of a load.
25603         (LDST_GLOBAL): Macro removed.
25604         (LDR_GLOBAL): New macro replaces it.
25605         (LDR_HIDDEN): New macro.
25606         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25607         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25608
25609         * setjmp/tst-setjmp-static.c: New file.
25610         * setjmp/Makefile (tests): Add it.
25611         (tests-static): New variable.
25612
25613 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25614
25615         [BZ #17485]
25616         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25617
25618 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25619
25620         [BZ #14132]
25621         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25622
25623 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25624
25625         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25626
25627 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25628
25629         * io/fts.c (dirent_not_directory): New function.
25630         (fts_build): Call it.
25631
25632 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25633
25634         * nptl/version.c (__nptl_main): Use normal __write rather than
25635         INTERNAL_SYSCALL.
25636         (banner): Update copyright years.
25637
25638         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25639         gettimeofday.
25640         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25641         * nptl/pthread_cond_timedwait.c: Likewise.
25642         * nptl/pthread_mutex_timedlock.c: Likewise.
25643         * nptl/sem_timedwait.c: Likewise.
25644
25645         * sysdeps/nptl/bits/libc-lock.h
25646         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25647         (__libc_lock_init_recursive): Return void, not 0.
25648         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25649         (__libc_rwlock_init): Likewise.
25650         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25651
25652 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25653
25654         [BZ #15215]
25655         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25656         (__pthread_once_slow): ... here.
25657         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25658         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25659
25660 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25661
25662         [BZ #15215]
25663         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25664         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25665         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25666         * nptl/pthread_once.c (__pthread_once): Likewise.
25667         Update comments.
25668
25669 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25670
25671         [BZ #14138]
25672         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25673         name.
25674         (writev): Use __libc_writev as strong name.
25675         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25676         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25677
25678 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25679
25680         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25681
25682         * sysdeps/i386/nptl/tls.h
25683         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25684         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25685         New macros.
25686         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25687         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25688         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25689         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25690         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25691         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25692
25693         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25694         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25695         on [__NR_futex].
25696         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25697         broken out of ...
25698         (__pthread_mutex_init): ... here.  Call it.
25699         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25700         Conditionalize PI cases on [__NR_futex].
25701         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25702         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25703         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25704
25705         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25706         conditional on [SIGSETXID].
25707         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25708         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25709         is defined.  Likewise for SIGSETXID.
25710         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25711         Conditionalize definitions on [SIGSETXID].
25712         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25713         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25714         unblocking on [SIGCANCEL].
25715
25716         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25717         [__NR_set_robust_list].
25718
25719 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25720
25721         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25722         (do_compare): Likewise.
25723
25724 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25725
25726         [BZ #15884]
25727         * string/strcoll_l.c: Don't include stdio.h.
25728         (coll_seq): Remove members idxarr and rulearr.
25729         (get_next_seq_cached): Remove function.
25730         (get_next_seq): Likewise.
25731         (get_next_seq_nocache): Rename to get_next_seq.
25732         (do_compare): Remove function.
25733         (do_compare_nocache): Rename to do_compare.
25734         (STRCOLL): Remove weight and rules cache.
25735
25736 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25737
25738         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25739         * sysdeps/arm/sfp-machine.h: ... to here.
25740         * sysdeps/arm/Implies: Remove arm/soft-fp.
25741
25742 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25743
25744         * conform/data/sys/utsname.h-data (*_t): Allow.
25745         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25746         [POSIX] (WEXITED): Do not expect constant.
25747         [POSIX] (WSTOPPED): Likewise.
25748         [POSIX] (WNOHANG): Likewise.
25749         [POSIX] (WNOWAIT): Likewise.
25750         [POSIX] (siginfo_t): Do not expect type or elements.
25751         [POSIX] (pid_t): Do not expect type.
25752         [POSIX] (signal.h): Do not allow header.
25753         [POSIX] (sys/resource.h): Likewise.
25754         [POSIX] (si_*): Do not allow pattern.
25755         [POSIX] (W*): Likewise.
25756         [POSIX] (P_*): Likewise.
25757         [POSIX] (BUS_*): Likewise.
25758         [POSIX] (CLD_*): Likewise.
25759         [POSIX] (FPE_*): Likewise.
25760         [POSIX] (ILL_*): Likewise.
25761         [POSIX] (POLL_*): Likewise.
25762         [POSIX] (SEGV_*): Likewise.
25763         [POSIX] (SI_*): Likewise.
25764         [POSIX] (TRAP_*): Likewise.
25765         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
25766         variable.
25767
25768 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
25769
25770         [BZ #12926]
25771         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
25772         infinite loop when __recvmsg returns 0.
25773
25774 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
25775
25776         * CANCEL-FCT-WAIVE: Remove file.
25777         * CANCEL-FILE-WAIVE: Likewise.
25778
25779         [BZ #14132]
25780         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
25781         instead of INTVARDEF.
25782         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25783         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
25784         rtld_hidden_data_def instead of INTVARDEF.
25785         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25786         * elf/dl-deps.c (expand_dst): Likewise.
25787         * elf/dl-load.c (_dl_dst_count): Likewise.
25788         (_dl_dst_substitute): Likewise.
25789         (decompose_rpath): Likewise.
25790         (_dl_init_paths): Likewise.
25791         (open_path): Likewise.
25792         (_dl_map_object): Likewise.
25793         * elf/rtld.c (dl_main): Likewise.
25794         (process_dl_audit): Likewise.
25795         (process_envvars): Likewise.
25796         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
25797         Remove declaration.
25798         (__libc_enable_secure): Use rtld_hidden_proto.
25799
25800 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25801
25802         * elf/dl-load.c
25803         (add_path): New function broken out of _dl_rtld_di_serinfo.
25804         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
25805
25806 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25807
25808         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
25809         parentheses around macro arguments.
25810         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
25811         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
25812         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
25813         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
25814         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
25815         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25816         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25817         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
25818         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
25819         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
25820         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
25821         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
25822         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
25823         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
25824         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
25825         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
25826         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
25827         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
25828         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
25829         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
25830         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
25831         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
25832         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
25833         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25834         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25835         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
25836         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
25837         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
25838         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
25839         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
25840         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
25841         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
25842         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
25843         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
25844         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
25845         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
25846         Likewise.
25847         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
25848         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25849         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25850         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
25851         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
25852         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
25853         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
25854         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
25855         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
25856         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
25857         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
25858         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
25859         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
25860         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
25861         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
25862         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25863         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25864         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
25865         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
25866         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
25867         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
25868         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
25869         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
25870         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
25871         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
25872         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
25873         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
25874         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
25875         (_FP_FRAC_SRS_1): Likewise.
25876         (_FP_FRAC_CLZ_1): Likewise.
25877         (_FP_MUL_MEAT_1_imm): Likewise.
25878         (_FP_MUL_MEAT_1_wide): Likewise.
25879         (_FP_MUL_MEAT_1_hard): Likewise.
25880         (_FP_SQRT_MEAT_1): Likewise.
25881         (_FP_FRAC_ASSEMBLE_1): Likewise.
25882         (_FP_FRAC_DISASSEMBLE_1): Likewise.
25883         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
25884         (__FP_CLZ_2): Likewise.
25885         (_FP_MUL_MEAT_2_wide): Likewise.
25886         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
25887         (_FP_MUL_MEAT_2_gmp): Likewise.
25888         (_FP_MUL_MEAT_2_120_240_double): Likewise.
25889         (_FP_SQRT_MEAT_2): Likewise.
25890         (_FP_FRAC_ASSEMBLE_2): Likewise.
25891         (_FP_FRAC_DISASSEMBLE_2): Likewise.
25892         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
25893         (_FP_FRAC_CLZ_4): Likewise.
25894         (_FP_MUL_MEAT_4_wide): Likewise.
25895         (_FP_MUL_MEAT_4_gmp): Likewise.
25896         (_FP_SQRT_MEAT_4): Likewise.
25897         (_FP_FRAC_ASSEMBLE_4): Likewise.
25898         (_FP_FRAC_DISASSEMBLE_4): Likewise.
25899         * soft-fp/op-common.h (_FP_CMP): Likewise.
25900         (_FP_CMP_EQ): Likewise.
25901         (_FP_CMP_UNORD): Likewise.
25902         (_FP_TO_INT): Likewise.
25903         (_FP_FROM_INT): Likewise.
25904         [!__FP_CLZ] (__FP_CLZ): Likewise.
25905         (_FP_DIV_HELP_imm): Likewise.
25906         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
25907         Likewise.
25908         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
25909         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
25910         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
25911         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
25912         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
25913         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25914         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25915         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
25916         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
25917         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
25918         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
25919         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
25920         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
25921         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
25922         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
25923         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
25924         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
25925         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
25926         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
25927         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
25928         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
25929         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
25930         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
25931         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25932         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25933         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
25934         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
25935         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
25936         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
25937         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
25938         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
25939         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
25940         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
25941         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
25942         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
25943         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
25944         (FP_UNPACK_RAW_SP): Likewise.
25945         (FP_PACK_RAW_S): Likewise.
25946         (FP_PACK_RAW_SP): Likewise.
25947         (FP_UNPACK_S): Likewise.
25948         (FP_UNPACK_SP): Likewise.
25949         (FP_UNPACK_SEMIRAW_S): Likewise.
25950         (FP_UNPACK_SEMIRAW_SP): Likewise.
25951         (FP_PACK_S): Likewise.
25952         (FP_PACK_SP): Likewise.
25953         (FP_PACK_SEMIRAW_S): Likewise.
25954         (FP_PACK_SEMIRAW_SP): Likewise.
25955         (_FP_SQRT_MEAT_S): Likewise.
25956         (FP_CMP_S): Likewise.
25957         (FP_CMP_EQ_S): Likewise.
25958         (FP_CMP_UNORD_S): Likewise.
25959         (FP_TO_INT_S): Likewise.
25960         (FP_FROM_INT_S): Likewise.
25961
25962         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
25963
25964         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
25965         (FP_EX_INVALID_IMZ): Likewise.
25966         (FP_EX_INVALID_IMZ_FMA): Likewise.
25967         (FP_EX_INVALID_ISI): Likewise.
25968         (FP_EX_INVALID_ZDZ): Likewise.
25969         (FP_EX_INVALID_IDI): Likewise.
25970         (FP_EX_INVALID_SQRT): Likewise.
25971         (FP_EX_INVALID_CVI): Likewise.
25972         (FP_EX_INVALID_VC): Likewise.
25973         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
25974         "invalid" exceptions.
25975         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
25976         (_FP_ADD_INTERNAL): Likewise.
25977         (_FP_MUL): Likewise.
25978         (_FP_FMA): Likewise.
25979         (_FP_DIV): Likewise.
25980         (_FP_CMP_CHECK_NAN): Likewise.
25981         (_FP_SQRT): Likewise.
25982         (_FP_TO_INT): Likewise.
25983         (FP_EXTEND): Likewise.
25984
25985 2014-10-09  Allan McRae  <allan@archlinux.org>
25986
25987         * po/fr.po: Update French translation from translation project.
25988
25989 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25990
25991         [BZ #14132]
25992         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
25993         of INTDEF.
25994         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
25995         (__cxa_atexit): Use libc_hidden_proto.
25996         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
25997
25998         [BZ #14132]
25999         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26000         declaration.
26001         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26002         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26003         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26004         [!_ISOMAC] (__iswctype_internal): Likewise.
26005         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26006         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26007         alias.
26008         (fcntl): Remove __fcntl_internal alias.
26009         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26010         __connect_internal alias.
26011         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26012         Likewise.
26013
26014         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26015         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26016         FP_DENORM_ZERO.
26017         (_FP_CHECK_FLUSH_ZERO): New macro.
26018         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26019         (_FP_CMP): Likewise.
26020         (_FP_CMP_EQ): Likewise.
26021         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26022         FP_DENORM_ZERO.
26023         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26024         (FP_TRUNC): Likewise.
26025
26026         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26027         treated as invalid conversion, not as normal exponent.
26028
26029         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26030         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26031         (_FP_CMP_EQ): Likewise.
26032         (_FP_CMP_UNORD): Likewise.
26033         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26034         (FP_CMP_EQ_D): Likewise.
26035         (FP_CMP_UNORD_D): Likewise.
26036         * soft-fp/extended.h (FP_CMP_E): Likewise.
26037         (FP_CMP_EQ_E): Likewise.
26038         (FP_CMP_UNORD_E): Likewise.
26039         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26040         (FP_CMP_EQ_Q): Likewise.
26041         (FP_CMP_UNORD_Q): Likewise.
26042         * soft-fp/single.h (FP_CMP_S): Likewise.
26043         (FP_CMP_EQ_S): Likewise.
26044         (FP_CMP_UNORD_S): Likewise.
26045         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26046         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26047         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26048         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26049         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26050         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26051         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26052         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26053         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26054         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26055         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26056         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26057         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26058         to FP_CMP_Q.
26059         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26060         FP_CMP_Q.
26061         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26062         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26063         FP_CMP_EQ_Q.
26064         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26065         FP_CMP_Q.
26066         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26067         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26068         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26069         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26070         FP_CMP_EQ_Q.
26071         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26072         FP_CMP_Q.
26073         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26074         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26075         FP_CMP_EQ_Q.
26076         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26077         FP_CMP_Q.
26078         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26079         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26080         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26081         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26082         FP_CMP_EQ_Q.
26083
26084         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26085         a subnormal result, set the underflow exception if trapping on
26086         underflow is enabled.
26087         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26088         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26089         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26090         redefine to 0.
26091         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26092         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26093         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26094         * soft-fp/extendxftf2.c (__extendxftf2): Use
26095         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26096
26097         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26098         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26099         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26100         FP_HANDLE_EXCEPTIONS.
26101         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26102         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26103         FP_HANDLE_EXCEPTIONS.
26104         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26105         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26106         FP_HANDLE_EXCEPTIONS.
26107         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26108         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26109         FP_HANDLE_EXCEPTIONS.
26110
26111 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26112
26113         [BZ #14132]
26114         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26115         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26116         use INTUSE.
26117         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26118         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26119         Remove alias.
26120         (__adjtimex): Define using libc_hidden_ver.
26121         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26122         Remove declaration.
26123         (ntp_gettime): Call __adjtimex directly.
26124         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26125         Remove declaration.
26126         (ntp_gettimex): Call __adjtimex directly.
26127         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26128         __adjtimex_internal alias.
26129
26130 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26131
26132         [BZ #17460]
26133         * nscd/nscd.c (more_help): Rewrite list of tables collection
26134         using xstrdup and asprintf.
26135
26136         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26137
26138 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26139             Roland McGrath  <roland@hack.frob.com>
26140
26141         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26142         (do_lookup_unique): ... local function 'enter' here; update callers.
26143
26144 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26145
26146         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26147         compat_symbol calls on [SHARED].
26148         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26149         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26150         Remove.
26151         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26152         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26153         (oldsetrlimit): Remove.
26154         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26156         (lchown): New syscall entry.
26157         (oldsetrlimit): Remove.
26158         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26159         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26160         (oldsetrlimit): Remove.
26161         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26162
26163         [BZ #14138]
26164         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26165         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26166         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26167         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26168         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26169         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26170         (fchown): Likewise.
26171         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26172         (fchown): Likewise.
26173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26174         Likewise.
26175
26176 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26177
26178         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26179         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26180         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26181         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26182         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26183         Likewise.
26184         (__old_sem_post): Likewise.
26185
26186 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26187
26188         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26189         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26190         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26191         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26192         Use INLINE_VSYSCALL macro.
26193         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26194         __vdso_clock_gettime.
26195         * sysdeps/unix/sysv/linux/tile/init-first.c
26196         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26197         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26198         __vdso_clock_gettime.
26199
26200         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26201         to set up frame more cleanly.
26202
26203         * sysdeps/tile/memcmp.c: New file.
26204
26205         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26206
26207         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26208         * sysdeps/tile/tilegx/strcasestr.c: New file.
26209         * sysdeps/tile/tilegx/strnlen.c: New file.
26210         * sysdeps/tile/tilegx/strstr.c: New file.
26211
26212         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26213
26214 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26215
26216         * nptl/tst-setuid3.c: Write errors to stdout.
26217
26218 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26219
26220         * elf/dl-deps.c
26221         (preload): New functions broken out of _dl_map_object_deps.
26222         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26223
26224 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26225
26226         [BZ #14138]
26227         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26228         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26229
26230 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26231
26232         * sysdeps/mips/strcmp.S: New.
26233
26234 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26235
26236         [BZ #14138]
26237         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26238         (linkat): Likewise.
26239         (mkdirat): Likewise.
26240         (readlinkat): Likewise.
26241         (renameat): Likewise.
26242         (symlinkat): Likewise.
26243         (unlinkat): Likewise.
26244         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26245         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26246         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26247         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26248         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26249         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26250         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26251
26252 2014-09-30  Will Newton  <will.newton@linaro.org>
26253
26254         * math/math.h: Define long double math functions if
26255         _LIBC_TEST is defined.
26256         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26257
26258         * localedata/Makefile: Move assignment to tests-special
26259         into an ifdef testing run-built-tests.
26260         * timezone/Makefile: Likewise.
26261
26262 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26263
26264         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26265         with $(BASH) not $(SHELL).
26266
26267 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26268             Matthew LeGendre  <legendre1@llnl.gov>
26269
26270         [BZ #17411]
26271         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26272         l_reloc_result.
26273
26274 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26275
26276         * stdio-common/printf_fp.c
26277         (hack_digit): New function, broken out of ...
26278         (__printf_fp): ... local function here.  Update call sites.
26279         hack_digit now takes an additional parameter that is a pointer
26280         to a struct of the referenced locals.  Those locals moved inside
26281         the struct and references updated.
26282
26283 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26284
26285         * aclocal.m4: Require autoconf 2.69.
26286         * configure: Regenerated.
26287         * sysdeps/aarch64/configure: Likewise.
26288         * sysdeps/alpha/configure: Likewise.
26289         * sysdeps/arm/armv7/configure: Likewise.
26290         * sysdeps/arm/configure: Likewise.
26291         * sysdeps/ia64/configure: Likewise.
26292         * sysdeps/mach/configure: Likewise.
26293         * sysdeps/mips/configure: Likewise.
26294         * sysdeps/s390/configure: Likewise.
26295         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26297
26298         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26299         file.
26300         * sysdeps/ia64/configure.ac: Likewise.
26301
26302 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26303
26304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26305         specify symbol version for ld.so.  Do not include entry for
26306         libpthread.
26307         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26308         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26309         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26310
26311         [BZ #14171]
26312         * Makeconfig [$(build-shared) = yes]
26313         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26314         makefiles.
26315         [$(build-shared) = yes && $(soversions.mk-done) = t]
26316         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26317         [$(build-shared) = yes && $(soversions.mk-done) = t]
26318         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26319         to Makerules.
26320         [$(build-shared) = yes && $(soversions.mk-done) = t]
26321         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26322         here.
26323         [$(build-shared) = yes && $(soversions.mk-done) = t]
26324         (common-generated): Don't append gnu/lib-names.h and
26325         gnu/lib-names.stmp here.
26326         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26327         (lib-names-h-abi): New variable.
26328         [$(build-shared) = yes && $(soversions.mk-done) = t]
26329         (lib-names-stmp-abi): Likewise.
26330         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26331         abi-variants] (before-compile): Append
26332         $(common-objpfx)$(lib-names-h-abi).
26333         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26334         abi-variants] (common-generated): Append gnu/lib-names.h.
26335         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26336         abi-variants] (install-others-nosubdir): Depend on
26337         $(inst_includedir)/$(lib-names-h-abi).
26338         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26339         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26340         [$(build-shared) = yes && $(soversions.mk-done) = t]
26341         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26342         [$(build-shared) = yes && $(soversions.mk-done) = t]
26343         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26344         [$(build-shared) = yes && $(soversions.mk-done) = t]
26345         (common-generated): Append $(lib-names-h-abi) and
26346         $(lib-names-stmp-abi).
26347         * scripts/lib-names.awk: Do not handle multi being set.
26348         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26349         Remove variable.
26350         (abi-lp64_be-ld-soname): Likewise.
26351         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26352         Likewise.
26353         (abi-hard-ld-soname): Likewise.
26354         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26355         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26356         Remove variable.
26357         (abi-o32_hard-ld-soname): Likewise.
26358         (abi-o32_soft_2008-ld-soname): Likewise.
26359         (abi-o32_hard_2008-ld-soname): Likewise.
26360         (abi-n32_soft-ld-soname): Likewise.
26361         (abi-n32_hard-ld-soname): Likewise.
26362         (abi-n32_soft_2008-ld-soname): Likewise.
26363         (abi-n32_hard_2008-ld-soname): Likewise.
26364         (abi-n64_soft-ld-soname): Likewise.
26365         (abi-n64_hard-ld-soname): Likewise.
26366         (abi-n64_soft_2008-ld-soname): Likewise.
26367         (abi-n64_hard_2008-ld-soname): Likewise.
26368         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26369         Likewise.
26370         (abi-64-v2-ld-soname): Likewise.
26371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26372         ld.so entries.
26373         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26374         variable.
26375         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26376         entry.
26377         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26378         variable.
26379         (abi-64-ld-soname): Likewise.
26380         (abi-x32-ld-soname): Likewise.
26381         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26382         entry.
26383         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26384
26385 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26386
26387         [BZ #14138]
26388         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26389         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26390         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26391         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26392         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26393         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26394         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26395         syscall entry for GLIBC_2.2 symbol version.
26396         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26397         Likewise.
26398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26399         (setrlimit): Likewise.
26400         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26401         Likewise.
26402
26403 2014-09-23  Will Newton  <will.newton@linaro.org>
26404
26405         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26406         _LINUX_ARM_SYSDEP_H include guard too.
26407         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26408         define.
26409
26410 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26411
26412         * sysdeps/unix/sysv/linux/eventfd.c:
26413         Make first argument unsigned.
26414         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26415         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26416
26417 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26418
26419         [BZ #16852]
26420         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26421         * socket/sys/socket.h: Likewise.
26422         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26423
26424 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26425
26426         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26427
26428 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26429
26430         * time/tst-ftime.c: New test.
26431         * time/Makefile (tests): Add tst-ftime.
26432
26433 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26434
26435         * soft-fp/extended.h: Fix comment formatting.
26436         * soft-fp/op-1.h: Likewise.
26437         * soft-fp/op-2.h: Likewise.
26438         * soft-fp/op-4.h: Likewise.
26439         * soft-fp/op-8.h: Likewise.
26440         * soft-fp/op-common.h: Likewise.
26441         * soft-fp/soft-fp.h: Likewise.
26442
26443         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26444
26445 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26446
26447         [BZ #6652]
26448         * Makeconfig (soversions-default-setname): Remove variable.
26449         ($(common-objpfx)soversions.i): Don't pass default_setname to
26450         soversions.awk.
26451         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26452         oldest_abi to abi-versions.awk.
26453         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26454         * config.make.in (oldest-abi): Remove variable.
26455         * configure.ac (--enable-oldest-abi): Remove configure option.
26456         * configure: Regenerated.
26457         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26458         text.
26459         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26460         * scripts/soversions.awk: Do not handle default_setname variable.
26461         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26462         variable.
26463         * sysdeps/mach/hurd/configure: Regenerated.
26464         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26465         variable.
26466         * sysdeps/unix/sysv/linux/configure: Regenerated.
26467
26468 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26469
26470         * elf/Makefile (CFLAGS-interp.c): Remove.
26471         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26472         path string.
26473         * elf/interp.c: Include generated runtime-linker.h
26474
26475         * Makerules (lib%.so): Don't include $(+interp) in
26476         prerequisites.
26477         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26478         * dlfcn/eval.c: Remove file.
26479
26480         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26481         macros.
26482
26483         [BZ #17266]
26484         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26485         4.2 and newer.
26486
26487         [BZ #17370]
26488         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26489
26490 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26491             Jakub Jelinek  <jakub@redhat.com>
26492
26493         [BZ #17266]
26494         * libio/stdio.h: Check definition of __fortify_function
26495         instead of __extern_always_inline to include bits/stdio2.h.
26496         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26497         check if __extern_always_inline is defined.
26498         [__USE_MISC || __USE_XOPEN]: Likewise.
26499         [__USE_ISOC99] Likewise.
26500         * misc/sys/cdefs.h (__fortify_function): Define only if
26501         __extern_always_inline is defined.
26502         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26503         __extern_always_inline and __extern_inline only for g++-4.3
26504         and newer or a compatible gcc.
26505
26506 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26507
26508         [BZ #17371]
26509         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26510         last change to handle zero prefix length.
26511
26512 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26513
26514         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26515         _SC_REGEX_VERSION.
26516
26517         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26518         _POSIX_RAW_SOCKETS.
26519
26520 2014-09-13  Allan McRae  <allan@archlinux.org>
26521
26522         * po/ru.po: Update Russian translation from translation project.
26523
26524 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26525
26526         * locale/programs/locale.c (show_locale_vars): Inline local function
26527         into its sole call site.  Clean up some style nits.
26528         (print_item): New function, broken out of ...
26529         (show_info): ... local function here.  Clean up style nits.
26530
26531         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26532         out of ...
26533         (set_class_defaults): ... local function set_default here.
26534         Define set_default as a macro locally to pass constant parameters.
26535         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26536         rather than a shared local.
26537
26538         * stdlib/rpmatch.c (try): New function, broken out of ...
26539         (rpmatch): ... local function here.  Also, prototypify definition.
26540
26541 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26542
26543         * scripts/soversions.awk: Do not handle configuration names.
26544         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26545         vendor and os variables to soversions.awk.
26546         * configure.ac: Do not modify gnu-* host_os.
26547         * configure: Regenerated
26548         * shlib-versions: Remove first column with configuration names.
26549         * nptl/shlib-versions: Likewise.
26550         * nptl_db/shlib-versions: Likewise.
26551         * sysdeps/hppa/shlib-versions: Likewise.
26552         * sysdeps/m68k/shlib-versions: Likewise.
26553         * sysdeps/mach/hurd/shlib-versions: Likewise.
26554         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26555         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26556         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26557         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26558         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26559         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26560         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26561         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26563         Likewise.
26564         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26565         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26566         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26567         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26568         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26569         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26570         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26571         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26572
26573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26574         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26576         Regenerated.
26577         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26579         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26580
26581         * shlib-versions: Remove OS-specific entries.  Moved to files in
26582         sysdeps.
26583         * sysdeps/mach/hurd/shlib-versions: New file.
26584         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26585
26586         * nptl/shlib-versions: Remove architecture-specific entries.
26587         Moved to files in sysdeps.
26588         * shlib-versions: Likewise.
26589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26590         file.
26591         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26592         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26593         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26594         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26595
26596         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26597         (UDP_NO_CHECK6_RX): Likewise.
26598
26599 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26600
26601         * sysdeps/posix/sysconf.c (__sysconf): Spell
26602         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26603
26604 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26605
26606         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26607         loading.
26608         * iconv/Versions (__gconv_transliterate): Export for use from
26609         gconv modules.
26610         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26611         (struct __gconv_trans_data, __gconv_trans_fct,
26612         __gconv_trans_context_fct, __gconv_trans_query_fct,
26613         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26614         definitions.
26615         (struct __gconv_step_data): Remove __trans member.
26616         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26617         longer hidden.  Remove unused trans_data argument.
26618         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26619         (__gconv_translit_find): Remove declaration.
26620         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26621         prototype.
26622         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26623         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26624         trans_data argument.  Add hidden definition.
26625         (__gconv_translit_find): Remove.
26626         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26627         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26628         * iconv/skeleton.c: Remove transliteration initialization.
26629         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26630         __gconv_step_data initialization.
26631         * libio/iofwide.c (__libio_translit_): Remove.
26632         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26633         * wcsmbs/btowc.c (__btowc): Likewise.
26634         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26635         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26636         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26637         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26638         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26639         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26640         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26641         * wcsmbs/wctob.c (wctob): Likewise.
26642
26643 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26644
26645         [BZ #16194]
26646         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26647         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26648         register usage.
26649         * sysdeps/x86/Makefile: Adjust.
26650
26651 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26652             Roland McGrath  <roland@hack.frob.com>
26653
26654         * locale/weight.h: Add include guard.
26655         (findidx): Make static rather than auto; take new parameters
26656         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26657         * locale/weightwc.h: Likewise.
26658         * posix/fnmatch_loop.c
26659         (FCT): Change type of EXTRA from int32_t to wint_t.
26660         Don't include either header inside the function.
26661         Call FINDIDX rather than findidx, and pass new arguments.
26662         #undef FINDIDX at the end of the file.
26663         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26664         FINDIDX before including fnmatch_loop.c for the non-wide version.
26665         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26666         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26667         for the wide version.
26668         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26669         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26670         Pass new arguments to findidx.
26671         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26672         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26673         Don't #include it inside the function.  Pass new arguments to findidx.
26674         * posix/regex_internal.h
26675         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26676         (re_string_elem_size_at): Don't #include it inside the function.
26677         Pass new arguments to findidx.
26678         * string/strcoll_l.c: #include WEIGHT_H at top level.
26679         (get_next_seq): Don't #include it inside the function.
26680         Pass new arguments to findidx.
26681         (get_next_seq_nocache): Likewise.
26682         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26683         (STRXFRM): Don't #include it inside the function.
26684         Pass new arguments to findidx.
26685
26686 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26687
26688         [BZ #17344]
26689         * malloc/malloc.c (unlink): Turn asserts into a call to
26690         malloc_printerr.
26691
26692 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26693
26694         [BZ #17370]
26695         * libio/wfileops (do_ftell_wide): Free OUT.
26696
26697 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26698
26699         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26700
26701 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26702
26703         [BZ #17363]
26704         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26705         group if the current group is empty.
26706
26707 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26708
26709         * benchtests/bench-memset.c (test_main): Add more test from size
26710         from 32 to 512 bytes.
26711         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26712         Add POWER8 memset object.
26713         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26714         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26715         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26716         implementation.
26717         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26718         Likewise.
26719         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26720         multiarch POWER8 memset optimization.
26721         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26722         POWER8 memset optimization.
26723
26724         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26725         Remove bzero multiarch objects.
26726         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26727         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26728         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26729         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26730         Remove define.
26731         [__bzero]: Redefine to specific name.
26732         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26733         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26734         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26735         define.
26736         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26737         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26738
26739 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26740
26741         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26742         warnings into errors.
26743
26744         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26745         __cxa_thread_atexit_impl prototype.
26746
26747 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26748
26749         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26750         Fix capitalization of error message.
26751
26752 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26753
26754         * sysdeps/mips/preconfigure: Modify ABI tests.
26755
26756 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26757
26758         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26759
26760 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26761             Carlos O'Donell  <carlos@systemhalted.org>
26762
26763         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
26764         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
26765         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
26766         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
26767         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
26768         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
26769         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
26770         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
26771         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
26772         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
26773         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
26774         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
26775         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
26776         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
26777         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
26778         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
26779         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
26780         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
26781         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
26782         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
26783         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
26784         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
26785         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
26786         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
26787         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
26788         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
26789         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
26790         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
26791         Deconditionalize the code that was previously under [RESET_PID].
26792         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
26793         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
26794         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
26795         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
26796         include sysdep.h.
26797
26798 2014-09-08  Allan McRae  <allan@archlinux.org>
26799
26800         * version.h (RELEASE): Set to "development".
26801         (VERSION): Set to "2.20.90"
26802
26803 2014-09-07  Allan McRae  <allan@archlinux.org
26804
26805         * version.h (RELEASE): Set to "stable".
26806         (VERSION): Set to "2.20"
26807         * include/features.h (__GLIBC_MINOR__): Set to 20.
26808
26809         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
26810         Liebler.
26811
26812         * po/ko.po: Update Korean translation from translation project.
26813
26814 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
26815
26816         [BZ #17354]
26817         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
26818         macro for handling signed relocations.
26819
26820 2014-09-03  Florian Weimer  <fweimer@redhat.com>
26821
26822         [BZ #17325]
26823         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
26824         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
26825         assert.
26826         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
26827         * iconvdata/ibm935.c (BODY): Likewise.
26828         * iconvdata/ibm937.c (BODY): Likewise.
26829         * iconvdata/ibm939.c (BODY): Likewise.
26830         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
26831         assert.
26832         * iconvdata/Makefile (iconv-test.out): Pass module list to test
26833         script.
26834         * iconvdata/run-iconv-test.sh: New test loop for checking for
26835         decoder crashers.
26836
26837 2014-09-02  Khem Raj  <raj.khem@gmail.com>
26838
26839         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
26840         libm_hidden_ver.
26841
26842 2014-09-01  Allan McRae  <allan@archlinux.org>
26843
26844         * po/eo.po: Update Esperanto translation from translation project.
26845
26846         * po/ca.po: Update Catalan translation from translation project.
26847
26848 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26849
26850         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
26851         __proc_dostop call.
26852
26853 2014-08-27  Mark Wielaard  <mjw@redhat.com>
26854
26855         [BZ #17319]
26856         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
26857         to call set_thread_area instead of hand written asm.
26858         (__NR_set_thread_area): Removed define.
26859         (TLS_FLAG_WRITABLE): Likewise.
26860         (__ASSUME_SET_THREAD_AREA): Remove check.
26861         (TLS_EBX_ARG): Remove define.
26862         (TLS_LOAD_EBX): Likewise.
26863
26864 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26865
26866         Simplify atomicity of socket creation in bind.
26867
26868         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
26869         looking up the name after linking the file.
26870
26871 2014-08-27  Allan McRae  <allan@archlinux.org>
26872
26873         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26874
26875 2014-08-26  Florian Weimer  <fweimer@redhat.com>
26876
26877         [BZ #17187]
26878         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
26879         trans_compare, open_translit, __gconv_translit_find):
26880         Remove module loading code.
26881
26882 2014-08-26  Allan McRae  <allan@archlinux.org>
26883
26884         * po/vi.po: Update Vietnamese translation from translation project.
26885
26886         * po/uk.po: Update Ukrainian translation from translation project.
26887
26888         * po/fr.po: Update French translation from translation project.
26889
26890         * po/ru.po: Update Russian translation from translation project.
26891
26892         * po/pl.po: Update Polish translation from translation project.
26893
26894         * po/cs.po: Update Czech translation from translation project.
26895
26896         * po/de.po: Update German translation from translation project.
26897
26898         * po/bg.po: Update Bulgarian translation from translation project.
26899
26900         * po/sv.po: Update Sweedish translation from translation project.
26901
26902         * po/nl.po: Update Dutch translation from translation project.
26903
26904         * po/es.po: Update Spanish translation from translation project.
26905
26906 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26907
26908         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
26909
26910         * catgets/Makefile (CPPFLAGS-gencat): Remove.
26911         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
26912         (CPPFLAGS-iconvconfig): Likewise.
26913         * timezone/Makefile (CPPFLAGS-zic): Likewise.
26914
26915         * include/libc-symbols.h: Remove unnecessary check for
26916         NOT_IN_libc.
26917         * nptl/pthreadP.h: Likewise.
26918         * sysdeps/aarch64/setjmp.S: Likewise.
26919         * sysdeps/alpha/setjmp.S: Likewise.
26920         * sysdeps/arm/sysdep.h: Likewise.
26921         * sysdeps/i386/setjmp.S: Likewise.
26922         * sysdeps/m68k/setjmp.c: Likewise.
26923         * sysdeps/posix/getcwd.c: Likewise.
26924         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
26925         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
26926         * sysdeps/s390/s390-32/setjmp.S: Likewise.
26927         * sysdeps/s390/s390-64/setjmp.S: Likewise.
26928         * sysdeps/sh/sh3/setjmp.S: Likewise.
26929         * sysdeps/sh/sh4/setjmp.S: Likewise.
26930         * sysdeps/unix/alpha/sysdep.h: Likewise.
26931         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
26932         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
26933         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
26934         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
26935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26937         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26938         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26939         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
26940         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26941         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26942         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
26943         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
26944         * sysdeps/x86_64/setjmp.S: Likewise.
26945
26946 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
26947
26948         [BZ #17263]
26949         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
26950         <stdint.h>.
26951         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
26952         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
26953
26954 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
26955
26956         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
26957
26958         [BZ #17262]
26959         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
26960         and __x86_64__ when disabling x87 inline functions.
26961
26962 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26963
26964         [BZ #17259]
26965         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
26966         asm statement with __cpuid_count.
26967
26968 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
26969
26970         * configure.ac: Change __ehdr_start code to dereference the struct.
26971         Run readelf on the output to look for relocations.
26972         * configure: Regenerated.
26973
26974 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
26975
26976         [BZ #17261]
26977         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
26978         value to 0.
26979         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
26980
26981 2014-08-12  Roland McGrath  <roland@hack.frob.com>
26982
26983         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
26984
26985 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
26986
26987         [BZ #16892]
26988         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
26989         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
26990
26991 2014-08-12  Sean Anderson  <seanga2@gmail.com>
26992
26993         * malloc/malloc.c: Fix typo in comment.
26994
26995 2014-08-09  Allan McRae  <allan@archlinux.org>
26996
26997         * Regenerate libc.po.
26998
26999 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27000
27001         * intl/tst-gettext2.sh: Check every lang file for creation.
27002
27003 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27004
27005         * sysdeps/aarch64/fpu/math_private.h
27006         (libc_feholdsetround_noex_aarch64_ctx): New function.
27007
27008 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27009
27010         * sysdeps/arm/armv6/strcpy.S (strcpy):
27011         Fix performance issue in misaligned cases.
27012
27013 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27014
27015         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27016         Move definition from termios.h.
27017         (struct termio): Likewise.
27018         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27019         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27020         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27021         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27022         Likewise.
27023         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27024         Move definition to ioctl-types.h
27025         (struct termio): Likewise.
27026         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27027         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27028         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27029         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27030         Likewise.
27031
27032 2014-08-05  Richard Henderson  <rth@redhat.com>
27033
27034         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27035         exceptions.
27036         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27037         Add fraiseexcpt.
27038         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27039         Use __feraiseexcept.
27040         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27041         Protect libm symbols with IS_IN_libm.
27042
27043         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27044
27045 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27046
27047         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27048
27049 2014-08-04  Will Newton  <will.newton@linaro.org>
27050
27051         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27052         file.
27053
27054 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27055
27056         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27057         variants for each function.
27058
27059 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27060
27061         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27062         appended ...
27063         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27064         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27065         appended ...
27066         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27067         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27068         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27069         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27070         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27071         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27072         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27073         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27074         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27075         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27076         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27077         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27078         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27079         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27080         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27081         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27082         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27083         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27084         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27085         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27086         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27087         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27088         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27089         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27090         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27091         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27092         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27093         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27094         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27095         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27096         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27097         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27098         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27099         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27100         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27101         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27102         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27103         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27104         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27105         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27106         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27107         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27108         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27109         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27110         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27111         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27112         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27113         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27114         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27115         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27116         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27117         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27118         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27119         Update #include.
27120         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27121         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27122
27123 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27124
27125         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27126         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27127         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27128         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27129         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27130         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27131
27132 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27133
27134         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27135         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27136         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27137         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27138
27139 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27140
27141         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27142         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27143         (__libc_vfork): Define function under this name.
27144         (__vfork): Define as an alias.
27145         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27146         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27147
27148 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27149
27150         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27151         that was previously under [RESET_PID].
27152         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27153
27154 2014-08-04  Andreas Schwab  <schwab@suse.de>
27155
27156         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27157
27158 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27159
27160         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27161         (main): Likewise.
27162
27163 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27164
27165         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27166
27167 2014-08-01  Richard Henderon  <rth@redhat.com>
27168
27169         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27170         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27171         typo in exact zero test.
27172         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27173         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27174         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27175
27176 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27177
27178         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27179         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27180         * sysdeps/arm/sysdep.h: ... here.
27181         [!__ASSEMBLER__]: Include <stdint.h>.
27182
27183 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27184
27185         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27186         (HAVE_WCTYPE_H): Likewise.
27187         (HAVE_ISWCTYPE): Likewise.
27188         (ENABLE_NLS): Likewise.
27189         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27190         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27191
27192         * posix/regex_internal.c: Check if DEBUG is defined and is
27193         set.
27194
27195         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27196         (HAVE_MBSRTOWCS): Likewise.
27197         * posix/fnmatch.c: Include string.h unconditionally.
27198
27199 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27200
27201         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27202         reversal.
27203
27204 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27205
27206         * sysdeps/generic/safe-fatal.h: New file.
27207         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27208         * nptl/forward.c: Include it.
27209         (__pthread_unwind): Use __safe_fatal as default action, rather
27210         than a bogus use of INTERNAL_SYSCALL that could never work.
27211
27212         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27213         * configure.ac (libc_cv_builtin_trap): New test.
27214         * configure: Regenerated.
27215         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27216         (ABORT_INSTRUCTION): Define using __builtin_trap.
27217
27218         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27219         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27220         * sysdeps/nptl/nptl-signals.h: New file.
27221         * nptl/pthreadP.h: Include <nptl-signals.h>.
27222
27223 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27224
27225         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27226         (ONE_DIRECTION): Define.
27227         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27228         (ONE_DIRECTION): Define.
27229         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27230         (ONE_DIRECTION): Define.
27231
27232 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27233
27234         * sysdeps/s390/Makefile: Delete file.
27235         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27236         * sysdeps/s390/__longjmp.c: Delete file.
27237         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27238         Remove fields __flags and __reserved.
27239         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27240         and add versioning.
27241         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27242         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27243         * sysdeps/s390/rtld-setjmp.S: Likewise.
27244         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27245         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27246         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27247         * sysdeps/s390/s390-32/setjmp.S: ... here.
27248         Add versioning.
27249         (__sigsetjmp): Remove setting __flags field.
27250         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27251         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27252         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27253         * sysdeps/s390/s390-64/setjmp.S: ... here.
27254         Add versioning.
27255         (__sigsetjmp): Remove setting __flags field.
27256         * sysdeps/s390/setjmp.S: Delete file.
27257         * sysdeps/s390/sigjmp.c: Likewise.
27258         * sysdeps/s390/v1-longjmp.c: Likewise.
27259         * sysdeps/s390/v1-setjmp.h: Likewise.
27260         * sysdeps/s390/v1-sigjmp.c: Likewise.
27261         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27262         Remove v1-longjmp_chk.
27263         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27264         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27265         Include debug/longjmp_chk.c and add versioning.
27266         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27267         Include nptl/pt-longjmp.c and add versioning.
27268         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27269         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27270         Include __longjmp.c.
27271         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27272         Move to ...
27273         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27274         (__getcontext): Remove setting __flags field.
27275         Add versioning.
27276         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27277         Don't restore upper high grps.
27278         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27279         Likewise.
27280         (__swapcontext): Remove setting uc_flags field.
27281         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27282         Delete file.
27283         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27284         Include __longjmp.c.
27285         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27286         Move to ...
27287         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27288         (__getcontext): Remove setting __flags field.
27289         Add versioning.
27290         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27291         (__swapcontext): Remove setting uc_flags field.
27292         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27293         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27294         Remove fields uc_high_gprs and __reserved.
27295         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27296         New file with reverted content.
27297         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27298         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27299         Regenerated.
27300         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27301         Regenerated.
27302
27303 2014-07-31  Andreas Schwab  <schwab@suse.de>
27304
27305         * config.h.in (HAVE_IFUNC): Define to 0.
27306         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27307         definedness.
27308
27309 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27310
27311         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27312         memmove-avx-unaligned, memcpy-avx-unaligned and
27313         mempcpy-avx-unaligned.
27314         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27315         Add tests for AVX memcpy functions.
27316         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27317         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27318         memcpy_chk.
27319         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27320         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27321         memmove_chk.
27322         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27323         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27324         mempcpy_chk.
27325         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27326         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27327         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27328
27329 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27330
27331         [BZ #17213]
27332         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27333         powerpc64le.
27334
27335 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27336
27337         [BZ #16839]
27338         * manual/llio.texi: Add section about open file description locks.
27339         * manual/examples/ofdlocks.c: Example of open file description
27340         lock usage.
27341         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27342         F_OFD_SETLK, and F_OFD_SETLKW.
27343
27344 2014-07-23  Allan McRae  <allan@archlinux.org>
27345
27346         * po/es.po: Update Spanish translation from translation project.
27347
27348 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27349
27350         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27351
27352 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27353
27354         [BZ #17078]
27355         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27356         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27357         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27358
27359 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27360
27361         [BZ #17088]
27362         * math/fesetenv.c (__fesetenv)
27363         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27364         * math/feupdateenv.c (__feupdateenv)
27365         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27366
27367         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27368         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27369         (__ASSUME_SOCKETCALL): Do not define.
27370
27371         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27372         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27373         (__ASSUME_SOCKETCALL): Do not define.
27374         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27375         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27376         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27377         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27378         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27379         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27380         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27381         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27382
27383         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27384         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27385         (__ASSUME_SOCKETCALL): Do not define.
27386         (__ASSUME_IPC64): Define unconditionally.
27387         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27388         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27389         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27390         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27391         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27392         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27393         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27394         Likewise.
27395
27396         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27397         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27398         (__ASSUME_SOCKETCALL): Do not define.
27399         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27400         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27401         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27402         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27403         (__ASSUME_REQUEUE_PI): Define unconditionally.
27404         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27405         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27406         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27407         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27408         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27409         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27410
27411         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27412         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27413         (__ASSUME_SOCKETCALL): Do not define.
27414         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27415         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27416         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27417         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27418         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27419         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27420
27421         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27422         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27423         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27424         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27425         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27426         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27427         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27428         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27429         (__ASSUME_GETCPU_SYSCALL): Likewise.
27430
27431         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27432         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27433         cases for individual architectures.
27434         * sysdeps/gnu/configure: Regenerated.
27435         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27436         LIBC_SLIBDIR_RTLDDIR.
27437         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27438         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27439         LIBC_SLIBDIR_RTLDDIR.
27440         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27442         LIBC_SLIBDIR_RTLDDIR.
27443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27444         Regenerated.
27445         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27446         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27447         file.
27448         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27449         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27450         file.
27451         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27452         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27453         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27454         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27455
27456         * sysdeps/aarch64/shlib-versions: Move to ...
27457         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27458         * sysdeps/alpha/shlib-versions: Move to ...
27459         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27460         * sysdeps/arm/shlib-versions: Move to ...
27461         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27462         * sysdeps/hppa/shlib-versions: Move all contents except for
27463         libgcc_s entry to ...
27464         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27465         entry from ...
27466         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27467         * sysdeps/ia64/shlib-versions: Move to ...
27468         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27469         entry from ...
27470         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27471         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27472         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27473         * sysdeps/microblaze/shlib-versions: Move to ...
27474         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27475         * sysdeps/mips/shlib-versions: Move to ...
27476         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27477         entry from ...
27478         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27479         * sysdeps/tile/shlib-versions: Move to ...
27480         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27481         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27482         from ...
27483         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27484         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27485         entry from ...
27486         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27487
27488 2014-07-17  Will Newton  <will.newton@linaro.org>
27489
27490         * sysdeps/arm/bits/atomic.h
27491         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27492         (__arch_compare_and_exchange_bool_16_int): Likewise.
27493         (__arch_compare_and_exchange_bool_64_int): Likewise.
27494
27495         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27496         into an #else block.
27497
27498 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27499
27500         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27501         just Linux configurations.  Test empirically that the compiler sets
27502         __ARM_EABI__, rather than using the tuple to decide.
27503         * sysdeps/arm/preconfigure: Regenerated.
27504         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27505         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27506         contents appended ...
27507         * sysdeps/arm/configure.ac: ... here.
27508         * sysdeps/arm/configure: Regenerated.
27509
27510 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27511
27512         * nptl/pthread_kill.c: New file.
27513         * nptl/pthread_sigmask.c: New file.
27514         * nptl/pthread_sigqueue.c: New file.
27515
27516         * sysdeps/nptl/lowlevellock.h: New file.
27517         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27518         * sysdeps/nptl/lowlevellock-futex.h: New file.
27519
27520         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27521         Remove dead declarations.
27522
27523 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27524
27525         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27526         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27527         config-cflags-avx2.
27528         * sysdeps/x86_64/configure.ac: Likewise.
27529         * sysdeps/i386/configure: Regenerated.
27530         * sysdeps/x86_64/configure: Likewise.
27531         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27532         memset-avx2 only if config-cflags-avx2 is yes.
27533         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27534         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27535         defined.
27536         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27537         only if HAVE_AVX2_SUPPORT is defined.
27538         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27539
27540 2014-07-14  Alan Modra  <amodra@gmail.com>
27541
27542         [BZ #17153]
27543         * elf/elf.h (DT_PPC64_NUM): Correct value.
27544         * NEWS: Add to fixed bug list.
27545
27546 2014-07-13  Jim Meyering  <meyering@fb.com>
27547
27548         [BZ 17150]
27549         regex: don't deref NULL upon heap allocation failure
27550         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27551         failure in one more place.
27552         To trigger the segfault, configure grep -with-included-regex,
27553         build it, and run these commands:
27554         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27555
27556 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27557
27558         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27559
27560 2014-07-11  Richard Henderson  <rth@redhat.com>
27561
27562         * sysdeps/aarch64/libm-test-ulps: Update.
27563
27564 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27565
27566         [BZ #17135]
27567         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27568         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27569         (__nptl_setxid): Initialize error member.  Call
27570         __nptl_setxid_error.
27571         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27572         * nptl/descr.h (struct xid_command): Add error member.
27573         * nptl/tst-setuid3.c: New file.
27574         * nptl/Makefile (tests): Add it.
27575
27576 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27577
27578         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27579         New define.
27580         (__lll_trylock): Use __lll_base_trylock.
27581         (__lll_cond_trylock): Likewise.
27582
27583 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27584
27585         * nptl/pthread_create.c (start_thread): Use atomic_or and
27586         lll_futex_wake directly rather than lll_robust_dead.
27587         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27588         (lll_robust_dead): Macro removed.
27589         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27590         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27591         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27592         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27593         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27594         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27595         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27596         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27597         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27598         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27599         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27600         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27601         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27602         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27603         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27604
27605         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27606         Use atomic_compare_and_exchange_val_acq directly rather than
27607         lll_robust_trylock.
27608         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27609         (__lll_robust_trylock, lll_robust_trylock): Removed.
27610         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27611         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27612         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27613         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27614         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27615         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27616         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27617         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27618         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27619         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27620         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27621         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27622         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27623         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27624
27625 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27626
27627         * manual/locale.texi (Locale Names): New section documenting
27628         locale name syntax.  Adjust menu and node chaining accordingly.
27629         (Choosing Locale): Reference Locale Names, Locale Categories.
27630         Mention setting LC_ALL=C.  Reflect that name syntax is now
27631         documented.
27632         (Locale Categories): New section title.  Reference Locale Names.
27633         LC_ALL is an environment variable, but not a category.
27634         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27635         description, now in Locale Name.  Reference that section.  Locale
27636         name syntax is now documented.
27637
27638 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27639
27640         [BZ #17137]
27641         * locale/findlocale.c (name_present, valid_locale_name): New
27642         functions.
27643         (_nl_find_locale): Use the loc_name variable to store name
27644         candidates.  Call name_present and valid_locale_name to check and
27645         validate locale names.  Return an error if the locale is invalid.
27646
27647 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27648
27649         * locale/setlocale.c (setlocale): Use strdup for allocating
27650         composite name copy.
27651
27652 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27653
27654         Sync up with gnulib.
27655         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27656         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27657         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27658         and _GL_ARG_NONNULL.
27659         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27660         [!_LIBC]: Include code for Windows and Cygwin.
27661         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27662         Include prototype for int strerror_r.
27663         [!_LIBC] (is_open): New function.
27664         (flush_stdout): New function.
27665         (print_errno_message): Use it.
27666         (error): Likewise.
27667         (error_at_line): Likewise.
27668         (error_tail) Add function attribute macros.  Use
27669         __builtin_expect.
27670
27671         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27672
27673         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27674
27675         * io/ftw.c: Include sys/param.h unconditionally.
27676
27677         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27678
27679         [BZ #17125]
27680         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27681         libc_freeres_ptr.
27682         (freecache): New function to free CACHE on exit.
27683
27684         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27685         initialization.
27686
27687 2014-07-09  David S. Miller  <davem@davemloft.net>
27688
27689         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27690
27691         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27692         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27693         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27694         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27695         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27696         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27697         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27698         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27699         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27700         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27701         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27702         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27703         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27704
27705 2014-07-09  Andreas Schwab  <schwab@suse.de>
27706
27707         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27708         output.
27709         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27710         (do_test): Likewise.
27711
27712         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27713
27714 2014-07-09  Will Newton  <will.newton@linaro.org>
27715
27716         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27717         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27718         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27719         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27720         * sysdeps/hppa/start.S (_start): Likewise.
27721
27722 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27723
27724         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27725
27726         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27727         defined.
27728
27729 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27730
27731         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27732         after checking that it is non-NULL.
27733
27734         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27735
27736 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27737
27738         * sysdeps/powerpc/memmove.c: Remove file.
27739         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27740         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27741         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27742         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27743         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27744         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27745         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27746         string memmove instead of removed powerpc one.
27747
27748         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27749         [weak_alias]: Fix compiler warning due trailing data.
27750         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27751         [weak_alias]: Likewise.
27752         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27753         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27754
27755         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27756         (__libc_ifunc_impl_list): Add memmove functions.
27757
27758 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27759
27760         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27761         Remove code.
27762         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27763         Likewise.
27764         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
27765         Likewise.
27766         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
27767         Likewise.
27768         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
27769         Likewise.
27770         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
27771         Likewise.
27772         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
27773         Likewise.
27774         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
27775         Likewise.
27776         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
27777         Likewise.
27778         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
27779         Likewise.
27780         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
27781         Likewise.
27782         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
27783         Likewise.
27784         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
27785         Likewise.
27786         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
27787         Likewise.
27788         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
27789         Likewise.
27790         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
27791         Likewise.
27792         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
27793         Likewise.
27794
27795 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27796
27797         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
27798         to avoid alignment traps in non-cacheable memory.
27799         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
27800
27801         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
27802         multiarch objects.
27803         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
27804         file: multiarch power7 memmove.
27805         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
27806         multiarch default memmove.
27807         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
27808         multiarch memove for powerpc32/power4.
27809
27810         * string/bcopy.c: Use full path to include memmove.c.
27811         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
27812         multiarch objects.
27813         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
27814         bcopy for powerpc64.
27815         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
27816         bcopy for powerpc64.
27817         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
27818         and memmove implementations.
27819         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
27820         optimized multiarch memmove for POWER7/powerpc64.
27821         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
27822         default multiarch memmove for powerpc64.
27823         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
27824         multiarch for powerpc64.
27825         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
27826         for POWER7/powerpc64.
27827         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
27828         memmove for POWER7/powerpc64.
27829
27830         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
27831         glibc default one.
27832
27833         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
27834         __ELF_NATIVE_CLASS equal to 64.
27835
27836 2014-07-07  Roland McGrath  <roland@hack.frob.com>
27837
27838         * sysdeps/nptl/lowlevellock.h: File removed.
27839
27840         * NEWS: NPTL is no longer an add-on!
27841         * nptl/internaltypes.h: Moved ...
27842         * sysdeps/nptl/internaltypes.h: ... here.
27843         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
27844         * sysdeps/nptl/fork.c: Likewise.
27845         * sysdeps/nptl/gai_misc.h: Likewise.
27846         * sysdeps/nptl/librt-cancellation.c: Likewise.
27847         * sysdeps/nptl/jmp-unwind.c: Likewise.
27848         * sysdeps/nptl/setxid.h: Likewise.
27849         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
27850         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
27851         * sysdeps/unix/sysv/linux/arm/Implies: New file.
27852         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
27853         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
27854         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
27855         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
27856         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
27857         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
27858         * sysdeps/unix/sysv/linux/mips/Implies: New file.
27859         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
27860         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
27861         * sysdeps/unix/sysv/linux/sh/Implies: New file.
27862         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
27863         * sysdeps/unix/sysv/linux/tile/Implies: New file.
27864         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
27865         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
27866         * nptl/Makeconfig: Moved ...
27867         * sysdeps/nptl/Makeconfig: ... here.
27868         * nptl/configure: File removed.
27869         * nptl/ANNOUNCE: File removed.
27870         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
27871         * sysdeps/unix/sysv/linux/configure: Regenerated.
27872
27873         * nptl/Makefile (routines): Add libc_pthread_init,
27874         libc_multiple_threads, register-atfork and unregister-atfork.
27875         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
27876         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
27877         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
27878         pthread-pi-defines.sym, structsem.sym.
27879         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
27880         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
27881         [$(subdir) = nptl] (tests): Add tst-setgetname.
27882         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
27883         * sysdeps/unix/sysv/linux/sigaction.c: Just include
27884         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
27885         [!LIBC_SIGACTION]: Remove aliases.
27886         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
27887         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
27888         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
27889         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
27890         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
27891         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
27892         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27893         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27894         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
27895         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
27896         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
27897         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
27898         __libc_allocate_rtsig_private.
27899         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
27900         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
27901         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27902         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27903         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
27904         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
27905         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
27906         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
27907         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
27908         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
27909         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
27910         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
27911         * nptl/internaltypes.h: ... here.
27912         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
27913         * sysdeps/nptl/jmp-unwind.c: ... here.
27914         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
27915         * nptl/libc-lowlevellock.c: ... here.
27916         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
27917         * nptl/libc_multiple_threads.c: ... here.
27918         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
27919         * nptl/libc_pthread_init.c: ... here.
27920         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
27921         * nptl/lowlevelbarrier.sym: ... here.
27922         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
27923         * nptl/lowlevelcond.sym: ... here.
27924         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
27925         * nptl/lowlevellock.c: ... here.
27926         * nptl/lowlevellock.h: Moved ...
27927         * sysdeps/nptl/lowlevellock.h: ... here.
27928         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
27929         * nptl/lowlevelrobustlock.c: ... here.
27930         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
27931         * nptl/lowlevelrobustlock.sym: ... here.
27932         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
27933         * nptl/lowlevelrwlock.sym: ... here.
27934         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
27935         * nptl/pt-fork.c: ... here.
27936         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
27937         * nptl/pthread-pi-defines.sym: ... here.
27938         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
27939         * nptl/pthread_attr_getaffinity.c: ... here.
27940         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
27941         * nptl/pthread_attr_setaffinity.c: ... here.
27942         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
27943         * nptl/pthread_mutex_cond_lock.c: ... here.
27944         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
27945         Update #include.
27946         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
27947         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
27948         * nptl/pthread_once.c: ... here, replacing old file.
27949         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
27950         * nptl/pthread_yield.c: ... here.
27951         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
27952         * nptl/register-atfork.c: ... here.
27953         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
27954         * nptl/sem_post.c: ... here.
27955         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
27956         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
27957         * nptl/sem_timedwait.c: ... here.
27958         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
27959         * nptl/sem_trywait.c: ... here.
27960         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
27961         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
27962         * nptl/sem_wait.c: ... here.
27963         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
27964         * nptl/structsem.sym: ... here.
27965         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
27966         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
27967         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
27968         * nptl/unregister-atfork.c: ... here.
27969         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
27970         * nptl/unwindbuf.sym: ... here.
27971         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
27972         * sysdeps/nptl/fork.c: ... here.
27973         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
27974         * sysdeps/nptl/fork.h: ... here.
27975         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
27976         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
27977         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
27978         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
27979         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
27980         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
27981         * sysdeps/unix/sysv/linux/getpid.c: ... here.
27982         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
27983         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
27984         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
27985         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
27986         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
27987         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
27988         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
27989         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
27990         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
27991         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
27992         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
27993         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
27994         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
27995         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
27996         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
27997         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
27998         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
27999         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28000         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28001         * sysdeps/unix/sysv/linux/raise.c: ... here.
28002         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28003         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28004         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28005         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28006         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28007         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28008         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28009         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28010         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28011         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28012         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28013         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28014         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28015         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28016         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28017
28018 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28019
28020         * sysdeps/generic/memcopy.h: Add comment for
28021         MEMCPY_OK_FOR_FWD_MEMMOVE.
28022
28023 2014-07-04  Will Newton  <will.newton@linaro.org>
28024
28025         * string/memchr.c: Merge from gnulib.
28026         [_LIBC]: Remove conditionals.
28027         (__ptr_t): Remove define.
28028         (LONG_MAX_32_BITS): Likewise.
28029         (LONG_MAX): Likewise.
28030         (MEMCHR): Use ANSI prototype and optimize algorithm.
28031
28032         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28033
28034 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28035
28036         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28037         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28038
28039         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28040         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28041         in a bare environment with no <stdlib.h> installed.
28042         * sysdeps/nptl/configure: Regenerated.
28043
28044         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28045
28046         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28047         AC_EGREP_CPP for kernel header checks, so they only succeed if
28048         including <linux/version.h> actually works right.
28049         * sysdeps/unix/sysv/linux/configure: Regenerated.
28050
28051         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28052         value so it's not diagnosed as unused.
28053
28054         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28055         thing) with "ifeq ($(subdir),rt)".
28056
28057 2014-07-03  Richard Henderson  <rth@redhat.com>
28058
28059         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28060         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28061         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28062
28063         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28064         (math_force_eval): New.
28065
28066         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28067         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28068
28069         * sysdeps/alpha/fpu/s_round.c: Remove file.
28070         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28071
28072         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28073         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28074         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28075         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28076         (_dl_start, print_statistics): Likewise.
28077         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28078         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28079
28080         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28081         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28082         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28083         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28084         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28085         (HP_SMALL_TIMING_AVAIL): Define.
28086         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28087         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28088         (HP_SMALL_TIMING_AVAIL): Define.
28089         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28090         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28091
28092         * sysdeps/aarch64/hp-timing.h: New file.
28093
28094         * sysdeps/generic/hp-timing.h: Remove dead comment.
28095         * sysdeps/generic/hp-timing-common.h: New file.
28096         * sysdeps/alpha/hp-timing.h: Include it.
28097         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28098         * sysdeps/i386/i686/hp-timing.h: Likewise.
28099         * sysdeps/ia64/hp-timing.h: Likewise.
28100         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28101         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28102         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28103         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28104         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28105         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28106         (hp_timing_t): New.
28107
28108         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28109         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28110         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28111         * elf/rtld.c (_dl_start_final): Likewise.
28112         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28113         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28114         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28115         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28116         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28117         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28118         (HP_TIMING_DIFF_INIT): Remove.
28119         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28120         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28121         (HP_TIMING_DIFF_INIT): Remove.
28122         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28123         * sysdeps/i386/i686/hp-timing.c: Remove file.
28124         * sysdeps/x86_64/hp-timing.c: Remove file.
28125         * sysdeps/ia64/hp-timing.c: Remove file.
28126         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28127         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28128         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28129         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28130
28131         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28132         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28133         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28134         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28135         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28136         (HP_TIMING_ACCUM): Remove.
28137         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28138         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28139         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28140
28141         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28142         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28143         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28144         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28145         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28146         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28147         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28148         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28149
28150         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28151
28152 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28153
28154         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28155
28156 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28157
28158         Sync up with gettext.
28159         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28160         [_MSC_VER]: Include malloc.h
28161         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28162         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28163         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28164         TEMP_FAILURE_RETRY.  Cast return of alloca.
28165         [!_LIBC] Call gl_rwlock_init.
28166         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28167
28168 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28169
28170         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28171         before checking its value.
28172
28173 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28174
28175         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28176
28177         * debug/memcpy_chk.c: Don't include pagecopy.h.
28178         * debug/mempcpy_chk.c: Likewise.
28179         * string/memcpy.c: Likewise.
28180         * string/memmove.c: Likewise.
28181         * sysdeps/powerpc/memmove.c: Likewise.
28182         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28183         definition of PAGE_COPY_FWD_MAYBE here...
28184         * sysdeps/generic/pagecopy.h: ... from here.
28185         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28186
28187 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28188             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28189
28190         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28191         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28192         optimizations.
28193         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28194         (__libc_ifunc_impl_list): Likewise.
28195         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28196         multiarch strcat for PPC64.
28197         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28198         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28199
28200 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28201
28202         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28203
28204 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28205
28206         * intl/loadmsgcat.c: Remove declaration of
28207         get_sysdep_segment_value.
28208         (get_sysdep_segment_value): Use ISO C style.
28209         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28210         semicolon.  Fix typo and formatting in comment.
28211         (_nl_unload_domain): Use ISO C style.
28212
28213         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28214
28215 2014-07-02  Will Newton  <will.newton@linaro.org>
28216
28217         * malloc/obstack.c: Merge from gnulib master.
28218         [HAVE_CONFIG_H]: Remove conditional code.
28219         [!_LIBC]: Include config.h.
28220         [!ELIDE_CODE]: Don't include inttypes.h, include
28221         stdint.h unconditionally.
28222         (print_and_abort): Mark as _Noreturn.
28223         (_obstack_allocated_p): Mark as __attribute_pure__.
28224         (obstack_free): Rename to __obstack_free.
28225         [!__attribute__]: Remove conditional code.
28226         * malloc/obstack.h: Merge from gnulib master.
28227         [__cplusplus]: Move conditional down.
28228         [!__attribute_pure__]: Define __attribute_pure__ here
28229         if it is not already defined.
28230         (_obstack_memory_used): Mark as __attribute_pure__.
28231         [!__obstack_free]: Define as obstack_free.
28232         [__GNUC__]: Remove check for ancient NeXT gcc.
28233
28234 2014-07-02  Will Newton  <will.newton@linaro.org>
28235             Paul Eggert  <eggert@cs.ucla.edu>
28236
28237         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28238
28239 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28240
28241         * resolv/gethnamaddr.c: Add comment warning that the file is
28242         not maintained.
28243
28244 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28245
28246         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28247         entries.
28248
28249         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28250         entry for aio_cancel and aio_cancel64.
28251         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28252         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28253         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28254         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28255         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28256         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28257         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28258         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28259         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28260         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28261         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28262         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28263         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28264
28265 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28266
28267         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28268         * nptl/pthread_mutex_lock.c: Likewise.
28269         * nptl/pthread_mutex_timedlock.c: Likewise.
28270         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28271
28272 2014-07-01  Richard henderson  <rth@redhat.com>
28273
28274         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28275         (__isnan, __isnanl): Remove.
28276         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28277
28278         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28279
28280 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28281
28282         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28283
28284 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28285
28286         * resolv/nss_dns/dns-host.c (getanswer_r)
28287         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28288
28289 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28290
28291         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28292         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28293         undefine.
28294         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28295         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28296
28297 2014-07-01  Roland McGrath <roland@hack.frob.com>
28298
28299         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28300         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28301
28302         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28303         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28304
28305         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28306         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28307         ... here.
28308         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28309         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28310
28311         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28312         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28313         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28314         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28315
28316         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28317         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28318         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28319         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28320         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28321         Moved ...
28322         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28323         ... here.
28324         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28325         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28326         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28327         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28328         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28329         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28330         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28331         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28332         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28333         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28334         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28335         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28336         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28337         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28338         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28339         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28340         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28341         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28342         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28343         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28344         ... here.
28345         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28346         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28347         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28348         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28349         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28350         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28351         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28352         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28353
28354 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28355
28356         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28357         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28358         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28359         Add sysdep.
28360
28361 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28362
28363         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28364
28365 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28366
28367         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28368         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28369
28370         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28371
28372         * sysdeps/arm/libm-test-ulps: Regenerated.
28373
28374 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28375             Roland McGrath <roland@hack.frob.com>
28376
28377         * test-skeleton.c (signal_handler): Kill the whole process group
28378         before killing the child individually.
28379         (main): Report any failure on `setpgid'.
28380
28381 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28382
28383         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28384         from _TLS_H to _ARM_NPTL_TLS_H.
28385         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28386         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28387
28388 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28389
28390         [BZ #16539]
28391         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28392         (__expm1l): Return argument unchanged when small but not
28393         subnormal.
28394
28395         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28396         include macro name.
28397         (_FP_UNPACK_RAW_1_P): Likewise.
28398         (_FP_PACK_RAW_1): Likewise.
28399         (_FP_PACK_RAW_1_P): Likewise.
28400         (_FP_MUL_MEAT_1_wide): Likewise.
28401         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28402         (_FP_MUL_MEAT_1_hard): Likewise.
28403         (_FP_DIV_MEAT_1_imm): Likewise.
28404         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28405         (_FP_DIV_MEAT_1_udiv): Likewise.
28406         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28407         (_FP_UNPACK_RAW_2): Likewise.
28408         (_FP_UNPACK_RAW_2_P): Likewise.
28409         (_FP_PACK_RAW_2): Likewise.
28410         (_FP_PACK_RAW_2_P): Likewise.
28411         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28412         (_FP_MUL_MEAT_2_wide): Likewise.
28413         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28414         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28415         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28416         (_FP_MUL_MEAT_2_gmp): Likewise.
28417         (_FP_DIV_MEAT_2_udiv): Likewise.
28418         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28419         (_FP_FRAC_SRL_4): Likewise.
28420         (_FP_FRAC_SRST_4): Likewise.
28421         (_FP_FRAC_SRS_4): Likewise.
28422         (_FP_UNPACK_RAW_4): Likewise.
28423         (_FP_UNPACK_RAW_4_P): Likewise.
28424         (_FP_PACK_RAW_4): Likewise.
28425         (_FP_PACK_RAW_4_P): Likewise.
28426         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28427         (_FP_MUL_MEAT_4_wide): Likewise.
28428         (_FP_MUL_MEAT_4_gmp): Likewise.
28429         (umul_ppppmnnn): Likewise.
28430         (_FP_DIV_MEAT_4_udiv): Likewise.
28431         (__FP_FRAC_ADD_4): Likewise.
28432         (__FP_FRAC_SUB_3): Likewise.
28433         (__FP_FRAC_SUB_4): Likewise.
28434         (__FP_FRAC_DEC_3): Likewise.
28435         (__FP_FRAC_DEC_4): Likewise.
28436         (__FP_FRAC_ADDI_4): Likewise.
28437         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28438         (_FP_FRAC_SRL_8): Likewise.
28439         (_FP_FRAC_SRS_8): Likewise.
28440
28441         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28442         include macro name.
28443         (FP_UNPACK_RAW_EP): Likewise.
28444         (FP_PACK_RAW_E): Likewise.
28445         (FP_PACK_RAW_EP): Likewise.
28446         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28447         (_FP_ISSIGNAN): Likewise.
28448         (_FP_ADD_INTERNAL): Likewise.
28449         (_FP_FMA): Likewise.
28450         (_FP_CMP): Likewise.
28451         (_FP_SQRT): Likewise.
28452         (_FP_TO_INT): Likewise.
28453         (_FP_FROM_INT): Likewise.
28454         (FP_EXTEND): Likewise.
28455         (_FP_DIV_MEAT_N_loop): Likewise.
28456
28457 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28458
28459         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28460         throughout.
28461
28462 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28463
28464         [BZ #17097]
28465         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28466         result with correct sign in case of exponents that produce
28467         overflow except for X very close to 1.
28468
28469 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28470
28471         mktime: merge #if/#ifdef usage from glibc
28472         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28473         as that works with both Glibc's and Gnulib's style.
28474         See thread starting at Siddhesh Poyarekar's bug report at:
28475         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28476
28477 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28478
28479         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28480         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28481         * sysdeps/tile/tilegx/memmove.c: Remove file.
28482
28483 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28484
28485         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28486         abi-name definition.
28487         * scripts/soversions.awk: Do not handle or generate ABI lines.
28488         * shlib-versions: Remove ABI entries.
28489         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28490         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28491
28492 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28493
28494         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28495         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28496         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28497         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28498         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28499         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28500         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28501         Moved ...
28502         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28503         ... here.
28504         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28505         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28506         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28507         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28508         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28509         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28510         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28511         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28512         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28513         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28514         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28515         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28516         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28517         Moved ...
28518         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28519         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28520         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28521         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28522         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28523         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28524         Moved ...
28525         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28526         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28527         Moved ...
28528         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28529         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28530         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28531         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28532         Moved ...
28533         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28534         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28535         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28536         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28537         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28538         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28539         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28540         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28541         Moved ...
28542         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28543         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28544         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28545         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28546         Moved ...
28547         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28548         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28549         Moved ...
28550         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28551         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28552         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28553         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28554         Moved ...
28555         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28556         ... here.
28557         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28558         Identical file removed.
28559         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28560         Moved ...
28561         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28562         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28563         Identical file removed.
28564         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28565         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28566         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28567         Moved ...
28568         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28569         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28570         Identical file removed.
28571         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28572         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28573         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28574         Identical file removed.
28575         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28576         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28577         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28578         Identical file removed.
28579         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28580         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28581         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28582         Identical file removed.
28583         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28584         Moved ...
28585         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28586         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28587         Identical file removed.
28588         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28589         Moved ...
28590         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28591         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28592         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28593         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28594         Identical file removed.
28595         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28596         Moved ...
28597         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28598         ... here.
28599         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28600         Identical file removed.
28601         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28602         Moved ...
28603         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28604         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28605         Identical file removed.
28606         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28607         Moved ...
28608         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28609         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28610         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28611         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28612         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28613         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28614         Moved ...
28615         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28616         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28617         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28618
28619         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28620         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28621         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28622         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28623         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28624
28625 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28626
28627         [BZ #17092]
28628         * nscd/nscd.c (monitor_child): Return exit status of child
28629         instead of return value from wait syscall.
28630
28631 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28632
28633         * configure.ac (libc_commonpagesize): Remove variable.
28634         (libc_relro_required): Likewise.
28635         (libc_cv_z_relro): Remove configure test.
28636         * configure: Regenerated.
28637         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28638         variable.
28639         (libc_relro_required): Likewise.
28640         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28641         (libc_relro_required): Likewise.
28642         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28643         (libc_relro_required): Likewise.
28644         * sysdeps/arm/preconfigure: Regenerated.
28645         * sysdeps/ia64/preconfigure: Remove file.
28646         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28647         variable.
28648         (libc_relro_required): Likewise.
28649
28650         [BZ #16561]
28651         [BZ #16562]
28652         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28653         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28654         recompute overflowing results in original rounding mode.
28655         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28656         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28657         recompute overflowing results in original rounding mode.
28658         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28659         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28660         recompute overflowing results in original rounding mode.
28661         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28662         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28663         recompute overflowing results in original rounding mode.
28664         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28665         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28666         recompute overflowing results in original rounding mode.
28667         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28668         (libc_feholdsetround_ctx): New macro.
28669         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28670         * sysdeps/i386/fpu/libm-test-ulps: Update.
28671         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28672
28673 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28674
28675         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28676         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28677         corresponding .cpsetup call.
28678
28679 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28680
28681         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28682         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28683         * sysdeps/arm/Makefile [$(subdir) = csu]
28684         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28685         (static-only-routines): Add aeabi_read_tp here.
28686         (shared-only-routines): Add libc-aeabi_read_tp here.
28687         (CFLAGS-libc-start.c): Add -fexceptions here.
28688         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28689         (sysdep_routines, static-only-routines, shared-only-routines):
28690         Don't add to these here.
28691         (CFLAGS-libc-start.c): Likewise.
28692
28693         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28694         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28695         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28696         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28697         * sysdeps/arm/Makefile [$(subdir) = rt]
28698         (librt-sysdep_routines, librt-shared-only-routines):
28699         Append rt-aeabi_unwind_cpp_pr1 here.
28700         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28701         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28702         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28703         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28704         Append nptl-aeabi_unwind_cpp_pr1 here.
28705         (tests): Filter out tst-cleanupx4 here.
28706         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28707         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28708         Don't do those here.
28709
28710 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28711
28712         * scripts/list-sources.sh: Do not handle ports specially.
28713
28714 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28715
28716         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28717         * sysdeps/arm/feupdateenv.c: Likewise.
28718
28719         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28720
28721 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28722
28723         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28724         trailing whitespace removed.
28725         * scripts/config.guess: Update to version 2014-03-23.
28726         * scripts/config.sub: Update to version 2014-05-01
28727         * scripts/install-sh: Update to version 2013-12-25.23.
28728         * scripts/move-if-change: Update from gnulib.
28729
28730 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28731
28732         * debug/memmove_chk.c: Remove pagecopy.h include.
28733
28734 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28735
28736         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28737         identical to gnulib mktime.
28738
28739 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28740
28741         * configure.ac: Do not test for machine being rs6000.  Do not test
28742         for powerpc*-*soft.
28743         * configure: Regenerated.
28744
28745         [BZ #11505]
28746         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28747         test.
28748         * configure: Regenerated.
28749         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28750         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28751         Remove configure test.
28752         * sysdeps/arm/configure: Regenerated.
28753         * sysdeps/nptl/configure.ac: Do not check
28754         libc_cv_asm_cfi_directives.
28755         * sysdeps/nptl/configure: Regenerated.
28756         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28757         * sysdeps/x86_64/nptl/configure: Remove generated file.
28758         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28759         unconditional.
28760         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28761
28762 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28763
28764         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
28765         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
28766         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
28767         it is defined.
28768
28769         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
28770         instead of whether it is defined.
28771         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
28772         * sysdeps/hppa/dl-machine.h: Likewise.
28773         * sysdeps/ia64/dl-machine.h: Likewise.
28774         * sysdeps/m68k/dl-machine.h: Likewise.
28775         * sysdeps/microblaze/dl-machine.h: Likewise.
28776         * sysdeps/mips/dl-machine.: Likewise.
28777         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28778         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28779         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28780         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28781         * sysdeps/sh/dl-machine.h: Likewise.
28782         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28783         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28784         * sysdeps/tile/dl-machine.h: Likewise.
28785         * sysdeps/x86_64/dl-machine.h: Likewise.
28786
28787         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
28788         code.
28789         (verify_persistent_db): Likewise.
28790
28791 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28792
28793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
28794         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
28795         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
28796         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
28797         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
28798         Moved ...
28799         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
28800         ... here.
28801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
28802         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
28803         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
28804         Identical file removed.
28805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
28806         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
28807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
28808         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
28809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
28810         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
28811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28812         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
28813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
28814         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
28815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28816         Moved ...
28817         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
28818         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
28819         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
28820         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
28821         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
28822         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
28823         Moved ...
28824         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
28825         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
28826         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
28827         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
28828         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
28829         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28830         Identical file removed.
28831         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
28832         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
28833         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
28834         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
28835         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
28836         Moved ...
28837         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
28838         ... here.
28839         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
28840         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
28841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
28842         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
28843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
28844         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
28845         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
28846         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
28847         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
28848         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
28849         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28850         Moved ...
28851         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
28852         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
28853         Moved ...
28854         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
28855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
28856         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
28857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
28858         Moved ...
28859         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
28860         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
28861         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
28862
28863         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
28864         folded into ...
28865         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
28866         * sysdeps/unix/sysv/linux/s390/Versions
28867         (libpthread: GLIBC_2.19): New version set.
28868         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
28869         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
28870         (librt: GLIBC_2.3.3): New version set.
28871         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
28872         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
28873         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
28874         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
28875         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
28876         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
28877         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
28878         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
28879         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
28880         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
28881         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
28882         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
28883         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
28884         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
28885         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
28886         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
28887         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28888         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
28889         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
28890         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
28891         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
28892         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
28893         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
28894         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
28895         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
28896         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
28897         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
28898         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
28899         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
28900         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
28901         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
28902         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
28903         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
28904         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
28905         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
28906         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
28907         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
28908         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
28909         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
28910         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
28911         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
28912         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
28913         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
28914         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
28915         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
28916
28917         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
28918         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
28919         (__libc_vfork): Define the function under this name.
28920         [!NOT_IN_libc] (__vfork): Make this an alias.
28921         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28922         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
28923         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
28924         (__libc_vfork): Define the function under this name.
28925         [!NOT_IN_libc] (__vfork): Make this an alias.
28926         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28927         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
28928         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
28929         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
28930         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
28931         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28932
28933         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
28934         code that was previously under [RESET_PID].
28935         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
28936         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
28937         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
28938
28939         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
28940         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
28941         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
28942         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
28943         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
28944         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
28945         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
28946         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
28947         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
28948         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
28949         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
28950         Moved ...
28951         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
28952         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
28953         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
28954         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
28955         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
28956         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
28957         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
28958         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
28959         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
28960         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
28961         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
28962         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
28963         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
28964         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
28965         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
28966         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
28967         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
28968         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
28969         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
28970         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
28971         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
28972         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
28973         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
28974         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
28975         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
28976         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
28977         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
28978         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
28979         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
28980
28981 2014-06-25  Roland McGrath  <roland@hack.frob.com>
28982
28983         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
28984         that was previously under [RESET_PID].
28985         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
28986
28987 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
28988
28989         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
28990         not undefine and redefine.
28991         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
28992         [O_CLOEXEC]: Make code unconditional.
28993         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
28994         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
28995         <kernel-features.h>.
28996         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
28997         conditional variable definition.
28998         (shm_open) [O_CLOEXEC]: Make code unconditional.
28999         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29000         code.
29001
29002         * configure.ac (USE_REGPARMS): Don't define here.
29003         * configure: Regenerated.
29004         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29005         * sysdeps/i386/configure: Regenerated.
29006
29007         * nptl/createthread.c: Don't include kernel-features.h.
29008         * nptl/pthread_cancel.c: Likewise.
29009         * nptl/pthread_condattr_setclock.c: Likewise.
29010         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29011         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29012         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29013         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29014         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29015         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29016         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29017         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29018         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29019         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29020         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29021         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29022         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29023         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29024         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29025         * nscd/gai.c: Likewise.
29026         * nss/nss_db/db-open.c: Likewise.
29027         * sysdeps/generic/ldsodefs.h: Likewise.
29028         * sysdeps/sh/nptl/tls.h: Likewise.
29029         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29030         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29031         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29032         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29033         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29034         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29035         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29036         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29037         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29038         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29039         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29040         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29041         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29042         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29043         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29044         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29045         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29046         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29047         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29048         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29049         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29050         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29051         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29052         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29053         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29054         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29055         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29056         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29057         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29058         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29059         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29060         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29061         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29062         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29063         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29064         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29065         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29066         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29067         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29068         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29069         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29070         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29071         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29072         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29073         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29074         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29075         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29076         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29077         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29078         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29079         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29080         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29081         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29082         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29083         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29084         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29085         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29086         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29109         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29110         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29111         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29112         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29113         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29114         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29115         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29116         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29117         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29118         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29119         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29120         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29121         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29122         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29123         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29124         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29125         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29126         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29127         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29128         * sysdeps/unix/sysv/linux/system.c: Likewise.
29129         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29130         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29131         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29132         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29133         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29134         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29135         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29136
29137         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29138         * configure: Regenerated.
29139         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29140
29141         * configure.ac (base_machine): Do not set specially for particular
29142         machines here.
29143         * configure: Regenerated.
29144         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29145         settings from configure.ac.
29146         * sysdeps/i386/preconfigure: New file.
29147         * sysdeps/s390/preconfigure: Likewise.
29148         * sysdeps/sh/preconfigure: Likewise.
29149         * sysdeps/sparc/preconfigure: Likewise.
29150
29151 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29152
29153         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29154         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29155         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29156         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29157         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29158         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29159         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29160         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29161         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29162         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29163         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29164         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29165         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29166         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29167         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29168         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29169         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29170         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29171         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29172
29173         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29174         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29175         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29176         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29177         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29178         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29179         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29180         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29181         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29182         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29183         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29184         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29185         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29186         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29187         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29188         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29189         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29190         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29191         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29192         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29193         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29194         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29195         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29196         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29197         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29198         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29199         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29200         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29201         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29202         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29203         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29204         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29205         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29206         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29207         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29208         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29209         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29210         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29211
29212         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29213         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29214         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29215         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29217         Moved ...
29218         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29219         ... here.
29220         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29221         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29222         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29223         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29224         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29225         Moved ...
29226         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29227         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29228         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29229         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29230         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29231         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29232         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29233         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29234         Moved ...
29235         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29236         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29237         Moved ...
29238         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29239         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29240         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29241         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29242         Moved ...
29243         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29244         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29245         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29246         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29247         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29248         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29249         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29250         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29251         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29252         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29253         Moved ...
29254         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29255         ... here.
29256         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29257         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29258         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29259         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29260         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29261         Moved ...
29262         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29263         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29264         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29265         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29266         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29267         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29268         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29269         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29270         Moved ...
29271         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29272         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29273         Moved ...
29274         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29275         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29276         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29277         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29278         Moved ...
29279         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29280         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29281         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29282         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29283         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29284
29285 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29286
29287         * timezone/checktab.awk: Update from tzcode 2014e.
29288         * timezone/private.h: Likewise.
29289         * timezone/tzfile.h: Likewise.
29290         * timezone/zdump.c: Likewise.
29291         * timezone/zic.c: Likewise.
29292
29293         * sysdeps/unix/sysv/linux/kernel-features.h
29294         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29295         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29296         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29297         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29298         Remove conditional code.
29299
29300 2014-06-25  Will Newton  <will.newton@linaro.org>
29301
29302         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29303         (_dl_arm_cap_flags): Add HWCAP2 values.
29304         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29305         (_DL_HWCAP_COUNT): Increase to 37.
29306         (_DL_HWCAP_LAST): New define.
29307         (_DL_HWCAP2_LAST): New define.
29308         (_dl_procinfo): Add support for printing
29309         AT_HWCAP2 entries.
29310         (_dl_string_hwcap): Use _dl_hwcap_string.
29311
29312 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29313
29314         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29315
29316 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29317
29318         * README: Do not mention ports directory.
29319
29320         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29321         Remove macro.
29322         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29323         <kernel-features.h>.
29324         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29325         conditional variable definition.
29326         (__futimes): Update comment.
29327         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29328         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29329
29330         [BZ #16560]
29331         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29332         arguments close to 0.
29333         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29334         Likewise.
29335         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29336         Likewise.
29337         * math/auto-libm-test-in: Add more tests of exp10.
29338         * math/auto-libm-test-out: Regenerated.
29339         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29340
29341         * sysdeps/unix/sysv/linux/kernel-features.h
29342         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29343         * sysdeps/unix/sysv/linux/readv.c: Do not include
29344         <kernel-features.h>.
29345         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29346         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29347         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29348         unconditional.
29349         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29350         conditional code.
29351         * sysdeps/unix/sysv/linux/writev.c: Do not include
29352         <kernel-features.h>.
29353         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29354         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29355         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29356         unconditional.
29357         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29358         conditional code.
29359
29360 2014-06-25  Will Newton  <will.newton@linaro.org>
29361
29362         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29363         comment changes throughout the file.  Remove checks
29364         for HAVE_*_H definitions that are not required.
29365         (__gen_tempname): Call abort if an unknown kind value is
29366         passed.
29367
29368 2014-06-25  Andreas Schwab  <schwab@suse.de>
29369
29370         [BZ #17086]
29371         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29372         scalbln, scalblnf, scalblnl in libc.
29373
29374 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29375
29376         [BZ #17086]
29377         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29378         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29379         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29380
29381 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29382
29383         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29384         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29385         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29386         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29387         Update #include.
29388         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29389         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29390         Update #include.
29391         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29392         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29393         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29394         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29395         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29396         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29397         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29398         * sysdeps/x86/bits/semaphore.h: ... here.
29399         * sysdeps/x86/nptl/elide.h: Moved ...
29400         * sysdeps/x86/elide.h: ... here.
29401         * sysdeps/x86_64/nptl/Implies: File removed.
29402         * sysdeps/i386/nptl/Implies: File removed.
29403
29404 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29405
29406         [BZ #16539]
29407         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29408         return the argument for normal arguments with exponent below -64.
29409         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29410         Likewise.
29411         * math/auto-libm-test-in: Add another test of expm1.
29412         * math/auto-libm-test-out: Regenerated.
29413
29414         [BZ #16287]
29415         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29416         calling __erfcl for arguments at least 16.
29417         * math/auto-libm-test-in: Add more tests of erf.
29418         * math/auto-libm-test-out: Regenerated.
29419
29420         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29421         individual architectures.
29422         * sysdeps/unix/sysv/linux/configure: Regenerated.
29423         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29424         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29425         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29426         (ldd_rewrite_script): Define variable.
29427         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29429         file.
29430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29431         generated file.
29432         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29433         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29434         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29435         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29436         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29437         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29438         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29439         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29440
29441 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29442
29443         [BZ #17084]
29444         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29445         Rename member __data.d to __data.__elision_data.
29446
29447 2014-06-24  Wilco  <wdijkstr@arm.com>
29448
29449         * NEWS: Add 16918 to fixed bug list.
29450
29451 2014-06-24  Wilco  <wdijkstr@arm.com>
29452
29453         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29454
29455 2014-06-24  Wilco  <wdijkstr@arm.com>
29456
29457         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29458         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29459         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29460         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29461         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29462         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29463         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29464         Use _FPU_MASK_RM.
29465
29466 2014-06-24  Wilco  <wdijkstr@arm.com>
29467
29468         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29469
29470 2014-06-24  Wilco  <wdijkstr@arm.com>
29471
29472         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29473         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29474         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29475         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29476
29477 2014-06-24  Wilco  <wdijkstr@arm.com>
29478
29479         [BZ #16918]
29480         * sysdeps/arm/feupdateenv.c (feupdateenv):
29481         Rewrite to reduce FPSCR accesses and fix return value.
29482
29483 2014-06-24  Wilco  <wdijkstr@arm.com>
29484
29485         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29486         Optimize to avoid unnecessary FPSCR writes.
29487         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29488         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29489         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29490         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29491
29492 2014-06-24  Wilco  <wdijkstr@arm.com>
29493
29494         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29495         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29496         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29497         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29498         Call libc_fetestexcept_vfp.
29499         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29500         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29501         __SOFTFP__ ifdef so that they can be built for softfp.
29502
29503 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29504
29505         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29506         argument type signed char.
29507
29508         * Makerules (check-abi): Dump diff of symlist if the test
29509         fails.
29510
29511 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29512
29513         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29514         using abort.
29515
29516         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29517         Remove unused variable ST.
29518
29519 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29520
29521         [BZ #16354]
29522         [BZ #17061]
29523         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29524         small arguments before calling __expm1.
29525         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29526         small arguments before calling __expm1f.
29527         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29528         small arguments before calling __expm1l.
29529         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29530         Likewise.
29531         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29532         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29533         spurious underflow for some cosh tests.
29534         * math/auto-libm-test-out: Regenerated.
29535         * sysdeps/i386/fpu/libm-test-ulps: Update.
29536
29537         [BZ #17050]
29538         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29539         (__ieee754_y1): Set errno if return value overflows.
29540         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29541         (__ieee754_y1f): Set errno if return value overflows.
29542         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29543         (__ieee754_y1l): Set errno if return value overflows.
29544         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29545         (__ieee754_y1l): Set errno if return value overflows.
29546         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29547         * math/auto-libm-test-out: Regenerated.
29548
29549         * math/gen-auto-libm-tests.c: Document use of
29550         ignore-zero-inf-sign.
29551         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29552         (input_flags): Add ignore-zero-inf-sign.
29553         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29554         * math/gen-libm-test.pl (generate_testfile): Handle
29555         ignore-zero-inf-sign.
29556         * math/auto-libm-test-in: Mark some cpow tests with
29557         ignore-zero-inf-sign and some with xfail-rounding.
29558         * math/auto-libm-test-out: Regenerated.
29559         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29560         * sysdeps/i386/fpu/libm-test-ulps: Update.
29561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29562
29563         [BZ #16315]
29564         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29565         overflowing or underflowing operations take place with sign of
29566         result.
29567         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29568         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29569         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29570         (__ieee754_pow): Recompute overflowing and underflowing results in
29571         original rounding mode.
29572         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29573         (__powl_helper): Allow negative argument X and scale negated value
29574         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29575         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29576         overflowing or underflowing operations take place with sign of
29577         result.
29578         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29579         Include <math.h>.
29580         * math/auto-libm-test-in: Add more tests of pow.
29581         * math/auto-libm-test-out: Regenerated.
29582         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29583         (pow_tonearest_test_data): Remove.
29584         (pow_test_tonearest): Likewise.
29585         (pow_towardzero_test_data): Likewise.
29586         (pow_test_towardzero): Likewise.
29587         (pow_downward_test_data): Likewise.
29588         (pow_test_downward): Likewise.
29589         (pow_upward_test_data): Likewise.
29590         (pow_test_upward): Likewise.
29591         (main): Don't call removed functions.
29592         * sysdeps/i386/fpu/libm-test-ulps: Update.
29593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29594
29595 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29596
29597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29598         Moved ...
29599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29601         Moved ...
29602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29604         Moved ...
29605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29607         Moved ...
29608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29610         File removed.
29611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29612         File removed.
29613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29614         File removed.
29615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29616         File removed.
29617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29618         File removed.
29619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29620         File removed.
29621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29622         File removed.
29623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29624         File removed.
29625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29626         File removed.
29627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29628         File removed.
29629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29630         File removed.
29631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29632         File removed.
29633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29634         Moved ...
29635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29637         Moved ...
29638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29639         ... here.
29640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29641         Moved ...
29642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29644         Moved ...
29645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29647         Moved ...
29648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29650         Moved ...
29651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29653         Moved ...
29654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29656         Moved ...
29657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29659         Moved ...
29660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29663         ... here.
29664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29665         Moved ...
29666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29668         Moved ...
29669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29670         ... here.
29671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29672         Moved ...
29673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29674         ... here.
29675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29676         Moved ...
29677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29678         ... here.
29679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29680         Moved ...
29681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29683         Moved ...
29684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29688         Moved ...
29689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29690         ... here.
29691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29692         Moved ...
29693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29694         ... here.
29695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29696         Moved ...
29697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29699         Moved ...
29700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29702         Moved ...
29703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29705         Moved ...
29706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29708         Moved ...
29709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29710         ... here.
29711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29712         Moved ...
29713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29715         Moved ...
29716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29718         Moved ...
29719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29721         Moved ...
29722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29726         Moved ...
29727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29729         Moved ...
29730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29732         Moved ...
29733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29734         ... here.
29735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29736         Moved ...
29737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29738         ... here.
29739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29740         Moved ...
29741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29742         ... here.
29743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29744         Moved ...
29745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29747         Moved ...
29748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29750         Moved ...
29751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29753         Moved ...
29754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29755         ... here.
29756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29757         Moved ...
29758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29759         ... here.
29760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29761         Moved ...
29762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29763         ... here.
29764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
29765         Moved ...
29766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
29767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29768         Moved ...
29769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
29770
29771 2014-06-23  Will Newton  <will.newton@linaro.org>
29772             Wilco  <wdijkstr@arm.com>
29773
29774         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
29775         implementation.  Include get-rounding-mode.h.
29776         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
29777         [!libc_feholdsetround_noex_ctx]: Define
29778         libc_feholdsetround_noex_ctx.
29779         [!libc_feholdsetround_noexf_ctx]: Define
29780         libc_feholdsetround_noexf_ctx.
29781         [!libc_feholdsetround_noexl_ctx]: Define
29782         libc_feholdsetround_noexl_ctx.
29783         (libc_feholdsetround_ctx): New function.
29784         (libc_feresetround_ctx): New function.
29785         (libc_feholdsetround_noex_ctx): New function.
29786         (libc_feresetround_noex_ctx): New function.
29787
29788 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29789
29790         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
29791         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
29792         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
29793         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
29794         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
29795         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
29796
29797         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
29798         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29799         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
29800         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
29801         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
29802         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
29803         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
29804         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
29805         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
29806         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
29807         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
29808         Moved ...
29809         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
29810         ... here.
29811         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
29812         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
29813         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
29814         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
29815         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
29816         Moved ...
29817         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
29818         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
29819         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
29820         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
29821         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
29822         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
29823         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
29824         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
29825         Moved ...
29826         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
29827         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
29828         Moved ...
29829         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
29830         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
29831         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
29832         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
29833         Moved ...
29834         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
29835         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
29836         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
29837         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
29838         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
29839         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
29840         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
29841         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
29842         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
29843         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
29844         Moved ...
29845         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
29846         ... here.
29847         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
29848         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
29849         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
29850         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
29851         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
29852         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
29853         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
29854         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
29855         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
29856         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
29857         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
29858         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
29859         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
29860         Moved ...
29861         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
29862         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
29863         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
29864         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
29865         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
29866         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
29867         Moved ...
29868         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
29869         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
29870         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
29871         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
29872         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
29873
29874         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
29875         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
29876         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
29877         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
29878         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
29879         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
29880         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
29881         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
29882         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
29883         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
29884         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
29885         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
29886         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
29887         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
29888         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
29889         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
29890         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
29891         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
29892         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
29893         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
29894         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
29895         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
29896         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
29897         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
29898         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
29899         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
29900         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
29901         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
29902
29903 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29904
29905         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29906         (FALLOC_FL_COLLAPSE_RANGE): New macro.
29907         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
29908         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
29909         (IPV6_PMTUDISC_INTERFACE): Likewise.
29910         (IPV6_PMTUDISC_OMIT): Likewise.
29911
29912 2014-06-23  Andreas Schwab  <schwab@suse.de>
29913
29914         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
29915         Remove unused errout label.
29916
29917 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29918
29919         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
29920         macro: hardware supports Vector Crypto instructions.
29921
29922 2014-06-23  Will Newton  <will.newton@linaro.org>
29923
29924         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
29925         rather than __builtin_expect.
29926
29927         * elf/dl-lookup.c (undefined_msg): Remove variable.
29928         (_dl_lookup_symbol_x): Replace undefined_msg with string
29929         literal.
29930
29931         * elf/dl-lookup.c (do_lookup_unique): New function.
29932         (do_lookup_x): Move STB_GNU_UNIQUE handling code
29933         to a separate function.
29934
29935 2014-06-23  Andreas Schwab  <schwab@suse.de>
29936
29937         [BZ #17079]
29938         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
29939         before reading the next line.
29940
29941 2014-06-23  Will Newton  <will.newton@linaro.org>
29942
29943         * test-skeleton.c (signal_handler): Use printf and %m
29944         rather than perror.  Use printf rather than fprintf to
29945         stderr.  Use puts rather than fputs to stderr.
29946         (main): Likewise.
29947
29948 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
29949
29950         * nscd/nscd.c (thread_info_t): Remove typedef.
29951         (thread_info): Remove variable.
29952
29953 2014-06-21  Allan McRae  <allan@archlinux.org>
29954
29955         * NEWS: Mention CVE-2014-4043.
29956
29957 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29958
29959         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
29960         * nptl/smp.h: ... here.
29961
29962         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
29963
29964         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
29965         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
29966         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
29967         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
29968
29969         * nptl/allocatestack.c: Include <stack-aliasing.h>.
29970         * nptl/stack-aliasing.h: New file.
29971         * sysdeps/i386/i686/stack-aliasing.h: New file.
29972         * sysdeps/i386/i686/nptl/Makefile: File removed.
29973         * sysdeps/x86_64/stack-aliasing.h: New file.
29974         * sysdeps/x86_64/nptl/Makefile
29975         (CFLAGS-pthread_create.c): Variable removed.
29976
29977         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
29978         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
29979         old file.
29980         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
29981         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
29982         old file.
29983
29984 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
29985
29986         * sysdeps/unix/sysv/linux/arm/kernel-features.h
29987         (__ASSUME_SIGFRAME_V2): Remove macro.
29988         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
29989         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
29990         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
29991         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
29992         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
29993         Declare as function.  Remove conditional macro definitions.
29994         (__default_rt_sa_restorer): Likewise.
29995         (__default_sa_restorer_v1): Remove declaration.
29996         (__default_sa_restorer_v2): Likewise.
29997         (__default_rt_sa_restorer_v1): Likewise.
29998         (__default_rt_sa_restorer_v2): Likewise.
29999         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30000         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30001         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30002
30003 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30004
30005         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30006         (libpthread-routines): Add sysdep.
30007         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30008         * sysdeps/unix/sysv/linux/sparc/Versions
30009         (libpthread: GLIBC_2.3.3): New version set.
30010         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30011         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30012         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30013         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30014         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30015         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30016         Moved ...
30017         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30018         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30019         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30020         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30021         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30022         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30023         * sysdeps/sparc/nptl/sem_init.c: ... here.
30024         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30025         * sysdeps/sparc/nptl/sem_post.c: ... here.
30026         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30027         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30028         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30029         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30030         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30031         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30032         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30033         (libpthread-routines): Add cpu_relax.
30034         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30035         File removed.
30036         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30037         (librt: GLIBC_2.3.3): New version set.
30038         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30039         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30040         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30041         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30042         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30043         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30044         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30045         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30046         Moved ...
30047         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30048         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30049         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30050         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30051         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30052         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30053         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30054         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30055         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30056         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30057         Moved ...
30058         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30059         Update #include.
30060         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30061         Moved ...
30062         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30063         Update #include.
30064         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30065         Moved ...
30066         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30067         Update #include.
30068         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30069         Moved ...
30070         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30071         Update #include.
30072         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30073         Moved ...
30074         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30075         Update #include.
30076         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30077         Moved ...
30078         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30079         Update #include.
30080         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30081         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30082         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30083         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30084         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30085         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30086         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30087         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30088         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30089         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30090         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30091         Moved ...
30092         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30093         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30094         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30095         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30096         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30097
30098 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30099
30100         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30101         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30102         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30103         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30104         * nscd/nscd.c: Likewise.
30105         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30106         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30107         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30108         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30109
30110         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30111         <kernel-features.h>.
30112         (init_mq_netlink): Remove conditional have_sock_cloexec
30113         definitions.  Remove code conditional on have_sock_cloexec < 0.
30114         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30115         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30116         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30117         <kernel-features.h>.
30118         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30119         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30120
30121 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30122
30123         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30124         Add tests for memset_chk and memset.
30125
30126         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30127         with AVX2_Usable.
30128
30129 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30130
30131         [BZ #16046]
30132         * elf/tst-dl-iter-static.c: New file.
30133         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30134
30135         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30136         error.
30137
30138 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30139
30140         * sysdeps/unix/sysv/linux/kernel-features.h
30141         (__ASSUME_F_GETOWN_EX): Remove macro.
30142         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30143         <kernel-features.h>.
30144         (miss_F_GETOWN_EX): Remove variable or macro.
30145         (do_fcntl): Do not check miss_F_GETOWN_EX.
30146         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30147
30148         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30149         Remove macro.
30150         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30151         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30152         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30153
30154         * sysdeps/unix/sysv/linux/kernel-features.h
30155         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30156         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30157         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30158         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30159
30160 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30161
30162         [BZ #17075]
30163         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30164         Fix calculation of the symbol's value.
30165         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30166         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30167         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30168         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30169         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30170         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30171         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30172         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30173         (modules-names): Add `tst-armtlsdescmod',
30174         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30175         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30176         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30177         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30178         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30179         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30180         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30181         ($(objpfx)tst-armtlsdescloc): New dependency.
30182         ($(objpfx)tst-armtlsdescextnow): Likewise.
30183         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30184         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30185         TLS scheme support.
30186         * sysdeps/arm/configure: Regenerate.
30187
30188 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30189
30190         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30191         (__atfct_seterrno_2): Likewise.
30192         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30193         <kernel-features.h>.
30194         (__ASSUME_ATFCTS): Do not undefine and redefine.
30195         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30196         (__have_atfcts): Remove conditional definition.
30197         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30198         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30199         unreachable if [__ASSUME_ATFCTS].
30200         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30201         not undefine and redefine.
30202         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30203         <kernel-features.h>.
30204         (faccessat) [__NR_faccessat]: Make code unconditional.
30205         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30206         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30207         <kernel-features.h>.
30208         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30209         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30210         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30211         <kernel-features.h>.
30212         (fchownat) [__NR_fchownat]: Make code unconditional.
30213         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30214         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30215         <kernel-features.h>.
30216         (futimesat) [__NR_futimesat]: Make code unconditional.
30217         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30218         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30219         <kernel-features.h>.
30220         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30221         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30222         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30223         <kernel-features.h>.
30224         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30225         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30226         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30227         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30228         <kernel-features.h>.
30229         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30230         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30231         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30232         <kernel-features.h>.
30233         (linkat) [__NR_linkat]: Make code unconditional.
30234         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30235         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30236         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30237         <kernel-features.h>.
30238         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30239         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30240         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30241         <kernel-features.h>.
30242         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30243         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30244         * sysdeps/unix/sysv/linux/openat.c: Do not include
30245         <kernel-features.h>.
30246         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30247         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30248         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30249         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30250         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30251         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30252         <kernel-features.h>.
30253         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30254         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30255         result of INLINE_SYSCALL directly, not via int variable.
30256         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30257         <kernel-features.h>.
30258         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30259         (renameat) [__NR_renameat]: Make code unconditional.
30260         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30261         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30262         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30263         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30264         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30265         (__ASSUME_ATFCTS): Do not undefine and redefine.
30266         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30267         <kernel-features.h>.
30268         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30269         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30270         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30271         <kernel-features.h>.
30272         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30273         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30274         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30275         (__ASSUME_ATFCTS): Do not undefine and redefine.
30276         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30277         <kernel-features.h>.
30278         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30279         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30280         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30281         <kernel-features.h>.
30282         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30283         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30284
30285 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30286
30287         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30288
30289 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30290
30291         [BZ #17069]
30292         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30293         constructed tree before returning error.
30294         * posix/bug-regexp36.c: Expand test case.
30295
30296 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30297
30298         [BZ #6803]
30299         * math/libm-test.inc (scalbln_test_date):
30300         Add errno expectations.
30301         * math/w_scalblnf.c: New File.
30302         Add wrapper which checks for setting errno to ERANGE.
30303         Add weak_alias for corresponding scalbln function.
30304         * math/w_scalbln.c: Likewise.
30305         * math/w_scalblnl.c: Likewise.
30306         * math/Makefile (libm-calls): Add w_scalbln.
30307         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30308         Remove weak_alias for corresponding scalbln function.
30309         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30310         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30311         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30312         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30313         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30314         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30315         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30316         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30317         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30318         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30319         Remove long_double_symbol for scalblnl function in libm, libc.
30320         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30321         Add wrapper which checks for setting errno to ERANGE.
30322         Add long_double_symbol for scalblnl function in libm, libc.
30323         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30324         Remove long_double_symbol for scalblnl in libm.
30325         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30326         Add wrapper which checks for setting errno to ERANGE.
30327         Add long_double_symbol for scalblnl function in libm.
30328         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30329         Do not use wrapper because of own implementation.
30330
30331 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30332
30333         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30334         3 bytes for __pad1 for x32.
30335         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30336
30337 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30338             H.J. Lu  <hongjiu.lu@intel.com>
30339
30340         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30341         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30342         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30343         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30344         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30345
30346 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30347
30348         [BZ #17069]
30349         * posix/regcomp.c (parse_expression): Deallocate partially
30350         constructed tree before returning error.
30351         * posix/Makefile.c (tests): Add bug-regex36.
30352         (generated): Add bug-regex36.mtrace.
30353         (tests-special): Add $(objpfx)bug-regex36-mem.out
30354         (bug-regex36-ENV): New variable.
30355         ($(objpfx)bug-regex36-mem.out): New rule.
30356         * posix/bug-regex36.c: New file.
30357
30358 2014-06-19  Will Newton  <will.newton@linaro.org>
30359
30360         * malloc/malloc.c (systrim): If extra is zero then return
30361         early.
30362
30363 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30364
30365         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30366
30367 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30368
30369         * sysdeps/aarch64/strchr.S: New file.
30370
30371 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30372
30373         [BZ #17022]
30374         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30375         from arguments -2 or below.
30376         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30377         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30378
30379 2014-06-18  Andreas Schwab  <schwab@suse.de>
30380
30381         [BZ #17062]
30382         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30383         of a bracket expr not to run off the end of the string.
30384         * posix/Makefile (tests): Add tst-fnmatch3.
30385         * posix/tst-fnmatch3.c: New file.
30386
30387 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30388
30389         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30390         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30391         [$(cross-compiling) = no]: Likewise.
30392         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30393         [$(cross-compiling) = no]: Likewise.
30394
30395 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30396
30397         [BZ #17031]
30398         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30399         double, adjusted for any remainder from the high double.
30400         * math/libm-test.inc (nearbyint): Add tests.
30401         (rint): Likewise.
30402
30403 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30404
30405         * nptl/sysdeps/powerpc/Makefile: Moved ...
30406         * sysdeps/powerpc/nptl/Makefile: ... here.
30407         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30408         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30409         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30410         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30411         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30412         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30413         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30414         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30415         * nptl/sysdeps/powerpc/tls.h: Moved ...
30416         * sysdeps/powerpc/nptl/tls.h: ... here.
30417
30418 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30419
30420         [BZ #16681]
30421         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30422         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30423         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30424         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30425         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30426         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30427         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30428         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30429         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30430
30431 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30432
30433         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30434
30435 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30436
30437         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30438         defined operator.
30439
30440         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30441         $TIMEOUTFACTOR.
30442
30443 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30444
30445         [BZ #17058]
30446         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30447         non-executed part of the test.
30448
30449 2014-06-16  Andreas Schwab  <schwab@suse.de>
30450
30451         * string/bits/string2.h (strdup, strndup): Update feature guard.
30452
30453 2014-06-14  David S. Miller  <davem@davemloft.net>
30454
30455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30456
30457 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30458
30459         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30460         that was previously under [RESET_PID].
30461         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30462
30463         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30464         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30465         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30466         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30467         (__libc_vfork): New strong alias.
30468         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30469
30470 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30471
30472         * sysdeps/generic/elide.h: New file.
30473
30474 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30475
30476         * Makefile (installed-headers): Adjust path of pthread.h header.
30477
30478 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30479
30480         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30481         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30482         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30483         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30484
30485         * nptl/sysdeps/s390/Makefile: Moved ...
30486         * sysdeps/s390/nptl/Makefile: ... here.
30487         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30488         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30489         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30490         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30491         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30492         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30493         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30494         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30495         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30496         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30497         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30498         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30499         * nptl/sysdeps/s390/tls.h: Moved ...
30500         * sysdeps/s390/nptl/tls.h: ... here.
30501
30502         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30503         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30504
30505 2014-06-13  David S. Miller  <davem@davemloft.net>
30506
30507         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30508         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30509         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30510         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30511         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30512         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30513         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30514         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30515         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30516         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30517         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30518         Remove RESET_PID cpp guards.
30519         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30520         Remove RESET_PID cpp guards.
30521         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30522
30523 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30524
30525         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30526         __sp to uintptr_t.
30527
30528 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30529
30530         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30531         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30532         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30533         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30534         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30535         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30536         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30537         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30538         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30539         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30540         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30541         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30542         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30543         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30544         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30545         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30546         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30547         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30548         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30549         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30550
30551         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30552         (pthread_rwlock_rdlock): Add elision.
30553         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30554         (pthread_rwlock_wrlock): Add elision.
30555         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30556         (pthread_rwlock_trywrlock): Add elision.
30557         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30558         (pthread_rwlock_tryrdlock): Add elision.
30559         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30560         (pthread_rwlock_tryrdlock): Add elision unlock.
30561         * nptl/sysdeps/pthread/pthread.h:
30562         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30563         (PTHREAD_RWLOCK_INITIALIZER,
30564         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30565         Handle new elision field.
30566         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30567         * sysdeps/arm/nptl/bits/pthreadtypes.h
30568         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30569         * sysdeps/sh/nptl/bits/pthreadtypes.h
30570         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30571         * sysdeps/tile/nptl/bits/pthreadtypes.h
30572         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30573         * sysdeps/a/nptl/bits/pthreadtypes.h
30574         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30575         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30576         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30577         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30578         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30579         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30580         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30581         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30582         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30583         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30584         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30585         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30586         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30587         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30588         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30589         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30590         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30591         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30592         (elision_init): Set try_xbegin to zero when no RTM.
30593         * sysdeps/x86/nptl/bits/pthreadtypes.h
30594         (pthread_rwlock_t): Change __pad1 to __rwelision.
30595         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30596
30597 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30598
30599         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30600         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30601         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30602         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30603
30604 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30605
30606         [BZ #16996]
30607         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30608         that the cached result has been set before returning it.
30609
30610 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30611
30612         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30613         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30614         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30615         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30616         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30617         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30618
30619         * nptl/sysdeps/sparc/Makefile: Moved ...
30620         * sysdeps/sparc/nptl/Makefile: ... here.
30621         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30622         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30623         * nptl/sysdeps/sparc/tls.h: Moved ...
30624         * sysdeps/sparc/nptl/tls.h: ... here.
30625         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30626         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30627         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30628         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30629         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30630         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30631         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30632         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30633         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30634         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30635         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30636         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30637         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30638         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30639         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30640         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30641         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30642         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30643         Update #include.
30644         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30645         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30646         Update #include.
30647         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30648         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30649         Update #include.
30650         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30651         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30652         Update #include.
30653
30654         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30655
30656         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30657         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30658
30659         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30660         (struct list_links): Type removed.
30661         (struct thread_node, struct timer_node): Replace struct list_links
30662         with struct list_head.
30663         (list_unlink_ip): Likewise.
30664         * sysdeps/pthread/timer_routines.c
30665         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30666         (list_append, list_insbefore): Likewise.
30667         (list_init): Function removed.
30668         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30669         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30670         * sysdeps/pthread/Makefile: ... here, new file.
30671
30672         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30673         * sysdeps/nptl/Implies: ... here.
30674         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30675         * nptl/sysdeps/pthread/list.h: Moved ...
30676         * include/list.h: ... here.
30677         * nptl/sysdeps/pthread/createthread.c: Moved ...
30678         * nptl/createthread.c: ... here.
30679         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30680         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30681         * nptl/pt-longjmp.c: ... here.
30682         * nptl/sysdeps/pthread/Makefile: Moved ...
30683         * sysdeps/nptl/Makefile: ... here.
30684         * nptl/sysdeps/pthread/Subdirs: Moved ...
30685         * sysdeps/nptl/Subdirs: ... here.
30686         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30687         * sysdeps/nptl/aio_misc.h: ... here.
30688         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30689         * sysdeps/nptl/bits/libc-lock.h: ... here.
30690         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30691         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30692         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30693         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30694         * nptl/sysdeps/pthread/configure: Moved ...
30695         * sysdeps/nptl/configure: ... here.
30696         * nptl/sysdeps/pthread/configure.ac: Moved ...
30697         * sysdeps/nptl/configure.ac: ... here.
30698         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30699         * sysdeps/nptl/gai_misc.h: ... here.
30700         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30701         * sysdeps/nptl/librt-cancellation.c: ... here.
30702         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30703         * sysdeps/nptl/malloc-machine.h: ... here.
30704         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30705         * sysdeps/nptl/pthread-functions.h: ... here.
30706         * nptl/sysdeps/pthread/pthread.h: Moved ...
30707         * sysdeps/nptl/pthread.h: ... here.
30708         * nptl/sysdeps/pthread/setxid.h: Moved ...
30709         * sysdeps/nptl/setxid.h: ... here.
30710         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30711         * sysdeps/nptl/sigfillset.c: ... here.
30712         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30713         * sysdeps/nptl/tcb-offsets.h: ... here.
30714         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30715         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30716         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30717         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30718         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30719         * sysdeps/pthread/allocalim.h: ... here.
30720         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30721         * sysdeps/pthread/bits/sigthread.h: ... here.
30722         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30723         * sysdeps/pthread/flockfile.c: ... here.
30724         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30725         * sysdeps/pthread/ftrylockfile.c: ... here.
30726         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30727         * sysdeps/pthread/funlockfile.c: ... here.
30728         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30729         * sysdeps/pthread/posix-timer.h: ... here.
30730         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30731         * sysdeps/pthread/timer_create.c: ... here.
30732         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30733         * sysdeps/pthread/timer_delete.c: ... here.
30734         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30735         * sysdeps/pthread/timer_getoverr.c: ... here.
30736         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30737         * sysdeps/pthread/timer_gettime.c: ... here.
30738         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30739         * sysdeps/pthread/timer_routines.c: ... here.
30740         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30741         * sysdeps/pthread/timer_settime.c: ... here.
30742         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30743         * sysdeps/pthread/tst-timer.c: ... here.
30744         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30745         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30746
30747         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30748         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30749
30750         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30751         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30752         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30753         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30754         Update #include target.
30755         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30756         * sysdeps/i386/i686/nptl/Makefile: ... here.
30757         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30758         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30759         Update #include target.
30760         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30761         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30762         * nptl/sysdeps/i386/Makefile: Moved ...
30763         * sysdeps/i386/nptl/Makefile: ... here.
30764         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
30765         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
30766         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
30767         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
30768         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
30769         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
30770         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
30771         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
30772         * sysdeps/i386/nptl/pthreaddef.h: ... here.
30773         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
30774         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
30775         * nptl/sysdeps/i386/tls.h: Moved ...
30776         * sysdeps/i386/nptl/tls.h: ... here.
30777
30778         * sysdeps/sh/Makefile [$(subdir) = csu]
30779         (gen-as-const-headers): Add tcb-offsets.sym.
30780         * nptl/sysdeps/sh/Makefile: File removed.
30781         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
30782         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
30783         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
30784         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
30785         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
30786         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
30787         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
30788         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
30789         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
30790         * sysdeps/sh/nptl/pthreaddef.h: ... here.
30791         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
30792         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
30793         * nptl/sysdeps/sh/tls.h: Moved ...
30794         * sysdeps/sh/nptl/tls.h: ... here.
30795         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
30796         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
30797         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
30798         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
30799         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
30800         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
30801         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
30802         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
30803         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
30804         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
30805         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
30806         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
30807         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
30808         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
30809         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
30810         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
30811         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
30812         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
30813         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
30814         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
30815         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
30816         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
30817         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
30818         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
30819         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
30820         Moved ...
30821         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
30822         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
30823         Moved ...
30824         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
30825         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
30826         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
30827         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
30828         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
30829         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
30830         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
30831         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
30832         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
30833         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
30834         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
30835         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
30836         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
30837         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
30838         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
30839         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
30840         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
30841         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
30842         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
30843
30844 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30845
30846         * posix/spawn_faction_addopen.c: Include string.h.
30847
30848 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30849
30850         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
30851         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
30852         * nptl/sysdeps/x86_64/Makefile: Moved ...
30853         * sysdeps/x86_64/nptl/Makefile: ... here.
30854         * nptl/sysdeps/x86_64/configure: Moved ...
30855         * sysdeps/x86_64/nptl/configure: ... here.
30856         * nptl/sysdeps/x86_64/configure.ac: Moved ...
30857         * sysdeps/x86_64/nptl/configure.ac: ... here.
30858         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
30859         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
30860         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
30861         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
30862         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
30863         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
30864         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
30865         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
30866         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
30867         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
30868         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
30869         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
30870         * nptl/sysdeps/x86_64/tls.h: Moved ...
30871         * sysdeps/x86_64/nptl/tls.h: ... here.
30872         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
30873         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
30874         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
30875         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
30876
30877         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
30878
30879 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30880
30881         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30882
30883 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
30884
30885         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
30886         type.
30887         [POSIX] (off_t): Likewise.
30888         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
30889         [POSIX] (S_ISBLK): Require macro.
30890         [POSIX] (S_ISCHR): Likewise.
30891         [POSIX] (S_ISDIR): Likewise.
30892         [POSIX] (S_ISFIFO): Likewise.
30893         [POSIX] (S_ISREG): Likewise.
30894         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
30895         optional-macro.
30896         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
30897         type.
30898         [POSIX] (time_t): Likewise.
30899         [POSIX] (timer_t): Likewise.
30900
30901 2014-06-11  Florian Weimer  <fweimer@redhat.com>
30902
30903         [BZ #17048]
30904         * posix/spawn_int.h (struct __spawn_action): Make the path string
30905         non-const to support deallocation.
30906         * posix/spawn_faction_addopen.c
30907         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
30908         * posix/spawn_faction_destroy.c
30909         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
30910         path in all spawn_do_open actions.
30911         * posix/tst-spawn.c (do_test): Exercise the copy operation in
30912         posix_spawn_file_actions_addopen.
30913
30914 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
30915
30916         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
30917         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
30918         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
30919         conditional code always true.
30920         (__libc_vfork): New alias.
30921
30922 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30923
30924         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30925         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
30926
30927         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
30928
30929         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30930         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
30931
30932         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30933         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
30934
30935         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30936         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
30937
30938 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
30939
30940         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
30941         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
30942         multiarch strcmp for PPC64.
30943         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
30944         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
30945         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
30946         multiarch optimizations.
30947         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
30948         (__libc_ifunc_impl_list): Likewise.
30949
30950 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
30951
30952         * benchtests/scripts/validate_benchout.py: New script.
30953         * benchtests/Makefile (bench-func): Call it.
30954         * benchtests/scripts/benchout.schema.json: New file.
30955
30956 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
30957
30958         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
30959         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
30960         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
30961         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
30962         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
30963         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
30964         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
30965         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
30966         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
30967         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
30968         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
30969         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
30970         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
30971         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
30972         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
30973         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
30974         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
30975         Moved ...
30976         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
30977         ... here.
30978         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
30979         Moved ...
30980         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
30981         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
30982         Moved ...
30983         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
30984         ... here.
30985         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
30986         Moved ...
30987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
30988         ... here.
30989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
30990         Moved ...
30991         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
30992         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
30993         Moved ...
30994         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
30995         ... here.
30996         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
30997         Moved ...
30998         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
30999         ... here.
31000         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31001         Moved ...
31002         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31003         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31004         Moved ...
31005         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31006         ... here.
31007         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31008         Moved ...
31009         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31010         ... here.
31011         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31012         Moved ...
31013         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31014         ... here.
31015         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31016         Moved ...
31017         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31018         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31019         Moved ...
31020         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31021         ... here.
31022         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31023         Moved ...
31024         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31025         ... here.
31026         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31027         Moved ...
31028         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31029         ... here.
31030         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31031         Moved ...
31032         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31033         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31034         Moved ...
31035         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31036         ... here.
31037         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31038         Moved ...
31039         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31040         ... here.
31041         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31042         Moved ...
31043         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31044         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31045         Moved ...
31046         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31047         ... here.
31048         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31049         Moved ...
31050         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31051         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31052         Moved ...
31053         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31054         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31055         Moved ...
31056         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31057         ... here.
31058         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31059         Moved ...
31060         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31061         ... here.
31062         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31063         Moved ...
31064         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31065         ... here.
31066         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31067         Moved ...
31068         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31069         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31070         Moved ...
31071         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31072         ... here.
31073         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31074         Moved ...
31075         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31076         ... here.
31077         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31078         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31079         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31080         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31081         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31082         Moved ...
31083         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31084         ... here.
31085         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31086         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31087         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31088         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31089         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31090         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31091         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31092         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31093         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31094         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31095         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31096         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31097         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31098         Moved ...
31099         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31100         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31101         Moved ...
31102         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31103         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31104         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31105         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31106         Moved ...
31107         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31108         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31109         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31110         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31111         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31112         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31113         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31114
31115 2014-06-10  Wilco  <wdijkstr@arm.com>
31116
31117         * math/test-fenv-return.c: New file.
31118         * math/Makefile: Add new test test-fenv-return.
31119
31120 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31121
31122         [BZ #17042]
31123         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31124         when x - 1 is zero.
31125         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31126         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31127         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31128         0.0L for an argument of 1.0L.
31129         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31130         Likewise.
31131         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31132         value when x - 1 is zero.
31133         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31134         * sysdeps/i386/fpu/libm-test-ulps: Update.
31135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31136
31137 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31138
31139         [BZ #15119]
31140         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31141
31142 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31143
31144         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31145         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31146
31147 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31148
31149         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31150         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31151
31152         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31153         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31154
31155         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31156         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31157
31158         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31159         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31160
31161         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31162         if not already defined.
31163         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31164         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31165         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31166         (TLS_INIT_TP): Use it.
31167         (TLS_DEFINE_INIT_TP): New macro.
31168         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31169
31170 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31171
31172         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31173         constant.
31174         [POSIX] (IXANY): Likewise.
31175         [POSIX] (OLCUC): Likewise.
31176         [POSIX || POSIX2008] (CBAUD): Do not allow.
31177         [POSIX || POSIX2008] (DEFECHO): Likewise.
31178         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31179         [POSIX || POSIX2008] (ECHOKE): Likewise.
31180         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31181         [POSIX || POSIX2008] (EXTA): Likewise.
31182         [POSIX || POSIX2008] (EXTB): Likewise.
31183         [POSIX || POSIX2008] (FLUSHO): Likewise.
31184         [POSIX || POSIX2008] (LOBLK): Likewise.
31185         [POSIX || POSIX2008] (PENDIN): Likewise.
31186         [POSIX || POSIX2008] (SWTCH): Likewise.
31187         [POSIX || POSIX2008] (VDISCARD): Likewise.
31188         [POSIX || POSIX2008] (VDSUSP): Likewise.
31189         [POSIX || POSIX2008] (VLNEXT): Likewise.
31190         [POSIX || POSIX2008] (VREPRINT): Likewise.
31191         [POSIX || POSIX2008] (VSTATUS): Likewise.
31192         [POSIX || POSIX2008] (VWERASE): Likewise.
31193         (B*): Change to B[0123456789]*.
31194         * conform/data/time.h-data [POSIX || UNIX98]
31195         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31196         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31197         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31198         [POSIX] (tm_*): Do not allow.
31199
31200 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31201
31202         * Makefile (install): Don't set LANGUAGE.
31203         * Makefile.in (install): Likewise.
31204         * assert/Makefile (test-assert-ENV): Remove variable.
31205         (test-assert-perr-ENV): Likewise.
31206         * elf/Makefile (neededtest4-ENV): Likewise.
31207         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31208         [$(cross-compiling) = no]: Don't set LANGUAGE.
31209         * io/ftwtest-sh (LANG): Remove variable.
31210         * libio/Makefile (tst-widetext-ENV): Likewise.
31211         * manual/install.texi (Running make install): Don't refer to
31212         environment settings for make install.
31213         * INSTALL: Regenerated.
31214         * nptl/tst-tls6.sh: Don't set LANG.
31215         * posix/globtest.sh (LANG): Remove variable.
31216         * string/Makefile (tester-ENV): Likewise.
31217         (inl-tester-ENV): Likewise.
31218         (noinl-tester-ENV): Likewise.
31219         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31220         [$(cross-compiling) = no]: Don't set LANGUAGE.
31221         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31222         without explicit environment settings.
31223
31224 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31225
31226         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31227         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31228         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31229         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31230
31231 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31232
31233         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31234         other files in the crypt directory.
31235         * crypt/crypt.c: Remove duplicate includes.
31236         * crypt/crypt-entry.c: Likewise.
31237         * crypt/crypt_util.c: Likewise.
31238
31239 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31240
31241         * Makeconfig (run-program-env): New variable.
31242         (run-program-prefix-before-env): Likewise.
31243         (run-program-prefix-after-env): Likewise.
31244         (run-program-prefix): Define in terms of new variables.
31245         (built-program-cmd-before-env): New variable.
31246         (built-program-cmd-after-env): Likewise.
31247         (built-program-cmd): Define in terms of new variables.
31248         (test-program-prefix-before-env): New variable.
31249         (test-program-prefix-after-env): Likewise.
31250         (test-program-prefix): Define in terms of new variables.
31251         (test-program-cmd-before-env): New variable.
31252         (test-program-cmd-after-env): Likewise.
31253         (test-program-cmd): Define in terms of new variables.
31254         * Rules (make-test-out): Use $(run-program-env).
31255         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31256         (help): Do not mention environment variables.  Mention
31257         --timeoutfactor option.
31258         (timeoutfactor): New variable.
31259         (blacklist_exports): Remove function.
31260         (exports): Remove variable.
31261         (command): Do not include ${exports}.
31262         * manual/install.texi (Configuring and compiling): Do not mention
31263         test wrappers preserving environment variables.  Mention that last
31264         assignment to a variable must take precedence.
31265         * INSTALL: Regenerated.
31266         * benchtests/Makefile (run-bench): Use $(run-program-env).
31267         * catgets/Makefile ($(objpfx)test1.cat): Use
31268         $(built-program-cmd-before-env), $(run-program-env) and
31269         $(built-program-cmd-after-env).
31270         ($(objpfx)test2.cat): Do not specify environment variables
31271         explicitly.
31272         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31273         $(run-program-env) and $(built-program-cmd-after-env).
31274         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31275         $(run-program-env) and $(test-program-cmd-after-env).
31276         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31277         explicitly.
31278         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31279         run_program_env and test_program_cmd_after_env arguments.
31280         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31281         * elf/tst-pathopt.sh: Use run_program_env argument.
31282         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31283         $(test-wrapper-env) and $(run-program-env).
31284         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31285         run_program_env arguments.
31286         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31287         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31288         $(test-program-prefix-before-env), $(run-program-env) and
31289         $(test-program-prefix-after-env).
31290         ($(objpfx)tst-gettext2.out): Likewise.
31291         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31292         run_program_env and test_program_prefix_after_env arguments.
31293         * intl/tst-gettext2.sh: Likewise.
31294         * intl/tst-gettext4.sh: Do not set environment variables
31295         explicitly.
31296         * intl/tst-gettext6.sh: Likewise.
31297         * intl/tst-translit.sh: Likewise.
31298         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31299         $(test-program-prefix-before-env), $(run-program-env) and
31300         $(test-program-prefix-after-env).
31301         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31302         run_program_env and test_program_prefix_after_env arguments.
31303         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31304         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31305         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31306         explicitly with each use of ${test_wrapper_env}.
31307         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31308         $(test-program-prefix-before-env), $(run-program-env) and
31309         $(test-program-prefix-after-env).
31310         * posix/tst-getconf.sh: Do not set environment variables
31311         explicitly.
31312         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31313         run_program_env and test_program_prefix_after_env arguments.
31314         * stdio-common/tst-printf.sh: Do not set environment variables
31315         explicitly.
31316         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31317         $(test-program-prefix-before-env), $(run-program-env) and
31318         $(test-program-prefix-after-env).
31319         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31320         run_program_env and test_program_prefix_after_env arguments.
31321         Split $test calls into $test_pre and $test.
31322         * timezone/Makefile (build-testdata): Use
31323         $(built-program-cmd-before-env), $(run-program-env) and
31324         $(built-program-cmd-after-env).
31325
31326 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31327
31328         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31329         strlen for non SHARED builds.
31330
31331 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31332
31333         * nptl/allocatestack.c (check_list): Inlined function...
31334         (__reclaim_stacks): ... here.
31335
31336 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31337
31338         [BZ #15698]
31339         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31340         memory overrun.
31341
31342 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31343
31344         * Rules (make-test-out): Include
31345         LOCPATH=$(common-objpfx)localedata in default environment.
31346         * debug/Makefile (tst-chk1-ENV): Remove variable.
31347         (tst-chk2-ENV): Likewise.
31348         (tst-chk3-ENV): Likewise.
31349         (tst-chk4-ENV): Likewise.
31350         (tst-chk5-ENV): Likewise.
31351         (tst-chk6-ENV): Likewise.
31352         (tst-lfschk1-ENV): Likewise.
31353         (tst-lfschk2-ENV): Likewise.
31354         (tst-lfschk3-ENV): Likewise.
31355         (tst-lfschk4-ENV): Likewise.
31356         (tst-lfschk5-ENV): Likewise.
31357         (tst-lfschk6-ENV): Likewise.
31358         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31359         (tst-iconv7-ENV): Likewise.
31360         * intl/Makefile (LOCPATH-ENV): Likewise.
31361         (tst-codeset-ENV): Likewise.
31362         (tst-gettext3-ENV): Likewise.
31363         (tst-gettext5-ENV): Likewise.
31364         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31365         (tst-fopenloc-ENV): Likewise.
31366         (tst-fgetws-ENV): Remove variable.
31367         (tst-ungetwc1-ENV): Likewise.
31368         (tst-ungetwc2-ENV): Likewise.
31369         (bug-ungetwc2-ENV): Likewise.
31370         (tst-swscanf-ENV): Likewise.
31371         (bug-ftell-ENV): Likewise.
31372         (tst-fgetwc-ENV): Likewise.
31373         (tst-fseek-ENV): Likewise.
31374         (tst-ftell-partial-wide-ENV): Likewise.
31375         (tst-ftell-active-handler-ENV): Likewise.
31376         (tst-ftell-append-ENV): Likewise.
31377         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31378         (tst-regexloc-ENV): Likewise.
31379         (bug-regex1-ENV): Likewise.
31380         (tst-regex-ENV): Likewise.
31381         (tst-regex2-ENV): Likewise.
31382         (bug-regex5-ENV): Likewise.
31383         (bug-regex6-ENV): Likewise.
31384         (bug-regex17-ENV): Likewise.
31385         (bug-regex18-ENV): Likewise.
31386         (bug-regex19-ENV): Likewise.
31387         (bug-regex20-ENV): Likewise.
31388         (bug-regex22-ENV): Likewise.
31389         (bug-regex23-ENV): Likewise.
31390         (bug-regex25-ENV): Likewise.
31391         (bug-regex26-ENV): Likewise.
31392         (bug-regex30-ENV): Likewise.
31393         (bug-regex32-ENV): Likewise.
31394         (bug-regex33-ENV): Likewise.
31395         (bug-regex34-ENV): Likewise.
31396         (bug-regex35-ENV): Likewise.
31397         (tst-rxspencer-ENV): Likewise.
31398         (tst-rxspencer-no-utf8-ENV): Likewise.
31399         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31400         (tst-sscanf-ENV): Likewise.
31401         (tst-swprintf-ENV): Likewise.
31402         (tst-swscanf-ENV): Likewise.
31403         (test-vfprintf-ENV): Likewise.
31404         (scanf13-ENV): Likewise.
31405         (bug14-ENV): Likewise.
31406         (tst-grouping-ENV): Likewise.
31407         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31408         (tst-strtod3-ENV): Likewise.
31409         (tst-strtod4-ENV): Likewise.
31410         (tst-strtod5-ENV): Likewise.
31411         (testmb2-ENV): Likewise./
31412         * string/Makefile (tst-strxfrm-ENV): Likewise.
31413         (tst-strxfrm2-ENV): Likewise.
31414         (bug-strcoll1-ENV): Likewise.
31415         (test-strcasecmp-ENV): Likewise.
31416         (test-strncasecmp-ENV): Likewise.
31417         * time/Makefile (tst-strptime-ENV): Likewise.
31418         (tst-ftime_l-ENV): Likewise.
31419         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31420         (tst-mbrtowc-ENV): Likewise.
31421         (tst-wcrtomb-ENV): Likewise.
31422         (tst-mbrtowc2-ENV): Likewise.
31423         (tst-c16c32-1-ENV): Likewise.
31424         (tst-mbsnrtowcs-ENV): Likewise.
31425
31426 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31427
31428         * manual/resource.texi (How to get information about the memory
31429         subsystem?): Fix typo.
31430         Reported by Peon de la Parra Ivan <peon@keba.com>
31431
31432 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31433
31434         [BZ #16882]
31435         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31436         (pthread_spin_lock): Branch out of spin loop to proper location.
31437         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31438         (pthread_spin_lock): Likewise.
31439
31440         * nptl/tst-spin4.c: New test.
31441         * nptl/Makefile (tests): Add tst-spin4.
31442
31443 2014-06-03  Andreas Schwab  <schwab@suse.de>
31444
31445         [BZ #15946]
31446         * resolv/res_send.c (send_dg): Reload file descriptor after
31447         calling reopen.
31448
31449 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31450
31451         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31452
31453 2014-06-03  Richard Henderson  <rth@redhat.com>
31454
31455         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31456         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31457         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31458         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31459         in the SAVE_PID block.
31460         (__libc_vfork): New alias.
31461         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31462
31463         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31464         child in registers, not on the stack.  Remove RESET_PID conditionals.
31465         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31466
31467 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31468
31469         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31470
31471 2014-06-03  Wilco  <wdijkstr@arm.com>
31472
31473         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31474         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31475         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31476         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31477         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31478         Likewise.
31479
31480 2014-06-03  Wilco  <wdijkstr@arm.com>
31481
31482         * sysdeps/aarch64/fpu/math_private.h
31483         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31484         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31485         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31486         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31487         Fix declarations.
31488
31489 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31490
31491         * crypt/crypt-private.h: Include ufc-crypt.h.
31492         (__b64_from_24bit): Declare extern.
31493         * crypt/crypt_util.c(__b64_from_24bit): New function.
31494         (b64t): New static const variable.
31495         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31496         (b64t): Remove variable.
31497         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31498         * crypt/sha256-crypt.c: Include crypt-private.h.
31499         (b64t): Remove variable.
31500         (__sha256_crypt_r): Remove b64_from_24bit and replace
31501         with __b64_from_24bit.
31502         * crypt/sha512-crypt.c: Likewise.
31503
31504 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31505
31506         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31507         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31508         Label the code __libc_vfork rather than __vfork.
31509         [!NOT_IN_libc] (vfork): Define as weak alias.
31510         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31511         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31512         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31513
31514 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31515
31516         * malloc/malloc.c (malloc_info): Fix format specifier for
31517         n_mmaps.
31518
31519 2014-06-02  Wilco  <wdijkstr@arm.com>
31520
31521         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31522         FPCR write.
31523
31524 2014-06-02  Wilco  <wdijkstr@arm.com>
31525
31526         [BZ #17009]
31527         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31528         Rewrite to reduce FPCR/FPSR accesses.
31529
31530 2014-06-01  David S. Miller  <davem@davemloft.net>
31531
31532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31533
31534 2014-05-31  David S. Miller  <davem@davemloft.net>
31535
31536         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31537         to occur in round to nearest mode when |x| >= 2.0
31538
31539 2014-05-30  Richard Henderson  <rth@twiddle.net>
31540
31541         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31542         (PSEUDO_RET_NOERRNO): Remove.
31543         (ret): Don't redefine.
31544         (ret_NOERRNO): Define in terms of ret.
31545         (ret_ERRVAL): Likewise.
31546
31547         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31548         use of PSEUDO_RET; perform the error check directly.
31549
31550 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31551
31552         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31553         with __int128_t.
31554
31555 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31556
31557         * malloc/malloc (malloc_info): Fix formatting.
31558
31559 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31560             Roland McGrath  <roland@hack.frob.com>
31561
31562         * malloc/malloc (malloc_info): Also print mmapped statistics.
31563
31564 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31565
31566         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31567         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31568
31569 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31570
31571         * malloc/malloc.c (malloc_info): Inline mi_arena.
31572
31573 2014-05-29  Richard Henderson  <rth@twiddle.net>
31574
31575         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31576         Remove comma before expanding ASM_ARGS_##nr.
31577         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31578         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31579         of ASM_ARGS_##nr.
31580         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31581         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31582         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31583         (ASM_ARGS_1): Add leading comma.
31584
31585         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31586         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31587         to __errno_location.
31588         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31589         Remove the expected plt for __errno_location.
31590
31591         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31592         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31593         call to __read_tp.
31594
31595         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31596         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31597         it and break it down.
31598         (DOCARGS_0, DOCARGS_1): Do nothing.
31599         (DOCARGS_2): Update to store into the new stack frame.
31600         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31601         (UNDOCARGS_1): Update to restore from the new stack frame.
31602         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31603         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31604
31605         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31606         (SINGLE_THREAD_P): New parameter for result regno.
31607         (PSEUDO): Update to match; use cbz instead of beq.
31608
31609         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31610         Use ENTRY to define the _nocancel entry point.  Share the syscall
31611         and syscall error check paths with the cancel path.
31612         (PSEUDO_END): New.
31613
31614         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31615         whitespace; tabs before and after asm mnemonics.
31616
31617 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31618
31619         [BZ #15132]
31620         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31621         Call fstat64 or stat64 internally, depending on arguments passed.
31622         Replace stat buffer argument with file descriptor argument.
31623         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31624         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31625         Pass fd to __internal_statvfs instead of calling fstat64.
31626         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31627         Pass fd to __internal_statvfs64 instead of calling fstat64.
31628         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31629         Pass -1 to __internal_statvfs instead of calling stat64.
31630         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31631         Pass -1 to __internal_statvfs64 instead of calling stat64.
31632
31633 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31634
31635         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31636         that was previously under [RESET_PID].
31637         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31638
31639         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31640         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31641
31642 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31643
31644         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31645
31646         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31647         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31648
31649 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31650
31651         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31652
31653 2014-05-27  Andreas Schwab  <schwab@suse.de>
31654
31655         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31656         TLS_INIT_TP macro.
31657         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31658         * elf/rtld.c (init_tls, dl_main): Likewise.
31659         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31660         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31661         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31662         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31663         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31664         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31665         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31666         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31667         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31668         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31669         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31670         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31671         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31672         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31673         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31674         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31675         * sysdeps/generic/tls.h: Update description.
31676
31677 2014-05-27  Will Newton  <will.newton@linaro.org>
31678
31679         [BZ #16990]
31680         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31681         and restore r2 rather than just restoring.
31682
31683 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31684
31685         [BZ #16724]
31686         * libio/tst-ftell-append.c: New test case.
31687         * libio/Makefile (tests): Add test case.
31688         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31689         append mode.
31690         * libio/wfileops.c (do_ftell_wide): Likewise.
31691
31692 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31693
31694         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31695
31696         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31697         ...
31698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31700         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31701         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31702         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31703         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31704         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31705         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31706         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31707         Moved ...
31708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31709         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31710         Moved ...
31711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31712         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31713         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31714         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31715         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31716         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31717         ...
31718         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31719         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31720         Moved ...
31721         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31722         here.
31723         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31724         ...
31725         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31726         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31727         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31728
31729         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31730         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31731         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31732         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31733
31734         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31735         merge into ...
31736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31737         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31738         ...
31739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31740         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31741         ...
31742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31743         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31744         Moved ...
31745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31746         here.
31747         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31748         Moved ...
31749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31750         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31751         Moved ...
31752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31753
31754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31755         conditional [RESET_PID].
31756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31757         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31758         removed.
31759         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31760         removed.
31761
31762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31763         <tcb-offsets.h>.
31764         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31765         (__libc_vfork): New strong alias.
31766         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
31767         removed.
31768         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
31769         Removed.
31770
31771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
31772         <tcb-offsets.h>.
31773         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
31774         (__libc_vfork): New strong alias.
31775         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
31776         removed.
31777         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
31778         removed.
31779
31780 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
31781
31782         * malloc/malloc.c (mi_arena): New function.
31783         (malloc_info): Remove nested function mi_arena. Call non-nosted
31784         function mi_arena.
31785
31786 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31787
31788         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
31789         by insrwi.
31790         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31791         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31792         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
31793         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
31794         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
31795         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
31796         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
31797
31798 2014-05-26  Andreas Schwab  <schwab@suse.de>
31799
31800         [BZ #16984]
31801         * locale/programs/repertoire.c (repertoire_read): Add slash
31802         between I18NPATH element and file name.
31803         * locale/programs/locfile.c (locfile_read): Likewise.
31804
31805 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31806
31807         * nptl/pthread_mutexattr_settype.c
31808         (__pthread_mutexattr_settype):
31809         Disable lock elision for PTHREAD_MUTEX_NORMAL.
31810
31811 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31812
31813         * nptl/tst-mutex5 (do_test):
31814         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
31815
31816 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31817
31818         * benchtests/README: Document 'init' directive.
31819         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
31820         BENCH_INIT.
31821         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
31822         (parse_file): Recognize 'init' directive.
31823
31824 2014-05-26  Kyle McMartin  <kyle@redhat.com>
31825
31826         [BZ #16796]
31827         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
31828         alignment of struct pthread.
31829
31830 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31831
31832         [BZ #16878]
31833         * nscd/netgroupcache.c (addgetnetgrentX): Look for
31834         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31835         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
31836         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31837
31838 2014-05-25  Richard Henderson  <rth@twiddle.net>
31839
31840         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31841         (SINGLE_THREAD_P_PIC): Remove.
31842         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
31843         (SINGLE_THREAD_P_PIC): Remove.
31844
31845         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
31846         branch to syscall error ...
31847         (PSEUDO): ... here.
31848         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
31849         from __local_syscall_error to .Lsyscall_error.
31850         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
31851         (SYSCALL_ERROR): Update label name.
31852
31853         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31854         Do not use DOARGS/UNDOARGS.
31855         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
31856         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
31857         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
31858         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
31859         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
31860
31861         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
31862         block comment.
31863
31864         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
31865         define if !NOT_IN_libc.
31866         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
31867         define with non-default symbol versions.
31868
31869 2014-05-23  Richard Henderson  <rth@twiddle.net>
31870
31871         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
31872         (vfork, __vfork): Define via compat_symbol.
31873
31874         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
31875         [!HAVE_IFUNC] (vfork_compat): Remove.
31876         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
31877
31878 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31879
31880         [BZ #16978]
31881         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
31882         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
31883         variable.
31884
31885 2014-05-23  Richard Henderson  <rth@twiddle.net>
31886
31887         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
31888         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
31889         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
31890         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
31891
31892         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
31893         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
31894         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
31895         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
31896         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
31897         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
31898         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
31899         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
31900         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
31901         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
31902         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
31903         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
31904         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
31905         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
31906         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
31907         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
31908         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
31909         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
31910         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
31911         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
31912         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
31913         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
31914         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
31915         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
31916         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
31917         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
31918         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
31919         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
31920         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
31921         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
31922         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
31923         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
31924         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
31925         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
31926         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
31927         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
31928         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
31929         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
31930         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
31931         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
31932         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
31933         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
31934         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
31935         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
31936         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
31937         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
31938         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
31939         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
31940         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
31941         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
31942         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
31943         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
31944         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
31945         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
31946         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
31947         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
31948
31949         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
31950         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
31951         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
31952         before exiting on error.
31953         (__libc_vfork): New strong alias.
31954         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
31955         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
31956
31957         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
31958         that was previously under [RESET_PID].
31959         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
31960
31961         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
31962
31963 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31964
31965         [BZ #16977]
31966         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
31967         value when x - 1 is zero.
31968         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
31969         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
31970         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
31971         0.0L for an argument of 1.0L.
31972         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
31973         Likewise.
31974         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
31975         value when x - 1 is zero.
31976         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
31977         * sysdeps/i386/fpu/libm-test-ulps: Update.
31978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31979
31980 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31981
31982         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
31983         alphasort and versionsort.
31984
31985 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31986
31987         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
31988         macro.
31989         [copysignf]: Likewise.
31990
31991 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
31992
31993         * crypt/md5-crypt.c: Fix formatting.
31994
31995 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31996
31997         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
31998         (b64_from_24bit): New function.
31999
32000 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32001
32002         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32003         libc_hidden_builtin_def to ifunc.
32004         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32005         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32006
32007 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32008
32009         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32010         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32011
32012 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32013
32014         * nscd/Depend (linuxthreads): Remove.
32015         (nptl): Add.
32016         * resolv/Depend (linuxthreads): Remove.
32017         * rt/Depend (linuxthreads): Remove.
32018
32019         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32020         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32021         $(common-objpfx)elf/.
32022         (link-libc-before-gnulib): Likewise.
32023         (elfobjdir): Remove variable.
32024         * Makefile (install): Use $(elf-objpfx) instead of
32025         $(common-objpfx)elf/.
32026         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32027         $(elfobjdir)/.
32028         (link-libc-deps): Likewise.
32029         ($(common-objpfx)libc.so): Likewise.
32030         ($(common-objpfx)linkobj/libc.so): Likewise.
32031         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32032         instead of $(common-objpfx)elf/.
32033         (symbolic-link-list): Likewise.
32034         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32035         [$(cross-compiling) = no]: Likewise.
32036         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32037         $(elfobjdir)/.
32038         (static-gnulib-arch): Likewise.
32039         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32040         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32041         $(common-objpfx)elf/.
32042
32043 2014-05-21  Richard Henderson  <rth@redhat.com>
32044
32045         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32046         (SINGLE_THREAD_P): Use the correct width load.  Fold
32047         into the ldr offset.
32048
32049         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32050         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32051
32052 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32053
32054         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32055         (libgcc_s_resume): Use __attribute_used__.
32056         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32057         Likewise.
32058
32059 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32060
32061         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32062         optimization when used with float constants.
32063
32064         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32065
32066 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32067
32068         [BZ #16915]
32069         * locale/nl_langinfo_l.c: Make direct reference to every
32070         _nl_current_CATEGORY symbol.
32071         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32072         (tests-static): Add tst-langinfo-static.
32073         (tests-special): Add tst-langinfo-static.out.
32074         ($(objpfx)tst-langinfo.out): Redirect output.
32075         ($(objpfx)tst-langinfo-static.out): New.
32076         * localedata/tst-langinfo.sh: Send output to stdout.
32077         * localedata/tst-langinfo-static.c: New file.
32078
32079         [BZ #16965]
32080         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32081         when the shift amount is modulo the limb size.
32082
32083 2014-05-20  Richard Henderson  <rth@redhat.com>
32084
32085         [BZ #16967]
32086         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32087         Change type of sa_flags from unsigned int to int.
32088
32089         [BZ #16966]
32090         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32091
32092         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32093
32094 2014-05-20  Will Newton  <will.newton@linaro.org>
32095
32096         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32097         Test the return value of the system call in the nocancel case.
32098
32099 2014-05-20  Will Newton  <will.newton@linaro.org>
32100             Yvan Roux  <yvan.roux@linaro.org>
32101
32102         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32103         #include of asm/ptrace.h.
32104         (PTRACE_GET_THREAD_AREA): Remove #undef.
32105         (PTRACE_GETHBPREGS): Likewise.
32106         (PTRACE_SETHBPREGS): Likewise.
32107         (struct user_regs_struct): New structure.
32108         (struct user_fpsimd_struct): New structure.
32109         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32110         #include of asm/ptrace.h and second #include of sys/user.h.
32111         (PTRACE_GET_THREAD_AREA): Remove #undef.
32112         (PTRACE_GETHBPREGS): Likewise.
32113         (PTRACE_SETHBPREGS): Likewise.
32114         (ELF_NGREG): Use new struct user_regs_struct.
32115         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32116
32117 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32118
32119         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32120         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32121
32122 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32123
32124         [BZ #16958]
32125         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32126         membar to avoid block loads/stores to overlap previous stores.
32127
32128 2014-05-17  Richard Henderson  <rth@redhat.com>
32129
32130         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32131         Create the __##syscall_name##_nocancel entry point.
32132         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32133         Remove; let the sysdep-cancel.h code create it.
32134
32135 2014-05-17  David S. Miller  <davem@davemloft.net>
32136
32137         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32138         Protect with __USE_GNU.
32139         (TIOCSET_TEMPT): Likewise.
32140         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32141         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32142         these are already provided in bits/ioctl-types.h
32143
32144 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32145
32146         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32147         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32148
32149         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32150         Use wait4 regardless of [__NR_waitpid].
32151
32152 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32153
32154         PR libgcc/60166
32155         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32156         (_FP_NANSIGN_Q): Set the quiet bit.
32157
32158 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32159
32160         * benchtests/Makefile
32161         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32162         not $(common-objpfx)math/libm.so.
32163         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32164         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32165         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32166         $(common-objpfx)dlfcn/libdl.so.
32167         ($(objpfx)tst-audit8): Depend on $(libm), not
32168         $(common-objpfx)math/libm.so.
32169         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32170         not $(common-objpfx)dlfcn/libdl.so.
32171         * math/Makefile
32172         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32173         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32174         [$(build-shared) = yes].
32175         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32176         $(common-objpfx)nptl/libpthread.so.
32177         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32178         $(common-objpfx)math/libm.so$(libm.so-version) or
32179         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32180         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32181         $(common-objpfx)dlfcn/libdl.so.
32182         * setjmp/Makefile (link-libm): Remove variable.
32183         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32184         * stdio-common/Makefile (link-libm): Remove variable.
32185         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32186         * stdlib/Makefile (link-libm): Remove variable.
32187         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32188         ($(objpfx)tst-strtod-round): Likewise.
32189         ($(objpfx)tst-tininess): Likewise.
32190         ($(objpfx)tst-strtod-underflow): Likewise.
32191         ($(objpfx)tst-strtod6): Likewise.
32192         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32193         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32194         $(common-objpfx)dlfcn/libdl.so.
32195
32196 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32197
32198         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32199         BSD terminal modes definitions.
32200
32201 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32202
32203         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32204         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32205
32206         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32207         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32208         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32209         Don't do #include_next.
32210         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32211         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32212         Don't do #include_next.
32213         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32214         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32215         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32216         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32217
32218 2014-05-16  Allan McRae  <allan@archlinux.org>
32219
32220         * po/sv.po: Update Swedish translation from translation project.
32221
32222         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32223         in sed expression.
32224
32225 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32226
32227         [BZ #16917]
32228         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32229         errno if the TIOCGPTN ioctl fails with an error different than
32230         EINVAL.
32231         * login/tst-ptsname.c: New file.
32232         * login/Makefile (tests): Add tst-ptsname.
32233
32234         [BZ #16943]
32235         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32236         and prlimit64.
32237
32238 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32239
32240         [BZ #16849]
32241         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32242         herrno to return EAI_AGAIN.
32243
32244 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32245
32246         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32247         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32248         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32249         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32250         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32251         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32252         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32253         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32254         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32255         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32256         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32257         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32258         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32259         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32260         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32261         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32262         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32263         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32264         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32265         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32266         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32267         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32268         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32269         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32270         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32271         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32272         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32273         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32274         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32275         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32276         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32277         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32278         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32279         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32280         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32281         Moved ...
32282         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32283         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32284         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32285         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32286         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32287         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32288         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32289         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32290         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32291         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32292         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32293         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32294         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32295         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32296         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32298         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32299         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32300         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32301         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32302         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32303         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32304         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32305         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32306         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32307         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32308         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32309         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32310         Moved ...
32311         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32312         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32313         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32314         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32315         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32316         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32317         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32318         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32319         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32320         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32321         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32322         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32323         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32324         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32325         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32326         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32327         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32328         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32329         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32330         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32331         Moved ...
32332         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32333         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32334         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32335
32336         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32337         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32338         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32339         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32340         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32341         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32342         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32343         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32344         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32345         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32346         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32347         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32348         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32349         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32350         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32351         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32352         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32353         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32354         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32355         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32356         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32357         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32358         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32359         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32360         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32361         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32362         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32363         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32364         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32365         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32366         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32367
32368         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32369         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32370
32371         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32372         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32373         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32374         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32375         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32376         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32377         Moved ...
32378         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32379         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32380         Moved ...
32381         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32382         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32383         Moved ...
32384         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32385         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32386         Moved ...
32387         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32388         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32389         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32390         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32391         Moved ...
32392         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32393         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32394         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32395         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32396         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32397         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32398         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32399         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32400         Moved ...
32401         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32402         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32403         Moved ...
32404         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32405         ... here.
32406         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32407         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32408         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32409         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32410         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32411         Moved ...
32412         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32413         ... here.
32414         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32415         Moved ...
32416         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32417         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32418         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32419         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32420         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32421         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32422         Moved ...
32423         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32424         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32425         Moved ...
32426         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32427         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32428         Moved ...
32429         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32430         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32431         Moved ...
32432         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32433         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32434         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32435         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32436         Moved ...
32437         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32438         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32439         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32440         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32441         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32442         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32443         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32444         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32445         Moved ...
32446         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32447         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32448         Moved ...
32449         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32450         ... here.
32451         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32452         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32453         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32454         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32455         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32456         Moved ...
32457         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32458         ... here.
32459         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32460         Moved ...
32461         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32462         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32463         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32464         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32465         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32466         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32467         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32468         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32469         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32470         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32471         Moved ...
32472         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32473         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32474         Moved ...
32475         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32476         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32477         Moved ...
32478         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32479         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32480         Moved ...
32481         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32482         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32483         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32484         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32485         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32486         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32487         Moved ...
32488         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32489         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32490         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32491         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32492         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32493         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32494         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32495         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32496         Moved ...
32497         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32498         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32499         Moved ...
32500         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32501         ... here.
32502         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32503         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32504         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32505         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32506         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32507         Moved ...
32508         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32509         ... here.
32510         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32511         Moved ...
32512         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32513         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32514         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32515         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32516         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32517         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32518         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32519         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32520         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32521         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32522         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32523
32524         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32525         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32526
32527         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32528         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32529
32530         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32531         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32532         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32533         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32534         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32535         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32536         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32537         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32538         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32539         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32540         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32541         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32542         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32543         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32544         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32545         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32546         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32547         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32548         Moved ...
32549         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32550         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32551         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32552         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32553         Moved ...
32554         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32555         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32556         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32557         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32558         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32559         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32560         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32561         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32562         Moved ...
32563         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32564         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32565         Moved ...
32566         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32567         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32568         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32569         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32570         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32571         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32572         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32573         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32574         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32575         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32576         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32577         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32578         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32579         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32580         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32581         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32582         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32583
32584         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32585         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32586         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32587         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32588         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32589
32590         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32591         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32592         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32593         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32594         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32595         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32596         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32597         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32598         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32599         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32600
32601         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32602         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32603
32604         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32605         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32606         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32607         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32608         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32609         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32610         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32611         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32612         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32613         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32614         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32615         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32616         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32617         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32618         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32619         Update #include.
32620         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32621         Likewise.
32622         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32623         Likewise.
32624         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32625         Likewise.
32626         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32627         Likewise.
32628         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32629         Likewise.
32630         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32631         Likewise.
32632         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32633         Likewise.
32634         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32635         Likewise.
32636         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32637         Likewise.
32638         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32639         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32640         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32641         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32642         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32643         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32644         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32645         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32646         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32647         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32648         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32649         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32650         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32651         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32652         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32653
32654         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32655         that was previously under [RESET_PID].
32656         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32657         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32658         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32659
32660         * sysdeps/i386/nptl/Implies: New file.
32661         * sysdeps/x86_64/nptl/Implies: New file.
32662         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32663         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32664         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32665         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32666
32667         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32668         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32669         (__libc_vfork): New strong alias.
32670         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32671         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32672
32673         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32674         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32675         (__libc_vfork): New strong alias.
32676         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32677         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32678
32679         * sysdeps/unix/sysv/linux/arm/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         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32683         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32684         * nptl/pt-vfork.c: New file.
32685         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32686         (libpthread: GLIBC_2.20): New version set (empty).
32687
32688 2014-05-14  Will Newton  <will.newton@linaro.org>
32689
32690         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32691         rather than #if.
32692
32693 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32694
32695         [BZ #16564]
32696         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32697         arguments with exponent 65 or above.
32698         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32699         arguments 0x1p113L or above.
32700         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32701         to arguments 0x1p107L or above.
32702         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32703         positive arguments with exponent 65 or above.
32704         * math/auto-libm-test-in: Add more tests of log1p.
32705         * math/auto-libm-test-out: Regenerated.
32706
32707         [BZ #16928]
32708         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32709         non-finite arguments is +0.
32710         * math/s_cacosf.c (__cacosf): Likewise.
32711         * math/s_cacosl.c (__cacosl): Likewise.
32712         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32713         * sysdeps/i386/fpu/libm-test-ulps: Update.
32714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32715
32716         [BZ #16927]
32717         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32718         value.
32719         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32720         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32721         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32722         for explicit high bit of mantissa when testing for argument equal
32723         to 1.
32724         * math/libm-test.inc (acosh_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 #16516]
32729         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32730         (__erf): Scale by 16 instead of 8 in potentially underflowing
32731         case.  Ensure exception if result actually underflows.
32732         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32733         (__erff): Scale by 16 instead of 8 in potentially underflowing
32734         case.  Ensure exception if result actually underflows.
32735         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32736         (efx8): Remove variable.
32737         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32738         case.  Ensure exception if result actually underflows.
32739         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32740         (efx8): Remove variable.
32741         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32742         case.  Ensure exception if result actually underflows.
32743         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32744         (efx8): Remove variable.
32745         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32746         case.  Ensure exception if result actually underflows.
32747         * math/auto-libm-test-in: Add more tests of erf.
32748         * math/auto-libm-test-out: Regenerated.
32749
32750 2014-05-14  Andreas Schwab  <schwab@suse.de>
32751
32752         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32753         Remove code conditionalized on USE___THREAD.
32754
32755         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32756         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32757         not definedness.
32758
32759 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32760
32761         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32762         Define unconditionally.
32763         (__ASSUME_O_CLOEXEC): Likewise.
32764         (__ASSUME_SOCK_CLOEXEC): Likewise.
32765         (__ASSUME_IN_NONBLOCK): Likewise.
32766         (__ASSUME_PIPE2): Likewise.
32767         (__ASSUME_EVENTFD2): Likewise.
32768         (__ASSUME_SIGNALFD4): Likewise.
32769         (__ASSUME_DUP3): Likewise.
32770         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
32771         (__ASSUME_DUP3): Do not define.
32772         (__ASSUME_EVENTFD2): Likewise.
32773         (__ASSUME_IN_NONBLOCK): Likewise.
32774         (__ASSUME_O_CLOEXEC): Likewise.
32775         (__ASSUME_PIPE2): Likewise.
32776         (__ASSUME_SIGNALFD4): Likewise.
32777         (__ASSUME_SOCK_CLOEXEC): Likewise.
32778         (__ASSUME_UTIMES): Undefine.
32779         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32780         (__ASSUME_UTIMES): Do not define.
32781         (__ASSUME_O_CLOEXEC): Likewise.
32782         (__ASSUME_SOCK_CLOEXEC): Likewise.
32783         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
32784         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
32785         0x020621].
32786         (__ASSUME_PIPE2): Likewise.
32787         (__ASSUME_EVENTFD2): Likewise.
32788         (__ASSUME_SIGNALFD4): Likewise.
32789         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
32790         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
32791         Do not define.
32792         (__ASSUME_EVENTFD2): Likewise.
32793         (__ASSUME_SIGNALFD4): Likewise.
32794         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32795         (__ASSUME_32BITUIDS): Likewise.
32796         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32797         (__ASSUME_IPC64): Likewise.
32798         (__ASSUME_ST_INO_64_BIT): Likewise.
32799         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
32800         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
32801         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32802         (__ASSUME_UTIMES): Do not define.
32803         (__ASSUME_PSELECT): Likewise.
32804         (__ASSUME_PPOLL): Likewise.
32805         (__ASSUME_O_CLOEXEC): Likewise.
32806         (__ASSUME_SOCK_CLOEXEC): Likewise.
32807         (__ASSUME_IN_NONBLOCK): Likewise.
32808         (__ASSUME_PIPE2): Likewise.
32809         (__ASSUME_EVENTFD2): Likewise.
32810         (__ASSUME_SIGNALFD4): Likewise.
32811         (__ASSUME_DUP3): Likewise.
32812         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32813         (__ASSUME_UTIMES): Likewise.
32814         (__ASSUME_O_CLOEXEC): Likewise.
32815         (__ASSUME_SOCK_CLOEXEC): Likewise.
32816         (__ASSUME_IN_NONBLOCK): Likewise.
32817         (__ASSUME_PIPE2): Likewise.
32818         (__ASSUME_EVENTFD2): Likewise.
32819         (__ASSUME_SIGNALFD4): Likewise.
32820         (__ASSUME_DUP3): Likewise.
32821         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32822         (__ASSUME_UTIMES): Likewise.
32823         (__ASSUME_O_CLOEXEC): Likewise.
32824         (__ASSUME_SOCK_CLOEXEC): Likewise.
32825         (__ASSUME_IN_NONBLOCK): Likewise.
32826         (__ASSUME_PIPE2): Likewise.
32827         (__ASSUME_EVENTFD2): Likewise.
32828         (__ASSUME_SIGNALFD4): Likewise.
32829         (__ASSUME_DUP3): Likewise.
32830         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
32831         Likewise.
32832         (__ASSUME_UTIMES): Likewise.
32833         (__ASSUME_EVENTFD2): Likewise.
32834         (__ASSUME_SIGNALFD4): Likewise.
32835         * sysdeps/unix/sysv/linux/tile/kernel-features.h
32836         (__ASSUME_O_CLOEXEC): Likewise.
32837         (__ASSUME_SOCK_CLOEXEC): Likewise.
32838         (__ASSUME_IN_NONBLOCK): Likewise.
32839         (__ASSUME_PIPE2): Likewise.
32840         (__ASSUME_EVENTFD2): Likewise.
32841         (__ASSUME_SIGNALFD4): Likewise.
32842         (__ASSUME_DUP3): Likewise.
32843         (__ASSUME_UTIMES): Undefine.
32844
32845         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
32846         feclearexcept.  Remove symbol versioning code.
32847         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
32848         symbol versioning code.
32849         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
32850         symbol versioning code.
32851         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
32852         feupdateenv.  Remove symbol versioning code.
32853         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
32854         fegetexceptflag.  Remove symbol versioning code.
32855         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
32856         fesetexceptflag.  Remove symbol versioning code.
32857         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
32858         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
32859         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
32860         (__posix_fadvise64_l32): Remove prototype.
32861         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
32862         code.
32863
32864 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32865
32866         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
32867         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
32868         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
32869         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
32870
32871 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
32872
32873         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
32874         current working directory
32875
32876 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32877
32878         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
32879         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
32880         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
32881         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
32882         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
32883         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
32884         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
32885         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
32886         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
32887         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
32888         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
32889         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
32890         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
32891         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
32892         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
32893         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
32894         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
32895         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
32896         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
32897         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
32898         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
32899         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
32900         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
32901         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
32902         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
32903         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
32904         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
32905         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
32906         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
32907         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
32908         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
32909         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
32910         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
32911         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
32912         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
32913         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
32914         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
32915         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
32916         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
32917         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
32918         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
32919         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
32920
32921         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
32922         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
32923
32924         * sysdeps/unix/sysv/linux/arm/Makefile
32925         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
32926         Add rt-aeabi_unwind_cpp_pr1.
32927         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
32928         Add nptl-aeabi_unwind_cpp_pr1.
32929         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
32930         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
32931         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
32932         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32933         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
32934         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32935
32936         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
32937         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
32938         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
32939         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
32940
32941         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
32942         Deconditionalize the code that was previously under [RESET_PID].
32943         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
32944
32945         * sysdeps/generic/exit-thread.h: New file.
32946         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
32947         * include/unistd.h (__exit_thread): Remove declaration.
32948         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
32949         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
32950         * csu/libc-start.c: Include <exit-thread.h>.
32951         (LIBC_START_MAIN): Pass no argument to __exit_thread.
32952         * nptl/pthread_create.c: Include <exit-thread.h>.
32953         (start_thread): Call __exit_thread in place of __exit_thread_inline.
32954         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
32955         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
32956         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
32957         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
32958         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
32959         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
32960         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
32961         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
32962         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
32963         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
32964         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
32965         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
32966         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
32967         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
32968         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
32969         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
32970
32971 2014-05-13  Andreas Schwab  <schwab@suse.de>
32972
32973         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
32974
32975 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
32976
32977         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
32978         (__ASSUME_UTIMES): Do not condition on kernel version.
32979         (__ASSUME_PSELECT): Define unconditionally.
32980         (__ASSUME_PPOLL): Likewise.
32981         (__ASSUME_ATFCTS): Likewise.
32982         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
32983         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
32984         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
32985         (__ASSUME_UTIMENSAT): Define unconditionally.
32986         (__ASSUME_PRIVATE_FUTEX): Likewise.
32987         (__ASSUME_FALLOCATE): Likewise.
32988         (__ASSUME_O_CLOEXEC): Likewise.
32989         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
32990         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
32991         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
32992         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
32993         (__ASSUME_IN_NONBLOCK): Likewise.
32994         (__ASSUME_PIPE2): Likewise.
32995         (__ASSUME_EVENTFD2): Likewise.
32996         (__ASSUME_SIGNALFD4): Likewise.
32997         (__ASSUME_DUP3): Likewise.
32998         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32999         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33000         (__ASSUME_AT_RANDOM): Likewise.
33001         (__ASSUME_PREADV): Likewise.
33002         (__ASSUME_PWRITEV): Likewise.
33003         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33004         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33005         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33006         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33007         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33008         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33009         (__ASSUME_O_CLOEXEC): Define unconditionally.
33010         (__ASSUME_PSELECT): Do not undefine conditionally.
33011         (__ASSUME_PPOLL): Likewise.
33012         (__ASSUME_ATFCTS): Likewise.
33013         (__ASSUME_SET_ROBUST_LIST): Likewise.
33014         (__ASSUME_UTIMENSAT): Likewise.
33015         (__ASSUME_FDATASYNC): Define unconditionally.
33016         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33017         (__ASSUME_SIGFRAME_V2): Likewise.
33018         )__ASSUME_EVENTFD2): Likewise.
33019         (__ASSUME_SIGNALFD4): Likewise.
33020         (__ASSUME_PSELECT): Do not undefine conditionally.
33021         (__ASSUME_PPOLL): Likewise.
33022         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33023         (__ASSUME_PSELECT): Define unconditionally.
33024         (__ASSUME_PPOLL): Likewise.
33025         (__ASSUME_O_CLOEXEC): Likewise.
33026         (__ASSUME_SOCK_CLOEXEC): Likewise.
33027         (__ASSUME_IN_NONBLOCK): Likewise.
33028         (__ASSUME_PIPE2): Likewise.
33029         (__ASSUME_EVENTFD2): Likewise.
33030         (__ASSUME_SIGNALFD4): Likewise.
33031         (__ASSUME_DUP3): Likewise.
33032         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33033         (__ASSUME_O_CLOEXEC): Likewise.
33034         (__ASSUME_SOCK_CLOEXEC): Likewise.
33035         (__ASSUME_IN_NONBLOCK): Likewise.
33036         (__ASSUME_PIPE2): Likewise.
33037         (__ASSUME_EVENTFD2): Likewise.
33038         (__ASSUME_SIGNALFD4): Likewise.
33039         (__ASSUME_DUP3): Likewise.
33040         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33041         (__ASSUME_EVENTFD2): Likewise.
33042         (__ASSUME_SIGNALFD4): Likewise.
33043         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33044
33045 2014-05-12  Andreas Schwab  <schwab@suse.de>
33046
33047         [BZ #16932]
33048         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33049         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33050         than maximum RPC packet size.
33051         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33052         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33053         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33054         (_nss_nis_getservbyport_r): Likewise.
33055
33056 2014-05-12  Will Newton  <will.newton@linaro.org>
33057
33058         * malloc/Makefile (tests): Add tst-mallopt.
33059         * malloc/tst-mallopt.c: New file.
33060
33061 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33062
33063         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33064         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33065
33066 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33067
33068         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33069         (tst-tlsmod6.so): Likewise.
33070
33071 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33072
33073         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33074
33075 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33076
33077         [BZ #16064]
33078         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33079         and <dl-procinfo.h>.
33080         (__fegetenv): Save SSE state in envp->__eip if supported.
33081         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33082         envp->__eip if supported.
33083         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33084         and <dl-procinfo.h>.
33085         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33086         __data_offset and __data_selector in environment to 0.  Set SSE
33087         state if supported.
33088         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33089         test-fenv-sse.
33090         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33091         -mfpmath=sse.
33092         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33093
33094 2014-05-09  Will Newton  <will.newton@linaro.org>
33095
33096         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33097         and libc_relro_required for ARM.
33098         * sysdeps/arm/preconfigure: Regenerate.
33099
33100 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33101             Stefan Liebler  <stli@linux.vnet.ibm.com>
33102
33103         * config.make.in (enable-lock-elision): New Makefile variable.
33104         * configure.ac: Likewise.
33105         * configure: Regenerate.
33106         * sysdeps/s390/configure.ac:
33107         Add check for gcc transactions support.
33108         * sysdeps/s390/configure: Regenerate.
33109         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33110         Build elision files if enabled.
33111         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33112         Add lock elision support for s390.
33113         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33114         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33115         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33116         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33117         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33118         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33119         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33120         Likewise.
33121         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33122         Likewise.
33123         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33124         Likewise.
33125         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33126         Likewise.
33127         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33128         (__lll_timedlock_elision, __lll_lock_elision)
33129         (__lll_unlock_elision, __lll_trylock_elision)
33130         (lll_timedlock_elision, lll_lock_elision)
33131         (lll_unlock_elision, lll_trylock_elision): Add.
33132         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33133         (pthread_mutex_t): Add lock elision support for s390.
33134
33135 2014-05-14  Wilco  <wdijkstr@arm.com>
33136
33137         * sysdeps/arm/fclrexcpt.c: Cleanup.
33138         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33139         * sysdeps/arm/feenablxcpt.c: Cleanup.
33140         * sysdeps/arm/fegetenv.c: Cleanup.
33141         * sysdeps/arm/fegetexcept.c: Cleanup.
33142         * sysdeps/arm/fegetround.c: Cleanup.
33143         * sysdeps/arm/feholdexcpt.c: Cleanup.
33144         * sysdeps/arm/fesetenv.c: Cleanup.
33145         * sysdeps/arm/fesetround.c: Cleanup.
33146         * sysdeps/arm/feupdateenv.c: Cleanup.
33147         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33148         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33149         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33150         * sysdeps/arm/ftestexcept.c: Cleanup.
33151         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33152         * sysdeps/arm/setfpucw.c: Cleanup.
33153
33154 2014-05-09  Will Newton  <will.newton@linaro.org>
33155
33156         * sysdeps/arm/armv7/strcmp.S: New file.
33157         * NEWS: Mention addition of ARMv7 optimized strcmp.
33158
33159 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33160
33161         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33162         look for %.ac rather than %.in.
33163
33164         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33165         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33166         * sysdeps/mach/hurd/configure: Regenerated.
33167         * sysdeps/unix/sysv/linux/configure: Regenerated.
33168
33169         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33170
33171 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33172
33173         [BZ# 16922]
33174         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33175         (LONG_SUB): Ditto.
33176         (PTR_SUB): Ditto.
33177
33178 2014-05-07  Andreas Schwab  <schwab@suse.de>
33179
33180         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33181         when skipping over non-matching result from nscd.
33182
33183 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33184
33185         [BZ #16876]
33186         * nptl/sockperf.c (client): Check socket return value.
33187
33188         [BZ #16877]
33189         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33190         nscd security class.
33191
33192 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33193
33194         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33195         * sysdeps/arm/unwind.h: ... here.
33196
33197 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33198
33199         [BZ# 16916]
33200         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33201         Define.
33202
33203 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33204
33205         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33206         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33207         multiarch strncpy for PPC64.
33208         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33209         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33210         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33211         multiarch optimizations.
33212         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33213         (__libc_ifunc_impl_list): Likewise.
33214         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33215         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33216         multiarch stpncpy for PPC64.
33217         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33218         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33219
33220 2014-05-06  Andreas Schwab  <schwab@suse.de>
33221
33222         [BZ #16912]
33223         * gmon/mcount.c (_MCOUNT_DECL): Use
33224         atomic_compare_and_exchange_bool_acq instead of
33225         catomic_compare_and_exchange_bool_acq.
33226
33227 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33228
33229         * elf/Makefile (others, install-bin): Remove pldd.
33230         (pldd-modules): Variable removed.
33231         ($(objpfx)pldd): Target removed.
33232         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33233         (others, install-bin): Append pldd here.
33234         ($(objpfx)pldd): New target.
33235
33236         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33237         to 0, so the first #if test emitted later doesn't see it undefined.
33238         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33239         * sysdeps/gnu/errlist.c: Regenerated.
33240
33241 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33242
33243         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33244         [libc_hidden_builtin_def]: Define to empty value.
33245         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33246         [libc_hidden_builtin_def]: Likewise.
33247         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33248         [libc_hidden_builtin_def]: Likewise.
33249         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33250         [libc_hidden_builtin_def]: Likewise.
33251         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33252         __redirect_memcpy and define ifunc as default hidden symbol.
33253         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33254         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33255
33256 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33257
33258         * locale/iso-4217.def: Reintroduce XDR currency.
33259
33260 2014-05-04  Allan McRae  <allan@archlinux.org>
33261
33262         * po/eo.po: Update Esperanto translation from translation project.
33263
33264 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33265
33266         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33267         and FEATURE_INDEX_MAX to 1.
33268         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33269
33270 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33271
33272         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33273         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33274         * iconvdata/big5.c (ONE_DIRECTION): Define.
33275         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33276         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33277         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33278         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33279         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33280         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33281         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33282         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33283         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33284         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33285         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33286         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33287         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33288         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33289         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33290         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33291         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33292         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33293         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33294         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33295         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33296         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33297         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33298         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33299         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33300         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33301         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33302         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33303         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33304         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33305         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33306         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33307         * iconvdata/johab.c (ONE_DIRECTION): Define.
33308         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33309         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33310         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33311         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33312         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33313         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33314         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33315         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33316         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33317         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33318
33319 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33320
33321         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33322         (_IO_JUMPS_OFFSET): Define to 0.
33323
33324         * nptl/sysdeps/pthread/bits/libc-lock.h
33325         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33326         (__libc_lock_define_initialized_recursive): Always define using
33327         initializer.  Modern compilers treat uninitialized (implicit zero) and
33328         explicit zero initializers the same (i.e. put the datum in bss).
33329
33330 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33331
33332         * nscd/nscd-client.h: Include <string.h>.
33333
33334 2014-05-01  David S. Miller  <davem@davemloft.net>
33335
33336         [BZ #16885]
33337         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33338         multiple zero bytes exist at the end of a string.
33339         Reported by Aurelien Jarno <aurelien@aurel32.net>
33340
33341         * string/test-strcmp.c (check): Add explicit test for situations where
33342         there are multiple zero bytes after the first.
33343
33344 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33345
33346         [BZ #16890]
33347         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33348         when compiling wprintf.
33349         * stdio-common/tstdiomisc.c (t3): New function.
33350         (main): Call it.
33351
33352 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33353
33354         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33355         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33356         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33357         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33358
33359 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33360
33361         * stdlib/longlong.h: Updated from GCC.
33362
33363 2014-05-01  Will Newton  <will.newton@linaro.org>
33364             Bernard Ogden  <bernie.ogden@linaro.org>
33365
33366         * NEWS: Update fixed bug list.
33367
33368         [BZ #15119]
33369         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33370
33371 2014-04-30  David S. Miller  <davem@davemloft.net>
33372
33373         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33374         (libc_feholdexcept_setround_sparc_ctx): New function.
33375         (libc_fesetenv_sparc_ctx): Likewise.
33376         (libc_feupdateenv_sparc_ctx): Likewise.
33377         (libc_feholdsetround_sparc_ctx): Likewise.
33378         (libc_feholdexcept_setround_ctx): Define.
33379         (libc_feholdexcept_setroundf_ctx): Likewise.
33380         (libc_feholdexcept_setroundl_ctx): Likewise.
33381         (libc_fesetenv_ctx): Likewise.
33382         (libc_fesetenvf_ctx): Likewise.
33383         (libc_fesetenvl_ctx): Likewise.
33384         (libc_feupdateenv_ctx): Likewise.
33385         (libc_feupdateenvf_ctx): Likewise.
33386         (libc_feupdateenvl_ctx): Likewise.
33387         (libc_feresetround_ctx): Likewise.
33388         (libc_feresetroundf_ctx): Likewise.
33389         (libc_feresetroundl_ctx): Likewise.
33390         (libc_feholdsetround_ctx): Likewise.
33391         (libc_feholdsetroundf_ctx): Likewise.
33392         (libc_feholdsetroundl_ctx): Likewise.
33393
33394         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33395         with __USE_GNU instead of XOPEN cpp guards.
33396
33397         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33398         0.
33399
33400         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33401         with XOPEN cpp guards.
33402
33403 2014-04-30  Julian Brown  <julian@codesourcery.com>
33404
33405         [BZ #16888]
33406         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33407         handling.
33408
33409 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33410
33411         [BZ #9894]
33412         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33413         Change to 2.6.32.
33414         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33415         * sysdeps/unix/sysv/linux/configure: Regenerated.
33416         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33417         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33418         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33419         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33420         * README: Update reference to required Linux kernel version.
33421         * manual/install.texi (Linux): Update reference to required Linux
33422         kernel headers version.
33423         * INSTALL: Regenerated.
33424
33425         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33426         header inclusion.
33427         [POSIX] (limits.h): Likewise.
33428         [POSIX] (math.h): Likewise.
33429         [POSIX] (sys/wait.h): Likewise.
33430         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33431         function.
33432         [POSIX] (stddef.h): Do not allow header inclusion.
33433
33434 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33435
33436         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33437
33438 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33439
33440         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33441         Return immediately after lll_futex_wake.
33442
33443 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33444
33445         [BZ #16791]
33446         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33447         structure.
33448         (datahead_init_pos): Call datahead_init_common early.
33449         (datahead_init_neg): Likewise.
33450
33451         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33452         datahead_init_neg): New functions.
33453         * nscd/aicache.c (addhstaiX): Use them.
33454         * nscd/grpcache.c (cache_addgr): Likewise.
33455         * nscd/hstcache.c (cache_addhst): Likewise.
33456         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33457         * nscd/netgroupcache.c (do_notfound): Likewise.
33458         (addgetnetgrentX): Likewise.
33459         (addinnetgrX): Likewise.
33460         * nscd/pwdcache.c (cache_addpw): Likewise.
33461         * nscd/servicescache.c (cache_addserv): Likewise.
33462
33463 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33464             Atsushi Onoe  <atsushi@onoe.org>
33465
33466         [BZ #14308]
33467         [BZ #12994]
33468         [BZ #13651]
33469         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33470         one response is valid.
33471         * resolv/res_send.c (send_dg): Check for validity of other
33472         response if the current response is a referral.
33473
33474 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33475
33476         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33477
33478 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33479
33480         [BZ #16823]
33481         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33482         Always divide by positive zero when computing -Inf result.
33483         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33484         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33485
33486 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33487
33488         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33489         FPSCR if value do not change.
33490         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33491         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33492         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33493         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33494         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33495         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33496         function.
33497
33498 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33499
33500         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33501         * sysdeps/unix/sysv/linux/hppa: Move directory from
33502         ports/systeps/unix/sysv/linux/hppa.
33503         * README: Update listing for hppa-*-linux-gnu.
33504
33505 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33506
33507         [BZ #16754]
33508         * manual/stdio.texi (Hook functions): Fix types of stream hook
33509         functions.
33510         [BZ #16854]
33511         * socket/sys/socket.h: Fix typo in comment.
33512
33513 2014-04-28  Wilco  <wdijkstr@arm.com>
33514
33515         * sysdeps/arm/fenv_private.h: New file.
33516         * sysdeps/arm/math_private.h: New file.
33517         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33518
33519 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33520
33521         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33522         with __int128_t.
33523         (La_x86_64_retval): Likewise.
33524
33525 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33526
33527         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33528         fpsr if value didn't change.
33529         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33530         to fpcr if value didn't change.
33531         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33532         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33533         fpsr or fpcr if value didn't change.
33534         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33535         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33536         fpcr if value didn't change.
33537         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33538         to fpsr if value didn't change.
33539
33540 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33541
33542         * nptl/tst-sem3.c: Use test-skeleton.c
33543         (main): Rename to do_test.  Use return instead of
33544         exit.
33545         * nptl/tst-sem4.c: Use test-skeleton.c
33546         (main): Rename to do_test.
33547
33548 2014-04-22  David S. Miller  <davem@davemloft.net>
33549
33550         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33551         (struct sigaction): New struct member __glibc_reserved0, change
33552         type of sa_flags to int.
33553
33554 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33555
33556         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33557         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33558
33559 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33560
33561         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33562         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33563
33564 2014-04-22  Will Newton  <will.newton@linaro.org>
33565             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33566
33567         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33568         (__longjmp): Add longjmp and longjmp_target SystemTap
33569         probes.
33570         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33571         (__sigsetjmp): Add setjmp SystemTap probe.
33572
33573 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33574
33575         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33576         match manual order.
33577
33578 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33579
33580         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33581
33582         * sysdeps/powerpc/fpu/fenv_private.h
33583         (libc_feholdexcept_setroundl_ctx): Define to
33584         libc_feholdexcept_setround_ppc_ctx.
33585         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33586         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33587         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33588         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33589
33590 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33591
33592         * sysdeps/aarch64/math-tests.h: New file.
33593
33594 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33595
33596         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33597         New.
33598         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33599         Check and set bit_AVX2_Usable.
33600         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33601         macro.
33602         (bit_AVX2): Likewise.
33603         (index_AVX2_Usable): Likewise.
33604         (CPUID_AVX2): Likewise.
33605         (HAS_AVX2): Likewise.
33606
33607 2014-04-17  Will Newton  <will.newton@linaro.org>
33608
33609         * manual/setjmp.texi (System V contexts): Add note that
33610         calling setcontext on a context created by a call to a
33611         signal handler is undefined.  Update text to note that
33612         setcontext from a signal handler is possible but not
33613         recommended.
33614
33615         [BZ #16629]
33616         * stdlib/tst-setcontext.c: Include signal.h.
33617         (main): Check that the signal stack before and
33618         after swapcontext is the same.
33619
33620         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33621         Re-implement to restore registers in user code and avoid
33622         rt_sigreturn system call.
33623
33624 2014-04-17  Wilco  <wdijkstr@arm.com>
33625
33626         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33627         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33628         * math/test-fenv.c: Skip exception trap tests on targets which only
33629         support non-stop mode.
33630
33631 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33632             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33633
33634         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33635         (libc_feholdsetround_aarch64_ctx)
33636         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33637         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33638         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33639         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33640         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33641         (libc_feresetround_noexl_ctx): Define.
33642
33643 2014-04-16  Richard Henderson  <rth@redhat.com>
33644
33645         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33646
33647         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33648         unwind tables.
33649
33650         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33651         const from the non-libc, non-ldso copy.
33652
33653         * sysdeps/alpha/libm-test-ulps: Regenerate.
33654
33655 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33656             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33657
33658         * sysdeps/aarch64/fpu/math_private.h: New file.
33659
33660 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33661
33662         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33663
33664 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33665
33666         [BZ #16275]
33667         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33668         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33669         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33670         Intel MPX bound registers before _dl_profile_fixup.
33671         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33672         registers after _dl_profile_fixup.  Save and restore bound
33673         registers bnd0/bnd1 when calling _dl_call_pltexit.
33674         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33675         (LR_BND_OFFSET): Likewise.
33676         (LRV_BND0_OFFSET): Likewise.
33677         (LRV_BND1_OFFSET): Likewise.
33678
33679 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33680
33681         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33682         to...
33683         * sysdeps/mach/hurd/i386/tls.h: ... here.
33684         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33685         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33686         fields.
33687
33688 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33689
33690         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33691
33692 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33693
33694         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33695
33696 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33697
33698         [BZ #14770]
33699         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33700         * sysdeps/s390/configure: Regenerate.
33701
33702         [BZ #16824]
33703         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33704         Set round-to-nearest internally to reduce error accumulation.
33705
33706 2014-04-16  Alan Modra  <amodra@gmail.com>
33707
33708         [BZ #16740]
33709         [BZ #16619]
33710         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33711         * math/libm-test.inc (frexp_test_data): Add tests.
33712         * NEWS: Update fixed bug list.
33713
33714 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33715
33716         * benchtests/Makefile: Depend on libraries in build directory.
33717         (bench-math): Separate out math tests.
33718         (bench-pthread): Separate out pthread tests.
33719         (bench): Include math and pthread tests.
33720
33721 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33722
33723         [BZ #16831]
33724         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33725         _dl_debug_initialize.
33726
33727         * configure.ac: Remove SELinux header check.
33728         * configure: Regenerate.
33729         * nscd/selinux.c (perms): Array of const char* to permission names.
33730         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33731         default policy. Call string_to_security_class and string_to_av_perm to
33732         translate strings. Enforce default policy and call avs_has_perm with
33733         results of translated strings.
33734
33735 2014-04-13  David S. Miller  <davem@davemloft.net>
33736
33737         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33738
33739 2014-04-12  Allan McRae  <allan@archlinux.org>
33740
33741         [BZ #16838]
33742         * manual/string.texi (Collation Functions): Fix qsort argument
33743         order in example.
33744         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33745
33746 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33747
33748         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33749         Make the test a no-op if there are no exceptions defined.
33750
33751 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33752
33753         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33754         enable-hardcoded-path-in-tests
33755
33756 2014-04-11  Will Newton  <will.newton@linaro.org>
33757
33758         * benchtests/Makefile (extra-objs): Add json-lib.o.
33759         (bench-func): Tidy up JSON output.
33760         * benchtests/bench-skeleton.c: Include json-lib.h.
33761         (main): Use JSON library functions to do output of
33762         benchmark results.
33763         * benchtests/bench-timing-type.c (main): Output the
33764         timing type simply, leaving formatting to the user.
33765         * benchtests/json-lib.c: New file.
33766         * benchtests/json-lib.h: Likewise.
33767
33768 2014-04-11  Torvald Riegel  <triegel@redhat.com>
33769
33770         [BZ #15215]
33771         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
33772         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
33773         memory barriers.  Add comments.
33774         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
33775         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
33776         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
33777         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
33778         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
33779         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
33780
33781 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
33782
33783         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
33784         * sysdeps/s390/s390-64/configure.ac: ... this ...
33785         * sysdeps/s390/configure.ac: ... to here.
33786         * sysdeps/s390/s390-32/configure: Delete file.
33787         * sysdeps/s390/s390-64/configure: Delete file.
33788         * sysdeps/s390/configure: Regenerate.
33789
33790 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
33791
33792         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
33793
33794 2014-04-11  Will Newton  <will.newton@linaro.org>
33795
33796         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
33797         to zero if it is not defined elsewhere.  (mtrim): Test
33798         the value of MALLOC_DEBUG with #if rather than #ifdef.
33799
33800 2014-04-10 Torvald Riegel  <triegel@redhat.com>
33801
33802         * benchtests/pthread_once-inputs: New file.
33803         * benchtests/pthread_once-source.c: New file.
33804         * benchtests/README: Update documentation.
33805
33806 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
33807             H.J. Lu  <hongjiu.lu@intel.com>
33808
33809         [BZ #16275]
33810         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
33811         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
33812         * sysdeps/x86_64/configure: Regenerated.
33813         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
33814         macro.
33815         (REGISTER_SAVE_RAX): Likewise.
33816         (REGISTER_SAVE_RCX): Likewise.
33817         (REGISTER_SAVE_RDX): Likewise.
33818         (REGISTER_SAVE_RSI): Likewise.
33819         (REGISTER_SAVE_RDI): Likewise.
33820         (REGISTER_SAVE_R8): Likewise.
33821         (REGISTER_SAVE_R9): Likewise.
33822         (REGISTER_SAVE_BND0): Likewise.
33823         (REGISTER_SAVE_BND1): Likewise.
33824         (REGISTER_SAVE_BND2): Likewise.
33825         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
33826         bound registers when calling _dl_fixup.
33827
33828 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33829
33830         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
33831         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
33832         of its definition.
33833         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
33834         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
33835         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
33836         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
33837         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
33838         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
33839         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
33840
33841 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
33842
33843         [BZ #15514]
33844         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
33845         pathconf(_PC_NAME_MAX).
33846
33847 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33848
33849         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
33850         Remove macro usage.
33851         (__PTHREAD_SPINS): Move definition to ...
33852         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
33853         (__PTHREAD_SPINS): ... here.
33854         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33855         (__PTHREAD_SPIN): Likewise.
33856         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
33857         (__PTHREAD_SPIN): Likewise.
33858         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
33859         (__PTHREAD_SPIN): Likewise.
33860         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
33861         (__PTHREAD_SPIN): Likewise.
33862         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
33863         (__PTHREAD_SPIN): Likewise.
33864         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
33865         (__PTHREAD_SPIN): Likewise.
33866         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
33867         (__PTHREAD_SPIN): Likewise.
33868         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
33869         (__PTHREAD_SPIN): Likewise.
33870         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
33871         (__PTHREAD_SPIN): Likewise.
33872         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
33873         (__PTHREAD_SPIN): Likewise.
33874         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
33875         (__PTHREAD_SPIN): Likewise.
33876         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
33877         (__PTHREAD_SPIN): Likewise.
33878
33879         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
33880         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
33881         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
33882         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
33883         imply folder.
33884         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
33885         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
33886         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
33887         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
33888         correct imply path.
33889         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
33890         strlen symbol for non multi-arch builds.
33891         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
33892         missing hidden_def and weak_alias.
33893
33894 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
33895
33896         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
33897
33898 2014-04-07  Will Newton  <will.newton@linaro.org>
33899
33900         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
33901         and contents.  [!_LIBC] Remove #ifndef and contents.
33902         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
33903         * string/memccpy.c (__memccpy): Use ANSI prototype.
33904         * string/memfrob.c (memfrob): Likewise.
33905         * string/strcoll.c (STRCOLL): Likewise.
33906         * string/strlen.c (strlen): Likewise.
33907         * string/strtok.c (STRTOK): Likewise.
33908         * string/strcat.c: Remove unused #include of memcopy.h.
33909         (strcat): Use ANSI prototype.
33910         * string/strchr.c: Remove unused #include of memcopy.h.
33911         (strchr): Use ANSI prototype.
33912         * string/strcmp.c: Remove unused #include of memcopy.h.
33913         (strcmp): Use ANSI prototype.
33914         * string/strcpy.c: Remove unused #include of memcopy.h.
33915         (strcpy): Use ANSI prototype.
33916
33917 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33918
33919         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
33920         * config.make.in (config-extra-cppflags): Set it from
33921         libc_extra_cppflags.
33922         * configure.ac (libc_extra_cflags): Make it accumulate over
33923         configure fragments.
33924         (libc_extra_cppflags): New flag.
33925         * configure. Regenerate.
33926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33927         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
33928         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
33929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
33930
33931         [BZ #16815]
33932         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
33933         result for FE_DOWNWARD rounding mode.
33934         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
33935         Likewise.
33936         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33937
33938 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
33939
33940         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
33941         in function argument name.
33942
33943 2014-04-03  David Svoboda  <svoboda@cert.org>
33944
33945         [BZ #5666]
33946         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
33947         explicitly.
33948
33949 2014-04-03  Roland McGrath  <roland@hack.frob.com>
33950
33951         * elf/dl-unmap-segments.h: New file.
33952         * sysdeps/generic/ldsodefs.h
33953         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
33954         * elf/dl-close.c: Include <dl-unmap-segments.h>.
33955         * elf/dl-fptr.c: Likewise.
33956         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
33957         * sysdeps/aarch64/tlsdesc.c: Likewise.
33958         * sysdeps/arm/tlsdesc.c: Likewise.
33959         * sysdeps/i386/tlsdesc.c: Likewise.
33960         * sysdeps/tile/dl-runtime.c: Likewise.
33961         * sysdeps/x86_64/tlsdesc.c: Likewise.
33962         * elf/dl-load.h: New file.
33963         * elf/dl-load.c: Include it.
33964         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
33965         Macros moved to dl-load.h.
33966         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
33967         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
33968         Use _dl_unmap_segments in place of __munmap.
33969         Break out segment-mapping loop into ...
33970         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
33971
33972 2014-04-03  Will Newton  <will.newton@linaro.org>
33973
33974         * elf/dl-lookup.c (do_lookup_x): Remove comment
33975         referring to nested function and move variable
33976         declarations down to before first use.
33977
33978 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
33979
33980         [BZ #16799]
33981         [BZ #16800]
33982         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
33983         with 0 numerator.
33984         * math/s_catanf.c (__catanf): Likewise.
33985         * math/s_catanh.c (__catanh): Likewise.
33986         * math/s_catanhf.c (__catanhf): Likewise.
33987         * math/s_catanhl.c (__catanhl): Likewise.
33988         * math/s_catanl.c (__catanl): Likewise.
33989         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
33990         by positive zero when computing -Inf result.
33991         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
33992         (catanh_test): Likewise.
33993         * sysdeps/i386/fpu/libm-test-ulps: Update.
33994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33995
33996         [BZ #16789]
33997         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
33998         instead of using underflowing value in computing result.
33999         * math/s_clog10.c (__clog10): Likewise.
34000         * math/s_clog10f.c (__clog10f): Likewise.
34001         * math/s_clog10l.c (__clog10l): Likewise.
34002         * math/s_clogf.c (__clogf): Likewise.
34003         * math/s_clogl.c (__clogl): Likewise.
34004         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34005         (clog10_test): Likewise.
34006         * sysdeps/i386/fpu/libm-test-ulps: Update.
34007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34008
34009 2014-04-02  Alan Modra  <amodra@gmail.com>
34010
34011         [BZ #16739]
34012         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34013         output when value is near a power of two.  Use int64_t for lx and
34014         remove casts.  Use decimal rather than hex exponent constants.
34015         Don't use long double multiplication when double will suffice.
34016         * math/libm-test.inc (nextafter_test_data): Add tests.
34017         * NEWS: Add 16739 and 16786 to bug list.
34018
34019         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34020
34021         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34022
34023 2014-04-01  Will Newton  <will.newton@linaro.org>
34024
34025         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34026         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34027
34028 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34029
34030         [BZ #13347]
34031         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34032         * nptl/tst-setuid2.c: New file.
34033         * nptl/Makefile (xtests): Add tst-setuid2.
34034
34035 2014-04-01  Alan Modra  <amodra@gmail.com>
34036
34037         [BZ #16786]
34038         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34039
34040 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34041
34042         [BZ #6803]
34043         [BZ #6804]
34044         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34045         set errno as appropriate.
34046         * math/w_scalbf.c (__scalbf): Likewise.
34047         * math/w_scalbl.c (__scalbl): Likewise.
34048         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34049         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34050         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34051         Add more NaN tests.
34052
34053         [BZ #16349]
34054         * math/w_atan2.c: Include <errno.h>.
34055         (__atan2): Set errno for result underflowing to zero.
34056         * math/w_atan2f.c: Include <errno.h>.
34057         (__atan2f): Set errno for result underflowing to zero.
34058         * math/w_atan2l.c: Include <errno.h>.
34059         (__atan2l): Set errno for result underflowing to zero.
34060         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34061         tests.
34062         * math/auto-libm-test-out: Regenerated.
34063
34064 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34065
34066         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34067         Encode instruction correctly in little endian.
34068         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34069         Likewise.
34070         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34071         Likewise.
34072         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34073         Likewise.
34074         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34075         Likewise.
34076
34077 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34078
34079         [BZ #9894]
34080         * sysdeps/unix/sysv/linux/kernel-features.h
34081         [__sparc__ && !__arch64__ && !__sparc_v9__]
34082         (__ASSUME_SET_ROBUST_LIST): Do not define.
34083         [__sparc__ && !__arch64__ && !__sparc_v9__]
34084         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34085         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34086         Likewise.
34087         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34088         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34089         (__ASSUME_REQUEUE_PI): Likewise.
34090         (__ASSUME_SET_ROBUST_LIST): Likewise.
34091         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34092         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34093         Undefine.
34094         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34095         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34096         Likewise.
34097         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34098         Likewise.
34099         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34100         Likewise.
34101         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34102         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34103         Undefine.
34104         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34105         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34106         Likewise.
34107
34108         [BZ #16648]
34109         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34110         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34111         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34112
34113 2014-03-31  Will Newton  <will.newton@linaro.org>
34114
34115         * benchtests/Makefile (bench): Add ffs and ffsll to list
34116         of tests.
34117         * benchtests/ffs-inputs: New file.
34118         * benchtests/ffsll-inputs: Likewise.
34119
34120 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34121
34122         [BZ #16770]
34123         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34124         too large before casting to int.
34125         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34126         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34127         * math/libm-test.inc (scalb_test_data): Add more tests.
34128
34129 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34130
34131         * benchtests/Makefile (DETAILED_OPT): New make option.
34132         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34133         set.
34134         * benchtests/bench-skeleton.c: Include stdbool.h.
34135         (main): Store and print timings per input.
34136         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34137         member to each argument value.
34138         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34139         (_print_arg_data): Initialize per-input timing to 0.
34140
34141         * benchtests/Makefile (timing-type): New binary.
34142         (bench-clean): Also remove bench-timing-type.
34143         (bench): New target for timing-type.
34144         (bench-func): Print output in JSON format.
34145         * benchtests/bench-skeleton.c (main): Print output in JSON
34146         format.
34147         * benchtests/bench-timing-type.c: New file.
34148         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34149         (TIMING_PRINT_STATS): Remove.
34150         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34151         name separately.
34152
34153         * benchtests/bench-modf.c: Remove.
34154         * benchtests/modf-inputs: New inputs file.
34155
34156 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34157
34158         [BZ #16362]
34159         * math/s_clog10.c (M_PI_LOG10E): New macro.
34160         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34161         imaginary parts are 0.
34162         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34163         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34164         imaginary parts are 0.
34165         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34166         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34167         imaginary parts are 0.
34168         * math/libm-test.inc (clog10_test_data): Update expected results
34169         for when real and imaginary parts are 0.
34170
34171 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34172
34173         * elf/dl-load.c: Finish conversion of __builtin_expect into
34174         __glibc_{un}likely.
34175
34176 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34177
34178         [BZ #16348]
34179         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34180         1+x for argument with exponent below -67.
34181         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34182         Likewise.
34183         * math/auto-libm-test-in: Add more tests of exp.
34184         * math/auto-libm-test-out: Regenerated.
34185
34186 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34187
34188         [BZ #16759]
34189         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34190         (nscd_getnetgrent): Use it.
34191
34192         [BZ #16760]
34193         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34194         of stpcpy.
34195
34196 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34197
34198         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34199         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34200         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34201         (lll_robust_unlock): Remove out of line section. Use cfi
34202         intrinsics.
34203         (LLL_STUB_UNWIND_INFO*): Remove.
34204         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34205         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34206         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34207         (lll_robust_unlock): Remove out of line section. Use cfi
34208         intrinsics.
34209         (LLL_STUB_UNWIND_INFO*): Remove.
34210
34211 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34212
34213         [BZ #16758]
34214         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34215         blank values.
34216
34217 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34218
34219         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34220
34221 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34222
34223         [BZ #16198]
34224         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34225         fnstenv.
34226         * math/test-fenv-preserve.c: New file.
34227         * math/Makefile (tests): Add test-fenv-preserve.
34228
34229 2014-03-26  Will Newton <will.newton@linaro.org>
34230
34231         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34232
34233 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34234
34235         * scripts/versionlist.awk: Partition the version sets and emit all
34236         GLIBC_* (sorted) before all others (sorted).
34237
34238 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34239
34240         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34241         GLIBC_2.2.5 version.
34242
34243 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34244
34245         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34246         calls.
34247
34248         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34249         previous change.
34250
34251         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34252
34253 2014-03-25  Andreas Schwab  <schwab@suse.de>
34254
34255         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34256         label to be used after in6ailist is initialized.
34257
34258 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34259
34260         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34261         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34262
34263 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34264
34265         [BZ #16357]
34266         [BZ #16599]
34267         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34268         min_plus_half.
34269         (fp_formats): Update initializers.
34270         (init_fp_formats): Initialize new field.
34271         (output_for_one_input_case): Allow underflow for results up to
34272         min_plus_half.
34273         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34274         * math/auto-libm-test-in: Don't mark some underflows from asin and
34275         atanh as spurious.
34276         * math/auto-libm-test-out: Regenerated.
34277         * sysdeps/i386/fpu/libm-test-ulps: Update.
34278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34279
34280 2014-03-25  Andreas Schwab  <schwab@suse.de>
34281
34282         * libio/Makefile (tst-ftell-partial-wide-ENV)
34283         (tst-ftell-active-handler-ENV): Define.
34284
34285 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34286
34287         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34288
34289 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34290
34291         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34292
34293 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34294
34295         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34296         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34297         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34298
34299 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34300
34301         [BZ #16634]
34302         * elf/dl-load.c (open_verify): Add mode parameter.
34303         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34304         (open_path): Change from boolean 'secure' to complete flag 'mode'
34305         (_dl_map_object): Adjust.
34306         * elf/Makefile (tests): Add tst-dlopen-aout.
34307         * elf/tst-dlopen-aout.c: New test.
34308
34309 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34310
34311         [BZ #16714]
34312         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34313         (struct stat): Rename member pad0 to __glibc_reserved0.
34314
34315         [BZ #16712]
34316         * sysdeps/s390/s390-32/bits/wordsize.h
34317         (__WORDSIZE32_SIZE_ULONG): New define.
34318         * sysdeps/s390/s390-64/bits/wordsize.h
34319         (__WORDSIZE32_SIZE_ULONG): Likewise.
34320         * sysdeps/generic/stdint.h (SIZE_MAX):
34321         Define as UL if __WORDSIZE32_SIZE_ULONG.
34322
34323         [BZ #16713]
34324         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34325         (__glibc_reserved0): New variable.
34326         (sa_flags): Change type to int.
34327
34328         * posix/Makefile (before-compile): Use += before-compile instead
34329         of a :=.
34330
34331         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34332         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34333
34334 2014-03-20  Andreas Schwab  <schwab@suse.de>
34335
34336         [BZ #16743]
34337         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34338         non-matching result from nscd.
34339
34340 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34341
34342         * scripts/bench.py: Moved to ...
34343         * benchtests/scripts/bench.py: ... here.
34344         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34345
34346 2014-03-24  Andreas Schwab  <schwab@suse.de>
34347
34348         [BZ #16002]
34349         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34350         alloca_account and account alloca use for struct in6ailist.
34351
34352 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34353
34354         [BZ #16284]
34355         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34356         rounding mode to recompute results that overflow to infinity or
34357         underflow to zero.
34358         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34359         bug 16284.
34360         * math/auto-libm-test-out: Regenerated.
34361         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34362         (ccosh_test): Likewise.
34363         (csin_test_data): Use plus_oflow.
34364         (csin_test): Use ALL_RM_TEST.
34365         (csinh_test_data): Use plus_oflow.
34366         (csinh_test): Use ALL_RM_TEST.
34367         * sysdeps/i386/fpu/libm-test-ulps: Update.
34368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34369
34370 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34371
34372         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34373         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34374         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34375
34376         [BZ #16731]
34377         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34378         when x - 1 is zero.
34379         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34380         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34381         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34382         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34383         argument is 1.
34384         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34385         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34386         zero.
34387         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34388         * sysdeps/i386/fpu/libm-test-ulps: Update.
34389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34390
34391 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34392
34393         * scripts/bench.pl: Remove file.
34394         * scripts/bench.py: New benchmark script.
34395         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34396         * benchtests/README: Mention python dependency.
34397         * scripts/pylintrc: New file.
34398         * scripts/pylint: New file.
34399
34400         * bits/mathdef.h: Use #ifdef instead of #if.
34401         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34402         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34403         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34404         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34405         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34406         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34407
34408 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34409             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34410
34411         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34412         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34413         and strpbrk-ppc64 objects.
34414         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34415         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34416         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34417         multiarch strpbrk for POWER7.
34418         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34419         multiarch strpbrk for PPC64.
34420         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34421         ifunc selector.
34422         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34423         strpbrk for POWER7.
34424
34425 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34426
34427         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34428         (atan_test): Likewise.
34429         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34430         (atanh_test): Use ALL_RM_TEST.
34431         (atan2_test_data): Likewise.
34432         (cabs_test): Likewise.
34433         (cacosh_test): Likewise.
34434         (carg_test): Likewise.
34435         (casin_test): Likewise.
34436         (casinh_test): Likewise.
34437         (cbrt_test): Likewise.
34438         (csqrt_test): Likewise.
34439         (erf_test): Likewise.
34440         (erfc_test): Likewise.
34441         (pow10_test): Likewise.
34442         (exp2_test): Likewise.
34443         (hypot_test): Likewise.
34444         (j0_test): Likewise.
34445         (j1_test): Likewise.
34446         (lgamma_test): Likewise.
34447         (gamma_test): Likewise.
34448         (sincos_test): Likewise.
34449         (tanh_test): Likewise.
34450         (y0_test): Likewise.
34451         (y1_test): Likewise.
34452         * sysdeps/i386/fpu/libm-test-ulps: Update.
34453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34454
34455 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34456
34457         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34458         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34459         and strcspn-ppc64 objects.
34460         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34461         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34462         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34463         multiarch strcspn for POWER7.
34464         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34465         multiarch strcspn for PPC64.
34466         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34467         ifunc selector.
34468         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34469         strcspn for POWER7.
34470
34471 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34472
34473         * math/gen-libm-test.pl (generate_testfile): Expect only function
34474         name as argument to AUTO_TESTS_* and pass results for all rounding
34475         modes to parse_args.
34476         (parse_auto_input): Separate inputs of automatic tests from
34477         outputs before storing in %auto_tests.
34478         * math/libm-test.inc (acos_test_data): Update call to
34479         AUTO_TESTS_f_f.
34480         (acos_test): Use ALL_RM_TEST.
34481         (acos_tonearest_test_data): Remove.
34482         (acos_test_tonearest): Likewise.
34483         (acos_towardzero_test_data): Likewise.
34484         (acos_test_towardzero): Likewise.
34485         (acos_downward_test_data): Likewise.
34486         (acos_test_downward): Likewise.
34487         (acos_upward_test_data): Likewise.
34488         (acos_test_upward): Likewise.
34489         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34490         (asin_test_data): Likewise.
34491         (asin_test): Use ALL_RM_TEST.
34492         (asin_tonearest_test_data): Remove.
34493         (asin_test_tonearest): Likewise.
34494         (asin_towardzero_test_data): Likewise.
34495         (asin_test_towardzero): Likewise.
34496         (asin_downward_test_data): Likewise.
34497         (asin_test_downward): Likewise.
34498         (asin_upward_test_data): Likewise.
34499         (asin_test_upward): Likewise.
34500         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34501         (atan_test_data): Likewise.
34502         (atanh_test_data): Likewise.
34503         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34504         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34505         (carg_test_data): Likewise.
34506         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34507         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34508         (ccosh_test_data): Likewise.
34509         (cexp_test_data): Likewise.
34510         (clog_test_data): Likewise.
34511         (clog10_test_data): Likewise.
34512         (cos_test_data): Update call to AUTO_TESTS_f_f.
34513         (cos_test): Use ALL_RM_TEST.
34514         (cos_tonearest_test_data): Remove.
34515         (cos_test_tonearest): Likewise.
34516         (cos_towardzero_test_data): Likewise.
34517         (cos_test_towardzero): Likewise.
34518         (cos_downward_test_data): Likewise.
34519         (cos_test_downward): Likewise.
34520         (cos_upward_test_data): Likewise.
34521         (cos_test_upward): Likewise.
34522         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34523         (cosh_test): Use ALL_RM_TEST.
34524         (cosh_tonearest_test_data): Remove.
34525         (cosh_test_tonearest): Likewise.
34526         (cosh_towardzero_test_data): Likewise.
34527         (cosh_test_towardzero): Likewise.
34528         (cosh_downward_test_data): Likewise.
34529         (cosh_test_downward): Likewise.
34530         (cosh_upward_test_data): Likewise.
34531         (cosh_test_upward): Likewise.
34532         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34533         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34534         (ctan_test_data): Likewise.
34535         (ctan_test): Use ALL_RM_TEST.
34536         (ctan_tonearest_test_data): Remove.
34537         (ctan_test_tonearest): Likewise.
34538         (ctan_towardzero_test_data): Likewise.
34539         (ctan_test_towardzero): Likewise.
34540         (ctan_downward_test_data): Likewise.
34541         (ctan_test_downward): Likewise.
34542         (ctan_upward_test_data): Likewise.
34543         (ctan_test_upward): Likewise.
34544         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34545         (ctanh_test): Use ALL_RM_TEST.
34546         (ctanh_tonearest_test_data): Remove.
34547         (ctanh_test_tonearest): Likewise.
34548         (ctanh_towardzero_test_data): Likewise.
34549         (ctanh_test_towardzero): Likewise.
34550         (ctanh_downward_test_data): Likewise.
34551         (ctanh_test_downward): Likewise.
34552         (ctanh_upward_test_data): Likewise.
34553         (ctanh_test_upward): Likewise.
34554         (erf_test_data): Update call to AUTO_TESTS_f_f.
34555         (erfc_test_data): Likewise.
34556         (exp_test_data): Likewise.
34557         (exp_test): Use ALL_RM_TEST.
34558         (exp_tonearest_test_data): Remove.
34559         (exp_test_tonearest): Likewise.
34560         (exp_towardzero_test_data): Likewise.
34561         (exp_test_towardzero): Likewise.
34562         (exp_downward_test_data): Likewise.
34563         (exp_test_downward): Likewise.
34564         (exp_upward_test_data): Likewise.
34565         (exp_test_upward): Likewise.
34566         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34567         (exp10_test): Use ALL_RM_TEST.
34568         (exp10_tonearest_test_data): Remove.
34569         (exp10_test_tonearest): Likewise.
34570         (exp10_towardzero_test_data): Likewise.
34571         (exp10_test_towardzero): Likewise.
34572         (exp10_downward_test_data): Likewise.
34573         (exp10_test_downward): Likewise.
34574         (exp10_upward_test_data): Likewise.
34575         (exp10_test_upward): Likewise.
34576         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34577         (expm1_test_data): Likewise.
34578         (expm1_test): Use ALL_RM_TEST.
34579         (expm1_tonearest_test_data): Remove.
34580         (expm1_test_tonearest): Likewise.
34581         (expm1_towardzero_test_data): Likewise.
34582         (expm1_test_towardzero): Likewise.
34583         (expm1_downward_test_data): Likewise.
34584         (expm1_test_downward): Likewise.
34585         (expm1_upward_test_data): Likewise.
34586         (expm1_test_upward): Likewise.
34587         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34588         (fma_test): Use ALL_RM_TEST.
34589         (fma_towardzero_test_data): Remove.
34590         (fma_test_towardzero): Likewise.
34591         (fma_downward_test_data): Likewise.
34592         (fma_test_downward): Likewise.
34593         (fma_upward_test_data): Likewise.
34594         (fma_test_upward): Likewise.
34595         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34596         (j0_test_data): Update call to AUTO_TESTS_f_f.
34597         (j1_test_data): Likewise.
34598         (jn_test_data): Update call to AUTO_TESTS_if_f.
34599         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34600         (log_test_data): Update call to AUTO_TESTS_f_f.
34601         (log10_test_data): Likewise.
34602         (log1p_test_data): Likewise.
34603         (log2_test_data): Likewise.
34604         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34605         (pow_tonearest_test_data): Likewise.
34606         (sin_test_data): Update call to AUTO_TESTS_f_f.
34607         (sin_test): Use ALL_RM_TEST.
34608         (sin_tonearest_test_data): Remove.
34609         (sin_test_tonearest): Likewise.
34610         (sin_towardzero_test_data): Likewise.
34611         (sin_test_towardzero): Likewise.
34612         (sin_downward_test_data): Likewise.
34613         (sin_test_downward): Likewise.
34614         (sin_upward_test_data): Likewise.
34615         (sin_test_upward): Likewise.
34616         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34617         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34618         (sinh_test): Use ALL_RM_TEST.
34619         (sinh_tonearest_test_data): Remove.
34620         (sinh_test_tonearest): Likewise.
34621         (sinh_towardzero_test_data): Likewise.
34622         (sinh_test_towardzero): Likewise.
34623         (sinh_downward_test_data): Likewise.
34624         (sinh_test_downward): Likewise.
34625         (sinh_upward_test_data): Likewise.
34626         (sinh_test_upward): Likewise.
34627         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34628         (sqrt_test): Use ALL_RM_TEST.
34629         (sqrt_tonearest_test_data): Remove.
34630         (sqrt_test_tonearest): Likewise.
34631         (sqrt_towardzero_test_data): Likewise.
34632         (sqrt_test_towardzero): Likewise.
34633         (sqrt_downward_test_data): Likewise.
34634         (sqrt_test_downward): Likewise.
34635         (sqrt_upward_test_data): Likewise.
34636         (sqrt_test_upward): Likewise.
34637         (tan_test_data): Update call to AUTO_TESTS_f_f.
34638         (tan_test): Use ALL_RM_TEST.
34639         (tan_tonearest_test_data): Remove.
34640         (tan_test_tonearest): Likewise.
34641         (tan_towardzero_test_data): Likewise.
34642         (tan_test_towardzero): Likewise.
34643         (tan_downward_test_data): Likewise.
34644         (tan_test_downward): Likewise.
34645         (tan_upward_test_data): Likewise.
34646         (tan_test_upward): Likewise.
34647         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34648         (tgamma_test_data): Likewise.
34649         (y0_test_data): Likewise.
34650         (y1_test_data): Likewise.
34651         (yn_test_data): Update call to AUTO_TESTS_if_f.
34652         (main): Do not call removed functions.
34653
34654 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34655
34656         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34657         (ldexp_test_data): Remove.
34658         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34659         scalbn_test_data.
34660         (scalb_test): Use ALL_RM_TEST.
34661
34662 2014-03-19  Andreas Schwab  <schwab@suse.de>
34663
34664         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34665
34666 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34667
34668         [BZ #16649]
34669         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34670         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34671         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34672         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34673         (__ASSUME_PREADV): Undefine.
34674         (__ASSUME_PWRITEV): Likewise.
34675
34676 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34677
34678         * bits/mman-linux.h: Add comment about non-Linux use.
34679         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34680         bits/mman-linux.h resting place.
34681
34682         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34683         * bits/mman-linux.h: ... here.
34684
34685 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34686
34687         * conform/conformtest.pl: Add standard definition when calling C
34688         preprocessor on data files.
34689         (checknamespace): Remove unused variable.
34690
34691 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34692
34693         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34694         minus_oflow, plus_uflow and minus_uflow in expected results.
34695         * math/libm-test.inc (scalbn_test_data): Add more tests of
34696         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34697         minus_uflow.
34698         (scalbn_test): Use ALL_RM_TEST.
34699         (scalbln_test_data): Add more tests of negative arguments.  Use
34700         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34701         (scalbln_test): Use ALL_RM_TEST.
34702
34703 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34704
34705         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34706
34707 2014-03-18  Will Newton  <will.newton@linaro.org>
34708
34709         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34710         inaccurate comment.
34711
34712 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34713
34714         * Makerules [!subdir] (check-abi): Exit with error status if a
34715         test failed.
34716
34717 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34718
34719         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34720         for rint.  Include results for all rounding modes.
34721         (nearbyint_test): Use ALL_RM_TEST.
34722         (rint_test_data): Include all tests used for nearbyint.
34723
34724 2014-03-17  Will Newton  <will.newton@linaro.org>
34725
34726         * nptl/sysdeps/pthread/pthread.h: Revert previous
34727         change.
34728
34729         * sysdeps/generic/ldsodefs.h: Revert previous
34730         change.
34731
34732         * libio/genops.c: Revert previous change.
34733         * libio/libioP.h: Likewise.
34734         * stdio-common/vfprintf.c: Likewise.
34735
34736         * sysdeps/generic/math_private.h: Revert previous
34737         change.
34738
34739         * sysdeps/generic/math_private.h: Check whether
34740         HAVE_RM_CTX is defined with #ifdef rather
34741         than #if.
34742
34743         * argp/argp-fmtstream.h: Check whether
34744         __STRICT_ANSI__ is defined with #ifdef rather
34745         than #if.
34746         * argp/argp.h: Likewise.
34747
34748         * libio/genops.c: Check whether
34749         _IO_JUMPS_OFFSET is defined with #ifdef rather
34750         than #if.
34751         * libio/libioP.h: Likewise.
34752         * stdio-common/vfprintf.c: Likewise.
34753
34754         * sysdeps/generic/ldsodefs.h: Check whether
34755         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34756         than #if.
34757
34758         * nptl/sysdeps/pthread/pthread.h: Check
34759         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34760         its value.
34761
34762 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34763
34764         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
34765         setting O_APPEND.
34766         * libio/tst-ftell-active-handler.c (do_append_test): Add a
34767         test case.
34768
34769         [BZ #16680]
34770         * libio/fileops.c (_IO_file_open): Seek to end of file but
34771         don't cache the offset.
34772         (get_file_offset): Remove function.
34773         (do_ftell): Use cached offset when available.
34774         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
34775         don't cache the offset.
34776         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
34777         case.
34778         (do_one_test): Call it.
34779         (do_ftell_test): Fix up expected old offset for a+ mode.
34780         * libio/wfileops.c (do_ftell_wide): Used cached offset when
34781         available.
34782
34783         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
34784         up test status with function return status.
34785         (do_write_test): Likewise.
34786         (do_append_test): Likewise.
34787
34788         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
34789         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
34790         Remove.
34791
34792 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34793
34794         * math/gen-libm-test.pl (parse_args): Handle results specified for
34795         each rounding mode separately.
34796         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
34797         tests and results from lrint_tonearest_test_data,
34798         lrint_towardzero_test_data, lrint_downward_test_data and
34799         lrint_upward_test_data.
34800         (lrint_test): Use ALL_RM_TEST.
34801         (lrint_tonearest_test_data): Remove.
34802         (lrint_test_tonearest): Likewise.
34803         (lrint_towardzero_test_data): Likewise.
34804         (lrint_test_towardzero): Likewise.
34805         (lrint_downward_test_data): Likewise.
34806         (lrint_test_downward): Likewise.
34807         (lrint_upward_test_data): Likewise.
34808         (lrint_test_upward): Likewise.
34809         (llrint_test_data): Merge in per-rounding-mode tests and results
34810         from llrint_tonearest_test_data, llrint_towardzero_test_data,
34811         llrint_downward_test_data and llrint_upward_test_data.
34812         (llrint_test): Use ALL_RM_TEST.
34813         (llrint_tonearest_test_data): Remove.
34814         (llrint_test_tonearest): Likewise.
34815         (llrint_towardzero_test_data): Likewise.
34816         (llrint_test_towardzero): Likewise.
34817         (llrint_downward_test_data): Likewise.
34818         (llrint_test_downward): Likewise.
34819         (llrint_upward_test_data): Likewise.
34820         (llrint_test_upward): Likewise.
34821         (rint_test_data): Merge in per-rounding-mode tests and results
34822         from rint_tonearest_test_data, rint_towardzero_test_data,
34823         rint_downward_test_data and rint_upward_test_data.  Add
34824         per-rounding-mode results for tests not in those arrays.
34825         (rint_test): Use ALL_RM_TEST.
34826         (rint_tonearest_test_data): Remove.
34827         (rint_test_tonearest): Likewise.
34828         (rint_towardzero_test_data): Likewise.
34829         (rint_test_towardzero): Likewise.
34830         (rint_downward_test_data): Likewise.
34831         (rint_test_downward): Likewise.
34832         (rint_upward_test_data): Likewise.
34833         (rint_test_upward): Likewise.
34834         (main): Don't call removed functions.
34835
34836 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34837
34838         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
34839         "Compiled on ..." crapola.  It is anti-useful.
34840
34841 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
34842
34843         * scripts/evaluate-test.sh: Handle fourth argument to determine
34844         whether test run should stop on failure.
34845         * Makeconfig (stop-on-test-failure): New variable.
34846         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
34847         $(stop-on-test-failure).
34848         * Makefile (tests): Give a summary of results from testing and
34849         exit with failure status if they include an ERROR or FAIL.
34850         (xtests): Likewise.
34851         * manual/install.texi (Configuring and compiling): Mention
34852         stop-on-test-failure=y.
34853         * INSTALL: Regenerated.
34854
34855 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34856
34857         * scripts/versionlist.awk: New file.
34858         * Makerules [$(build-shared) = yes]
34859         (postclean-generated): Add Versions.def, not Versions.def.v and
34860         Versions.def.v.i.
34861         ($(common-objpfx)Versions.def.v.i): Target removed.
34862         ($(common-objpfx)Versions.def): New target.
34863         ($(common-objpfx)Versions.all): Depend on that rather that
34864         $(common-objpfx)Versions.def.v.
34865         * Versions.def: File removed.
34866
34867         * Makeconfig (+gccwarn): Add -Wundef.
34868         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
34869         a dl-sysdep.h breaking its contract.
34870         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
34871         * include/stackinfo.h: New file.
34872         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
34873         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
34874         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
34875         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
34876         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
34877         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
34878         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34879         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34880         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34881         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34882         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34883         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
34884         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34885         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34886         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34887
34888 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34889
34890         [BZ #16707]
34891         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
34892         implementation.
34893         * math/libm-test.inc (round_test_data): Add more tests.
34894
34895         [BZ #16706]
34896         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
34897         implementation.
34898         * math/libm-test.inc (nearbyint_test_data): Add more tests.
34899
34900         [BZ #16701]
34901         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
34902         implementation.
34903         * math/libm-test.inc (ceil_test_data): Add more tests.
34904
34905         * math/libm-test.inc (trunc_test_data): Add more tests related to
34906         BZ#16414.
34907
34908 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34909
34910         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
34911         with #if rather than #ifdef.
34912         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
34913
34914 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
34915
34916         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
34917         first.  Disable AVX-512 GCC support if assembler doesn't support
34918         it.
34919         * sysdeps/x86_64/configure: Regenerated.
34920
34921 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
34922
34923         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
34924         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
34925         (__old_pthread_attr_setstack): Likewise.
34926         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
34927         [!_STACK_GROWS_DOWN]: Likewise.
34928
34929 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
34930
34931         * config.make.in (have-bash2): Delete.
34932         * configure.ac (libc_cv_have_bash2): Delete.
34933         * configure: Regenerate.
34934         * elf/Makefile (common-ldd-rewrite): Rename to ...
34935         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
34936         (sh-ldd-rewrite): Delete.
34937         (bash-ldd-rewrite): Delete.
34938         (have-bash2): Delete checks.
34939         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
34940         ldd-rewrite.
34941
34942         * config.make.in (have-ksh): Delete.
34943         (KSH): Delete.
34944         * configure.ac (libc_cv_have_ksh): Delete.
34945         * configure: Regenerate.
34946
34947         * elf/Makefile: Delete $(have-ksh) check.
34948         ($(objpfx)sotruss): Change KSH to BASH.
34949         * elf/sotruss.ksh: Rename to ...
34950         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
34951         function style to match POSIX.  Drop ksh vim mode setting.
34952
34953         * manual/time.texi (Specifying the Time Zone with TZ): Change
34954         Tuesday to Thursday.
34955
34956         * debug/tst-longjmp_chk2.c: Update header comment.
34957         (stackoverflow_handler): Add comment.  Call assert on pass value.
34958
34959 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
34960
34961         [BZ #16194]
34962         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
34963         (HAVE_AVX512_ASM_SUPPORT): Likewise.
34964         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
34965         (La_x86_64_vector): Add zmm.
34966         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
34967         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
34968         ($(objpfx)tst-audit10): New target.
34969         ($(objpfx)tst-audit10.out): Likewise.
34970         (tst-audit10-ENV): New.
34971         (AVX512-CFLAGS): Likewise.
34972         (CFLAGS-tst-audit10.c): Likewise.
34973         (CFLAGS-tst-auditmod10a.c): Likewise.
34974         (CFLAGS-tst-auditmod10b.c): Likewise.
34975         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
34976         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
34977         * sysdeps/x86_64/configure: Regenerated.
34978         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
34979         AVX-512 zmm register support.
34980         (_dl_x86_64_save_sse): Likewise.
34981         (_dl_x86_64_restore_sse): Likewise.
34982         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
34983         size vector registers.
34984         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
34985         (ZMM_SIZE): Likewise.
34986         * sysdeps/x86_64/tst-audit10.c: New file.
34987         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
34988         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
34989
34990 2014-03-13  Roland McGrath  <roland@hack.frob.com>
34991
34992         * configure.ac (HAVE_EHDR_START): New check.
34993         * configure: Regenerated.
34994         * config.h.in (HAVE_EHDR_START): New #undef.
34995         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
34996         assuming the lowest-addressed segment maps the start of the file.
34997
34998 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
34999
35000         * INSTALL: Regenerated.
35001
35002 2014-03-13  Will Newton  <will.newton@linaro.org>
35003
35004         * manual/setjmp.texi (System V contexts): Improve
35005         clarity and grammar of documentation.
35006
35007 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35008
35009         [BZ #16381]
35010         * elf/Makefile (tests): Add tst-pie2.
35011         (tests-pie): Add tst-pie2.
35012         * elf/tst-pie2.c: New file.
35013         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35014         for ET_EXEC.
35015         * elf/rtld.c (map_doit): Load executable as lt_executable.
35016         (dl_main): Likewise.
35017
35018 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35019
35020         [BZ #16642]
35021         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35022         (__ASSUME_PSELECT): Undefine.
35023
35024 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35025
35026         [BZ #16689]
35027         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35028         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35029         static build.
35030         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35031         selector for static builds.
35032
35033 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35034
35035         [BZ #16695]
35036         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35037         key in the buffer.
35038
35039 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35040
35041         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35042         IFUNC selector for static builds.
35043
35044 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35045
35046         * sysdeps/mips/math_private.h [__mips_hard_float]
35047         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35048         libc_feresetround_mips_ctx.
35049         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35050         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35051         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35052
35053         [BZ #16677]
35054         * math/s_nextafter.c (__nextafter): Do not return value from
35055         overflowing computation.
35056         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35057         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35058         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35059         Likewise.
35060         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35061         Likewise.
35062         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35063         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35064
35065 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35066
35067         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35068         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35069         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35070         the new mov targetting sp.
35071
35072 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35073
35074         [BZ #16683]
35075         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35076         Define it for static builds as well.
35077         (NO_BZERO_IMPL): Likewise.
35078
35079 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35080
35081         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35082         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35083         multiarch strspn for PPC64.
35084         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35085         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35086         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35087         (__libc_ifunc_impl_list): Likewise.
35088         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35089         multiarch optimizations
35090         * string/strspn.c (strspn): Using macro to redefine symbol name.
35091
35092 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35093             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35094
35095         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35096         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35097         multiarch strncat for PPC64.
35098         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35099         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35100         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35101         (__libc_ifunc_impl_list): Likewise.
35102         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35103         multiarch optimizations
35104
35105 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35106
35107         [BZ #16639]
35108         * nscd/nscd.service: Make service type forking.
35109
35110 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35111
35112         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35113         sign in non default rounding modes.
35114         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35115
35116 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35117
35118         * math/libm-test.inc (ALL_RM_TEST): New macro.
35119         (ceil_test): Use ALL_RM_TEST.
35120         (cimag_test): Likewise.
35121         (conj_test): Likewise.
35122         (copysign_test): Likewise.
35123         (cproj_test): Likewise.
35124         (creal_test): Likewise.
35125         (fabs_test): Likewise.
35126         (floor_test): Likewise.
35127         (fmax_test): Likewise.
35128         (fmin_test): Likewise.
35129         (fmod_test): Likewise.
35130         (fpclassify_test): Likewise.
35131         (frexp_test): Likewise.
35132         (ilogb_test): Likewise.
35133         (isfinite_test): Likewise.
35134         (finite_test): Likewise.
35135         (isgreater_test): Likewise.
35136         (isgreaterequal_test): Likewise.
35137         (isinf_test): Likewise.
35138         (isless_test): Likewise.
35139         (islessequal_test): Likewise.
35140         (islessgreater_test): Likewise.
35141         (isnan_test): Likewise.
35142         (isnormal_test): Likewise.
35143         (issignaling_test): Likewise.
35144         (isunordered_test): Likewise.
35145         (logb_test): Likewise.
35146         (logb_downward_test_data): Remove.
35147         (logb_test_downward): Likewise.
35148         (lround_test): Use ALL_RM_TEST.
35149         (llround_test): Likewise.
35150         (modf_test): Likewise.
35151         (nexttoward_test): Likewise.
35152         (remainder_test): Likewise.
35153         (drem_test): Likewise.
35154         (remainder_tonearest_test_data): Likewise.
35155         (remainder_test_tonearest): Likewise.
35156         (drem_test_tonearest): Likewise.
35157         (remainder_towardzero_test_data): Likewise.
35158         (remainder_test_towardzero): Likewise.
35159         (drem_test_towardzero): Likewise.
35160         (remainder_downward_test_data): Likewise.
35161         (remainder_test_downward): Likewise.
35162         (drem_test_downward): Likewise.
35163         (remainder_upward_test_data): Likewise.
35164         (remainder_test_upward): Likewise.
35165         (drem_test_upward): Likewise.
35166         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35167         (round_test): Use ALL_RM_TEST.
35168         (signbit_test): Likewise.
35169         (trunc_test): Likewise.
35170         (significand_test): Likewise.
35171         (main): Don't call removed functions.
35172
35173 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35174
35175         [BZ #16674]
35176         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35177         || __USE_XOPEN2K8].
35178         (ILL_ILLOPN): Likewise.
35179         (ILL_ILLADR): Likewise.
35180         (ILL_ILLTRP): Likewise.
35181         (ILL_PRVOPC): Likewise.
35182         (ILL_PRVREG): Likewise.
35183         (ILL_COPROC): Likewise.
35184         (ILL_BADSTK): Likewise.
35185         (FPE_INTDIV): Likewise.
35186         (FPE_INTOVF): Likewise.
35187         (FPE_FLTDIV): Likewise.
35188         (FPE_FLTOVF): Likewise.
35189         (FPE_FLTUND): Likewise.
35190         (FPE_FLTRES): Likewise.
35191         (FPE_FLTINV): Likewise.
35192         (FPE_FLTSUB): Likewise.
35193         (SEGV_MAPERR): Likewise.
35194         (SEGV_ACCERR): Likewise.
35195         (BUS_ADRALN): Likewise.
35196         (BUS_ADRERR): Likewise.
35197         (BUS_OBJERR): Likewise.
35198         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35199         (TRAP_TRACE): Likewise.
35200         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35201         __USE_XOPEN2K8].
35202         (CLD_KILLED): Likewise.
35203         (CLD_DUMPED): Likewise.
35204         (CLD_TRAPPED): Likewise.
35205         (CLD_STOPPED): Likewise.
35206         (CLD_CONTINUED): Likewise.
35207         (POLL_IN): Likewise.
35208         (POLL_OUT): Likewise.
35209         (POLL_MSG): Likewise.
35210         (POLL_ERR): Likewise.
35211         (POLL_PRI): Likewise.
35212         (POLL_HUP): Likewise.
35213         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35214         Likewise.
35215         (ILL_ILLOPN): Likewise.
35216         (ILL_ILLADR): Likewise.
35217         (ILL_ILLTRP): Likewise.
35218         (ILL_PRVOPC): Likewise.
35219         (ILL_PRVREG): Likewise.
35220         (ILL_COPROC): Likewise.
35221         (ILL_BADSTK): Likewise.
35222         (FPE_INTDIV): Likewise.
35223         (FPE_INTOVF): Likewise.
35224         (FPE_FLTDIV): Likewise.
35225         (FPE_FLTOVF): Likewise.
35226         (FPE_FLTUND): Likewise.
35227         (FPE_FLTRES): Likewise.
35228         (FPE_FLTINV): Likewise.
35229         (FPE_FLTSUB): Likewise.
35230         (SEGV_MAPERR): Likewise.
35231         (SEGV_ACCERR): Likewise.
35232         (BUS_ADRALN): Likewise.
35233         (BUS_ADRERR): Likewise.
35234         (BUS_OBJERR): Likewise.
35235         (BUS_MCEERR_AR): Likewise.
35236         (BUS_MCEERR_AO): Likewise.
35237         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35238         (TRAP_TRACE): Likewise.
35239         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35240         __USE_XOPEN2K8].
35241         (CLD_KILLED): Likewise.
35242         (CLD_DUMPED): Likewise.
35243         (CLD_TRAPPED): Likewise.
35244         (CLD_STOPPED): Likewise.
35245         (CLD_CONTINUED): Likewise.
35246         (POLL_IN): Likewise.
35247         (POLL_OUT): Likewise.
35248         (POLL_MSG): Likewise.
35249         (POLL_ERR): Likewise.
35250         (POLL_PRI): Likewise.
35251         (POLL_HUP): Likewise.
35252         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35253         (ILL_ILLOPN): Likewise.
35254         (ILL_ILLADR): Likewise.
35255         (ILL_ILLTRP): Likewise.
35256         (ILL_PRVOPC): Likewise.
35257         (ILL_PRVREG): Likewise.
35258         (ILL_COPROC): Likewise.
35259         (ILL_BADSTK): Likewise.
35260         (FPE_INTDIV): Likewise.
35261         (FPE_INTOVF): Likewise.
35262         (FPE_FLTDIV): Likewise.
35263         (FPE_FLTOVF): Likewise.
35264         (FPE_FLTUND): Likewise.
35265         (FPE_FLTRES): Likewise.
35266         (FPE_FLTINV): Likewise.
35267         (FPE_FLTSUB): Likewise.
35268         (SEGV_MAPERR): Likewise.
35269         (SEGV_ACCERR): Likewise.
35270         (BUS_ADRALN): Likewise.
35271         (BUS_ADRERR): Likewise.
35272         (BUS_OBJERR): Likewise.
35273         (BUS_MCEERR_AR): Likewise.
35274         (BUS_MCEERR_AO): Likewise.
35275         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35276         (TRAP_TRACE): Likewise.
35277         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35278         __USE_XOPEN2K8].
35279         (CLD_KILLED): Likewise.
35280         (CLD_DUMPED): Likewise.
35281         (CLD_TRAPPED): Likewise.
35282         (CLD_STOPPED): Likewise.
35283         (CLD_CONTINUED): Likewise.
35284         (POLL_IN): Likewise.
35285         (POLL_OUT): Likewise.
35286         (POLL_MSG): Likewise.
35287         (POLL_ERR): Likewise.
35288         (POLL_PRI): Likewise.
35289         (POLL_HUP): Likewise.
35290         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35291         Likewise.
35292         (ILL_ILLOPN): Likewise.
35293         (ILL_ILLADR): Likewise.
35294         (ILL_ILLTRP): Likewise.
35295         (ILL_PRVOPC): Likewise.
35296         (ILL_PRVREG): Likewise.
35297         (ILL_COPROC): Likewise.
35298         (ILL_BADSTK): Likewise.
35299         (ILL_BADIADDR): Likewise.
35300         (ILL_BREAK): Likewise.
35301         (FPE_INTDIV): Likewise.
35302         (FPE_INTOVF): Likewise.
35303         (FPE_FLTDIV): Likewise.
35304         (FPE_FLTOVF): Likewise.
35305         (FPE_FLTUND): Likewise.
35306         (FPE_FLTRES): Likewise.
35307         (FPE_FLTINV): Likewise.
35308         (FPE_FLTSUB): Likewise.
35309         (FPE_DECOVF): Likewise.
35310         (FPE_DECDIV): Likewise.
35311         (FPE_DECERR): Likewise.
35312         (FPE_INVASC): Likewise.
35313         (FPE_INVDEC): Likewise.
35314         (SEGV_MAPERR): Likewise.
35315         (SEGV_ACCERR): Likewise.
35316         (SEGV_PSTKOVF): Likewise.
35317         (BUS_ADRALN): Likewise.
35318         (BUS_ADRERR): Likewise.
35319         (BUS_OBJERR): Likewise.
35320         (BUS_MCEERR_AR): Likewise.
35321         (BUS_MCEERR_AO): Likewise.
35322         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35323         (TRAP_TRACE): Likewise.
35324         (TRAP_BRANCH): Likewise.
35325         (TRAP_HWBKPT): Likewise.
35326         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35327         __USE_XOPEN2K8].
35328         (CLD_KILLED): Likewise.
35329         (CLD_DUMPED): Likewise.
35330         (CLD_TRAPPED): Likewise.
35331         (CLD_STOPPED): Likewise.
35332         (CLD_CONTINUED): Likewise.
35333         (POLL_IN): Likewise.
35334         (POLL_OUT): Likewise.
35335         (POLL_MSG): Likewise.
35336         (POLL_ERR): Likewise.
35337         (POLL_PRI): Likewise.
35338         (POLL_HUP): Likewise.
35339         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35340         (ILL_ILLOPN): Likewise.
35341         (ILL_ILLADR): Likewise.
35342         (ILL_ILLTRP): Likewise.
35343         (ILL_PRVOPC): Likewise.
35344         (ILL_PRVREG): Likewise.
35345         (ILL_COPROC): Likewise.
35346         (ILL_BADSTK): Likewise.
35347         (FPE_INTDIV): Likewise.
35348         (FPE_INTOVF): Likewise.
35349         (FPE_FLTDIV): Likewise.
35350         (FPE_FLTOVF): Likewise.
35351         (FPE_FLTUND): Likewise.
35352         (FPE_FLTRES): Likewise.
35353         (FPE_FLTINV): Likewise.
35354         (FPE_FLTSUB): Likewise.
35355         (SEGV_MAPERR): Likewise.
35356         (SEGV_ACCERR): Likewise.
35357         (BUS_ADRALN): Likewise.
35358         (BUS_ADRERR): Likewise.
35359         (BUS_OBJERR): Likewise.
35360         (BUS_MCEERR_AR): Likewise.
35361         (BUS_MCEERR_AO): Likewise.
35362         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35363         (TRAP_TRACE): Likewise.
35364         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35365         __USE_XOPEN2K8].
35366         (CLD_KILLED): Likewise.
35367         (CLD_DUMPED): Likewise.
35368         (CLD_TRAPPED): Likewise.
35369         (CLD_STOPPED): Likewise.
35370         (CLD_CONTINUED): Likewise.
35371         (POLL_IN): Likewise.
35372         (POLL_OUT): Likewise.
35373         (POLL_MSG): Likewise.
35374         (POLL_ERR): Likewise.
35375         (POLL_PRI): Likewise.
35376         (POLL_HUP): Likewise.
35377         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35378         (ILL_ILLOPN): Likewise.
35379         (ILL_ILLADR): Likewise.
35380         (ILL_ILLTRP): Likewise.
35381         (ILL_PRVOPC): Likewise.
35382         (ILL_PRVREG): Likewise.
35383         (ILL_COPROC): Likewise.
35384         (ILL_BADSTK): Likewise.
35385         (FPE_INTDIV): Likewise.
35386         (FPE_INTOVF): Likewise.
35387         (FPE_FLTDIV): Likewise.
35388         (FPE_FLTOVF): Likewise.
35389         (FPE_FLTUND): Likewise.
35390         (FPE_FLTRES): Likewise.
35391         (FPE_FLTINV): Likewise.
35392         (FPE_FLTSUB): Likewise.
35393         (SEGV_MAPERR): Likewise.
35394         (SEGV_ACCERR): Likewise.
35395         (BUS_ADRALN): Likewise.
35396         (BUS_ADRERR): Likewise.
35397         (BUS_OBJERR): Likewise.
35398         (BUS_MCEERR_AR): Likewise.
35399         (BUS_MCEERR_AO): Likewise.
35400         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35401         (TRAP_TRACE): Likewise.
35402         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35403         __USE_XOPEN2K8].
35404         (CLD_KILLED): Likewise.
35405         (CLD_DUMPED): Likewise.
35406         (CLD_TRAPPED): Likewise.
35407         (CLD_STOPPED): Likewise.
35408         (CLD_CONTINUED): Likewise.
35409         (POLL_IN): Likewise.
35410         (POLL_OUT): Likewise.
35411         (POLL_MSG): Likewise.
35412         (POLL_ERR): Likewise.
35413         (POLL_PRI): Likewise.
35414         (POLL_HUP): Likewise.
35415         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35416         (ILL_ILLOPN): Likewise.
35417         (ILL_ILLADR): Likewise.
35418         (ILL_ILLTRP): Likewise.
35419         (ILL_PRVOPC): Likewise.
35420         (ILL_PRVREG): Likewise.
35421         (ILL_COPROC): Likewise.
35422         (ILL_BADSTK): Likewise.
35423         (FPE_INTDIV): Likewise.
35424         (FPE_INTOVF): Likewise.
35425         (FPE_FLTDIV): Likewise.
35426         (FPE_FLTOVF): Likewise.
35427         (FPE_FLTUND): Likewise.
35428         (FPE_FLTRES): Likewise.
35429         (FPE_FLTINV): Likewise.
35430         (FPE_FLTSUB): Likewise.
35431         (SEGV_MAPERR): Likewise.
35432         (SEGV_ACCERR): Likewise.
35433         (BUS_ADRALN): Likewise.
35434         (BUS_ADRERR): Likewise.
35435         (BUS_OBJERR): Likewise.
35436         (BUS_MCEERR_AR): Likewise.
35437         (BUS_MCEERR_AO): Likewise.
35438         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35439         (TRAP_TRACE): Likewise.
35440         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35441         __USE_XOPEN2K8].
35442         (CLD_KILLED): Likewise.
35443         (CLD_DUMPED): Likewise.
35444         (CLD_TRAPPED): Likewise.
35445         (CLD_STOPPED): Likewise.
35446         (CLD_CONTINUED): Likewise.
35447         (POLL_IN): Likewise.
35448         (POLL_OUT): Likewise.
35449         (POLL_MSG): Likewise.
35450         (POLL_ERR): Likewise.
35451         (POLL_PRI): Likewise.
35452         (POLL_HUP): Likewise.
35453         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35454         (ILL_ILLOPN): Likewise.
35455         (ILL_ILLADR): Likewise.
35456         (ILL_ILLTRP): Likewise.
35457         (ILL_PRVOPC): Likewise.
35458         (ILL_PRVREG): Likewise.
35459         (ILL_COPROC): Likewise.
35460         (ILL_BADSTK): Likewise.
35461         (ILL_DBLFLT): Likewise.
35462         (ILL_HARDWALL): Likewise.
35463         (FPE_INTDIV): Likewise.
35464         (FPE_INTOVF): Likewise.
35465         (FPE_FLTDIV): Likewise.
35466         (FPE_FLTOVF): Likewise.
35467         (FPE_FLTUND): Likewise.
35468         (FPE_FLTRES): Likewise.
35469         (FPE_FLTINV): Likewise.
35470         (FPE_FLTSUB): Likewise.
35471         (SEGV_MAPERR): Likewise.
35472         (SEGV_ACCERR): Likewise.
35473         (BUS_ADRALN): Likewise.
35474         (BUS_ADRERR): Likewise.
35475         (BUS_OBJERR): Likewise.
35476         (BUS_MCEERR_AR): Likewise.
35477         (BUS_MCEERR_AO): Likewise.
35478         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35479         (TRAP_TRACE): Likewise.
35480         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35481         __USE_XOPEN2K8].
35482         (CLD_KILLED): Likewise.
35483         (CLD_DUMPED): Likewise.
35484         (CLD_TRAPPED): Likewise.
35485         (CLD_STOPPED): Likewise.
35486         (CLD_CONTINUED): Likewise.
35487         (POLL_IN): Likewise.
35488         (POLL_OUT): Likewise.
35489         (POLL_MSG): Likewise.
35490         (POLL_ERR): Likewise.
35491         (POLL_PRI): Likewise.
35492         (POLL_HUP): Likewise.
35493         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35494         (ILL_ILLOPN): Likewise.
35495         (ILL_ILLADR): Likewise.
35496         (ILL_ILLTRP): Likewise.
35497         (ILL_PRVOPC): Likewise.
35498         (ILL_PRVREG): Likewise.
35499         (ILL_COPROC): Likewise.
35500         (ILL_BADSTK): Likewise.
35501         (FPE_INTDIV): Likewise.
35502         (FPE_INTOVF): Likewise.
35503         (FPE_FLTDIV): Likewise.
35504         (FPE_FLTOVF): Likewise.
35505         (FPE_FLTUND): Likewise.
35506         (FPE_FLTRES): Likewise.
35507         (FPE_FLTINV): Likewise.
35508         (FPE_FLTSUB): Likewise.
35509         (SEGV_MAPERR): Likewise.
35510         (SEGV_ACCERR): Likewise.
35511         (BUS_ADRALN): Likewise.
35512         (BUS_ADRERR): Likewise.
35513         (BUS_OBJERR): Likewise.
35514         (BUS_MCEERR_AR): Likewise.
35515         (BUS_MCEERR_AO): Likewise.
35516         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35517         (TRAP_TRACE): Likewise.
35518         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35519         __USE_XOPEN2K8].
35520         (CLD_KILLED): Likewise.
35521         (CLD_DUMPED): Likewise.
35522         (CLD_TRAPPED): Likewise.
35523         (CLD_STOPPED): Likewise.
35524         (CLD_CONTINUED): Likewise.
35525         (POLL_IN): Likewise.
35526         (POLL_OUT): Likewise.
35527         (POLL_MSG): Likewise.
35528         (POLL_ERR): Likewise.
35529         (POLL_PRI): Likewise.
35530         (POLL_HUP): Likewise.
35531         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35532         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35533
35534         [BZ #16670]
35535         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35536         before #include of <time.h>.
35537         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35538         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35539         (test-xfail-UNIX98/sched.h/conform): Likewise.
35540
35541 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35542
35543         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35544         error absence of trapping exception support.
35545         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35546
35547 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35548
35549         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35550         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35551         * timezone/Makefile (testdata): Move definition above include of
35552         Rules.
35553         (test-zones): New variable.
35554         (tests-special): Add zone files.
35555         (build-testdata): Use $(evaluate-test).
35556
35557         * elf/Makefile (tests-special): Rename tests to end with .out.
35558         ($(objpfx)noload-mem): Likewise.
35559         ($(objpfx)tst-leaks1-mem): Likewise.
35560         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35561         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35562         $(objpfx)test-iconvconfig.out.
35563         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35564         set -e inside subshell and redirect output to file.
35565         * iconvdata/Makefile (generated): Rename tests to end with .out.
35566         Correct type.
35567         (tests-special): Rename tests to end with .out.
35568         ($(objpfx)mtrace-tst-loading): Likewise.
35569         * intl/Makefile (generated): Likewise.
35570         (tests-special): Likewise.
35571         ($(objpfx)mtrace-tst-gettext): Likewise.
35572         * misc/Makefile (generated): Likewise.
35573         (tests-special): Likewise.
35574         ($(objpfx)tst-error1-mem): Likewise.
35575         * nptl/Makefile (tests-special): Likewise.
35576         ($(objpfx)tst-stack3-mem): Likewise.
35577         (generated): Likewise.
35578         * posix/Makefile (generated): Likewise.
35579         (tests-special): Likewise.
35580         (xtests-special): Likewise.
35581         ($(objpfx)tst-fnmatch-mem): Likewise.
35582         ($(objpfx)bug-regex2-mem): Likewise.
35583         ($(objpfx)bug-regex14-mem): Likewise.
35584         ($(objpfx)bug-regex21-mem): Likewise.
35585         ($(objpfx)bug-regex31-mem): Likewise.
35586         ($(objpfx)tst-vfork3-mem): Likewise.
35587         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35588         ($(objpfx)tst-pcre-mem): Likewise.
35589         ($(objpfx)tst-boost-mem): Likewise.
35590         ($(objpfx)bug-ga2-mem): Likewise.
35591         ($(objpfx)bug-glob2-mem): Likewise.
35592         * resolv/Makefile (generate): Likewise.
35593         (tests-special): Likewise.
35594         (xtests-special): Likewise.
35595         (generated): Likewise.
35596         ($(objpfx)mtrace-tst-leaks): Likewise.
35597         ($(objpfx)mtrace-tst-leaks2): Likewise.
35598
35599         * scripts/merge-test-results.sh: New file.
35600         * Makefile (tests-special-notdir): New variable.
35601         (tests): Run merge-test-results.sh.
35602         (xtests): Likewise.
35603         * Rules (tests-special-notdir): New variable.
35604         (xtests-special-notdir): Likewise.
35605         (tests): Run merge-test-results.sh
35606         (xtests): Likewise.
35607
35608         * Makeconfig (test-xfail-name): New variable.
35609         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35610         compute variable name for expected failures.
35611         * conform/Makefile (conformtest-headers-data): New variable.
35612         (conformtest-standards): Likewise.
35613         (conformtest-headers-ISO): Likewise.
35614         (conformtest-headers-ISO99): Likewise.
35615         (conformtest-headers-ISO11): Likewise.
35616         (conformtest-headers-POSIX): Likewise.
35617         (conformtest-headers-XPG3): Likewise.
35618         (conformtest-headers-XPG4): Likewise.
35619         (conformtest-headers-UNIX98): Likewise.
35620         (conformtest-headers-XOPEN2K): Likewise.
35621         (conformtest-headers-POSIX2008): Likewise.
35622         (conformtest-headers-XOPEN2K8): Likewise.
35623         (conformtest-header-list-base): Likewise.
35624         (conformtest-header-list-tests): Likewise.
35625         (conformtest-header-base): Likewise.
35626         (conformtest-header-tests): Likewise.
35627         (tests-special): Add $(conformtest-header-list-tests).  If
35628         [$(fast-check) && !$(cross-compiling)], add
35629         $(conformtest-header-tests) instead of
35630         $(objpfx)run-conformtest.out.
35631         (generated): Add $(conformtest-header-list-base).  If
35632         [$(fast-check) && !$(cross-compiling)], add
35633         $(conformtest-header-base).  Remove previous setting.
35634         ($(conformtest-header-list-tests)): New target.
35635         (test-xfail-run-conformtest): Remove variable.
35636         ($(objpfx)run-conformtest.out): Remove target.
35637         (test-xfail-ISO11/complex.h/conform): New variable.
35638         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35639         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35640         (test-xfail-XPG3/varargs.h/conform): Likewise.
35641         (test-xfail-XPG4/varargs.h/conform): Likewise.
35642         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35643         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35644         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35645         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35646         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35647         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35648         (test-xfail-XPG3/ftw.h/conform): Likewise.
35649         (test-xfail-XPG3/grp.h/conform): Likewise.
35650         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35651         (test-xfail-XPG3/limits.h/conform): Likewise.
35652         (test-xfail-XPG3/pwd.h/conform): Likewise.
35653         (test-xfail-XPG3/search.h/conform): Likewise.
35654         (test-xfail-XPG3/signal.h/conform): Likewise.
35655         (test-xfail-XPG3/stdio.h/conform): Likewise.
35656         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35657         (test-xfail-XPG3/string.h/conform): Likewise.
35658         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35659         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35660         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35661         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35662         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35663         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35664         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35665         (test-xfail-XPG3/termios.h/conform): Likewise.
35666         (test-xfail-XPG3/time.h/conform): Likewise.
35667         (test-xfail-XPG3/unistd.h/conform): Likewise.
35668         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35669         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35670         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35671         (test-xfail-XPG4/netdb.h/conform): Likewise.
35672         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35673         (test-xfail-XPG4/signal.h/conform): Likewise.
35674         (test-xfail-XPG4/stdio.h/conform): Likewise.
35675         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35676         (test-xfail-XPG4/stropts.h/conform): Likewise.
35677         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35678         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35679         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35680         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35681         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35682         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35683         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35684         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35685         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35686         (test-xfail-XPG4/termios.h/conform): Likewise.
35687         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35688         (test-xfail-XPG4/unistd.h/conform): Likewise.
35689         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35690         (test-xfail-POSIX/sched.h/conform): Likewise.
35691         (test-xfail-POSIX/signal.h/conform): Likewise.
35692         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35693         (test-xfail-POSIX/tar.h/conform): Likewise.
35694         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35695         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35696         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35697         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35698         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35699         (test-xfail-UNIX98/sched.h/conform): Likewise.
35700         (test-xfail-UNIX98/signal.h/conform): Likewise.
35701         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35702         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35703         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35704         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35705         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35706         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35707         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35708         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35709         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35710         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35711         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35712         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35713         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35714         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35715         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35716         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35717         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35718         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35719         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35720         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35721         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35722         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35723         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35724         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35725         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35726         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35727         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35728         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35729         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35730         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35731         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35732         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35733         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35734         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35735         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35736         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35737         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35738         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35739         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35740         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35741         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35742         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35743         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35744         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35745         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35746         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35747         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35748         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35749         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35750         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35751         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35752         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35753         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35754         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35755         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35756         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35757         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35758         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35759         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35760         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35761         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35762         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35763         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
35764         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
35765         (conformtest-cc-flags): Likewise.
35766         ($(conformtest-header-tests): New target.
35767         * conform/check-header-lists.sh: New file.
35768         * conform/run-conformtest.sh: Remove.
35769
35770         * conform/conformtest.pl: Allow ' and \ in values given for
35771         constants.
35772         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
35773         inclusion.
35774         [POSIX] (sys/types.h): Likewise.
35775         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
35776         inclusion.
35777         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
35778         inclusion.
35779         * conform/data/signal.h-data (SIGIO): Remove expectation.
35780         [XPG3] (SIGBUS): Do not expect.
35781         [POSIX || XPG3] (SIGPOLL): Likewise.
35782         [POSIX || XPG3] (SIGPROF): Likewise.
35783         [POSIX || XPG3] (SIGSYS): Likewise.
35784         [XPG3] (SIGTRAP): Likewise.
35785         [POSIX || XPG3] (SIGURG): Likewise.
35786         [POSIX || XPG3] (SIGVTALRM): Likewise.
35787         [POSIX || XPG3] (SIGXCPU): Likewise.
35788         [POSIX || XPG3] (SIGXFSZ): Likewise.
35789         [POSIX] (SA_SIGINFO): Expect.
35790         [XPG3] (siginfo_t): Do not expect type or contents.
35791         [POSIX] (si_pid): Do not expect element.
35792         [POSIX] (si_uid): Likewise.
35793         [POSIX] (si_addr): Likewise.
35794         [POSIX] (si_status): Likewise.
35795         [POSIX] (si_band): Likewise.
35796         [XPG4] (si_value): Likewise.
35797         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
35798         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
35799         [POSIX || XPG3] (ILL_ILLADR): Likewise.
35800         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
35801         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
35802         [POSIX || XPG3] (ILL_PRVREG): Likewise.
35803         [POSIX || XPG3] (ILL_COPROC): Likewise.
35804         [POSIX || XPG3] (ILL_BADSTK): Likewise.
35805         [POSIX || XPG3] (FPE_INTDIV): Likewise.
35806         [POSIX || XPG3] (FPE_INTOVF): Likewise.
35807         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
35808         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
35809         [POSIX || XPG3] (FPE_FLTUND): Likewise.
35810         [POSIX || XPG3] (FPE_FLTRES): Likewise.
35811         [POSIX || XPG3] (FPE_FLTINV): Likewise.
35812         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
35813         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
35814         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
35815         [POSIX || XPG3] (BUS_ADRALN): Likewise.
35816         [POSIX || XPG3] (BUS_ADRERR): Likewise.
35817         [POSIX || XPG3] (BUS_OBJERR): Likewise.
35818         [POSIX || XPG3] (CLD_EXITED): Likewise.
35819         [POSIX || XPG3] (CLD_KILLED): Likewise.
35820         [POSIX || XPG3] (CLD_DUMPED): Likewise.
35821         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
35822         [POSIX || XPG3] (CLD_STOPPED): Likewise.
35823         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
35824         [POSIX || XPG3] (POLL_IN): Likewise.
35825         [POSIX || XPG3] (POLL_OUT): Likewise.
35826         [POSIX || XPG3] (POLL_MSG): Likewise.
35827         [POSIX || XPG3] (POLL_ERR): Likewise.
35828         [POSIX || XPG3] (POLL_PRI): Likewise.
35829         [POSIX || XPG3] (POLL_HUP): Likewise.
35830         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
35831         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
35832         (SIG*): Do not allow.
35833         [XPG3] (si_*): Likewise.
35834         [XPG3] (SI_*): Likewise.
35835         [XPG3 || XPG4] (sigev_*): Likewise.
35836         [XPG3 || XPG4] (SIGEV_*): Likewise.
35837         [XPG3 || XPG4] (sival_*): Likewise.
35838         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
35839         [POSIX || XPG3] (BUS_*): Likewise.
35840         [POSIX || XPG3] (CLD_*): Likewise.
35841         [POSIX || XPG3] (FPE_*): Likewise.
35842         [POSIX || XPG3] (ILL_*): Likewise.
35843         [POSIX || XPG3] (POLL_*): Likewise.
35844         [POSIX || XPG3] (SEGV_*): Likewise.
35845         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
35846         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
35847         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
35848         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
35849         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
35850         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
35851         Specify type and value.
35852         (TVERSLEN): Likewise.
35853         (REGTYPE): Likewise.
35854         (AREGTYPE): Likewise.
35855         (LNKTYPE): Likewise.
35856         (SYMTYPE): Likewise.
35857         (CHRTYPE): Likewise.
35858         (BLKTYPE): Likewise.
35859         (DIRTYPE): Likewise.
35860         (FIFOTYPE): Likewise.
35861         (CONTTYPE): Likewise.
35862         (TSUID): Likewise.
35863         (TSGID): Likewise.
35864         (TSVTX): Likewise.
35865         (TUREAD): Likewise.
35866         (TUWRITE): Likewise.
35867         (TUEXEC): Likewise.
35868         (TGREAD): Likewise.
35869         (TGWRITE): Likewise.
35870         (TGEXEC): Likewise.
35871         (TOREAD): Likewise.
35872         (TOWRITE): Likewise.
35873         (TOEXEC): Likewise.
35874         [POSIX] (TSVTX): Expect constant.
35875
35876 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
35877
35878         * Makefile (tests): Change dependencies to ....
35879         (tests-special): ... additions to this variable.
35880         (tests): Depend on $(tests-special).
35881         * Makerules (check-abi-list): New variable.
35882         (check-abi): Depend on $(check-abi-list).
35883         [$(subdir) = elf] (tests-special): Add
35884         $(objpfx)check-abi-libc.out.
35885         [$(build-shared) = yes && subdir] (tests-special): Add
35886         $(check-abi-list).
35887         [$(build-shared) = yes && subdir] (tests): Do not depend on
35888         check-abi.
35889         * Rules (tests): Depend on $(tests-special).
35890         (xtests): Depend on $(xtests-special).
35891         * catgets/Makefile (tests): Change dependencies to ....
35892         (tests-special): ... additions to this variable.
35893         * conform/Makefile (tests): Change dependencies to ....
35894         (tests-special): ... additions to this variable.
35895         * elf/Makefile (tests): Change dependencies to ....
35896         (tests-special): ... additions to this variable.
35897         * grp/Makefile (tests): Change dependencies to ....
35898         (tests-special): ... additions to this variable.
35899         * iconv/Makefile (xtests): Change dependencies to ....
35900         (xtests-special): ... additions to this variable.
35901         * iconvdata/Makefile (tests): Change dependencies to ....
35902         (tests-special): ... additions to this variable.
35903         * intl/Makefile (tests): Change dependencies to ....
35904         (tests-special): ... additions to this variable.  Also add
35905         $(objpfx)tst-gettext.out.
35906         * io/Makefile (tests): Change dependencies to ....
35907         (tests-special): ... additions to this variable.
35908         * libio/Makefile (tests): Change dependencies to ....
35909         (tests-special): ... additions to this variable.
35910         * malloc/Makefile (tests): Change dependencies to ....
35911         (tests-special): ... additions to this variable.
35912         * misc/Makefile (tests): Change dependencies to ....
35913         (tests-special): ... additions to this variable.
35914         * nptl/Makefile (tests): Change dependencies to ....
35915         (tests-special): ... additions to this variable.
35916         * nptl_db/Makefile (tests): Change dependencies to ....
35917         (tests-special): ... additions to this variable.
35918         * posix/Makefile (tests): Change dependencies to ....
35919         (tests-special): ... additions to this variable.
35920         (xtests): Change dependencies to ....
35921         (xtests-special): ... additions to this variable.
35922         * resolv/Makefile (tests): Change dependencies to ....
35923         (tests-special): ... additions to this variable.
35924         (xtests): Change dependencies to ....
35925         (xtests-special): ... additions to this variable.
35926         * stdio-common/Makefile (tests): Change dependencies to ....
35927         (tests-special): ... additions to this variable.
35928         (do-tst-unbputc): Remove target.
35929         (do-tst-printf): Likewise.
35930         * stdlib/Makefile (tests): Change dependencies to ....
35931         (tests-special): ... additions to this variable.
35932         * string/Makefile (tests): Change dependencies to ....
35933         (tests-special): ... additions to this variable.
35934         * sysdeps/x86/Makefile (tests): Change dependencies to ....
35935         (tests-special): ... additions to this variable.
35936
35937         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
35938         whole file.
35939         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
35940         whole file.
35941         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
35942         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
35943
35944         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
35945         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
35946         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
35947         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
35948         * conform/data/libgen.h-data [XPG3]: Likewise.
35949         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
35950         * conform/data/ndbm.h-data [XPG3]: Likewise.
35951         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35952         * conform/data/netdb.h-data [XPG3]: Likewise.
35953         * conform/data/netinet/in.h-data [XPG3]: Likewise.
35954         * conform/data/poll.h-data [XPG3]: Likewise.
35955         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35956         * conform/data/strings.h-data [XPG3]: Likewise.
35957         * conform/data/stropts.h-data [XPG3]: Likewise.
35958         * conform/data/sys/mman.h-data [XPG3]: Likewise.
35959         * conform/data/sys/resource.h-data [XPG3]: Likewise.
35960         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
35961         Likewise.
35962         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
35963         * conform/data/sys/time.h-data [XPG3]: Likewise.
35964         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
35965         * conform/data/sys/uio.h-data [XPG3]: Likewise.
35966         * conform/data/sys/un.h-data [XPG3]: Likewise.
35967         * conform/data/syslog.h-data [XPG3]: Likewise.
35968         * conform/data/ucontext.h-data [XPG3]: Likewise.
35969         * conform/data/utmpx.h-data [XPG3]: Likewise.
35970         * conform/data/varargs.h-data [UNIX98]: Enable file.
35971
35972         * manual/Makefile (INSTALL_INFO): Remove variable setting.
35973
35974         * math/libm-test.inc (struct test_f_f_data): Move expected results
35975         into structure for each rounding mode.
35976         (struct test_ff_f_data): Likewise.
35977         (struct test_ff_f_data_nexttoward): Likewise.
35978         (struct test_fi_f_data): Likewise.
35979         (struct test_fl_f_data): Likewise.
35980         (struct test_if_f_data): Likewise.
35981         (struct test_fff_f_data): Likewise.
35982         (struct test_c_f_data): Likewise.
35983         (struct test_f_f1_data): Likewise.
35984         (struct test_fF_f1_data): Likewise.
35985         (struct test_ffI_f1_data): Likewise.
35986         (struct test_c_c_data): Likewise.
35987         (struct test_cc_c_data): Likewise.
35988         (struct test_f_i_data): Likewise.
35989         (struct test_ff_i_data): Likewise.
35990         (struct test_f_l_data): Likewise.
35991         (struct test_f_L_data): Likewise.
35992         (struct test_fFF_11_data): Likewise.
35993         (RM_): New macro.
35994         (RM_FE_DOWNWARD): Likewise.
35995         (RM_FE_TONEAREST): Likewise.
35996         (RM_FE_TOWARDZERO): Likewise.
35997         (RM_FE_UPWARD): Likewise.
35998         (RUN_TEST_LOOP_f_f): Update references to expected results.
35999         (RUN_TEST_LOOP_2_f): Likewise.
36000         (RUN_TEST_LOOP_fff_f): Likewise.
36001         (RUN_TEST_LOOP_c_f): Likewise.
36002         (RUN_TEST_LOOP_f_f1): Likewise.
36003         (RUN_TEST_LOOP_fF_f1): Likewise.
36004         (RUN_TEST_LOOP_fI_f1): Likewise.
36005         (RUN_TEST_LOOP_ffI_f1): Likewise.
36006         (RUN_TEST_LOOP_c_c): Likewise.
36007         (RUN_TEST_LOOP_cc_c): Likewise.
36008         (RUN_TEST_LOOP_f_i): Likewise.
36009         (RUN_TEST_LOOP_f_i_tg): Likewise.
36010         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36011         (RUN_TEST_LOOP_f_b): Likewise.
36012         (RUN_TEST_LOOP_f_b_tg): Likewise.
36013         (RUN_TEST_LOOP_f_l): Likewise.
36014         (RUN_TEST_LOOP_f_L): Likewise.
36015         (RUN_TEST_LOOP_fFF_11): Likewise.
36016         * math/gen-libm-test.pl (parse_args): Output four copies of
36017         expected results for each test.
36018
36019         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36020         (__ASSUME_UTIMES): Remove.
36021         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36022         (__ASSUME_UTIMES): Likewise.
36023
36024         * math/gen-auto-libm-tests.c: Update comment on output format.
36025         (output_for_one_input_case): Generate before-rounding and
36026         after-rounding information as conditions on output flags not
36027         floating-point format.
36028         * math/auto-libm-test-out: Regenerated.
36029         * math/gen-libm-test.pl (cond_value): New function.
36030         (or_cond_value): Use cond_value.
36031         (generate_testfile): Handle conditional exceptions.
36032
36033 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36034
36035         * math/libm-test.inc (max_valid_error): New variable.
36036         (init_max_error): Take new argument specifying whether function
36037         results are exactly determined.  Set max_valid_error and bound
36038         other variables for errors based on this argument.
36039         (set_max_error): Do not record results above max_valid_error.
36040         (check_float_internal): Only accept errors of up to 0.5ulps if
36041         also at most max_valid_error.
36042         (START): Take new argument EXACT and pass it to init_max_error.
36043         (acos_test): Update call to START.
36044         (acos_test_tonearest): Likewise.
36045         (acos_test_towardzero): Likewise.
36046         (acos_test_downward): Likewise.
36047         (acos_test_upward): Likewise.
36048         (acosh_test): Likewise.
36049         (asin_test): Likewise.
36050         (asin_test_tonearest): Likewise.
36051         (asin_test_towardzero): Likewise.
36052         (asin_test_downward): Likewise.
36053         (asin_test_upward): Likewise.
36054         (asinh_test): Likewise.
36055         (atan_test): Likewise.
36056         (atanh_test): Likewise.
36057         (atan2_test): Likewise.
36058         (cabs_test): Likewise.
36059         (cacos_test): Likewise.
36060         (cacosh_test): Likewise.
36061         (carg_test): Likewise.
36062         (casin_test): Likewise.
36063         (casinh_test): Likewise.
36064         (catan_test): Likewise.
36065         (catanh_test): Likewise.
36066         (cbrt_test): Likewise.
36067         (ccos_test): Likewise.
36068         (ccosh_test): Likewise.
36069         (ceil_test): Likewise.
36070         (cexp_test): Likewise.
36071         (cimag_test): Likewise.
36072         (clog_test): Likewise.
36073         (clog10_test): Likewise.
36074         (conj_test): Likewise.
36075         (copysign_test): Likewise.
36076         (cos_test): Likewise.
36077         (cos_test_tonearest): Likewise.
36078         (cos_test_towardzero): Likewise.
36079         (cos_test_downward): Likewise.
36080         (cos_test_upward): Likewise.
36081         (cosh_test): Likewise.
36082         (cosh_test_tonearest): Likewise.
36083         (cosh_test_towardzero): Likewise.
36084         (cosh_test_downward): Likewise.
36085         (cosh_test_upward): Likewise.
36086         (cpow_test): Likewise.
36087         (cproj_test): Likewise.
36088         (creal_test): Likewise.
36089         (csin_test): Likewise.
36090         (csinh_test): Likewise.
36091         (csqrt_test): Likewise.
36092         (ctan_test): Likewise.
36093         (ctan_test_tonearest): Likewise.
36094         (ctan_test_towardzero): Likewise.
36095         (ctan_test_downward): Likewise.
36096         (ctan_test_upward): Likewise.
36097         (ctanh_test): Likewise.
36098         (ctanh_test_tonearest): Likewise.
36099         (ctanh_test_towardzero): Likewise.
36100         (ctanh_test_downward): Likewise.
36101         (ctanh_test_upward): Likewise.
36102         (erf_test): Likewise.
36103         (erfc_test): Likewise.
36104         (exp_test): Likewise.
36105         (exp_test_tonearest): Likewise.
36106         (exp_test_towardzero): Likewise.
36107         (exp_test_downward): Likewise.
36108         (exp_test_upward): Likewise.
36109         (exp10_test): Likewise.
36110         (exp10_test_tonearest): Likewise.
36111         (exp10_test_towardzero): Likewise.
36112         (exp10_test_downward): Likewise.
36113         (exp10_test_upward): Likewise.
36114         (pow10_test): Likewise.
36115         (exp2_test): Likewise.
36116         (expm1_test): Likewise.
36117         (expm1_test_tonearest): Likewise.
36118         (expm1_test_towardzero): Likewise.
36119         (expm1_test_downward): Likewise.
36120         (expm1_test_upward): Likewise.
36121         (fabs_test): Likewise.
36122         (fdim_test): Likewise.
36123         (floor_test): Likewise.
36124         (fma_test): Likewise.
36125         (fma_test_towardzero): Likewise.
36126         (fma_test_downward): Likewise.
36127         (fma_test_upward): Likewise.
36128         (fmax_test): Likewise.
36129         (fmin_test): Likewise.
36130         (fmod_test): Likewise.
36131         (fpclassify_test): Likewise.
36132         (frexp_test): Likewise.
36133         (hypot_test): Likewise.
36134         (ilogb_test): Likewise.
36135         (isfinite_test): Likewise.
36136         (finite_test): Likewise.
36137         (isgreater_test): Likewise.
36138         (isgreaterequal_test): Likewise.
36139         (isinf_test): Likewise.
36140         (isless_test): Likewise.
36141         (islessequal_test): Likewise.
36142         (islessgreater_test): Likewise.
36143         (isnan_test): Likewise.
36144         (isnormal_test): Likewise.
36145         (issignaling_test): Likewise.
36146         (isunordered_test): Likewise.
36147         (j0_test): Likewise.
36148         (j1_test): Likewise.
36149         (jn_test): Likewise.
36150         (ldexp_test): Likewise.
36151         (lgamma_test): Likewise.
36152         (gamma_test): Likewise.
36153         (lrint_test): Likewise.
36154         (lrint_test_tonearest): Likewise.
36155         (lrint_test_towardzero): Likewise.
36156         (lrint_test_downward): Likewise.
36157         (lrint_test_upward): Likewise.
36158         (llrint_test): Likewise.
36159         (llrint_test_tonearest): Likewise.
36160         (llrint_test_towardzero): Likewise.
36161         (llrint_test_downward): Likewise.
36162         (llrint_test_upward): Likewise.
36163         (log_test): Likewise.
36164         (log10_test): Likewise.
36165         (log1p_test): Likewise.
36166         (log2_test): Likewise.
36167         (logb_test): Likewise.
36168         (logb_test_downward): Likewise.
36169         (lround_test): Likewise.
36170         (llround_test): Likewise.
36171         (modf_test): Likewise.
36172         (nearbyint_test): Likewise.
36173         (nextafter_test): Likewise.
36174         (nexttoward_test): Likewise.
36175         (pow_test): Likewise.
36176         (pow_test_tonearest): Likewise.
36177         (pow_test_towardzero): Likewise.
36178         (pow_test_downward): Likewise.
36179         (pow_test_upward): Likewise.
36180         (remainder_test): Likewise.
36181         (drem_test): Likewise.
36182         (remainder_test_tonearest): Likewise.
36183         (drem_test_tonearest): Likewise.
36184         (remainder_test_towardzero): Likewise.
36185         (drem_test_towardzero): Likewise.
36186         (remainder_test_downward): Likewise.
36187         (drem_test_downward): Likewise.
36188         (remainder_test_upward): Likewise.
36189         (drem_test_upward): Likewise.
36190         (remquo_test): Likewise.
36191         (rint_test): Likewise.
36192         (rint_test_tonearest): Likewise.
36193         (rint_test_towardzero): Likewise.
36194         (rint_test_downward): Likewise.
36195         (rint_test_upward): Likewise.
36196         (round_test): Likewise.
36197         (scalb_test): Likewise.
36198         (scalbn_test): Likewise.
36199         (scalbln_test): Likewise.
36200         (signbit_test): Likewise.
36201         (sin_test): Likewise.
36202         (sin_test_tonearest): Likewise.
36203         (sin_test_towardzero): Likewise.
36204         (sin_test_downward): Likewise.
36205         (sin_test_upward): Likewise.
36206         (sincos_test): Likewise.
36207         (sinh_test): Likewise.
36208         (sinh_test_tonearest): Likewise.
36209         (sinh_test_towardzero): Likewise.
36210         (sinh_test_downward): Likewise.
36211         (sinh_test_upward): Likewise.
36212         (sqrt_test): Likewise.
36213         (sqrt_test_tonearest): Likewise.
36214         (sqrt_test_towardzero): Likewise.
36215         (sqrt_test_downward): Likewise.
36216         (sqrt_test_upward): Likewise.
36217         (tan_test): Likewise.
36218         (tan_test_tonearest): Likewise.
36219         (tan_test_towardzero): Likewise.
36220         (tan_test_downward): Likewise.
36221         (tan_test_upward): Likewise.
36222         (tanh_test): Likewise.
36223         (tgamma_test): Likewise.
36224         (trunc_test): Likewise.
36225         (y0_test): Likewise.
36226         (y1_test): Likewise.
36227         (yn_test): Likewise.
36228         (significand_test): Likewise.
36229
36230         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36231         individual tests in comment.
36232         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36233         (prev_max_error): New variable.
36234         (prev_real_max_error): Likewise.
36235         (prev_imag_max_error): Likewise.
36236         (compare_ulp_data): Don't refer to test names in comment.
36237         (find_test_ulps): Remove function.
36238         (find_function_ulps): Likewise.
36239         (find_complex_function_ulps): Likewise.
36240         (init_max_error): Take function name as argument.  Look up ulps
36241         for that function.
36242         (print_ulps): Remove function.
36243         (print_max_error): Use prev_max_error instead of calling
36244         find_function_ulps.
36245         (print_complex_max_error): Use prev_real_max_error and
36246         prev_imag_max_error instead of calling find_complex_function_ulps.
36247         (check_float_internal): Take max_ulp parameter instead of calling
36248         find_test_ulps.  Don't call print_ulps.
36249         (check_float): Update call to check_float_internal.
36250         (check_complex): Update calls to check_float_internal.
36251         (START): Pass argument to init_max_error.
36252         * math/gen-libm-test.pl (%results): Don't include "kind"
36253         information.
36254         (parse_ulps): Don't handle ulps of individual tests.
36255         (print_ulps_file): Likewise.
36256         (output_ulps): Likewise.
36257         * math/README.libm-test: Update.
36258         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36259         individual tests.
36260         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36261         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36262         * sysdeps/arm/libm-test-ulps: Likewise.
36263         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36264         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36265         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36266         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36267         * sysdeps/microblaze/libm-test-ulps: Likewise.
36268         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36269         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36270         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36271         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36272         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36273         * sysdeps/sh/libm-test-ulps: Likewise.
36274         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36275         * sysdeps/tile/libm-test-ulps: Likewise.
36276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36277
36278 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36279
36280         * math/libm-test.inc (print_complex_max_error): Check separately
36281         whether real and imaginary errors are within allowed range and
36282         pass 0 to print_complex_function_ulps instead of value within
36283         allowed range.
36284
36285 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36286
36287         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36288         formatting.
36289         (get_handles_fopen): Likewise.
36290         (do_write_test): Likewise.
36291
36292         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36293
36294         * libio/fileops.c (do_ftell): Use cached offset when
36295         available.
36296         * libio/iofwide.c (do_ftell_wide): Likewise.
36297         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36298         _IO_file_attach.
36299         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36300
36301         [BZ #16532]
36302         * libio/libioP.h (get_file_offset): New function.
36303         * libio/fileops.c (get_file_offset): Likewise.
36304         (do_ftell): Likewise.
36305         (_IO_new_file_seekoff): Split out ftell logic.
36306         * libio/wfileops.c (do_ftell_wide): Likewise.
36307         (_IO_wfile_seekoff): Split out ftell logic.
36308         * libio/tst-ftell-active-handler.c: New test case.
36309         * libio/Makefile (tests): Add it.
36310
36311 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36312
36313         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36314         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36315
36316 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36317
36318         [BZ #16639]
36319         * nscd/connections.c (nscd_init): Call do_exit.
36320         (start_threads): Call do_exit and notify_parent.
36321         (begin_drop_privileges): Call do_exit.
36322         (finish_drop_privileges): Likewise.
36323         * nscd/selinux.c (preserve_capabilities): Likewise.
36324         (install_real_capabilities): Likewise.
36325         (nscd_selinux_enabled): Likewise.
36326         (avc_create_thread): Likewise.
36327         (avc_alloc_lock): Likewise.
36328         (nscd_avc_init): Likewise.
36329         * nscd/nscd.c (parent_fd): New static variable.
36330         (main): Create a pipe between parent and child processes.
36331         Skip closing parent_fd.
36332         (monitor_child): New function.
36333         (do_exit): Likewise.
36334         (notify_parent): Likewise.
36335         * nscd/nscd.h (notify_parent): Likewise.
36336         (do_exit): Likewise.
36337
36338 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36339
36340         * malloc/malloc.c (__libc_calloc): Revert last change.
36341
36342 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36343
36344         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36345
36346 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36347
36348         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36349         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36350         implementation.
36351         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36352         (__libc_ifunc_impl_list): Likewise.
36353         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36354         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36355         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36356         * string/strrchr.c: Define STRRCHR.
36357
36358 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36359
36360         * benchtest/bench-strtok.c (simple_strtok): Delete.
36361         (strtok_string): Use as benchmark.
36362         * string/strtok (STRTOK): New macro.
36363
36364 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36365
36366         * manual/threads.texi: Add header and standard comments to all
36367         functions.
36368
36369         * elf/dl-lookup.c (check_match): New function.
36370         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36371         (do_lookup_x): Remove nested function check_match. Use non-nested
36372         function check_match.
36373
36374 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36375
36376         * csu/Makefile (generated, before-compile): Use += rather than =.
36377         * catgets/Makefile (generated, generated-dirs): Likewise.
36378         * debug/Makefile (generated): Likewise.
36379         * dlfcn/Makefile (generated): Likewise.
36380         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36381         * iconvdata/Makefile (before-compile, generated): Likewise.
36382         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36383         * libio/Makefile (generated): Likewise.
36384         * malloc/Makefile (generated): Likewise.
36385         * manual/Makefile (generated, generated-dirs): Likewise.
36386         * misc/Makefile (generated): Likewise.
36387         * posix/Makefile (generated): Likewise.
36388         * resolv/Makefile (generated): Likewise.
36389         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36390         * timezone/Makefile (generated, generated-dirs): Likewise.
36391
36392         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36393
36394 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36395
36396         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36397         power8 implementation.
36398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36399         file: POWER8 llround ifunc implementation.
36400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36401         (__lllround): Add POWER8 implementation.
36402         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36403         POWER8 llround implementation.
36404
36405         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36406         power8 implementation.
36407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36408         file: POWER8 llrint ifunc implementation.
36409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36410         Add POWER8 implementation.
36411         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36412         POWER8 llrint implementation.
36413
36414         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36415         power8 implementation.
36416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36417         file: POWER8 finite ifunc implementation.
36418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36419         Add POWER8 implementation.
36420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36421         Likewise.
36422         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36423         POWER8 finite implementation.
36424         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36425
36426         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36427         power8 implementation.
36428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36429         file: POWER8 isinf ifunc implementation.
36430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36431         POWER8 implementation.
36432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36433         Likewise.
36434         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36435         isinf implementation.
36436         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36437
36438         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36439         (INIT_ARCH): Add hwcap2 initialization.
36440         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36441         power8 implementation.
36442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36443         file: POWER8 isnan ifunc implementation.
36444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36445         POWER8 implementation.
36446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36447         Likewise.
36448         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36449         isnan implementation.
36450         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36451
36452 2014-02-27  Joey Ye  <joey.ye@arm.com>
36453
36454         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36455         (_FP_NANFRAC_Q): Set to zero.
36456
36457 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36458
36459         [BZ #16623]
36460         * math/auto-libm-test-in: New test inputs.
36461         * math/auto-libm-test-out: Regenerate.
36462         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36463         and DA.
36464         (__cos): Likewise.
36465         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36466
36467 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36468
36469         * scripts/evaluate-test.sh: Take new argument indicating whether
36470         failure is expected.
36471         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36472         indicating whether failure is expected.
36473         * conform/Makefile (test-xfail-run-conformtest): New variable.
36474         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36475         level.
36476         * posix/Makefile (test-xfail-annexc): New variable.
36477         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36478
36479 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36480
36481         * argp/Makefile: Include Makeconfig immediately after defining
36482         subdir.
36483         * assert/Makefile: Likewise.
36484         * benchtests/Makefile: Likewise.
36485         * catgets/Makefile: Likewise.
36486         * conform/Makefile: Likewise.
36487         * crypt/Makefile: Likewise.
36488         * csu/Makefile: Likewise.
36489         (all): Remove target.
36490         * ctype/Makefile: Include Makeconfig immediately after defining
36491         subdir.
36492         * debug/Makefile: Likewise.
36493         * dirent/Makefile: Likewise.
36494         * dlfcn/Makefile: Likewise.
36495         * gmon/Makefile: Likewise.
36496         * gnulib/Makefile: Likewise.
36497         * grp/Makefile: Likewise.
36498         * gshadow/Makefile: Likewise.
36499         * hesiod/Makefile: Likewise.
36500         * hurd/Makefile: Likewise.
36501         (all): Remove target.
36502         * iconvdata/Makefile: Include Makeconfig immediately after
36503         defining subdir.
36504         * inet/Makefile: Likewise.
36505         * intl/Makefile: Likewise.
36506         * io/Makefile: Likewise.
36507         * libio/Makefile: Likewise.
36508         (all): Remove target.
36509         * locale/Makefile: Include Makeconfig immediately after defining
36510         subdir.
36511         * login/Makefile: Likewise.
36512         * mach/Makefile: Likewise.
36513         (all): Remove target.
36514         * malloc/Makefile: Include Makeconfig immediately after defining
36515         subdir.
36516         (all): Remove target.
36517         * manual/Makefile: Include Makeconfig immediately after defining
36518         subdir.
36519         * math/Makefile: Likewise.
36520         * misc/Makefile: Likewise.
36521         * nis/Makefile: Likewise.
36522         * nss/Makefile: Likewise.
36523         * po/Makefile: Likewise.
36524         (all): Remove target.
36525         * posix/Makefile: Include Makeconfig immediately after defining
36526         subdir.
36527         * pwd/Makefile: Likewise.
36528         * resolv/Makefile: Likewise.
36529         * resource/Makefile: Likewise.
36530         * rt/Makefile: Likewise.
36531         * setjmp/Makefile: Likewise.
36532         * shadow/Makefile: Likewise.
36533         * signal/Makefile: Likewise.
36534         * socket/Makefile: Likewise.
36535         * soft-fp/Makefile: Likewise.
36536         * stdio-common/Makefile: Likewise.
36537         * stdlib/Makefile: Likewise.
36538         * streams/Makefile: Likewise.
36539         * string/Makefile: Likewise.
36540         * sunrpc/Makefile: Likewise.
36541         (all): Remove target.
36542         * sysvipc/Makefile: Include Makeconfig immediately after defining
36543         subdir.
36544         * termios/Makefile: Likewise.
36545         * time/Makefile: Likewise.
36546         * timezone/Makefile: Likewise.
36547         (all): Remove target.
36548         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36549         subdir.
36550         * wctype/Makefile: Likewise.
36551
36552 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36553
36554         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36555         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36556         (libc_feholdexcept_setround_mips): Ditto.
36557         (libc_feholdsetround): New.
36558         (libc_feholdsetroundf): New.
36559         (libc_feholdsetroundl): New.
36560         (libc_feupdateenv_test_mips): New.
36561         (libc_feupdateenv_test): New.
36562         (libc_feupdateenv_testf): New.
36563         (libc_feupdateenv_testl): New.
36564         (libc_feresetround): New.
36565         (libc_feresetroundf): New.
36566         (libc_feresetroundl): New.
36567         (libc_fetestexcept_mips): New.
36568         (libc_fetestexcept): New.
36569         (libc_fetestexceptf): New.
36570         (libc_fetestexceptl): New.
36571         (HAVE_RM_CTX): New.
36572         (libc_feholdexcept_setround_mips_ctx): New.
36573         (libc_feholdexcept_setround_ctx): New.
36574         (libc_feholdexcept_setroundf_ctx): New.
36575         (libc_feholdexcept_setroundl_ctx): New.
36576         (libc_fesetenv_mips_ctx): New.
36577         (libc_fesetenv_ctx): New.
36578         (libc_fesetenv_ctxf): New.
36579         (libc_fesetenv_ctxl): New.
36580         (libc_feupdateenv_mips_ctx): New.
36581         (libc_feupdateenv_ctx): New.
36582         (libc_feupdateenvf_ctx): New.
36583         (libc_feupdateenvl_ctx): New.
36584         (libc_feholdsetround_mips_ctx): New.
36585         (libc_feholdsetround_ctx): New.
36586         (libc_feholdsetroundf_ctx): New.
36587         (libc_feholdsetroundl_ctx): New.
36588         (libc_feresetround_mips_ctx): New.
36589         (libc_feresetround_ctx): New.
36590         (libc_feresetroundf_ctx): New.
36591         (libc_feresetroundl_ctx): New.
36592
36593 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36594
36595         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36596
36597         * manual/ipc.texi: New file.
36598         * manual/Makefile (chapters): Add ipc.
36599         * manual/job.texi: Add "Inter-Process Communication" to next.
36600         * manual/process.texi: Add "Inter-Process Communication" to prev.
36601
36602 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36603
36604         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36605
36606 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36607
36608         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36609
36610         * manual/arith.texi: Fix spaces after sentences.
36611         * manual/charset.texi: Likewise.
36612         * manual/errno.texi: Likewise.
36613         * manual/install.texi: Likewise.
36614         * manual/llio.texi: Likewise.
36615         * manual/locale.texi: Likewise.
36616         * manual/maint.texi: Likewise.
36617         * manual/math.texi: Likewise.
36618         * manual/memory.texi: Likewise.
36619         * manual/message.texi: Likewise.
36620         * manual/probes.texi: Likewise.
36621         * manual/resource.texi: Likewise.
36622         * manual/signal.texi: Likewise.
36623         * manual/socket.texi: Likewise.
36624         * manual/stdio.texi: Likewise.
36625         * manual/string.texi: Likewise.
36626         * manual/time.texi: Likewise.
36627         * manual/users.texi: Likewise.
36628
36629 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36630
36631         [BZ #16632]
36632         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36633         _DEFAULT_SOURCE is defined.
36634
36635 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36636             Carlos O'Donell  <carlos@redhat.com>
36637
36638         [BZ #16613]
36639         * elf/dl-tls.c (_dl_count_modids): New function.
36640         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36641         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36642         audit library and increment generation counter.
36643         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36644         * elf/tst-audit9.c: New file.
36645         * elf/tst-auditmod9a.c: New file.
36646         * elf/tst-auditmod9b.c: New file.
36647         * elf/Makefile: Add rules to build and run tst-audit9.
36648
36649 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36650
36651         [BZ #15347]
36652         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36653
36654 2014-02-25  Will Newton  <will.newton@linaro.org>
36655
36656         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36657         (__longjmp): Restore sp and lr before restoring callee
36658         saved registers.  Add longjmp and longjmp_target
36659         SystemTap probe point.
36660         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36661         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36662         Define to zero to match jmpbuf layout.
36663         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36664         (__sigsetjmp): Save sp and lr before saving callee
36665         saved registers.  Add setjmp SystemTap probe point.
36666
36667 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36668
36669         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36670
36671 2014-02-24  Andreas Schwab  <schwab@suse.de>
36672
36673         [BZ #15804]
36674         * elf/pldd.c (wait_for_ptrace_stop): New function.
36675         (main): Call it after attaching.
36676
36677 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36678
36679         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36680         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36681         Versions files is now verboten.
36682         * hurd/Versions (libc: GLIBC_2.0):
36683         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36684         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36685         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36686         * mach/Versions: Likewise.
36687
36688         * csu/Versions: Remove unused %include.
36689         * resolv/Versions: Likewise.
36690
36691 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36692
36693         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36694         ($(objpfx)check-local-headers.out): Likewise.
36695         ($(objpfx)begin-end-check.out): Likewise.
36696         * Makerules (check-abi-%.out): Likewise.
36697         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36698         ($(objpfx)test2.cat): Likewise.
36699         ($(objpfx)de/libc.cat): Likewise.
36700         ($(objpfx)test-gencat.out): Likewise.
36701         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36702         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36703         ($(objpfx)noload-mem): Likewise.
36704         ($(objpfx)tst-pathopt.out): Likewise.
36705         ($(objpfx)tst-rtld-load-self.out): Likewise.
36706         ($(objpfx)tst-array1-cmp.out): Likewise.
36707         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36708         ($(objpfx)tst-array2-cmp.out): Likewise.
36709         ($(objpfx)tst-array3-cmp.out): Likewise.
36710         ($(objpfx)tst-array4-cmp.out): Likewise.
36711         ($(objpfx)tst-array5-cmp.out): Likewise.
36712         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36713         ($(objpfx)check-textrel.out): Likewise.
36714         ($(objpfx)check-execstack.out): Likewise.
36715         ($(objpfx)check-localplt.out): Likewise.
36716         ($(objpfx)order2-cmp.out): Likewise.
36717         ($(objpfx)tst-leaks1-mem): Likewise.
36718         ($(objpfx)tst-leaks1-static-mem): Likewise.
36719         ($(objpfx)tst-initorder-cmp.out): Likewise.
36720         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36721         ($(objpfx)tst-unused-dep.out): Likewise.
36722         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36723         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36724         * iconv/Makefile (test-iconvconfig): Likewise.
36725         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36726         ($(objpfx)iconv-test.out): Likewise.
36727         ($(objpfx)tst-tables.out): Likewise.
36728         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36729         ($(objpfx)tst-gettext.out): Likewise.
36730         ($(objpfx)tst-translit.out): Likewise.
36731         ($(objpfx)tst-gettext2.out): Likewise.
36732         ($(objpfx)tst-gettext4.out): Likewise.
36733         ($(objpfx)tst-gettext6.out): Likewise.
36734         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36735         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36736         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36737         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36738         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36739         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36740         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36741         ($(objpfx)wordexp-tst.out): Likewise.
36742         ($(objpfx)annexc.out): Likewise.
36743         ($(objpfx)tst-fnmatch-mem): Likewise.
36744         ($(objpfx)bug-regex2-mem): Likewise.
36745         ($(objpfx)bug-regex14-mem): Likewise.
36746         ($(objpfx)bug-regex21-mem): Likewise.
36747         ($(objpfx)bug-regex31-mem): Likewise.
36748         ($(objpfx)tst-vfork3-mem): Likewise.
36749         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36750         ($(objpfx)tst-pcre-mem): Likewise.
36751         ($(objpfx)tst-boost-mem): Likewise.
36752         ($(objpfx)tst-getconf.out): Likewise.
36753         ($(objpfx)bug-ga2-mem): Likewise.
36754         ($(objpfx)bug-glob2-mem): Likewise.
36755         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36756         ($(objpfx)mtrace-tst-leaks2): Likewise.
36757         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36758         ($(objpfx)tst-printf.out): Likewise.
36759         ($(objpfx)tst-setvbuf1.out): Likewise.
36760         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36761         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36762         ($(objpfx)tst-fmtmsg.out): Likewise.
36763         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
36764         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
36765
36766         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
36767         * bits/sigaction.h [__USE_MISC]: Likewise.
36768         * bits/waitstatus.h: Update #endif comments.
36769         * ctype/ctype.h: Likewise.
36770         * dirent/dirent.h: Likewise.
36771         [__USE_MISC]: Remove redundant conditionals.
36772         * grp/grp.h: Update #endif comments.
36773         [__USE_GNU]: Remove redundant conditionals.
36774         [__USE_MISC]: Likewise.
36775         * inet/netinet/in.h [__USE_GNU]: Likewise.
36776         * io/sys/stat.h [__USE_MISC]: Likewise.
36777         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
36778         * libio/bits/stdio.h: Update #endif comments.
36779         [__USE_MISC]: Remove redundant conditionals.
36780         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
36781         * libio/stdio.h: Update #endif comments.
36782         [__USE_MISC]: Remove redundant conditionals.
36783         * math/bits/math-finite.h [__USE_MISC]: Likewise.
36784         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
36785         * math/math.h: Update #else and #endif comments.
36786         [__USE_MISC]: Remove redundant conditionals.
36787         * misc/sys/uio.h: Update #endif comments.
36788         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
36789         * posix/glob.h [__USE_MISC]: Likewise.
36790         * posix/sys/types.h: Update #endif comments.
36791         [__USE_MISC]: Remove redundant conditionals.
36792         * posix/sys/wait.h: Update #endif comments.
36793         [__USE_MISC]: Remove redundant conditionals.
36794         * posix/unistd.h: Update #endif comments.
36795         [__USE_MISC]: Remove redundant conditionals.
36796         * pwd/pwd.h [__USE_GNU]: Likewise.
36797         [__USE_MISC]: Likewise.
36798         * resolv/netdb.h [__USE_GNU]: Likewise.
36799         * signal/signal.h: Update #endif comments.
36800         [__USE_MISC]: Remove redundant conditionals.
36801         * stdlib/stdlib.h: Update #else and #endif comments.
36802         [__USE_MISC]: Remove redundant conditionals.
36803         [__USE_GNU]: Likewise.
36804         * string/bits/string2.h [__USE_MISC]: Likewise.
36805         * string/string.h: Update #endif comments.
36806         [__USE_MISC]: Remove redundant conditionals.
36807         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
36808         Likewise.
36809         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
36810         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
36811         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
36812         Likewise.
36813         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
36814         Likewise.
36815         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
36816         comments.
36817         [__USE_MISC]: Remove redundant conditionals.
36818         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
36819         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
36820         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
36821         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
36822         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
36823         Likewise.
36824         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
36825         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
36826         Likewise.
36827         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
36828         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
36829         Likewise.
36830         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
36831         Likewise.
36832         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
36833         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
36834         Likewise.
36835         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
36836         Likewise.
36837         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
36838         * sysdeps/x86/bits/string.h: Update #endif comments.
36839         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
36840         conditionals.
36841         * time/sys/time.h: Update #endif comments.
36842         * time/time.h: Likewise.
36843         [__USE_MISC]: Remove redundant conditionals.
36844
36845 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
36846
36847         [BZ #16600]
36848         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
36849
36850 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
36851
36852         * Versions.def (librt): Add GLIBC_2.17.
36853
36854 2014-02-21  Adam Conrad  <adconrad@0c3.net>
36855
36856         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
36857         synonym for _SYS_AUXV_H to allow direct inclusion.
36858         * sysdeps/sparc/bits/hwcap.h: Likewise.
36859         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
36860         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
36861         * sysdeps/sparc/sysdep.h: Likewise.
36862
36863 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
36864
36865         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
36866
36867 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36868
36869         * benchtests/bench-strrchr.c: Print length instead of position.
36870
36871 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
36872
36873         [BZ #16611]
36874         * sysdeps/unix/sysv/linux/kernel-features.h
36875         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
36876         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
36877         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
36878         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
36879         Likewise.
36880         [__i386__ || __powerpc__ || __sh__ || __sparc__]
36881         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36882         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
36883         (__ASSUME_SENDMMSG): Define instead of using previous
36884         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
36885         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36886         (__ASSUME_SENDMMSG_SYSCALL): Define.
36887         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36888         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
36889         Likewise.
36890         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36891         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36892         Likewise.
36893         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36894         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36895         Likewise.
36896         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
36897         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36898         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36899         [__ASSUME_SENDMMSG]: Change conditionals to
36900         [__ASSUME_SENDMMSG_SOCKETCALL].
36901         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36902         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
36903         Define.
36904         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36905         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
36906         Likewise.
36907         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
36908         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36909         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36910         [!__ASSUME_SENDMMSG]: Change conditional to
36911         [!__ASSUME_SENDMMSG_SOCKETCALL].
36912         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36913         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36914         Define.
36915
36916         [BZ #16610]
36917         * sysdeps/unix/sysv/linux/kernel-features.h
36918         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
36919         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
36920         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
36921         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
36922         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
36923         [__i386__ || __sparc__]
36924         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36925         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
36926         (__ASSUME_RECVMMSG): Define instead of using previous
36927         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
36928         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36929         (__ASSUME_RECVMMSG_SYSCALL): Define.
36930         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36931         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36932         Likewise.
36933         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36934         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36935         Likewise.
36936         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36937         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36938         Likewise.
36939         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
36940         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36941         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36942         [__ASSUME_RECVMMSG]: Change condition to
36943         [__ASSUME_RECVMMSG_SOCKETCALL].
36944         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36945         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36946         Define.
36947         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36948         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36949         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36950         Likewise.
36951         * sysdeps/unix/sysv/linux/recvmmsg.c [__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/tile/kernel-features.h
36957         (__ASSUME_RECVMMSG_SYSCALL): Define.
36958
36959         [BZ #16609]
36960         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
36961         __powerpc__ || __s390__ || __sh__ || __sparc__]
36962         (__ASSUME_SOCKETCALL): Define.
36963         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
36964         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
36965         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
36966         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
36967         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36968         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
36969         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
36970         (__ASSUME_ACCEPT4): Define instead of using previous
36971         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
36972         __powerpc__ || __sparc__ || __s390__)] condition.
36973         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36974         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36975         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
36976         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36977         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36978         [!__ASSUME_ACCEPT4]: Change condition to
36979         [!__ASSUME_ACCEPT4_SOCKETCALL].
36980         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36981         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
36982         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
36983         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36984         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
36985         __ASSUME_ACCEPT4_SYSCALL.
36986         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
36987         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
36988         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36989         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
36990         __ASSUME_ACCEPT4_SYSCALL.
36991         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
36992         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36993         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36994         [__ASSUME_ACCEPT4]: Change condition to
36995         [__ASSUME_ACCEPT4_SOCKETCALL].
36996         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36997         (__ASSUME_SOCKETCALL): Define.
36998         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
36999         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37000         (__ASSUME_SOCKETCALL): Define.
37001         (__ASSUME_ACCEPT4): Remove.
37002         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37003         Define.
37004         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37005         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37006         Likewise.
37007         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37008         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37009
37010         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37011         macro.
37012         (HWCAP_ARM_LPAE): Likewise.
37013         (HWCAP_ARM_EVTSTRM): Likewise.
37014         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37015         Add vpfd32, lpae and evtstrm.
37016         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37017         Increase to 22.
37018
37019 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37020
37021         * math/auto-libm-test-in: Add tests of clog10.
37022         * math/auto-libm-test-out: Regenerated.
37023         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37024         * sysdeps/i386/fpu/libm-test-ulps: Update.
37025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37026
37027 2014-02-18  Andreas Schwab  <schwab@suse.de>
37028
37029         [BZ #16574]
37030         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37031         Store non-zero if the second buffer was newly allocated.
37032         (send_dg): Likewise.
37033         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37034         to send_vc and send_dg.
37035         (res_nsend): Pass NULL for ansp2_malloced.
37036         * resolv/res_query.c (__libc_res_nquery): Add parameter
37037         answerp2_malloced and pass it down to __libc_res_nsend.
37038         (res_nquery): Pass additional NULL to __libc_res_nquery.
37039         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37040         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37041         second answer buffer if answerp2_malloced was set.
37042         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37043         (__libc_res_nquerydomain): Add parameter
37044         answerp2_malloced and pass it down to __libc_res_nquery.
37045         (res_nquerydomain): Pass additional NULL to
37046         __libc_res_nquerydomain.
37047         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37048         additional NULL to __libc_res_nsend and __libc_res_nquery.
37049         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37050         additional NULL to __libc_res_nsearch.
37051         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37052         parameter of __libc_res_nsearch to check for separately allocated
37053         second buffer.
37054         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37055         __libc_res_nquery.
37056         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37057         additional NULL to __libc_res_nquery.
37058         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37059         __libc_res_nsearch.
37060         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37061         * include/resolv.h: Update prototypes of __libc_res_nquery,
37062         __libc_res_nsearch, __libc_res_nsend.
37063
37064 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37065
37066         * math/auto-libm-test-in: Add tests of fma.
37067         * math/auto-libm-test-out: Regenerated.
37068         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37069         (fma_towardzero_test_data): Likewise.
37070         (fma_downward_test_data): Likewise.
37071         (fma_upward_test_data): Likewise.
37072         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37073         mpc_mode.
37074         (rounding_modes): Add values for new field.
37075         (func_calc_method): Add value mpfr_fff_f.
37076         (func_calc_desc): Add mpfr_fff_f union field.
37077         (test_function): Add field exact_args.
37078         (FUNC): Add macro argument EXACT_ARGS.
37079         (FUNC_mpfr_f_f): Update call to FUNC.
37080         (FUNC_mpfr_f_f): Likewise.
37081         (FUNC_mpfr_ff_f): Likewise.
37082         (FUNC_mpfr_if_f): Likewise.
37083         (FUNC_mpc_c_f): Likewise.
37084         (FUNC_mpc_c_c): Likewise.
37085         (test_functions): Add fma.  Update calls to FUNC.
37086         (handle_input_arg): Add argument exact_args.
37087         (add_test): Update call to handle_input_arg.
37088         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37089         (output_for_one_input_case): Update call to calc_generic_results.
37090         Recalculate exact zero results in each rounding mode.
37091
37092         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37093         non-negative before setting low bit.
37094         * math/auto-libm-test-in: Mark one asin test possibly having
37095         spurious underflow.
37096         * math/auto-libm-test-out: Regenerated.
37097         * sysdeps/i386/fpu/libm-test-ulps: Update.
37098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37099
37100 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37101
37102         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37103         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37104         ports/sysdeps/unix/sysv/linux/microblaze.
37105         * README: Add missing listing for microblaze*-*-linux-gnu.
37106
37107 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37108
37109         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37110         duplicate code
37111
37112 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37113
37114         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37115         * sysdeps/unix/sysv/linux/ia64: Move directory from
37116         ports/sysdeps/unix/sysv/linux/ia64.
37117         * README: Update listing for ia64-*-linux-gnu.
37118
37119 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37120             Joseph Myers  <joseph@codesourcery.com>
37121
37122         * Makeconfig (test-name): New variable.
37123         (evaluate-test): Likewise.
37124         * Makerules (do-test-clean): Remove .test-result files.
37125         (common-mostlyclean): Likewise.
37126         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37127         * scripts/evaluate-test.sh: New file.
37128
37129 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37130
37131         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37132         separate $(objpfx)tst-fopenloc-cmp.out and
37133         $(objpfx)tst-fopenloc-mem.out targets.
37134         (tests): Update dependencies.
37135         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37136         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37137         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37138         (tst-rxspencer-no-utf8-ARGS): New variable.
37139         (tst-rxspencer-no-utf8-ENV): Likewise.
37140         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37141         instead of $(objpfx)tst-rxspencer-mem.
37142         ($(objpfx)tst-rxspencer-mem): Change target to
37143         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37144         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37145         * posix/tst-rxspencer-no-utf8.c: New file.
37146
37147         * elf/Makefile ($(objpfx)order.out): Remove rule.
37148         [$(run-built-tests) = yes] (tests): Depend on
37149         $(objpfx)order-cmp.out.
37150         ($(objpfx)order-cmp.out): New rule.
37151         [$(run-built-tests) = yes] (tests): Depend on
37152         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37153         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37154         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37155         $(objpfx)tst-array5-static-cmp.out.
37156         ($(objpfx)tst-array1.out): Remove rule.
37157         ($(objpfx)tst-array1-cmp.out): New rule.
37158         ($(objpfx)tst-array1-static.out): Remove rule.
37159         ($(objpfx)tst-array1-static-cmp.out): New rule.
37160         ($(objpfx)tst-array2.out): Remove rule.
37161         ($(objpfx)tst-array2-cmp.out): New rule.
37162         ($(objpfx)tst-array3.out): Remove rule.
37163         ($(objpfx)tst-array3-cmp.out): New rule.
37164         ($(objpfx)tst-array4.out): Remove rule.
37165         ($(objpfx)tst-array4-cmp.out): New rule.
37166         ($(objpfx)tst-array5.out): Remove rule.
37167         ($(objpfx)tst-array5-cmp.out): New rule.
37168         ($(objpfx)tst-array5-static.out): Remove rule.
37169         ($(objpfx)tst-array5-static-cmp.out): New rule.
37170         [$(run-built-tests) = yes] (tests): Depend on
37171         $(objpfx)order2-cmp.out.
37172         ($(objpfx)order2.out): Remove rule.
37173         ($(objpfx)order2-cmp.out): New rule.
37174         ($(objpfx)tst-initorder.out): Remove rule.
37175         [$(run-built-tests) = yes] (tests): Depend on
37176         $(objpfx)tst-initorder-cmp.out.
37177         ($(objpfx)tst-initorder-cmp.out): New rule.
37178         ($(objpfx)tst-initorder2.out): Remove rule.
37179         [$(run-built-tests) = yes] (tests): Depend on
37180         $(objpfx)tst-initorder2-cmp.out.
37181         ($(objpfx)tst-initorder2-cmp.out): New rule.
37182         [$(run-built-tests) = yes] (tests): Depend on
37183         $(objpfx)tst-unused-dep-cmp.out.
37184         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37185         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37186         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37187         on $(objpfx)tst-setvbuf1-cmp.out.
37188         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37189         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37190         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37191         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37192         ($(objpfx)tst-svc.out): Remove rule.
37193         ($(objpfx)tst-svc-cmp.out): New rule.
37194
37195 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37196
37197         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37198         * ctype/ctype.h [__USE_MISC]: Likewise.
37199         * dirent/dirent.h [__USE_MISC]: Likewise.
37200         * grp/grp.h [__USE_MISC]: Likewise.
37201         * io/fcntl.h [__USE_MISC]: Likewise.
37202         * io/sys/stat.h [__USE_MISC]: Likewise.
37203         * libio/stdio.h [__USE_MISC]: Likewise.
37204         * posix/unistd.h [__USE_MISC]: Likewise.
37205         * pwd/pwd.h [__USE_MISC]: Likewise.
37206         * stdlib.h [__USE_MISC]: Likewise.
37207         * string/bits/string2.h [__USE_MISC]: Likewise.
37208         * string/string.h [__USE_MISC]: Likewise.
37209         * time/time.h [__USE_MISC]: Likewise.
37210
37211 2014-02-13  Andreas Schwab  <schwab@suse.de>
37212
37213         [BZ #16574]
37214         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37215         second answer buffer if it was separately allocated.
37216
37217 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37218
37219         * sysdeps/mips/math-tests.h: Include <features.h>.
37220         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37221         (ROUNDING_TESTS_long_double): Do not define.
37222         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37223         (EXCEPTION_TESTS_long_double): Likewise.
37224         * sysdeps/mips/mips64/libm-test-ulps: Update.
37225
37226         * include/features.h (__USE_BSD): Remove macro definitions.
37227         (__USE_SVID): Likewise.
37228         (_BSD_SOURCE): Likewise.
37229         (_SVID_SOURCE): Likewise.
37230         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37231         from definition of _DEFAULT_SOURCE.
37232         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37233         [_DEFAULT_SOURCE].
37234         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37235         * bits/mman.h [__USE_BSD]: Likewise.
37236         * bits/termios.h [__USE_BSD]: Likewise.
37237         * bits/waitstatus.h [__USE_BSD]: Likewise.
37238         * ctype/ctype.h [__USE_SVID]: Likewise.
37239         * dirent/dirent.h [__USE_BSD]: Likewise.
37240         * grp/grp.h [__USE_SVID]: Likewise.
37241         [__USE_BSD]: Likewise.
37242         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37243         * io/fcntl.h [__USE_BSD]: Likewise.
37244         * io/ftw.h [__USE_BSD]: Likewise.
37245         * io/sys/stat.h [__USE_BSD]: Likewise.
37246         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37247         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37248         * libio/stdio.h [__USE_SVID]: Likewise.
37249         [__USE_BSD]: Likewise.
37250         * math/math.h [__USE_SVID]: Likewise.
37251         [__USE_BSD]: Likewise.
37252         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37253         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37254         * misc/search.h [__USE_SVID]: Likewise.
37255         * misc/sys/mman.h [__USE_BSD]: Likewise.
37256         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37257         * misc/sys/uio.h [__USE_BSD]: Likewise.
37258         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37259         * posix/glob.h [__USE_BSD]: Likewise.
37260         * posix/regex.h [__USE_BSD]: Likewise.
37261         * posix/sys/types.h [__USE_BSD]: Likewise.
37262         [__USE_SVID]: Likewise.
37263         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37264         * posix/sys/wait.h [__USE_BSD]: Likewise.
37265         [__USE_SVID]: Likewise.
37266         * posix/unistd.h [__USE_BSD]: Likewise.
37267         [__USE_SVID]: Likewise.
37268         * pwd/pwd.h [__USE_SVID]: Likewise.
37269         * resolv/netdb.h [__USE_BSD]: Likewise.
37270         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37271         * signal/signal.h [__USE_BSD]: Likewise.
37272         [__USE_SVID]: Likewise.
37273         * socket/sys/socket.h [__USE_BSD]: Likewise.
37274         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37275         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37276         [__USE_SVID]: Likewise.
37277         * string/bits/string2.h [__USE_BSD]: Likewise.
37278         [__USE_SVID]: Likewise.
37279         * string/bits/string3.h [__USE_BSD]: Likewise.
37280         * string/endian.h [__USE_BSD]: Likewise.
37281         * string/string.h [__USE_SVID]: Likewise.
37282         [__USE_BSD]: Likewise.
37283         * string/strings.h [__USE_BSD]: Likewise.
37284         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37285         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37286         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37287         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37288         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37289         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37290         Likewise.
37291         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37292         Likewise.
37293         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37294         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37295         Likewise.
37296         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37297         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37298         Likewise.
37299         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37300         Likewise.
37301         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37302         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37303         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37304         Likewise.
37305         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37306         Likewise.
37307         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37308         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37309         * termios/termios.h [__USE_BSD]: Likewise.
37310         * time/sys/time.h [__USE_BSD]: Likewise.
37311         * time/time.h [__USE_BSD]: Likewise.
37312         [__USE_SVID]: Likewise.
37313
37314         * Makefile (subdir_targets): Remove subdir_lint.out.
37315
37316         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37317         (do-tst-printf): Likewise.
37318         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37319         $(objpfx)tst-printf.out.
37320
37321         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37322
37323         * Makerules (check-abi-%): Change target to
37324         $(objpfx)check-abi-%.out.
37325         (check-abi target): Update dependencies.
37326         (check-abi-pattern variable): Redirect output of diff to $@.
37327         (check-abi variable): Likewise.
37328         * elf/Makefile (check-abi): Update dependencies.
37329
37330         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37331         unused.
37332         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37333         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37334         subnormal range.
37335         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37336         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37337         value has largest subnormal exponent.
37338         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37339         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37340         * sysdeps/aarch64/soft-fp/sfp-machine.h
37341         (_FP_TININESS_AFTER_ROUNDING): New macro.
37342         * sysdeps/alpha/soft-fp/sfp-machine.h
37343         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37344         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37345         Likewise.
37346         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37347         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37348         * sysdeps/mips/soft-fp/sfp-machine.h
37349         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37350         * sysdeps/powerpc/soft-fp/sfp-machine.h
37351         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37352         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37353         Likewise.
37354         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37355         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37356         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37357         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37358         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37359         Likewise.
37360
37361 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37362
37363         [BZ #16545]
37364         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37365         model 1.
37366
37367 2014-02-12  Richard Henderson  <rth@redhat.com>
37368
37369         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37370         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37371         * sysdeps/unix/sysv/linux/alpha: Move directory from
37372         ports/sysdeps/unix/sysv/linux/alpha.
37373         * README: Update listing for alpha-*-linux-gnu.
37374
37375 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37376
37377         * include/features.h: Update comment documenting feature test
37378         macros.
37379         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37380         _DEFAULT_SOURCE.
37381         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37382         (_SVID_SOURCE): Likewise.
37383         (_DEFAULT_SOURCE): Update description of default features.
37384         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37385         with _GNU_SOURCE.
37386         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37387         (S_ISVTX): Likewise.
37388         * manual/math.texi (Mathematical Constants): Likewise.
37389         * manual/signal.texi (Interrupted Primitives): Likewise.
37390         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37391         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37392         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37393         Don't refer to _SVID_SOURCE in warning text.
37394
37395         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37396
37397         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37398         already defined.
37399         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37400         * sysdeps/mips/dl-lookup.c: Remove.
37401         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37402
37403 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37404
37405         [BZ #16447]
37406         * math/auto-libm-test-in: Add testcase for expl.
37407         * math/auto-libm-test-out: Regenerate.
37408         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37409         calculation of unsafe.
37410         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37411
37412 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37413
37414         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37415         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37416         ports/sysdeps/unix/sysv/linux/aarch64.
37417         * README: Update listing for aarch64*-*-linux-gnu.
37418
37419 2014-02-11  Will Newton  <will.newton@linaro.org>
37420
37421         * manual/probes.texi (Mathematical Function Probes): Use
37422         "triggered" instead of "hit".
37423
37424         * manual/probes.texi (Internal Probes): Add documentation
37425         of setjmp, longjmp and longjmp_target probes.
37426
37427         * include/stap-probe.h: Add comment about probe argument
37428         format.
37429
37430         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37431         definition.  (tr_where, tr_freehook, tr_mallochook,
37432         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37433
37434 2014-02-11  David S. Miller  <davem@davemloft.net>
37435
37436         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37437         processing int_tests.
37438
37439 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37440
37441         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37442         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37443         * sysdeps/unix/sysv/linux/mips: Move directory from
37444         ports/sysdeps/unix/sysv/linux/mips.
37445         * README: Update listing for mips-*-linux-gnu and
37446         mips64-*-linux-gnu.
37447
37448 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37449
37450         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37451         * sysdeps/unix/sysv/linux/m68k: Move directory from
37452         ports/sysdeps/unix/sysv/linux/m68k.
37453         * README: Update listing for m68k-*-linux-gnu.
37454
37455 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37456
37457         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37458         * sysdeps/unix/sysv/linux/generic: Move directory from
37459         ports/sysdeps/unix/sysv/linux/generic.
37460         * sysdeps/unix/sysv/linux/tile: Move directory from
37461         ports/sysdeps/unix/sysv/linux/tile.
37462         * README: Update listing for tile*-*-linux-gnu.
37463
37464 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37465
37466         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37467         __builtin_expect.
37468         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37469         * catgets/open_catalog.c (__open_catalog): Likewise.
37470         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37471         * debug/confstr_chk.c: Likewise.
37472         * debug/fread_chk.c (__fread_chk): Likewise.
37473         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37474         * debug/getgroups_chk.c: Likewise.
37475         * debug/mbsnrtowcs_chk.c: Likewise.
37476         * debug/mbsrtowcs_chk.c: Likewise.
37477         * debug/mbstowcs_chk.c: Likewise.
37478         * debug/memcpy_chk.c: Likewise.
37479         * debug/memmove_chk.c: Likewise.
37480         * debug/mempcpy_chk.c: Likewise.
37481         * debug/memset_chk.c: Likewise.
37482         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37483         * debug/strcat_chk.c (__strcat_chk): Likewise.
37484         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37485         * debug/strncat_chk.c (__strncat_chk): Likewise.
37486         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37487         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37488         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37489         * debug/wcpncpy_chk.c: Likewise.
37490         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37491         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37492         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37493         * debug/wcsncpy_chk.c: Likewise.
37494         * debug/wcsnrtombs_chk.c: Likewise.
37495         * debug/wcsrtombs_chk.c: Likewise.
37496         * debug/wcstombs_chk.c: Likewise.
37497         * debug/wmemcpy_chk.c: Likewise.
37498         * debug/wmemmove_chk.c: Likewise.
37499         * debug/wmempcpy_chk.c: Likewise.
37500         * debug/wmemset_chk.c: Likewise.
37501         * dirent/scandirat.c (SCANDIRAT): Likewise.
37502         * dlfcn/dladdr1.c (dladdr1): Likewise.
37503         * dlfcn/dladdr.c (dladdr): Likewise.
37504         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37505         * dlfcn/dlerror.c (__dlerror): Likewise.
37506         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37507         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37508         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37509         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37510         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37511         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37512         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37513         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37514         Likewise.
37515         * elf/dl-conflict.c: Likewise.
37516         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37517         * elf/dl-dst.h: Likewise.
37518         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37519         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37520         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37521         * elf/dl-init.c (call_init, _dl_init): Likewise.
37522         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37523         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37524         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37525         Likewise.
37526         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37527         Likewise.
37528         * elf/dl-minimal.c (__libc_memalign): Likewise.
37529         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37530         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37531         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37532         * elf/dl-sym.c (do_sym): Likewise.
37533         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37534         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37535         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37536         * elf/dl-writev.h (_dl_writev): Likewise.
37537         * elf/ldconfig.c (search_dir): Likewise.
37538         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37539         (dl_main): Likewise.
37540         * elf/setup-vdso.h (setup_vdso): Likewise.
37541         * grp/compat-initgroups.c (compat_call): Likewise.
37542         * grp/fgetgrent.c (fgetgrent): Likewise.
37543         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37544         * grp/putgrent.c (putgrent): Likewise.
37545         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37546         Likewise.
37547         * hurd/hurdinit.c: Likewise.
37548         * iconvdata/8bit-gap.c (struct): Likewise.
37549         * iconvdata/ansi_x3.110.c : Likewise.
37550         * iconvdata/big5.c : Likewise.
37551         * iconvdata/big5hkscs.c : Likewise.
37552         * iconvdata/cp1255.c: Likewise.
37553         * iconvdata/cp1258.c : Likewise.
37554         * iconvdata/cp932.c : Likewise.
37555         * iconvdata/euc-cn.c: Likewise.
37556         * iconvdata/euc-jisx0213.c : Likewise.
37557         * iconvdata/euc-jp.c: Likewise.
37558         * iconvdata/euc-jp-ms.c : Likewise.
37559         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37560         * iconvdata/gb18030.c : Likewise.
37561         * iconvdata/gbbig5.c (const): Likewise.
37562         * iconvdata/gbgbk.c: Likewise.
37563         * iconvdata/gbk.c : Likewise.
37564         * iconvdata/ibm1364.c : Likewise.
37565         * iconvdata/ibm930.c : Likewise.
37566         * iconvdata/ibm932.c: Likewise.
37567         * iconvdata/ibm933.c : Likewise.
37568         * iconvdata/ibm935.c : Likewise.
37569         * iconvdata/ibm937.c : Likewise.
37570         * iconvdata/ibm939.c : Likewise.
37571         * iconvdata/ibm943.c: Likewise.
37572         * iconvdata/iso_11548-1.c: Likewise.
37573         * iconvdata/iso-2022-cn.c : Likewise.
37574         * iconvdata/iso-2022-cn-ext.c : Likewise.
37575         * iconvdata/iso-2022-jp-3.c: Likewise.
37576         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37577         * iconvdata/iso-2022-kr.c : Likewise.
37578         * iconvdata/iso646.c (gconv_end): Likewise.
37579         * iconvdata/iso_6937-2.c : Likewise.
37580         * iconvdata/iso_6937.c : Likewise.
37581         * iconvdata/iso8859-1.c: Likewise.
37582         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37583         * iconvdata/shift_jisx0213.c : Likewise.
37584         * iconvdata/sjis.c : Likewise.
37585         * iconvdata/t.61.c : Likewise.
37586         * iconvdata/tcvn5712-1.c : Likewise.
37587         * iconvdata/tscii.c: Likewise.
37588         * iconvdata/uhc.c : Likewise.
37589         * iconvdata/unicode.c (gconv_end): Likewise.
37590         * iconvdata/utf-16.c (gconv_end): Likewise.
37591         * iconvdata/utf-32.c (gconv_end): Likewise.
37592         * iconvdata/utf-7.c (base64): Likewise.
37593         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37594         * iconv/gconv_close.c (__gconv_close): Likewise.
37595         * iconv/gconv_open.c (__gconv_open): Likewise.
37596         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37597         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37598         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37599         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37600         (ucs4le_internal_loop_single): Likewise.
37601         * iconv/iconv.c (iconv): Likewise.
37602         * iconv/iconv_close.c: Likewise.
37603         * iconv/loop.c (SINGLE): Likewise.
37604         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37605         * include/atomic.h: Likewise.
37606         * inet/inet6_option.c (option_alloc): Likewise.
37607         * intl/bindtextdom.c (set_binding_values): Likewise.
37608         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37609         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37610         * intl/localealias.c (read_alias_file): Likewise.
37611         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37612         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37613         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37614         * libio/fmemopen.c (fmemopen): Likewise.
37615         * libio/iofgets.c (_IO_fgets): Likewise.
37616         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37617         * libio/iofgetws.c (fgetws): Likewise.
37618         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37619         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37620         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37621         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37622         * locale/findlocale.c (_nl_find_locale): Likewise.
37623         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37624         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37625         Likewise.
37626         * locale/setlocale.c (setlocale): Likewise.
37627         * login/programs/pt_chown.c (main): Likewise.
37628         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37629         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37630         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37631         (mmap, mmap64, mremap, munmap): Likewise.
37632         * math/e_exp2l.c: Likewise.
37633         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37634         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37635         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37636         * math/s_catan.c (__catan): Likewise.
37637         * math/s_catanf.c (__catanf): Likewise.
37638         * math/s_catanh.c (__catanh): Likewise.
37639         * math/s_catanhf.c (__catanhf): Likewise.
37640         * math/s_catanhl.c (__catanhl): Likewise.
37641         * math/s_catanl.c (__catanl): Likewise.
37642         * math/s_ccosh.c (__ccosh): Likewise.
37643         * math/s_ccoshf.c (__ccoshf): Likewise.
37644         * math/s_ccoshl.c (__ccoshl): Likewise.
37645         * math/s_cexp.c (__cexp): Likewise.
37646         * math/s_cexpf.c (__cexpf): Likewise.
37647         * math/s_cexpl.c (__cexpl): Likewise.
37648         * math/s_clog10.c (__clog10): Likewise.
37649         * math/s_clog10f.c (__clog10f): Likewise.
37650         * math/s_clog10l.c (__clog10l): Likewise.
37651         * math/s_clog.c (__clog): Likewise.
37652         * math/s_clogf.c (__clogf): Likewise.
37653         * math/s_clogl.c (__clogl): Likewise.
37654         * math/s_csin.c (__csin): Likewise.
37655         * math/s_csinf.c (__csinf): Likewise.
37656         * math/s_csinh.c (__csinh): Likewise.
37657         * math/s_csinhf.c (__csinhf): Likewise.
37658         * math/s_csinhl.c (__csinhl): Likewise.
37659         * math/s_csinl.c (__csinl): Likewise.
37660         * math/s_csqrt.c (__csqrt): Likewise.
37661         * math/s_csqrtf.c (__csqrtf): Likewise.
37662         * math/s_csqrtl.c (__csqrtl): Likewise.
37663         * math/s_ctan.c (__ctan): Likewise.
37664         * math/s_ctanf.c (__ctanf): Likewise.
37665         * math/s_ctanh.c (__ctanh): Likewise.
37666         * math/s_ctanhf.c (__ctanhf): Likewise.
37667         * math/s_ctanhl.c (__ctanhl): Likewise.
37668         * math/s_ctanl.c (__ctanl): Likewise.
37669         * math/w_pow.c: Likewise.
37670         * math/w_powf.c: Likewise.
37671         * math/w_powl.c: Likewise.
37672         * math/w_scalb.c (sysv_scalb): Likewise.
37673         * math/w_scalbf.c (sysv_scalbf): Likewise.
37674         * math/w_scalbl.c (sysv_scalbl): Likewise.
37675         * misc/error.c (error_tail): Likewise.
37676         * misc/pselect.c (__pselect): Likewise.
37677         * nis/nis_callback.c (__nis_create_callback): Likewise.
37678         * nis/nis_call.c (__nisfind_server): Likewise.
37679         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37680         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37681         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37682         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37683         * nis/nis_lookup.c (nis_lookup): Likewise.
37684         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37685         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37686         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37687         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37688         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37689         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37690         * nis/nss_compat/compat-initgroups.c (add_group)
37691         (internal_getgrent_r): Likewise.
37692         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37693         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37694         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37695         (internal_getspnam_r): Likewise.
37696         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37697         (_nss_nis_getaliasbyname_r): Likewise.
37698         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37699         (_nss_nis_getntohost_r): Likewise.
37700         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37701         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37702         (_nss_nis_getgrgid_r): Likewise.
37703         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37704         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37705         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37706         (_nss_nis_gethostbyname4_r): Likewise.
37707         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37708         (initgroups_netid): Likewise.
37709         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37710         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37711         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37712         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37713         (_nss_nis_getprotobynumber_r): Likewise.
37714         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37715         (_nss_nis_getsecretkey): Likewise.
37716         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37717         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37718         (_nss_nis_getpwuid_r): Likewise.
37719         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37720         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37721         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37722         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37723         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37724         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37725         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37726         Likewise.
37727         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37728         (_nss_nisplus_getntohost_r): Likewise.
37729         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37730         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37731         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37732         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37733         Likewise.
37734         * nis/nss_nisplus/nisplus-initgroups.c
37735         (_nss_nisplus_initgroups_dyn): Likewise.
37736         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37737         (_nss_nisplus_getnetbyaddr_r): Likewise.
37738         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37739         (_nss_nisplus_getprotobynumber_r): Likewise.
37740         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37741         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37742         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37743         Likewise.
37744         * nis/nss_nisplus/nisplus-service.c
37745         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37746         (_nss_nisplus_getservbyport_r): Likewise.
37747         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37748         (_nss_nisplus_getspnam_r): Likewise.
37749         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37750         Likewise.
37751         * nscd/aicache.c (addhstaiX): Likewise.
37752         * nscd/cache.c (cache_search, prune_cache): Likewise.
37753         * nscd/connections.c (register_traced_file, send_ro_fd)
37754         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37755         (main_loop_epoll): Likewise.
37756         * nscd/grpcache.c (addgrbyX): Likewise.
37757         * nscd/hstcache.c (addhstbyX): Likewise.
37758         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37759         * nscd/mem.c (gc, mempool_alloc): Likewise.
37760         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37761         (addinnetgrX): Likewise.
37762         * nscd/nscd-client.h (__nscd_acquire_maplock)
37763         (__nscd_drop_map_ref): Likewise.
37764         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37765         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37766         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
37767         Likewise.
37768         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37769         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37770         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
37771         (__nscd_get_map_ref): Likewise.
37772         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37773         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
37774         Likewise.
37775         * nscd/pwdcache.c (addpwbyX): Likewise.
37776         * nscd/selinux.c (preserve_capabilities): Likewise.
37777         * nscd/servicescache.c (addservbyX): Likewise.
37778         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
37779         * posix/fnmatch.c (fnmatch): Likewise.
37780         * posix/getopt.c (_getopt_internal_r): Likewise.
37781         * posix/glob.c (glob, glob_in_dir): Likewise.
37782         * posix/wordexp.c (exec_comm_child): Likewise.
37783         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
37784         (getanswer_r, gaih_getanswer_slice): Likewise.
37785         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
37786         * resolv/res_init.c: Likewise.
37787         * resolv/res_mkquery.c (res_nmkquery): Likewise.
37788         * resolv/res_query.c (__libc_res_nquery): Likewise.
37789         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
37790         Likewise.
37791         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
37792         * stdio-common/perror.c (perror): Likewise.
37793         * stdio-common/printf_fp.c (___printf_fp): Likewise.
37794         * stdio-common/tmpnam.c (tmpnam): Likewise.
37795         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
37796         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
37797         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
37798         Likewise.
37799         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
37800         * stdlib/putenv.c (putenv): Likewise.
37801         * stdlib/setenv.c (__add_to_environ): Likewise.
37802         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
37803         * stdlib/strtol_l.c (INTERNAL): Likewise.
37804         * string/memmem.c (memmem): Likewise.
37805         * string/strerror.c (strerror): Likewise.
37806         * string/strnlen.c (__strnlen): Likewise.
37807         * string/test-memmem.c (simple_memmem): Likewise.
37808         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
37809         * sunrpc/pm_getport.c (__get_socket): Likewise.
37810         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
37811         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
37812         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
37813         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
37814         Likewise.
37815         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
37816         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37817         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37818         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
37819         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37820         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
37821         Likewise.
37822         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
37823         Likewise.
37824         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37825         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37826         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
37827         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37828         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
37829         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
37830         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37831         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
37832         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37833         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
37834         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37835         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
37836         Likewise.
37837         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
37838         Likewise.
37839         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
37840         Likewise.
37841         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
37842         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
37843         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
37844         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
37845         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
37846         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
37847         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
37848         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
37849         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
37850         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
37851         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
37852         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
37853         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
37854         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
37855         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
37856         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37857         Likewise.
37858         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
37859         Likewise.
37860         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
37861         Likewise.
37862         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
37863         Likewise.
37864         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
37865         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
37866         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
37867         Likewise.
37868         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
37869         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
37870         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37871         * sysdeps/posix/sleep.c: Likewise.
37872         * sysdeps/posix/tempname.c: Likewise.
37873         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
37874         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
37875         Likewise.
37876         * sysdeps/powerpc/powerpc32/dl-machine.h
37877         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
37878         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
37879         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
37880         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
37881         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
37882         Likewise.
37883         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
37884         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
37885         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37886         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
37887         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37888         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
37889         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
37890         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
37891         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
37892         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
37893         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
37894         (elf_machine_lazy_rel): Likewise.
37895         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
37896         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
37897         (elf_machine_lazy_rel): Likewise.
37898         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
37899         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
37900         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
37901         * sysdeps/unix/grantpt.c (grantpt): Likewise.
37902         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
37903         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
37904         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37905         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37906         Likewise.
37907         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
37908         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
37909         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
37910         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
37911         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
37912         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
37913         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
37914         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
37915         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
37916         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
37917         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
37918         Likewise.
37919         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
37920         (__posix_fallocate64_l64): Likewise.
37921         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
37922         (posix_fallocate): Likewise.
37923         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
37924         Likewise.
37925         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37926         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
37927         (getifaddrs_internal): Likewise.
37928         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
37929         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
37930         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
37931         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
37932         * sysdeps/unix/sysv/linux/posix_fallocate64.c
37933         (__posix_fallocate64_l64): Likewise.
37934         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
37935         Likewise.
37936         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
37937         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
37938         (__get_clockfreq): Likewise.
37939         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
37940         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
37941         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
37942         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37943         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37944         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
37945         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
37946         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
37947         Likewise.
37948         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
37949         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
37950         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
37951         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
37952         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37953         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
37954         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
37955         Likewise.
37956         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
37957         (posix_fallocate): Likewise.
37958         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37959         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
37960         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
37961         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
37962         (elf_machine_rela, elf_machine_rela_relative)
37963         (elf_machine_lazy_rel): Likewise.
37964         * time/asctime.c (asctime_internal): Likewise.
37965         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
37966         * time/tzset.c (__tzset_parse_tz): Likewise.
37967         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
37968         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
37969         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
37970         * wcsmbs/wcsmbsload.h: Likewise.
37971
37972         [BZ #15894]
37973         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
37974
37975         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
37976         (arena_get2): Remove THREAD_STATS conditionals.
37977         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
37978         (__malloc_stats, int): Likewise.
37979
37980 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
37981
37982         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
37983         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
37984
37985         * manual/setjmp.texi: Fix typos/grammar errors.
37986
37987         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
37988         Only return early when n is <= 0.  Delete unused return statement.
37989
37990         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
37991         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
37992         * debug/tst-longjmp_chk3.c: New file.
37993
37994         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
37995         (test_main): Replace code with set_fortify_handler call.
37996         * debug/test-strcpy_chk.c: Likewise.
37997         * debug/tst-chk1.c: Likewise.
37998         * debug/tst-longjmp_chk.c: Likewise.
37999         * test-skeleton.c: Include fcntl.h & paths.h
38000         (set_fortify_handler): Define.
38001
38002         * debug/tst-longjmp_chk.c: Add header comment and include
38003         ../test-skeleton.c.
38004         (do_test): Mark static.
38005         (TEST_FUNCTION): Define.
38006
38007         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38008         (IP_PMTUDISC_INTERFACE): Likewise.
38009         (IP_MULTICAST_IF): Likewise.
38010         (IP_MULTICAST_TTL): Likewise.
38011         (IP_MULTICAST_LOOP): Likewise.
38012         (IP_ADD_MEMBERSHIP): Likewise.
38013         (IP_DROP_MEMBERSHIP): Likewise.
38014         (IP_UNBLOCK_SOURCE): Likewise.
38015         (IP_BLOCK_SOURCE): Likewise.
38016         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38017         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38018         (IP_MSFILTER): Likewise.
38019         (MCAST_JOIN_GROUP): Likewise.
38020         (MCAST_BLOCK_SOURCE): Likewise.
38021         (MCAST_UNBLOCK_SOURCE): Likewise.
38022         (MCAST_LEAVE_GROUP): Likewise.
38023         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38024         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38025         (MCAST_MSFILTER): Likewise.
38026         (IP_MULTICAST_ALL): Likewise.
38027         (IP_UNICAST_IF): Likewise.
38028
38029         * timezone/Makefile: Delete $(have-ksh) check.
38030         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38031         * timezone/tzselect.ksh: Add +x mode bits.
38032
38033         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38034         (ANON_INODE_FS_MAGIC): Likewise.
38035         (BDEVFS_MAGIC): Likewise.
38036         (BINFMTFS_MAGIC): Likewise.
38037         (BTRFS_TEST_MAGIC): Likewise.
38038         (CRAMFS_MAGIC_WEND): Likewise.
38039         (DEBUGFS_MAGIC): Likewise.
38040         (ECRYPTFS_SUPER_MAGIC): Likewise.
38041         (EXT3_SUPER_MAGIC): Likewise.
38042         (EXT4_SUPER_MAGIC): Likewise.
38043         (FUTEXFS_SUPER_MAGIC): Likewise.
38044         (HOSTFS_SUPER_MAGIC): Likewise.
38045         (HUGETLBFS_MAGIC): Likewise.
38046         (MINIX3_SUPER_MAGIC): Likewise.
38047         (MTD_INODE_FS_MAGIC): Likewise.
38048         (NILFS_SUPER_MAGIC): Likewise.
38049         (OPENPROM_SUPER_MAGIC): Likewise.
38050         (PIPEFS_MAGIC): Likewise.
38051         (PSTOREFS_MAGIC): Likewise.
38052         (QNX6_SUPER_MAGIC): Likewise.
38053         (RAMFS_MAGIC): Likewise.
38054         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38055         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38056         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38057         (SECURITYFS_MAGIC): Likewise.
38058         (SELINUX_MAGIC): Likewise.
38059         (SMACK_MAGIC): Likewise.
38060         (SOCKFS_MAGIC): Likewise.
38061         (SQUASHFS_MAGIC): Likewise.
38062         (STACK_END_MAGIC): Likewise.
38063         (TMPFS_MAGIC): Likewise.
38064         (USBDEVICE_SUPER_MAGIC): Likewise.
38065         (V9FS_MAGIC): Likewise.
38066         (XENFS_SUPER_MAGIC): Likewise.
38067         (CRAMFS_MAGIC): Fix typo in comment.
38068         (EXT2_SUPER_MAGIC): Update comment.
38069         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38070
38071 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38072
38073         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38074         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38075         * sysdeps/unix/sysv/linux/arm: Move directory from
38076         ports/sysdeps/unix/sysv/linux/arm.
38077         * README: Update listing for arm-*-linux-gnueabi.
38078
38079         * README: Remove mention of am33.
38080
38081 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38082
38083         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38084         than the comma operator, to avoid "rhs of comma has no effect"
38085         compiler warnings.
38086         (__sigfillset, __sigandset, __sigorset): Likewise.
38087         * include/signal.h (__sigemptyset): Likewise.
38088         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38089
38090 2014-02-07  Allan McRae  <allan@archlinux.org>
38091
38092         * version.h (RELEASE): Set to "development".
38093         (VERSION): Set to "2.19.90"
38094         * NEWS: Add 2.20 section.
38095
38096 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38097
38098         [BZ #16529]
38099         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38100
38101 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38102
38103         * manual/contrib.texi: Update entry for Carlos O'Donell,
38104         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38105
38106 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38107
38108         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38109
38110         * sysdeps/unix/sysv/linux/kernel-features.h
38111         [__LINUX_KERNEL_VERSION >= 0x020621]
38112         (__ASSUME_PROC_PID_TASK_COMM): Define.
38113
38114 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38115
38116         [BZ #16398]
38117         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38118         conversion when destination buffer does not have enough space.
38119         * libio/tst-ftell-partial-wide.c: New test case.
38120         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38121
38122         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38123         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38124         Leonard and Allan McRae.
38125
38126 2014-02-04  David S. Miller  <davem@davemloft.net>
38127
38128         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38129         32-bit.
38130
38131 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38132
38133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38134         New file
38135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38136         New file
38137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38138         New file.
38139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38140         New file.
38141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38142         New file.
38143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38144         New file.
38145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38146         New file.
38147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38148         New file.
38149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38150         New file.
38151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38152         New file.
38153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38154         New file.
38155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38156         New file.
38157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38158         New file.
38159
38160 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38161
38162         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38163         * shlib-versions: Likewise.
38164
38165 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38166             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38167
38168         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38169         (abilist-pattern): New variable, set to %-le.abilist.
38170
38171         * Makerules (abilist-pattern): New variable.
38172         (vpath): Use $(abilist-pattern) in place of %.abilist.
38173         (check-abi-% pattern rule): Likewise.
38174         (check-abi, update-abi): Likewise.
38175
38176 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38177
38178         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38179
38180 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38181
38182         * manual/startup.texi: Add next, previous, and top entries for
38183         the `Program Arguments' and `Environment Variables' nodes.
38184
38185 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38186
38187         * manual/macros.texi: Add comments before MTASC-safety macros.
38188
38189         * manual/users.texi: Document MTASC-safety properties.
38190
38191         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38192         (pthread_getspecific, pthread_setspecific): Format with
38193         @deftypefun, and add @safety note.
38194         * manual/signal.texi: Move comments that analyze the above
38195         functions to their home place.
38196
38197 2014-02-03  Allan McRae  <allan@archlinux.org>
38198
38199         * po/sl.po: Update Slovenian translation from translation project.
38200
38201 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38202
38203         * manual/time.texi (timegm): Add missing blank after @c.
38204         Reported by Joseph Myers <joseph@codesourcery.com>.
38205
38206 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38207
38208         * manual/check-safety.sh: New.
38209         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38210
38211         * manual/terminal.texi: Document MTASC-safety properties.
38212
38213         * manual/filesys.texi: Document MTASC-safety properties.
38214
38215         * manual/errno.texi: Document MTASC-safety properties.
38216
38217         * manual/intro.texi: Document safety identifiers and
38218         conditionals.
38219
38220         * manual/string.texi (wcstok): Fix prototype.
38221         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38222
38223         * manual/time.texi: Document MTASC-safety properties.
38224
38225         * manual/string.texi: Document MTASC-safety properties.
38226
38227         * manual/threads.texi: Document MTASC-safety properties.
38228
38229         * manual/stdio.texi: Document MTASC-safety properties.
38230
38231         * manual/syslog.texi: Document MTASC-safety properties.
38232
38233         * manual/sysinfo.texi: Document MTASC-safety properties.
38234
38235         * manual/startup.texi: Document MTASC-safety properties.
38236
38237         * manual/socket.texi: Document MTASC-safety properties.
38238
38239         * manual/signal.texi: Document MTASC-safety properties.
38240
38241 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38242
38243         * manual/setjmp.texi: Document MTASC-safety properties.
38244
38245         * manual/search.texi: Document MTASC-safety properties.
38246
38247         * manual/resource.texi: Document MTASC-safety properties.
38248
38249         * manual/process.texi: Document MTASC-safety properties.
38250
38251         * manual/platform.texi: Document MTASC-safety properties.
38252
38253         * manual/pipe.texi: Document MTASC-safety properties.
38254
38255         * manual/pattern.texi: Document MTASC-safety properties.
38256
38257         * manual/message.texi: Document MTASC-safety properties.
38258
38259         [BZ #12751]
38260         * manual/memory.texi: Document MTASC-safety properties.
38261
38262         * manual/math.texi: Document MTASC-safety properties.
38263
38264         * manual/locale.texi: Document MTASC-safety properties.
38265
38266         * manual/llio.texi: Document MTASC-safety properties.
38267
38268         * manual/libdl.texi: New.
38269
38270         * manual/lang.texi: Document MTASC-safety properties.
38271
38272         * manual/job.texi: Document MTASC-safety properties.
38273
38274         * manual/getopt.texi: Document MTASC-safety properties.
38275
38276         * manual/ctype.texi: Document MTASC-safety properties.
38277
38278 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38279
38280         [BZ #16046]
38281         * csu/libc-tls.c (static_map): Remove variable.
38282         (__libc_setup_tls): Use main executable's link map for TLS data.
38283         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38284         casing for LM_ID_BASE and GL(dl_nns).
38285         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38286         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38287         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38288         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38289         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38290         member.
38291         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38292         l_phnum members.
38293
38294 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38295
38296         * manual/debug.texi: Document MTASC-safety properties.
38297
38298 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38299
38300         [BZ #16510]
38301         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38302         of __x86_64__ when disabling x87 inline functions.
38303
38304 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38305
38306         * manual/charset.texi: Document MTASC-safety properties.
38307
38308         * manual/crypt.texi: Document MTASC-safety properties.
38309
38310         * manual/conf.texi: Document MTASC-safety properties.
38311
38312         * manual/arith.texi: Document MTASC-safety properties.
38313
38314         * manual/argp.texi: Document MTASC-safety properties.
38315
38316         * manual/macros.texi: Introduce macros to document multi
38317         thread, asynchronous signal and asynchronous cancellation
38318         safety properties.
38319         * manual/intro.texi: Introduce the properties themselves.
38320
38321 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38322
38323         * sysdeps/sh/sh4/Makefile: New file.
38324
38325 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38326
38327         * math/gen-libm-test.pl ($srcdir): New variable.
38328         ($auto_input): Use it.
38329
38330 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38331
38332         [BZ #16506]
38333         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38334         access beyond array bounds when parsing netgroups file.
38335
38336         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38337         the old buffer before realloc.
38338
38339 2014-01-27  Allan McRae  <allan@archlinux.org>
38340
38341         * po/fr.po: Update French translation from translation project.
38342
38343 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38344
38345         * sysdeps/sh/libm-test-ulps: Regenerate.
38346
38347 2014-01-24  David S. Miller  <davem@davemloft.net>
38348
38349         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38350
38351 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38352
38353         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38354         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38355
38356 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38357
38358         [BZ #16474]
38359         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38360         string pointers after reallocation.
38361
38362 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38363
38364         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38365         __SH4A__ instead of __SH_FPU_ANY__.
38366
38367 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38368
38369         * sysdeps/sh/fpu_control.h: New file.
38370         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38371         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38372         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38373         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38374         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38375         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38376         * sysdeps/sh/sys/ucontext.h: Remove.
38377         * sysdeps/sh/sys: Remove directory.
38378
38379 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38380
38381         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38382         s390/sys/ucontext.h.
38383         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38384         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38385
38386 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38387
38388         [BZ #15605]
38389         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38390
38391 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38392
38393         [BZ#16431]
38394         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38395         Adjust the vDSO correctly for internal calls.
38396         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38397
38398 2014-01-20  Allan McRae  <allan@archlinux.org>
38399
38400         * po/ca.po: Update Catalan translation from translation project.
38401
38402 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38403
38404         * sysdeps/s390/sotruss-lib.c: New file.
38405
38406 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38407
38408         [BZ#16430]
38409         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38410         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38411         local calls issues by not having a PLT stub required for IFUNC calls.
38412         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38413
38414 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38415
38416         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38417         * math/test-fpucw-static.c: Likewise.
38418
38419 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38420
38421         [BZ #16453]
38422         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38423
38424 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38425
38426         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38427         implementation for powerpc.
38428
38429 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38430
38431         [BZ #14782]
38432         * sysdeps/posix/system.c (__libc_system): Do not enable
38433         asynchronous cancellation.
38434
38435 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38436
38437         [BZ #16427]
38438         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38439         handling only for numbers special also in the IEEE case.
38440
38441 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38442
38443         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38444
38445 2014-01-11  Allan McRae  <allan@archlinux.org>
38446
38447         * po/bg.po: Update Bulgarian translation from translation project.
38448
38449         * po/de.po: Update German translation from translation project.
38450
38451 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38452
38453         * sysdeps/generic/gcc-compat.h: New file.
38454
38455 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38456
38457         * benchtests/asin-inputs: Correct slow inputs.
38458         * benchtests/acos-inputs: Likewise.
38459
38460 2014-01-10  Allan McRae  <allan@archlinux.org>
38461
38462         * po:sv.po: Update Swedish translation from translation project.
38463
38464         * po/vi.po: Update Vietnamese translation from translation project.
38465
38466         * po/eo.po: Update Esperanto translation from translation project.
38467
38468         * po/cs.po: Update Czech translation from translation project.
38469
38470         * po/nl.po: Update Dutch translation from translation project.
38471
38472         * po/pl.po: Update Polish translation from translation project.
38473
38474         * po/ru.po: Update Russian translation from translation project.
38475
38476         * po/uk.po: Update Ukrainian translation from translation project.
38477
38478 2014-01-08  Brooks Moses  <bmoses@google.com>
38479
38480         * elf/dl-load.c: Fix comment typo.
38481
38482 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38483
38484         * po/header.pot: Rename to...
38485         * po/pot.header: ... this.
38486         * po/Makefile: Use pot.header.
38487
38488 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38489             Maxim Kuvyrkov  <maxim@kugelworks.com>
38490
38491         [BZ #16394]
38492         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38493         SRC and DEST against LEN.
38494
38495 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38496
38497         [BZ #16414]
38498         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38499         implementation.
38500         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38501
38502 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38503
38504         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38505
38506 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38507
38508         [BZ #16408]
38509         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38510         for large positive arguments.
38511
38512 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38513
38514         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38515
38516         * math/auto-libm-test-in: Mark various tests with
38517         xfail-rounding:ldbl-128ibm.
38518         * math/auto-libm-test-out: Regenerated.
38519
38520         [BZ #16407]
38521         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38522         Increase overflow threshold.
38523
38524 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38525
38526         [BZ #14286]
38527         * stdio-common/vfprintf.c: Check for integer overflow.
38528
38529 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38530
38531         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38532         the first argument and return value of __tls_get_addr_internal.
38533
38534 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38535
38536         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38537         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38538
38539 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38540
38541         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38542         * sysdeps/s390/rtld-global-offsets.sym: New file.
38543         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38544         GLIBC_2.19 symbol.
38545         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38546         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38547         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38548         ... this.
38549         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38550         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38551         ... this.
38552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38553         Regenerate.
38554         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38555         Regenerate.
38556         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38557         halfs of GPRs for high_gprs contexts.
38558         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38559         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38560         field.
38561         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38562         uc_flags field.
38563         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38564         64 bit versions:
38565         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38566         for high GPRs (uc_high_gprs) and for future extensions
38567         (__reserved).
38568         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38569         for future extensions (__reserved).
38570         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38571         64 bit versions:
38572         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38573         SC_HIGHGPRS offset definition.
38574         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38575         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38576
38577         * Versions.def: Add GLIBC_2.19 for libpthread.
38578         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38579         siglongjmp for libpthread with GLIBC_2.19 symver.
38580         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38581         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38582         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38583         * sysdeps/s390/__longjmp.c: New file.
38584         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38585         * sysdeps/s390/longjmp.c: New file.
38586         * sysdeps/s390/setjmp.S: New file.
38587         * sysdeps/s390/sigjmp.S: New file.
38588         * sysdeps/s390/v1-longjmp.c: New file.
38589         * sysdeps/s390/v1-setjmp.h: New file.
38590         * sysdeps/s390/v1-sigjmp.c: New file.
38591         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38592         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38593         GLIBC_2.19 version.
38594         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38595         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38596         versioned symbols for ____longjmp_chk.
38597         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38598         Likewise.
38599         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38600         Regenerate.
38601         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38602         Regenerate.
38603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38604         Regenerate.
38605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38606         Regenerate.
38607         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38608         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38609         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38610         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38611         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38612         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38613         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38614         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38615         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38616         * sysdeps/s390/rtld-__longjmp.c: New file.
38617         * sysdeps/s390/rtld-setjmp.S: New file.
38618
38619 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38620
38621         [BZ #16400]
38622         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38623         Return -__logl (x) for small positive arguments without evaluating
38624         a polynomial.
38625
38626 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38627
38628         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38629         Rename to ...
38630         (__ptrace_peeksiginfo_args): ... this.
38631         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38632         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38633         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38634
38635 2014-01-06  Allan McRae  <allan@archlinux.org>
38636
38637         * inet/netinet/in.h: Fix typo in comment.
38638
38639 2014-01-05  Andreas Jaeger  <aj@suse.de>
38640
38641         * sysdeps/i386/fpu/libm-test-ulps: Update.
38642
38643 2014-01-05  Allan McRae  <allan@archlinux.org>
38644
38645         * po/libc.pot: Regenerated.
38646
38647         * malloc/memusagestat.c: Fix gettext call formatting.
38648
38649 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38650
38651         * nscd/nscd.c: Improve usage() output.
38652
38653 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38654
38655         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38656         * sysdeps/unix/sysv/linux/configure: Regenerated.
38657         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38658         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38659
38660 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38661
38662         [BZ #16390]
38663         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38664         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38665
38666 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38667
38668         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38669         extra tokens at end of #undef directive.
38670         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38671         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38672         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38673
38674 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38675
38676         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38677
38678         * math/auto-libm-test-in: Mark various tests with
38679         xfail-rounding:ldbl-128ibm.
38680         * math/auto-libm-test-out: Regenerated.
38681
38682 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38683
38684         [BZ #16386]
38685         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38686         numbers with subnormal high part when calculating exponent.
38687
38688         [BZ #16385]
38689         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38690         fabs.
38691
38692         [BZ #16384]
38693         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38694         M_LN2l.
38695         (__ieee754_acoshl): Use __log1pl not __log1p.
38696
38697 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38698
38699         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38700         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38701         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38702         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38703         (reused_arena, arena_get2): Convert to GNU style.
38704         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38705         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38706         (memalign_check, __malloc_set_state): Likewise.
38707         * malloc/mallocbug.c (main): Likewise.
38708         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38709         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38710         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38711         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38712         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38713         (__posix_memalign, malloc_info): Likewise.
38714         * malloc/malloc.h: Likewise.
38715         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38716         (mallochook, memalignhook, reallochook, mabort): Likewise.
38717         * malloc/mcheck.h: Likewise.
38718         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38719         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38720         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38721         * malloc/morecore.c (__default_morecore): Likewise.
38722         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38723         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38724         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38725         (print_and_abort): Likewise.
38726         * malloc/obstack.h: Likewise.
38727         * malloc/set-freeres.c (__libc_freeres): Likewise.
38728         * malloc/tst-mallocstate.c (main): Likewise.
38729         * malloc/tst-mtrace.c (main): Likewise.
38730         * malloc/tst-realloc.c (do_test): Likewise.
38731
38732 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38733
38734         [BZ #16366]
38735         * nscd/netgroupcache.c (do_notfound): New function.
38736         (addgetnetgrentX): Use it.
38737
38738         [BZ # 16365]
38739         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38740         NSS_STATUS_NOTFOUND.
38741
38742 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38743
38744         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38746
38747 2014-01-01  Allan McRae  <allan@archlinux.org>
38748
38749         * scripts/update-copyrights: Update configure input file suffix.
38750
38751         * NEWS: Update copyright year.
38752         * catgets/gencat.c: Likewise.
38753         * csu/version.c: Likewise.
38754         * debug/catchsegv.sh: Likewise.
38755         * debug/pcprofiledump.c: Likewise.
38756         * debug/xtrace.sh: Likewise.
38757         * elf/ldconfig.c: Likewise.
38758         * elf/ldd.bash.in: Likewise.
38759         * elf/pldd.c: Likewise.
38760         * elf/sotruss.ksh: Likewise.
38761         * elf/sprof.c: Likewise.
38762         * iconv/iconv_prog.c: Likewise.
38763         * iconv/iconvconfig.c: Likewise.
38764         * locale/programs/locale.c: Likewise.
38765         * locale/programs/localedef.c: Likewise.
38766         * login/programs/pt_chown.c: Likewise.
38767         * malloc/memusage.sh: Likewise.
38768         * malloc/memusagestat.c: Likewise.
38769         * malloc/mtrace.pl: Likewise.
38770         * manual/libc.texinfo: Likewise.
38771         * nscd/nscd.c: Likewise.
38772         * nss/getent.c: Likewise.
38773         * nss/makedb.c: Likewise.
38774         * posix/getconf.c: Likewise.
38775         * scripts/test-installation.pl: Likewise.
38776
38777         * All files with FSF copyright notices: Update copyright dates
38778         using scripts/update-copyrights.
38779         * intl/plural.c: Regenerated.
38780         * locale/programs/charmap-kw.h: Likewise.
38781         * locale/programs/locfile-kw.h: Likewise.
38782
38783 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
38784
38785         * sysdeps/unix/sysv/linux/configure: Regenerated.
38786         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
38787         the linux/fanotify.h header.
38788         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
38789         HAVE_LINUX_FANOTIFY_H is defined.
38790
38791 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
38792
38793         * benchtests/cos-inputs: New inputs.
38794         * benchtests/sin-inputs: Likewise.
38795
38796         * benchtests/atan-inputs: New inputs. Fix name of multiple
38797         precision fallback inputs.
38798
38799         * benchtests/atanh-inputs: New inputs.
38800         * benchtests/tanh-inputs: Likewise.
38801
38802         * benchtests/acosh-inputs: New inputs.
38803         * benchtests/asinh-inputs: Likewise.
38804
38805         * benchtests/cosh-inputs: New inputs.
38806         * benchtests/sinh-inputs: Likewise.
38807
38808         * benchtests/acos-inputs: Add more inputs.
38809         * benchtests/asin-inputs: Likewise.
38810
38811 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
38812
38813         [BZ #16375]
38814         * manual/arith.texi: Fix spelling.
38815         * manual/charset.texi: Likewise.
38816         * manual/errno.texi: Likewise.
38817         * manual/filesys.texi: Likewise.
38818         * manual/lang.texi: Likewise.
38819         * manual/llio.texi: Likewise.
38820         * manual/locale.texi: Likewise.
38821         * manual/message.texi: Likewise.
38822         * manual/resource.texi: Likewise.
38823         * manual/search.texi: Likewise.
38824         * manual/setjmp.texi: Likewise.
38825         * manual/stdio.texi: Likewise.
38826         * manual/string.texi: Likewise.
38827         * manual/sysinfo.texi: Likewise.
38828         * manual/time.texi: Likewise.
38829
38830 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
38831
38832         * po/sl.po: New file.
38833
38834 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
38835
38836         * .gitignore: Add core/.gdbinit/.gdb_history.
38837
38838 2013-12-27  Allan McRae  <allan@archlinux.org>
38839
38840         [BZ #16369]
38841         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
38842         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
38843
38844 2013-12-24  Brooks Moses  <bmoses@google.com>
38845
38846         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
38847         all compilers that claim C++98 compliance, not just GCC.
38848         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
38849         Likewise.
38850
38851 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38852
38853         * NEWS: Restore accidentally deleted bug-fix entries.
38854
38855 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38856             Ondřej Bílka  <neleai@seznam.cz>
38857
38858         [BZ #15073]
38859         * malloc/malloc.c (_int_free): Perform sanity check only if we
38860         have_lock.
38861
38862 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
38863
38864         [BZ #12986]
38865         * manual/stdio.texi (String Input Conversions): Clarify that character
38866         classes are not supported.
38867
38868 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38869
38870         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38871
38872 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
38873
38874         [BZ #16337]
38875         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38876         Calculate results for small negative arguments directly rather
38877         than using reflection formula with special underflow handling.
38878
38879         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
38880         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
38881         sysdeps/unix/bsd/bsd4.4/syscalls.list.
38882         (fchflags): Likewise.
38883         (revoke): Likewise.
38884         (setlogin): Likewise.
38885         (sigaltstack): Likewise.
38886         (wait4): Likewise.
38887         (sigblock): Remove.
38888         (sigsetmask): Likewise.
38889         (wait3): Likewise.
38890         (waitpid): Likewise.
38891         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
38892         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
38893         file.
38894         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
38895         * sysdeps/unix/bsd/Makefile: ... here.
38896         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
38897         * sysdeps/unix/bsd/Versions: ... here.
38898         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
38899         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
38900         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
38901         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
38902         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
38903         * sysdeps/unix/bsd/sigblock.c: ... here.
38904         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
38905         * sysdeps/unix/bsd/sigsetmask.c: ... here.
38906         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
38907         * sysdeps/unix/bsd/sigvec.c: ... here.
38908         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
38909         * sysdeps/unix/bsd/tcdrain.c: ... here.
38910         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
38911         * sysdeps/unix/bsd/tcgetattr.c: ... here.
38912         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
38913         * sysdeps/unix/bsd/tcsetattr.c: ... here.
38914         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
38915         * sysdeps/unix/bsd/wait.c: ... here.
38916         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
38917         * sysdeps/unix/bsd/wait3.c: ... here.
38918         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
38919         * sysdeps/unix/bsd/waitpid.c: ... here.
38920
38921 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
38922
38923         [BZ #16356]
38924         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
38925         round-to-nearest for [!USE_AS_EXPM1L].
38926         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
38927         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
38928         more tests of exp and exp10.  Expect some exp10 tests to miss
38929         exceptions or fail in directed rounding modes.
38930         * math/auto-libm-test-out: Regenerated.
38931         * math/libm-test.inc (exp10_tonearest_test_data): New array.
38932         (exp10_test_tonearest): New function.
38933         (exp10_towardzero_test_data): New array.
38934         (exp10_test_towardzero): New function.
38935         (exp10_downward_test_data): New array.
38936         (exp10_test_downward): New function.
38937         (exp10_upward_test_data): New array.
38938         (exp10_test_upward): New function.
38939         (main): Call the new functions.
38940         * sysdeps/i386/fpu/libm-test-ulps: Update.
38941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38942
38943 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
38944
38945         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
38946         asinh, atan, atan2, atanh, cbrt, cos and cosh.
38947         * math/auto-libm-test-out: Regenerated.
38948         * math/libm-test.inc (acosh_test_data): Add more tests.
38949         (atanh_test_data): Likewise.
38950         (ceil_test_data): Likewise.
38951         (copysign_test_data): Likewise.
38952         * sysdeps/i386/fpu/libm-test-ulps: Update.
38953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38954
38955         * timezone/checktab.awk: Update from tzcode 2013i.
38956         * timezone/private.h: Likewise.
38957         * timezone/scheck.c: Likewise.
38958         * timezone/tzfile.h: Likewise.
38959         * timezone/tzselect.ksh: Likewise.
38960         * timezone/zdump.c: Likewise.
38961         * timezone/zic.c: Likewise.
38962
38963         * math/auto-libm-test-in: Add tests of cpow.
38964         * math/auto-libm-test-out: Regenerated.
38965         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
38966         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38967         mpc_cc_c.
38968         (func_calc_desc): Add mpc_cc_c union field.
38969         (test_functions): Add cpow.
38970         (special_fill_2pi): New function.
38971         (special_real_inputs): Add 2pi.
38972         (calc_generic_results): Handle mpc_cc_c.
38973         * sysdeps/i386/fpu/libm-test-ulps: Update.
38974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38975
38976         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
38977         csqrt, ctan and ctanh.
38978         * math/auto-libm-test-out: Regenerated.
38979         * math/libm-test.inc (TEST_COND_x86_64): New macro.
38980         (TEST_COND_x86): Likewise.
38981         (ccos_test_data): Use AUTO_TESTS_c_c.
38982         (ccosh_test_data): Likewise.
38983         (cexp_test_data): Likewise.
38984         (clog_test_data): Likewise.
38985         (csqrt_test_data): Likewise.
38986         (ctan_test_data): Likewise.
38987         (ctan_tonearest_test_data): Likewise.
38988         (ctan_towardzero_test_data): Likewise.
38989         (ctan_downward_test_data): Likewise.
38990         (ctan_upward_test_data): Likewise.
38991         (ctanh_test_data): Likewise.
38992         (ctanh_tonearest_test_data): Likewise.
38993         (ctanh_towardzero_test_data): Likewise.
38994         (ctanh_downward_test_data): Likewise.
38995         (ctanh_upward_test_data): Likewise.
38996         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38997         mpc_c_c.
38998         (func_calc_desc): Add mpc_c_c union field.
38999         (FUNC_mpc_c_c): New macro.
39000         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39001         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39002         ctanh.
39003         (special_fill_min_subnorm_p120): New function.
39004         (special_real_inputs): Add min_subnorm_p120.
39005         (calc_generic_results): Handle mpc_c_c.
39006         * sysdeps/i386/fpu/libm-test-ulps: Update.
39007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39008
39009 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39010
39011         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39012         (do_sin_slow): New functions.
39013         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39014         (cslow2, csloww1, csloww2): Use the new functions.
39015
39016         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39017         Use M to change sign of result instead of X.  Assume X is
39018         positive.
39019         (csloww1): Likewise.
39020         (__sin): Adjust.
39021         (__cos): Adjust.
39022
39023         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39024         arguments A and DA.
39025         (__sin): Adjust.
39026         (__cos): Likewise.
39027
39028         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39029         (__cos): Likewise.
39030         (sloww1): Don't adjust sign of DX.
39031         (csloww1): Likewise.
39032         (sloww2): Use X directly and don't adjust sign of DX.
39033         (csloww2): Likewise.
39034
39035 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39036
39037         * math/auto-libm-test-in: Add tests of cabs and carg.
39038         * math/auto-libm-test-out: Regenerated.
39039         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39040         (carg_test_data): Likewise.
39041         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39042         mpc_c_f.
39043         (func_calc_desc): Add mpc_c_f union field.
39044         (test_functions): Add cabs and carg.
39045         (calc_generic_results): Handle mpc_c_f.
39046
39047         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39048         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39049         as a macro and a compat symbol.
39050         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39051         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39052         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39053         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39054         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39055         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39056         not use .hidden.
39057         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39058         Likewise.
39059         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39060         Likewise.
39061         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39062         Likewise.
39063         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39064         Likewise.
39065         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39066         Likewise.
39067         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39068         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39069         from GLIBC_2.3.2.
39070
39071 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39072
39073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39074
39075 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39076
39077         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39078         trailing whitespace removed.
39079         * scripts/config.guess: Update to version 2013-11-29.
39080         * scripts/config.sub: Update to version 2013-10-01.
39081
39082         * math/auto-libm-test-in: Add tests of sincos.
39083         * math/auto-libm-test-out: Regenerated.
39084         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39085         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39086         mpfr_f_11.
39087         (func_calc_desc): Add mpfr_f_11 union field.
39088         (test_functions): Add sincos.
39089         (calc_generic_results): Handle mpfr_f_11.
39090         * sysdeps/i386/fpu/libm-test-ulps: Update.
39091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39092
39093 2013-12-19  Andreas Schwab  <schwab@suse.de>
39094
39095         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39096         CALL_MCOUNT.
39097         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39098         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39099         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39100
39101 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39102
39103         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39104         * sysdeps/i386/fpu/libm-test-ulps: Update.
39105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39106
39107         [BZ #16293]
39108         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39109         round-to-nearest mode when using frndint.
39110         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39111         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39112         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39113         Likewise.
39114         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39115         sinh test to fail.
39116         * math/auto-libm-test-out: Regenerated.
39117         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39118         (TEST_COND_x86): Likewise.
39119         (expm1_tonearest_test_data): New array.
39120         (expm1_test_tonearest): New function.
39121         (expm1_towardzero_test_data): New array.
39122         (expm1_test_towardzero): New function.
39123         (expm1_downward_test_data): New array.
39124         (expm1_test_downward): New function.
39125         (expm1_upward_test_data): New array.
39126         (expm1_test_upward): New function.
39127         (main): Run the new test functions.
39128         * sysdeps/i386/fpu/libm-test-ulps: Update.
39129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39130
39131         * include/features.h: Update comment documenting feature test
39132         macros.  Mention _DEFAULT_SOURCE in comment.
39133         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39134         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39135         _BSD_SOURCE and _SVID_SOURCE.
39136         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39137         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39138         !_SVID_SOURCE]: Likewise.
39139         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39140         (__USE_POSIX_IMPLICITLY): Define.
39141         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39142         (_POSIX_SOURCE): Undefine and redefine.
39143         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39144         (_POSIX_C_SOURCE): Likewise.
39145         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39146         (Feature Test Macros): Update documentation of default features.
39147
39148 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39149
39150         * benchtests/Makefile: Add bench-strtok.
39151         * benchtests/bench-strtok.c: New file: strtok benchtest.
39152
39153 2013-12-19  Allan McRae  <allan@archlinux.org>
39154
39155         * manual/install.texi: Suppress menu for plain text output.
39156         * INSTALL: Regenerated.
39157
39158 2013-12-18  Brooks Moses  <bmoses@google.com>
39159
39160         [BZ #15846]
39161         * misc/getauxval.c: Include errno.h.
39162         (__getauxval): Set errno to ENOENT if the requested type is not
39163         found.
39164         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39165         don't declare with __attribute_const__.
39166         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39167         * manual/startup.texi: Document that getauxval sets errno.
39168
39169 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39170
39171         * math/auto-libm-test-in: Add tests of jn and yn.
39172         * math/auto-libm-test-out: Regenerated.
39173         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39174         (yn_test_data): Likewise.
39175         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39176         mpfr_if_f.
39177         (func_calc_desc): Add mpfr_if_f union field.
39178         (FUNC_mpfr_if_f): New macro.
39179         (test_functions): Add jn and yn.
39180         (calc_generic_results): Assert type of second input for
39181         mpfr_ff_f.  Handle mpfr_if_f.
39182         (output_for_one_input_case): Disable all checking for arguments
39183         fitting floating-point types in case of an integer argument.
39184         * sysdeps/i386/fpu/libm-test-ulps: Update.
39185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39186
39187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39188         Don't expect fegetround reference in libm.so.
39189
39190 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39191
39192         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39193         $(config-cflags-nofma).
39194
39195 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39196
39197         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39198         * math/auto-libm-test-out: Regenerated.
39199
39200         [BZ #16338]
39201         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39202         to determine exponent and adjust argument to have exponent of -1.
39203         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39204         log2.
39205         * math/auto-libm-test-out: Regenerated.
39206         * sysdeps/i386/fpu/libm-test-ulps: Update.
39207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39208
39209 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39210
39211         * manual/probes.texi: Remove cases when per-thread arenas are
39212         disabled.
39213
39214 2013-12-18  Andreas Schwab  <schwab@suse.de>
39215
39216         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39217         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39218         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39219         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39220         * sysdeps/i386/i686/multiarch/Makefile: Update.
39221         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39222
39223 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39224
39225         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39226         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39227
39228 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39229
39230         [BZ #15968]
39231         Support TZ transition times < 00:00:00.
39232         This is needed for version-3 tz-format files; it supports time
39233         stamps past 2037 for America/Godthab (the only entry in the tz
39234         database for which this change is relevant).
39235         * manual/time.texi (TZ Variable): Document transition times
39236         from -167:59:59 through -00:00:01.
39237         * time/tzset.c (tz_rule): Time of day is now signed.
39238         (__tzset_parse_tz): Parse negative time of day.
39239
39240         Document TZ transition times >= 25:00:00.
39241         * manual/time.texi (TZ Variable): Document transition times from
39242         25:00:00 through 167:59:59.  These are already supported, and this
39243         support will help with version-3 tz-format files.
39244
39245         * manual/time.texi (TZ Variable): Modernize North America example
39246         to reflect current (i.e., 2007-and-later) daylight saving rules.
39247
39248         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39249
39250 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39251
39252         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39253         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39255         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39256         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39257         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39258         * sysdeps/unix/bsd/clock.c: Likewise.
39259         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39260         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39261         * sysdeps/unix/bsd/init-posix.c: Likewise.
39262         * sysdeps/unix/bsd/poll.c: Likewise.
39263         * sysdeps/unix/bsd/ptsname.c: Likewise.
39264         * sysdeps/unix/bsd/seekdir.c: Likewise.
39265         * sysdeps/unix/bsd/setegid.c: Likewise.
39266         * sysdeps/unix/bsd/seteuid.c: Likewise.
39267         * sysdeps/unix/bsd/setgid.c: Likewise.
39268         * sysdeps/unix/bsd/setrgid.c: Likewise.
39269         * sysdeps/unix/bsd/setruid.c: Likewise.
39270         * sysdeps/unix/bsd/setsid.c: Likewise.
39271         * sysdeps/unix/bsd/setuid.c: Likewise.
39272         * sysdeps/unix/bsd/sigaction.c: Likewise.
39273         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39274         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39275         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39276         * sysdeps/unix/bsd/telldir.c: Likewise.
39277         * sysdeps/unix/bsd/times.c: Likewise.
39278         * sysdeps/unix/bsd/usleep.c: Likewise.
39279
39280         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39281         ($(objpfx)libbsd-compat.a): Remove rule.
39282
39283         * include/features.h (__FAVOR_BSD): Do not define.
39284         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39285         features conflicting with POSIX.
39286         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39287         (_BSD_SOURCE): Remove description of not being a subset of other
39288         feature test macros.
39289         * manual/job.texi (getpgrp): Do not document BSD version.
39290         (getpgid): Do not document by reference to BSD getpgrp.
39291         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39292         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39293         * signal/signal.h [__FAVOR_BSD]: Likewise.
39294         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39295         instead of making contents conditional on [__FAVOR_BSD].
39296         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39297
39298 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39299
39300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39301
39302 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39303
39304         [BZ #16314]
39305         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39306         values below 2**-450, not 2**-500.
39307         * math/auto-libm-test-in: Don't allow spurious underflow from
39308         hypot.
39309         * math/auto-libm-test-out: Regenerated.
39310
39311         [BZ #16316]
39312         [BZ #16330]
39313         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39314         values of ha and hb and sort them after adjusting subnormal
39315         arguments.
39316         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39317         Likewise.
39318         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39319         values of ea and eb and sort them after adjusting subnormal
39320         arguments.
39321         * math/auto-libm-test-in: Do not expect some hypot tests of
39322         subnormals to fail.  Add more hypot tests.
39323         * math/auto-libm-test-out: Regenerated.
39324
39325 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39326
39327         [BZ #13304]
39328         * sysdeps/sh/s_fma.c: New file.
39329         * sysdeps/sh/s_fmaf.c: New file.
39330         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39331         version.
39332         * sysdeps/sh/Implies: Add sh/soft-fp.
39333
39334 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39335
39336         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39337         level of indirection to members `objname', `errstring', `malloced'.
39338         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39339         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39340         it as the __longjmp argument (just pass 1 instead).
39341         (_dl_catch_error): Initialize C with argument pointers and address of
39342         volatile local ERRCODE rather than copying values out of C at return.
39343
39344 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39345
39346         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39347         * math/auto-libm-test-out: Regenerated.
39348         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39349         (hypot_test_data): Likewise.
39350         (pow_test_data): Likewise.
39351         (pow_tonearest_test_data): Likewise.
39352         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39353         mpfr_ff_f.
39354         (func_calc_desc): Add mpfr_ff_f union field.
39355         (FUNC_mpfr_ff_f): New macro.
39356         (test_functions): Add atan2, hypot and pow.
39357         (special_fill_min): New function.
39358         (special_fill_minus_min): Likewise.
39359         (special_fill_min_subnorm): Likewise.
39360         (special_fill_minus_min_subnorm): Likewise.
39361         (special_real_inputs): Add min, -min, min_subnorm and
39362         -min_subnorm.
39363         (calc_generic_results): Handle mpfr_ff_f.
39364         * sysdeps/i386/fpu/libm-test-ulps: Update.
39365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39366
39367 2013-12-16  Will Newton  <will.newton@linaro.org>
39368
39369         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39370         (Aligned Memory Blocks): Add documentation for aligned_alloc
39371         and suggest it as an alternative to posix_memalign.
39372         (Hooks for Malloc): Document __memalign_hook is also called
39373         for aligned_alloc.  (Summary of Malloc): Add summary for
39374         aligned alloc.  Document __memalign_hook is also called
39375         for aligned_alloc.
39376
39377 2013-12-16  Will Newton  <will.newton@linaro.org>
39378
39379         * manual/memory.texi (Malloc Examples): Clarify default
39380         alignment documentation.  Suggest posix_memalign rather
39381         than memalign or valloc.
39382         (Aligned Memory Blocks): Remove suggestion to use memalign
39383         or valloc.  Remove obsolete comment about BSD.
39384         Document memalign errno values and mark the function obsolete.
39385         Document posix_memalign returned error codes.  Mark valloc
39386         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39387         called for posix_memalign and valloc.
39388         (Summary of Malloc): Add posix_memalign to function summary.
39389         __memalign_hook is also called for posix_memalign and valloc.
39390
39391 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39392
39393         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39394         TAYLOR_SIN.
39395         (__sin): Adjust.
39396         (__cos): Likewise.
39397         (sloww): Use mynumber union.  Expand ternary operator into
39398         if-else statements.
39399         (cslow): use mynumber union.
39400
39401 2013-12-16  Allan McRae  <allan@archlinux.org>
39402
39403         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39404         * configure: Regenerated.
39405
39406         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39407
39408         [BZ #14120]
39409         * configure.ac: Added --enable-maintainer-mode. Check for
39410         autoconf when enabled.
39411         * configure: Regenerated.
39412
39413         * nscd/nscd.service: New file.
39414         * nscd/nscd.tmpfiles: New file.
39415
39416 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39417
39418         [BZ #12100]
39419         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39420         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39421         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39422         (strstr): Add __strstr_sse2_unaligned ifunc.
39423         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39424         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39425         (strcasestr): Remove __strcasestr_sse42 ifunc.
39426         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39427         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39428         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39429
39430 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39431
39432         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39433         * sysdeps/sh/bits/fenv.h: ... here.
39434         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39435
39436 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39437
39438         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39439
39440         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39441         hypotf multiarch implementations.
39442         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39443         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39444         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39445         multiarch hypot for PPC64.
39446         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39447         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39448         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39449         multiarch hypotf for PPC64.
39450
39451         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39452         modff multiarch implementations.
39453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39456         multiarch modf for PPC64.
39457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39460         multiarch modff for PPC64.
39461
39462         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39463         and logl multiarch implementations.
39464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39467         multiarch logb for PPC64.
39468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39471         multiarch logb for PPC64.
39472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39473         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39475         multiarch logb for PPC64.
39476
39477         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39478         isinff multiarch implementation.
39479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39480         file.
39481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39483         multiarch isinf for PPC64.
39484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39485         file.
39486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39487         multiarch isinff for PPC64.
39488
39489         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39490         finitef multiarch implementation.
39491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39492         file.
39493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39495         multiarch finite for PPC64.
39496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39497         file.
39498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39499         multiarch finitef for PPC64.
39500
39501         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39502         lrint multiarch implementation.
39503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39504         file.
39505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39507         multiarch llrint for PPC64.
39508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39509         multiarch lrint for PPC64.
39510
39511         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39512         copysignf multiarch implementation.
39513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39514         file.
39515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39516         file.
39517         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39518         multiarch copysign for PPC64.
39519         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39520         multiarch copysignf for PPC64.
39521
39522         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39523         multiarch implementation.
39524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39525         file.
39526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39527         file.
39528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39529         file.
39530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39531         file.
39532         multiarch llround for PPC64.
39533         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39534         multiarch trunc for PPC64.
39535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39536         multiarch truncf for PPC64.
39537
39538         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39539         multiarch implementation.
39540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39541         file.
39542         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39543         file.
39544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39545         file.
39546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39547         file.
39548         multiarch llround for PPC64.
39549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39550         multiarch round for PPC64.
39551         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39552         multiarch roundf for PPC64.
39553
39554         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39555         multiarch implementation.
39556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39557         file.
39558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39559         file.
39560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39561         file.
39562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39563         file.
39564         multiarch llround for PPC64.
39565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39566         multiarch floor for PPC64.
39567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39568         multiarch floorf for PPC64.
39569
39570         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39571         multiarch implementation.
39572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39573         file.
39574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39575         file.
39576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39577         file.
39578         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39579         file.
39580         multiarch llround for PPC64.
39581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39582         multiarch ceil for PPC64.
39583         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39584         multiarch ceilf for PPC64.
39585
39586         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39587         multiarch implementation.
39588         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39589         file.
39590         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39591         file.
39592         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39593         file.
39594         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39595         multiarch llround for PPC64.
39596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39597         multiarch lround for PPC64.
39598
39599         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39600         multiarch implementation.
39601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39604         file.
39605         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39606         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39607         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39608         multiarch isnan for PPC64.
39609         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39610         multiarch isnanf for PPC64.
39611
39612         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39613         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39614         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39615         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39616         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39618
39619         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39620         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39621         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39622         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39623
39624         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39625         multiarch implementations.
39626         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39627         (__libc_ifunc_impl_list): Likewise.
39628         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39629         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39630         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39631         multiarch stpcpy for PPC64.
39632
39633         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39634         multiarch implementations.
39635         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39636         (__libc_ifunc_impl_list): Likewise.
39637         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39638         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39639         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39640         multiarch strcpy for PPC64.
39641
39642         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39643         redefine function name.
39644         (_wordcopy_fwd_dest_aligned): Likewise.
39645         (_wordcopy_bwd_aligned): Likewise.
39646         (_wordcopy_bwd_dest_aligned): Likewise.
39647         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39648         multiarch implementations.
39649         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39650         (__libc_ifunc_impl_list): Likewise.
39651         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39652         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39653         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39654         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39655         multiarch wcscpy for PPC64.
39656
39657         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39658         multiarch implementations.
39659         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39660         (__libc_ifunc_impl_list): Likewise.
39661         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39662         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39663         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39664         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39665         multiarch wcscpy for PPC64.
39666
39667         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39668         multiarch implementations.
39669         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39670         (__libc_ifunc_impl_list): Likewise.
39671         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39672         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39673         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39674         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39675         multiarch wcsrchr for PPC64.
39676
39677         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39678         multiarch implementations.
39679         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39680         (__libc_ifunc_impl_list): Likewise.
39681         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39682         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39683         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39684         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39685         multiarch wcschr for PPC64.
39686
39687         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39688         multiarch implementations.
39689         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39690         (__libc_ifunc_impl_list): Likewise.
39691         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39692         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39693         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39694         multiarch strchrnul for PPC64.
39695
39696         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39697         implementations.
39698         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39699         (__libc_ifunc_impl_list): Likewise.
39700         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39701         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39702         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39703         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39704         strchr for PPC64.
39705
39706         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39707         implementations.
39708         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39709         (__libc_ifunc_impl_list): Likewise.
39710         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39711         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39712         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39713         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39714         strncmp for PPC64.
39715
39716         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39717         multiarch implementations.
39718         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39719         (__libc_ifunc_impl_list): Likewise.
39720         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39721         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39722         strncasecmp for PPC64.
39723         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39724         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39725         multiarch strncasecmp_l for PPC64.
39726
39727         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39728         multiarch implementations.
39729         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39730         (__libc_ifunc_impl_list): Likewise.
39731         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39732         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39733         multiarch strcasecmp for PPC64.
39734         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39735         file.
39736         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39737         multiarch strcasecmp_l for PPC64.
39738
39739         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39740         implementations.
39741         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39742         (__libc_ifunc_impl_list): Likewise.
39743         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39744         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39745         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39746         strnlen for PPC64.
39747
39748         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39749         implementations.
39750         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39751         (__libc_ifunc_impl_list): Likewise.
39752         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39753         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39754         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39755         strlen for PPC64.
39756
39757         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39758         implementations.
39759         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39760         (__libc_ifunc_impl_list): Likewise.
39761         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39762         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39763         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
39764         rawmemrchr for PPC64.
39765
39766         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
39767         implementation.
39768         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39769         (__libc_ifunc_impl_list): Likewise.
39770         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
39771         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
39772         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
39773         memrchr for PPC64.
39774
39775         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
39776         implementation.
39777         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39778         (__libc_ifunc_impl_list): Likewise.
39779         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
39780         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
39781         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
39782         memchr for PPC64.
39783
39784         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
39785         implementation.
39786         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39787         (__libc_ifunc_impl_list): Likewise.
39788         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
39789         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
39790         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
39791         mempcpy for PPC64.
39792
39793         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
39794         avoid cretion of __bzero symbol.
39795         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
39796         Likewise.
39797         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
39798         Likewise.
39799         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
39800         Likewise.
39801         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
39802         multiarch implementations.
39803         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39804         (__libc_ifunc_impl_list): Likewise.
39805         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
39806         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
39807         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
39808         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
39809         bzero for PPC32.
39810         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
39811         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
39812         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
39813         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
39814         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
39815         memset for PPC64.
39816         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
39817
39818         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
39819         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
39820         implementations.
39821         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39822         (__libc_ifunc_impl_list): Likewise.
39823         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
39824         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
39825         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
39826         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
39827         memcmp for PPC64.
39828
39829         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
39830         multiarch for POWER/PPC64.
39831         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
39832         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
39833         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
39834         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
39835         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
39836         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
39837         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
39838         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
39839         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
39840         memcpy for PPC64.
39841
39842         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
39843         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
39844         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
39845         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
39846         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
39847         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
39848         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
39849         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
39850         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
39851         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
39852         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
39853         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
39854         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
39855         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
39856         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
39857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
39858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
39859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
39860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
39861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
39862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
39863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
39864
39865 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39866
39867         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
39868
39869 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39870
39871         * benchtests/Makefile (bench): Add exp2 and log2.
39872         (LDLIBS-bench-exp2): Add -lm.
39873         (LDLIBS-bench-log2): Likewise.
39874         * benchtests/exp2-inputs: New inputs file.
39875         * benchtests/log2-inputs: New inputs file.
39876         * benchtests/log-inputs: Add new inputs.
39877         * benchtests/tan-inputs: Likewise.
39878
39879 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
39880
39881         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
39882         definition...
39883         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
39884         (csloww2): ... from here.
39885
39886         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
39887         instead of structures.
39888         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
39889         (POLYNOMIAL): Likewise.
39890         (TAYLOR_SLOW): Likewise.
39891         (__sin): Likewise.
39892         (__cos): Likewise.
39893         (slow1): Likewise.
39894         (slow2): Likewise.
39895         (sloww): Likewise.
39896         (sloww1); Likewise.
39897         (sloww2): Likewise.
39898         (bsloww1): Likewise.
39899         (bsloww2): Likewise.
39900         (cslow2): Likewise.
39901         (csloww): Likewise.
39902         (csloww1): Likewise.
39903         (csloww2): Likewise.
39904
39905 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
39906
39907         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
39908         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
39909         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
39910         * malloc/hooks.c (realloc_check): Likewise.
39911
39912         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
39913         * malloc/arena.c: Remove PER_THREAD conditional.
39914         [!PER_THREAD]: Remove code.
39915         (ptmalloc_unlock_all2): Likewise.
39916         (ptmalloc_init): Likewise.
39917         (_int_new_arena): Likewise.
39918         (arena_get2): Likewise.
39919         * malloc/hooks.c (__malloc_get_state): Likewise.
39920         (__malloc_set_state): Likewise.
39921         * malloc/malloc.c: Likewise.
39922         (struct malloc_state): Likewise.
39923         (struct malloc_par): Likewise.
39924         (__libc_realloc): Likewise.
39925         (__libc_mallopt): Likewise.
39926
39927 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39928
39929         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
39930
39931 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
39932
39933         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
39934         macro to a function.  Check for zero perturb_byte.
39935         (_int_malloc, _int_free): Remove zero perturb_byte checks.
39936
39937         * malloc/malloc.c: (force_reg): Remove.
39938         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
39939         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
39940         force_reg by atomic_forced_read.
39941         * malloc/arena.c (ptmalloc_init): Likewise.
39942         * malloc/hooks.c (top_check): Likewise.
39943
39944 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39945
39946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39947
39948 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
39949
39950         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39951
39952 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
39953
39954         * math/auto-libm-test-in: Add tests of lgamma.
39955         * math/auto-libm-test-out: Regenerated.
39956         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
39957         (M_LOG_2_SQRT_PIl): Likewise.
39958         (lgamma_test_data): Use AUTO_TESTS_f_f1.
39959         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39960         mpfr_f_f1.
39961         (func_calc_desc): Add mpfr_f_f1 union field.
39962         (ARGS1): New macro.
39963         (ARGS2): Likewise.
39964         (ARGS3): Likewise.
39965         (ARGS4): Likewise.
39966         (RET1): Likewise.
39967         (RET2): Likewise.
39968         (CALC): Likewise.
39969         (FUNC): Likewise.
39970         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
39971         (test_functions): Add lgamma.
39972         (calc_generic_results): Handle mpfr_f_f1.
39973         * sysdeps/i386/fpu/libm-test-ulps: Update.
39974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39975
39976 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39977
39978         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
39979         __mpn_add_n for PowerPC64/POWER7.
39980         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
39981         __mpn_sub_n for PowerPC64/POWER7.
39982
39983         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
39984         __mpn_addmul_1 for PowerPC64.
39985         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
39986         __mpn_submul_1 for PowerPC64.
39987         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
39988         for PowerPC64.
39989         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
39990         for PowerPC64.
39991
39992 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
39993
39994         [BZ #15089]
39995         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
39996
39997 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39998
39999         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40000
40001         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40002         add multiarch folders.
40003         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40004         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40005         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40006         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40007         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40008         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40009         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40010         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40011         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40012         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40013         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40020
40021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40022         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40024         New file.
40025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40026         New file.
40027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40028         multiarch __ieee754_hypot for PowerPC32.
40029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40030         New file.
40031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40032         New file.
40033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40034         multiarch __ieee754_hypotf for PowerPC32.
40035
40036         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40037         long_double_symbol only if __logbl is defined.
40038         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40039         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40040         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40041         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40042         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40043         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40044         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40045         path for implementation.
40046         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40047         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40049         logb, and logbl multiarch implementations for PowerPC32.
40050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40051         file.
40052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40053         file.
40054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40055         multiarch logb for PowerPC32.
40056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40057         file.
40058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40059         file.
40060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40061         multiarch logbf for PowerPC32.
40062         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40064         file.
40065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40066         multiarch logbl implementation for PowerPC32.
40067
40068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40069         and modff multiarch implementations.
40070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40071         New file.
40072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40073         New file.
40074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40075         multiarch modf for PowerPC32.
40076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40077         New file.
40078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40079         New file.
40080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40081         multiarch modff for PowerPC32.
40082
40083         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40084         and lrintf multiarch implementations.
40085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40086         New file.
40087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40088         New file.
40089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40090         multiarch lrint for PowerPC32.
40091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40092         file: multiarch lrintf for PowerPC32.
40093
40094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40095         and lroundf multiarch implementations.
40096         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40097         New file.
40098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40099         New file.
40100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40101         New file.
40102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40103         multiarch lround for PowerPC32.
40104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40105         file: multiarch lroundf for PowerPC32.
40106
40107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40108         copysign and copysignf multiarch implementations.
40109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40110         New file.
40111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40112         New file.
40113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40114         file: multiarch copysign for PowerPC32.
40115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40116         file: multiarch copysignf for PowerPC32.
40117
40118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40119         and truncf multiarch implementations.
40120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40121         New file.
40122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40123         file.
40124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40125         multiarch trunc for PowerPC32.
40126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40127         New file.
40128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40129         New file.
40130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40131         multiarch truncf for PowerPC32.
40132
40133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40134         and roundf multiarch implementations.
40135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40136         New file.
40137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40138         file.
40139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40140         multiarch round for PowerPC32.
40141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40142         New file.
40143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40144         New file.
40145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40146         multiarch roundf for PowerPC32.
40147
40148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40149         and floorf multiarch implementations.
40150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40151         New file.
40152         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40153         file.
40154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40155         multiarch floor for PowerPC32.
40156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40157         New file.
40158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40159         New file.
40160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40161         multiarch floorf for PowerPC32.
40162
40163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40164         and ceilf multiarch implementations.
40165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40166         New file.
40167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40168         file.
40169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40170         multiarch ceil for PowerPC32.
40171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40172         New file.
40173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40174         file.
40175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40176         multiarch ceilf for PowerPC32.
40177
40178         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40179         is defined.
40180         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40181         FINITEF is defined.
40182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40183         and finitef multiarch implementations.
40184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40185         New file.
40186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40187         file.
40188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40189         multiarch finite for PowerPC32.
40190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40191         New file.
40192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40193         file: multiarch finitef for PowerPC32.
40194
40195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40196         and isinff multiarch implementations.
40197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40198         file.
40199         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40200         file.
40201         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40202         multiarch isinf for PowerPC32.
40203         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40204         New file.
40205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40206         multiarch isinff for PowerPC32.
40207
40208         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40209         alias when __isnan is defined.
40210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40211         and isnanf multiarch implementations.
40212         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40213         file.
40214         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40215         file.
40216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40217         file.
40218         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40219         file.
40220         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40221         multiarch isnan for PowerPC32.
40222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40223         New file.
40224         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40225         New file.
40226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40227         multiarch isnanf for PowerPC32.
40228
40229         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40230         and sqrtf multiarch implementations.
40231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40232         file.
40233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40234         file.
40235         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40236         multiarch sqrt for PowerPC32.
40237         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40238         file.
40239         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40240         file.
40241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40242         multiarch sqrtf for PowerPC32.
40243
40244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40245         and llroundf multiarch implementations.
40246         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40247         New file.
40248         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40249         New file.
40250         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40251         New file.
40252         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40253         file: multiarch llround for PowerPC32.
40254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40255         file: multiarch llroundf for PowerPC32.
40256
40257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40258         multiarch PowerPC32 fpu implementations.
40259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40260         New file.
40261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40262         New file.
40263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40264         multiarch llrint for PowerPC32.
40265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40266         New file.
40267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40268         New file.
40269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40270         file.
40271
40272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40273
40274         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40275         file.
40276         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40277         file.
40278         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40279         file.
40280         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40281         multiarch wordcopy for PPC32.
40282         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40283         wordcopy objects.
40284         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40285         (__libc_ifunc_impl_list): Likewise.
40286         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40287         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40288         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40289         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40290         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40291         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40292
40293         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40294         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40295         file.
40296         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40297         file.
40298         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40299         file.
40300         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40301         multiarch wcscpy for PPC32.
40302         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40303         multiarch objects.
40304         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40305         (__libc_ifunc_impl_list): Likewise.
40306         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40307         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40308         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40309         sysdeps/powerpc/power6/wcscpy.c.
40310
40311         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40312         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40313         file.
40314         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40315         file.
40316         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40317         file.
40318         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40319         multiarch wcsrchr for PPC32.
40320         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40321         multiarch objects.
40322         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40323         (__libc_ifunc_impl_list): Likewise.
40324         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40325         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40326         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40327         sysdeps/powerpc/power6/wcsrchr.c.
40328
40329         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40330         file.
40331         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40332         file.
40333         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40334         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40335         multiarch wcschr for PPc32.
40336         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40337         multiarch objects.
40338         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40339         (__libc_ifunc_impl_list): Likewise.
40340         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40341         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40342         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40343         sysdeps/powerpc/power6/wcschr.c.
40344
40345         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40346         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40347         file.
40348         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40349         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40350         file: multiarch strchr for PPC32.
40351         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40352         multiarch objects.
40353         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40354         (__libc_ifunc_impl_list): Likewise.
40355
40356         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40357         name.
40358         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40359         file.
40360         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40361         file.
40362         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40363         multiarch strchrnul for PPC32.
40364         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40365         multiarch objects.
40366         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40367         (__libc_ifunc_impl_list): Likewise.
40368
40369         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40370         file.
40371         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40372         multiarch strncasecmp for PPC32.
40373         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40374         file.
40375         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40376         multiarch strncasecmp_l for PPC32.
40377         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40378         strncasecmp multiarch objects.
40379         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40380         (__libc_ifunc_impl_list): Likewise.
40381
40382         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40383         file.
40384         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40385         multiarch strncasecmp for PPC32.
40386         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40387         New file.
40388         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40389         multiarch strcasecmp_l for PPC32.
40390         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40391         multiarch objects.
40392         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40393         (__libc_ifunc_impl_list): Likewise.
40394
40395         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40396         file.
40397         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40398         file.
40399         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40400         multiarch strncmp for PPC32.
40401         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40402         multiarch objects.
40403         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40404         (__libc_ifunc_impl_list): Likewise.
40405
40406         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40407         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40408         file.
40409         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40410         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40411         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40412         multiarch objects.
40413         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40414         (__libc_ifunc_impl_list): Likewise.
40415
40416         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40417         file.
40418         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40419         file.
40420         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40421         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40422         multiarch objects.
40423         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40424         (__libc_ifunc_impl_list): Likewise.
40425
40426         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40427         file.
40428         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40429         file.
40430         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40431         multiarch rawmemchr for PPC32.
40432         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40433         multiarch objects.
40434         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40435         (__libc_ifunc_impl_list): Likewise.
40436
40437         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40438         file.
40439         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40440         file.
40441         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40442         file: memrchr multiarch for PPC32.
40443         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40444         multiarch objects.
40445         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40446         (__libc_ifunc_impl_list): Likewise.
40447
40448         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40449         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40450         file.
40451         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40452         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40453         multiarch memchr for PPC32.
40454         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40455         multiarch objects.
40456         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40457         (__libc_ifunc_impl_list): Likewise.
40458
40459         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40460         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40461         file.
40462         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40463         file.
40464         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40465         file: multiarch mempcpy for PPC32.
40466         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40467         multiarch objects.
40468         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40469         (__libc_ifunc_impl_list): Likewise.
40470
40471         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40472         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40473         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40474         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40475         multiarch bzero for PPC32.
40476         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40477         file.
40478         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40479         file.
40480         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40481         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40482         file: multiarch memset for PPC32.
40483         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40484         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40485         memset multiarch objects.
40486         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40487         (__libc_ifunc_impl_list): Likewise.
40488
40489         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40490         file.
40491         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40492         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40493         memcmp for PPC32.
40494         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40495         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40496         multiarch objects.
40497         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40498         (__libc_ifunc_impl_list): Likewise.
40499
40500         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40501         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40502         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40503         file.
40504         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40505         file.
40506         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40507         file.
40508         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40509         multiarch memcpy for PPC32.
40510         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40511         multiarch objects.
40512         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40513         (__libc_ifunc_impl_list): Likewise.
40514
40515         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40516         support multiarch for POWER/PPC32.
40517         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40518         Likewise.
40519         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40521         Implies file to make multiarch folder appers before the fpu and
40522         default folder for power4 configuration.
40523
40524 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40525
40526         * scripts/bench.pl: Append volatile keyword to type.
40527
40528 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40529
40530         * sysdeps/sh/sotruss-lib.c: New file.
40531         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40532
40533 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40534
40535         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40536
40537 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40538
40539         [BZ #6810]
40540         * math/w_tgamma.c: Include <errno.h>.
40541         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40542         * math/w_tgammaf.c: Include <errno.h>.
40543         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40544         * math/w_tgammal.c: Include <errno.h>.
40545         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40546         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40547         underflow.  Add more tgamma tests.
40548         * math/auto-libm-test-out: Regenerated.
40549         * sysdeps/i386/fpu/libm-test-ulps: Update.
40550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40551
40552         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40553         sin, sinh, tan, tanh, tgamma, y0 and y1.
40554         * math/auto-libm-test-out: Regenerated.
40555         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40556         (TEST_COND_x86): Likewise.
40557         (M_E2l): Remove macro.
40558         (M_E3l): Likewise.
40559         (M_2_SQRT_PIl): Likewise.
40560         (M_SQRT_PIl): Likewise.
40561         (M_1_DIV_El): Likewise.
40562         (log_test_data): Use AUTO_TESTS_f_f.
40563         (log10_test_data): Likewise.
40564         (log1p_test_data): Likewise.
40565         (log2_test_data): Likewise.
40566         (sin_test_data): Likewise.
40567         (sin_tonearest_test_data): Likewise.
40568         (sin_towardzero_test_data): Likewise.
40569         (sin_downward_test_data): Likewise.
40570         (sin_upward_test_data): Likewise.
40571         (sinh_test_data): Likewise.
40572         (sinh_tonearest_test_data): Likewise.
40573         (sinh_towardzero_test_data): Likewise.
40574         (sinh_downward_test_data): Likewise.
40575         (sinh_upward_test_data): Likewise.
40576         (tan_test_data): Likewise.
40577         (tan_tonearest_test_data): Likewise.
40578         (tan_towardzero_test_data): Likewise.
40579         (tan_downward_test_data): Likewise.
40580         (tan_upward_test_data): Likewise.
40581         (tanh_test_data): Likewise.
40582         (tgamma_test_data): Likewise.
40583         (y0_test_data): Likewise.
40584         (y1_test_data): Likewise.
40585         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40586         (special_real_inputs): Add pi/4.
40587         * sysdeps/i386/fpu/libm-test-ulps: Update.
40588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40589
40590 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40591
40592         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40593         "longjmp_target" static probes.
40594         (__longjmp): Rename to __longjmp_symbol.
40595         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40596         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40597         on which longjmp to generate.
40598         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40599         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40600         probe.
40601         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40602         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40603         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40604         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40605         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40606         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40608         __longjmp_symbol based on which __longjmp to generate.
40609         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40610         probe.
40611         (setjmp): Rename to setjmp_symbol.
40612         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40613         (_setjmp): Rename to _setjmp_symbol.
40614         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40615         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40616         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40617         which setjmp to generate.
40618         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40619         "longjmp_target" static probes.
40620
40621 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40622
40623         * benchtests/README: Add note about output arguments.
40624         * benchtests/bench-sincos.c: Remove file.
40625         * benchtests/sincos-inputs: New file.
40626         * scripts/bench.pl: Identify output arguments and define
40627         static variables for them.
40628
40629         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40630
40631         [BZ #15941]
40632         * Makefile (INSTALL): Add install-plain.texi as the primary
40633         dependency.
40634         * manual/install-plain.texi: New file.
40635         * manual/install.texi: Include node directive only for
40636         non-plaintext output.
40637
40638 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40639
40640         * stdlib/longlong.h: Update from GCC.
40641
40642         [BZ #6807]
40643         [BZ #15901]
40644         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40645         * math/w_j0f.c (y0f): Likewise.
40646         * math/w_j0l.c (__y0l): Likewise.
40647         * math/w_j1.c (y1): Likewise.
40648         * math/w_j1f.c (y1f): Likewise.
40649         * math/w_j1l.c (__y1l): Likewise.
40650         * math/w_jn.c (yn): Likewise.
40651         * math/w_jnf.c (ynf): Likewise.
40652         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40653         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40654         value for Bessel function domain errors outside _SVID_ mode.
40655         Adjust sign of return value for yn (negative integer, 0).
40656         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40657         by zero in return for negative x and set sign appropriately for
40658         negative n.
40659         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40660         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40661         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40662         expectations in error cases.
40663         (y1_test_data): Likewise.
40664         (yn_test_data): Likewise.
40665         * sysdeps/i386/fpu/libm-test-ulps: Update.
40666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40667
40668 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40669
40670         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40671         "64" to "64-v1".  Add "64-v2".
40672         (abi-64-options): Rename to ...
40673         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40674         (abi-64-condition): Rename to ...
40675         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40676         (abi-64-ld-soname): Rename to ...
40677         (abi-64-v1-ld-soname): ... this.
40678         (abi-64-v2-options): Define.
40679         (abi-64-v2-condition): Likewise.
40680         (abi-64-v2-ld-soname): Likewise.
40681         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40682         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40686
40687 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40688             Alan Modra  <amodra@gmail.com>
40689
40690         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40691         New versions for use with the ELFv2 ABI.
40692         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40693         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40694         declaration.
40695         (struct La_ppc64v2_retval): Likewise.
40696         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40697         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40698         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40699         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40700         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40701         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40702         Do not save or restore CR.
40703         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40704         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40705         return values for ELFv2 ABI.  Fix location of FPR return registers.
40706         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40707         updated values for _CALL_ELF == 2.
40708         (La_regs, La_retval, int_retval): Likewise.
40709
40710 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40711
40712         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40713         (FRAME_MIN_SIZE_PARM): Likewise.
40714         (FRAME_BACKCHAIN): Likewise.
40715         (FRAME_CR_SAVE): Likewise.
40716         (FRAME_LR_SAVE): Likewise.
40717         (FRAME_TOC_SAVE): Likewise.
40718         (FRAME_PARM_SAVE): Likewise.
40719         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40720         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40721         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40722         (call_mcount_parm_offset): New macro.
40723         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40724         (PROF): Use symbolic stack frame offsets.
40725         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40726         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40727         Redefine in terms of FRAME_MIN_SIZE.
40728         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40729         (_dl_profile_resolve): Likewise.  Update comment.
40730         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40731         symbols stack frame offsets.
40732         (__sigsetjmp): Likewise.
40733         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40734         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40735         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40736         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40737
40738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40739         (FRAME_BACKCHAIN): Remove.
40740         (FRAME_CR_SAVE): Likewise.
40741         (FRAME_LR_SAVE): Likewise.
40742         (FRAME_COMPILER_DW): Likewise.
40743         (FRAME_LINKER_DW): Likewise.
40744         (FRAME_TOC_SAVE): Likewise.
40745         (FRAME_PARM_SAVE): Likewise.
40746         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40747         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40748         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40750         (CHECK_SP): Use symbolic stack frame offsets.
40751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40752         zone" instead of caller's parameter save area for temp storage.
40753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40754         Likewise.  Also, use symbolic stack frame offsets.
40755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40756         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40757         our own stack frame instead of the caller's.
40758         (__socket): Use symbolic stack frame offsets.
40759
40760 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40761             Alan Modra  <amodra@gmail.com>
40762
40763         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
40764         Define.
40765         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
40766         (PPC64_LOCAL_ENTRY_OFFSET): Define.
40767         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
40768         New function.
40769         (elf_machine_fixup_plt): Call it.
40770         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
40771         reloc arguments.
40772         (elf_machine_rela): Update call to elf_machine_plt_conflict.
40773         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40774         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
40775         r2 before calling target.
40776
40777 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40778             Alan Modra  <amodra@gmail.com>
40779
40780         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
40781         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
40782         versions of macros to support ELFv2 ABI.
40783         (LOCALENTRY): New macro.
40784         (ENTRY, EALIGN): Use it.
40785         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
40786         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
40787         fall through into ENTRY entry point.
40788         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
40789         Only define if _CALL_ELF != 2.
40790
40791         (elf_machine_matches_host): Verify ABI version matches.
40792         (RTLD_START): Use LOCALENTRY.
40793         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
40794         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
40795         (PLT_ENTRY_WORDS): New macro.
40796         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
40797         (elf_machine_runtime_setup): Support ELFv2 ABI.
40798         (elf_machine_fixup_plt): Likewise.
40799         (elf_machine_plt_conflict): Likewise.
40800         (resolve_ifunc): Likewise.
40801         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
40802         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
40803         Likewise.
40804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
40805         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
40806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40807         (makecontext): Support ELFv2 ABI.
40808         * elf/elf.h (EF_PPC64_ABI): Define.
40809
40810 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40811
40812         * sysdeps/powerpc/powerpc64/sysdep.h
40813         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
40814         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
40815         (ENTRY) [ASSEMBLER]: ... but instead here ...
40816         (EALIGN) [ASSEMBLER]: ... and here.
40817         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
40818         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
40819         (ENTRY_2) [!ASSEMBLER]: Use it.
40820         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
40821         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
40822         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40823         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
40824         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
40825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
40826         Use PPC64_LOAD_FUNCPTR.
40827
40828         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
40829
40830 2013-12-04  Alan Modra  <amodra@gmail.com>
40831
40832         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
40833         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
40834         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
40835         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
40836
40837         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
40838         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
40839         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
40840         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
40841         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
40842         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
40843
40844 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40845
40846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40847         (__makecontext): Fix incorrect CFI when backtracing out of
40848         context created via makecontext.
40849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
40850         (__setcontext): Fix incorrect CFI during switch to new context.
40851         (__novec_setcontext): Likewise.
40852
40853 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40854
40855         [BZ #4772]
40856         * time/strptime_l.c (__strptime_internal): Allow modifiers
40857         in strptime.
40858         * time/tst-strptime.c (day_tests): Add testcase.
40859
40860 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40861
40862         * scripts/bench.pl: Skip over blank lines.
40863
40864 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         [BZ #926]
40867         * manual/time.texi (Calendar Time): Clarify what timezone functions
40868         use.
40869
40870 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40871
40872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40873
40874 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40875
40876         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
40877         implementation.
40878         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
40879         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
40880         * debug/memset_chk.c (__memset_chk): Likewise.
40881         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
40882         * debug/strncpy_chk.c: Likewise.
40883
40884 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40885
40886         [BZ #15268]
40887         [BZ #15425]
40888         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
40889         (__ieee754_exp): For possibly underflowing results, check size of
40890         result and force underflow exception if required.
40891         * math/auto-libm-test-in: Add more tests of exp.
40892         * math/auto-libm-test-out: Regenerated.
40893         * sysdeps/i386/fpu/libm-test-ulps: Update.
40894         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40895
40896         [BZ #16283]
40897         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
40898         * math/w_exp2f.c (__exp2f): Likewise.
40899         * math/w_exp2l.c (__exp2l): Likewise.
40900         * math/auto-libm-test-in: Do not allow missing errno on exp2
40901         underflow.
40902         * math/auto-libm-test-out: Regenerated.
40903
40904 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
40905
40906         [BZ #16274]
40907         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
40908         handle filename validation.
40909         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
40910         (do_open): Delete.
40911
40912 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40913
40914         [BZ #6786]
40915         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
40916         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
40917         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
40918         <float.h>.
40919         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
40920         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
40921         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40922         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
40923         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40924         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
40925         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40926         * math/auto-libm-test-in: Don't allow missing errno from erfc.
40927         Add more erfc tests.
40928         * math/auto-libm-test-out: Regenerated.
40929         * sysdeps/i386/fpu/libm-test-ulps: Update.
40930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40931
40932         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
40933         exp2, expm1, j0 and j1.
40934         * math/auto-libm-test-out: Regenerated.
40935         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
40936         (erfc_test_data): Likewise.
40937         (exp_test_data): Likewise.
40938         (exp_tonearest_test_data): Likewise.
40939         (exp_towardzero_test_data): Likewise.
40940         (exp_downward_test_data): Likewise.
40941         (exp_upward_test_data): Likewise.
40942         (exp10_test_data): Likewise.
40943         (exp2_test_data): Likewise.
40944         (expm1_test_data): Likewise.
40945         (j0_test_data): Likewise.
40946         (j1_test_data): Likewise.
40947         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
40948         (input_flag_type): Add flag_xfail_rounding.
40949         (input_flags): Add xfail-rounding.
40950         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
40951         (output_for_one_input_case): Handle flag_xfail_rounding.
40952         * sysdeps/i386/fpu/libm-test-ulps: Update.
40953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40954
40955 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
40956
40957         [BZ #16289]
40958         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
40959         division by 0.
40960
40961 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
40962
40963         [BZ #16195]
40964         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
40965         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
40966         (STAP_PROBE0): New macro.
40967         (STAP_PROBE1): Likewise.
40968         (STAP_PROBE2): Likewise.
40969         (STAP_PROBE3): Likewise.
40970         (STAP_PROBE4): Likewise.
40971
40972 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
40973
40974         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
40975
40976 2013-12-02  Steve Ellcey  <sellcey@mips.com>
40977
40978         * benchtests/Makefile (bench): Add sqrt.
40979         (LDLIBS-bench-sqrt): New.
40980         * benchtests/sqrt-input: New.
40981
40982 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
40983
40984         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
40985         (GAIH_EAI): Likewise.
40986         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
40987         (gaih_inet): Likewise.
40988         (getaddrinfo): Don't use GAIH_EAI.
40989
40990         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
40991         (struct gaih): Remove definition.
40992
40993 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
40994
40995         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
40996         Use HERRNOP directly.
40997
40998 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40999
41000         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41001
41002 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41003
41004         * math/gen-auto-libm-tests.c (test_functions): Add more
41005         single-argument functions.
41006         (special_fill_pi_2): New function.
41007         (special_fill_minus_pi_2): Likewise.
41008         (special_fill_pi_6): Likewise.
41009         (special_fill_minus_pi_6): Likewise.
41010         (special_fill_pi_3): Likewise.
41011         (special_fill_2pi_3): Likewise.
41012         (special_fill_e): Likewise.
41013         (special_fill_1_e): Likewise.
41014         (special_fill_e_minus_1): Likewise.
41015         (special_real_inputs): Add more special inputs.
41016         (output_for_one_input_case): Do not require ERANGE on underflow to
41017         zero if round-to-nearest result does not underflow to zero, unless
41018         exact results required.
41019         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41020         atan, atanh, cbrt, cos and cosh.
41021         * math/auto-libm-test-out: Regenerated.
41022         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41023         (acos_tonearest_test_data): Likewise.
41024         (acos_towardzero_test_data): Likewise.
41025         (acos_downward_test_data): Likewise.
41026         (acos_upward_test_data): Likewise.
41027         (acosh_test_data): Likewise.
41028         (asin_test_data): Likewise.
41029         (asin_tonearest_test_data): Likewise.
41030         (asin_towardzero_test_data): Likewise.
41031         (asin_upward_test_data): Likewise.
41032         (asinh_test_data): Likewise.
41033         (atan_test_data): Likewise.
41034         (atanh_test_data): Likewise.
41035         (cbrt_test_data): Likewise.
41036         (cos_test_data): Likewise.
41037         (cos_tonearest_test_data): Likewise.
41038         (cos_towardzero_test_data): Likewise.
41039         (cos_downward_test_data): Likewise.
41040         (cos_upward_test_data): Likewise.
41041         (cosh_test_data): Likewise.
41042         (cosh_tonearest_test_data): Likewise.
41043         (cosh_towardzero_test_data): Likewise.
41044         (cosh_downward_test_data): Likewise.
41045         (cosh_upward_test_data): Likewise.
41046         * sysdeps/i386/fpu/libm-test-ulps: Update.
41047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41048
41049 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41050
41051         [BZ #6787]
41052         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41053         * math/w_exp10f.c (__exp10f): Likewise.
41054         * math/w_exp10l.c (__exp10l): Likewise.
41055         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41056         errno settings in existing tests.
41057
41058         [BZ #14032]
41059         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41060         precision control set to double precision.
41061         * sysdeps/i386/fpu/w_sqrt.c: New file.
41062         * math/auto-libm-test-in: Add more tests.
41063         * math/auto-libm-test-out: Update.
41064
41065         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41066         (sqrt_test_tonearest): New function.
41067         (sqrt_towardzero_test_data): New variable.
41068         (sqrt_test_towardzero): New function.
41069         (sqrt_downward_test_data): New variable.
41070         (sqrt_test_downward): New function.
41071         (sqrt_upward_test_data): New variable.
41072         (sqrt_test_upward): New function.
41073         (main): Call the new functions.
41074
41075         * math/gen-auto-libm-tests.c: New file.
41076         * math/auto-libm-test-in: Likewise.
41077         * math/auto-libm-test-out: New generated file.
41078         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41079         variables.
41080         (%beautify): Add generated representations of zero.
41081         (top level): Set $auto_input and call parse_auto_input.
41082         (beautify): Remove trailing "f" from hex float constants.
41083         (parse_args): Handle XFAIL_TEST.
41084         (convert_condition): New function.
41085         (or_value): Likewise.
41086         (or_cond_value): Likewise.
41087         (generate_testfile): Handle AUTO_TESTS_* lines.
41088         (parse_auto_input): New function.
41089         * math/libm-test.inc (XFAIL_TEST): New macro.
41090         (ERRNO_UNCHANGED): Update value.
41091         (ERRNO_EDOM): Likewise.
41092         (ERRNO_ERANGE): Likewise.
41093         (IGNORE_RESULT): Likewise.
41094         (TEST_COND_flt_32): New macro.
41095         (TEST_COND_dbl_64): Likewise.
41096         (TEST_COND_ldbl_96_intel): Likewise.
41097         (TEST_COND_ldbl_96_m68k): Likewise.
41098         (TEST_COND_ldbl_128): Likewise.
41099         (TEST_COND_ldbl_128ibm): Likewise.
41100         (TEST_COND_long32): Likewise.
41101         (TEST_COND_long64): Likewise.
41102         (TEST_COND_before_rounding): Likewise.
41103         (TEST_COND_after_rounding): Likewise.
41104         (enable_test): Handle XFAIL_TEST flag.
41105         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41106         with finite results.
41107         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41108         auto-libm-test-out.
41109
41110 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41111             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41112
41113         [BZ #16214]
41114         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41115         __tls_get_addr_internal instead of __tls_get_offset in order to
41116         avoid GOT pointer dependency.  Make rtld export
41117         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41118         __tls_get_addr since we are a __tls_get_offset platform.
41119         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41120         GOT pointer being set up before.
41121         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41122
41123 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41124
41125         * manual/math.texi (Errors in Math Functions): Document accuracy
41126         goals.
41127
41128         [BZ #15004]
41129         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41130         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41131         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41132         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41133         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41134         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41135         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41136         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41137         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41138         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41139         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41140         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41141         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41142         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41143         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41144         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41145
41146         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41147         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41148         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41149         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41150         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41151         Likewise.
41152         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41153         Likewise.
41154         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41155         Likewise.
41156         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41157         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41158         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41159         atomic-feupdateenv and flt-rounds.
41160         * sysdeps/powerpc/nofpu/Versions (libc): Add
41161         __atomic_feholdexcept, __atomic_feclearexcept,
41162         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41163         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41164         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41165         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41166         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41167         here.
41168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41169         Update.
41170
41171         * manual/arith.texi (FP Exceptions): Document that exceptions may
41172         not be raised when matherr is used.
41173         (Math Error Reporting): Document overflow in directed rounding
41174         modes.  Document that errno may not be set when finite values are
41175         returned on overflow.  Document intent to set errno on underflow
41176         only for underflow to zero.
41177
41178         [BZ #16271]
41179         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41180         round-to-nearest then adjust result for other rounding modes.
41181         * include/fenv.h (fegetround): Use libm_hidden_proto.
41182         * math/fegetround.c (fegetround): Use libm_hidden_def.
41183         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41184         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41185         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41186         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41187         Likewise.
41188         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41189         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41190         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41191         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41192
41193 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41194
41195         [BZ #16077]
41196         * nss/Versions (libnss_files): Add
41197         _nss_files_gethostbyname3_r.
41198         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41199         New function.
41200         (HOST_DB_LOOKUP): Remove macro.
41201         (_nss_files_gethostbyname_r): Implement function without the
41202         HOST_DB_LOOKUP macro.
41203         (_nss_files_gethostbyname2_r): Likewise.
41204
41205 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41206
41207         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41208
41209 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41210
41211         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41212         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41213         warning.
41214
41215 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41216
41217         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41218         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41219         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41220         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41221         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41222         __fe_nomask_env_priv and attribute_hidden.
41223         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41224         (libc_feupdateenv_test_ppc): Likewise.
41225         (libc_feresetround_ppc): Likewise.
41226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41227         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41228         compat_symbol macro.
41229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41230         (__fe_nomask_env): Likewise.
41231         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41232
41233 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41234
41235         * string/Makefile: Remove ifunc tests.
41236         * string/test-string.h: Define TEST_IFUNC.
41237         * string/test-bcopy-ifunc.c: Remove.
41238         * string/test-bzero-ifunc.c: Likewise.
41239         * string/test-memccpy-ifunc.c: Likewise.
41240         * string/test-memchr-ifunc.c: Likewise.
41241         * string/test-memcmp-ifunc.c: Likewise.
41242         * string/test-memcpy-ifunc.c: Likewise.
41243         * string/test-memmem-ifunc.c: Likewise.
41244         * string/test-memmove-ifunc.c: Likewise.
41245         * string/test-mempcpy-ifunc.c: Likewise.
41246         * string/test-memrchr-ifunc.c: Likewise.
41247         * string/test-memset-ifunc.c: Likewise.
41248         * string/test-rawmemchr-ifunc.c: Likewise.
41249         * string/test-stpcpy-ifunc.c: Likewise.
41250         * string/test-stpncpy-ifunc.c: Likewise.
41251         * string/test-strcasecmp-ifunc.c: Likewise.
41252         * string/test-strcasestr-ifunc.c: Likewise.
41253         * string/test-strcat-ifunc.c: Likewise.
41254         * string/test-strchr-ifunc.c: Likewise.
41255         * string/test-strchrnul-ifunc.c: Likewise.
41256         * string/test-strcmp-ifunc.c: Likewise.
41257         * string/test-strcpy-ifunc.c: Likewise.
41258         * string/test-strcspn-ifunc.c: Likewise.
41259         * string/test-strlen-ifunc.c: Likewise.
41260         * string/test-strncasecmp-ifunc.c: Likewise.
41261         * string/test-strncat-ifunc.c: Likewise.
41262         * string/test-strncmp-ifunc.c: Likewise.
41263         * string/test-strncpy-ifunc.c: Likewise.
41264         * string/test-strnlen-ifunc.c: Likewise.
41265         * string/test-strpbrk-ifunc.c: Likewise.
41266         * string/test-strrchr-ifunc.c: Likewise.
41267         * string/test-strspn-ifunc.c: Likewise.
41268         * string/test-strstr-ifunc.c: Likewise.
41269
41270 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41271
41272         * benchtests/Makefile: Remove ifunc tests.
41273         * benchtests/bench-string.h: Define TEST_IFUNC.
41274         * benchtests/bench-bcopy-ifunc.c: Remove.
41275         * benchtests/bench-bzero-ifunc.c: Likewise.
41276         * benchtests/bench-memccpy-ifunc.c: Likewise.
41277         * benchtests/bench-memchr-ifunc.c: Likewise.
41278         * benchtests/bench-memcmp-ifunc.c: Likewise.
41279         * benchtests/bench-memcpy-ifunc.c: Likewise.
41280         * benchtests/bench-memmem-ifunc.c: Likewise.
41281         * benchtests/bench-memmove-ifunc.c: Likewise.
41282         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41283         * benchtests/bench-memrchr-ifunc.c: Likewise.
41284         * benchtests/bench-memset-ifunc.c: Likewise.
41285         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41286         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41287         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41288         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41289         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41290         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41291         * benchtests/bench-strcat-ifunc.c: Likewise.
41292         * benchtests/bench-strchr-ifunc.c: Likewise.
41293         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41294         * benchtests/bench-strcmp-ifunc.c: Likewise.
41295         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41296         * benchtests/bench-strcpy-ifunc.c: Likewise.
41297         * benchtests/bench-strcspn-ifunc.c: Likewise.
41298         * benchtests/bench-strlen-ifunc.c: Likewise.
41299         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41300         * benchtests/bench-strncat-ifunc.c: Likewise.
41301         * benchtests/bench-strncmp-ifunc.c: Likewise.
41302         * benchtests/bench-strncpy-ifunc.c: Likewise.
41303         * benchtests/bench-strnlen-ifunc.c: Likewise.
41304         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41305         * benchtests/bench-strrchr-ifunc.c: Likewise.
41306         * benchtests/bench-strsep-ifunc.c: Likewise.
41307         * benchtests/bench-strspn-ifunc.c: Likewise.
41308         * benchtests/bench-strstr-ifunc.c: Likewise.
41309
41310 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41311
41312         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41313
41314 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41315
41316         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41317         * rt/aio.h: Likewise.
41318         * sysdeps/gnu/bits/utmp.h: Likewise.
41319         * sysdeps/gnu/bits/utmpx.h: Likewise.
41320         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41321         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41322         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41323         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41324         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41325         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41326         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41327         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41328         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41329         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41330         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41331         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41332         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41334         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41335         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41336         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41337         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41338         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41339         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41340         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41341         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41342         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41343         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41344         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41345         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41346         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41347         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41348         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41349         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41350         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41351         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41352         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41353         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41354         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41355         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41356         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41357         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41358         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41359         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41360         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41361         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41362
41363 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41364
41365         [BZ #16245]
41366         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41367         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41368
41369 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41370
41371         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41372         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41373         Likewise.
41374
41375 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41376
41377         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41378         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41379         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41380         (__fesetround): Remove define.
41381         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41382         rounding and exceptions handling.
41383         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41384         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41385         (__fe_nomask_env): Likewise.
41386         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41387         __fegetround instead of fegetround.
41388         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41389         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41390
41391 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41392
41393         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41394         it's there.
41395
41396         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41397
41398 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41399
41400         [BZ #11157]
41401         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41402         (encrypt_r): Likewise.
41403         * malloc/obstack.h (obstack_free): Likewise.
41404         * posix/unistd.h (encrypt): Likewise.
41405
41406 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41407
41408         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41409         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41410         DL_CALL_DT_FINI() that call the functions directly.
41411         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41412         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41413         * elf/dl-fini.c: Likewise.
41414
41415 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41416
41417         * malloc/hooks.c (memalign_check): Add alignment rounding.
41418         * malloc/malloc.c (_mid_memalign): New function.
41419         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41420         Implement by calling _mid_memalign.
41421         * manual/probes.texi (Memory Allocation Probes): Remove
41422         memory_valloc_retry and memory_pvalloc_retry.
41423
41424 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41425
41426         * locale/programs/locarchive.c (open_archive): Add const
41427         qualifier to ARCHIVEFNAME and copy default fname to
41428         DEFAULT_FNAME.
41429
41430         [BZ #15601]
41431         * libio/tst-widetext.input: Rename Oriya to Odia.
41432         * locale/iso-639.def: Likewise.
41433
41434         * manual/probes.texi (Mathematical Function Probes): Add
41435         documentation for sin, cos, asin and acos probes.
41436         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41437         (__sin32): Add slowasin probe.
41438         (__cos32): Add slowacos probe.
41439         (__mpsin): Add slowsin probe.
41440         (__mpcos): Add slowcos probe.
41441
41442 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41443
41444         [BZ #15483]
41445         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41446         thread-local __sim_exceptions_thread and global
41447         __sim_exceptions_global.
41448         (__sim_disabled_exceptions): Change to thread-local
41449         __sim_disabled_exceptions_thread and global
41450         __sim_disabled_exceptions_global.
41451         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41452         and global __sim_round_mode_global.
41453         (__simulate_exceptions): Use thread-local floating-point state and
41454         set global state from it as needed.
41455         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41456         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41457         __sim_round_mode_thread.
41458         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41459         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41460         and global __sim_exceptions_global.
41461         (__sim_disabled_exceptions): Change to thread-local
41462         __sim_disabled_exceptions_thread and global
41463         __sim_disabled_exceptions_global.
41464         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41465         and global __sim_round_mode_global.
41466         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41467         (SIM_SET_GLOBAL): Likewise.
41468         * sysdeps/powerpc/soft-fp/sfp-machine.h
41469         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41470         __sim_round_mode_thread.
41471         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41472         __sim_disabled_exceptions_thread.
41473         (__sim_exceptions): Change to __sim_exceptions_thread.
41474         (__sim_disabled_exceptions): Change to
41475         __sim_disabled_exceptions_thread.
41476         (__sim_round_mode): Change to __sim_round_mode_thread.
41477         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41478         thread-local floating-point state and set global state from it as
41479         needed.
41480         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41481         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41482         (__sim_disabled_exceptions): Remove extern declaration.
41483         (feenableexcept): Use thread-local floating-point state and set
41484         global state from it as needed.
41485         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41486         extern declaration.
41487         (__sim_disabled_exceptions): Likewise.
41488         (__sim_round_mode): Likewise.
41489         (__fegetenv): Use thread-local floating-point state.
41490         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41491         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41492         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41493         floating-point state and set global state from it as needed.
41494         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41495         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41496         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41497         Likewise.
41498         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41499         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41500         Likewise.
41501         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41502         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41503         Use __sim_round_mode_thread.
41504         * math/test-fenv-tls.c: New file.
41505         * math/Makefile (tests): Add test-fenv-tls.
41506         ($(objpfx)test-fenv-tls): Depend on
41507         $(common-objpfx)nptl/libpthread.so.
41508
41509 2013-11-19  Andreas Schwab  <schwab@suse.de>
41510
41511         * locale/programs/locale.c (show_info): Decode wordarray elements.
41512         * locale/categories.def (LC_MONETARY): Add element for
41513         _NL_MONETARY_CRNCYSTR.
41514         * locale/C-monetary.c (conversion_rate): New variable.
41515         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41516         element.
41517
41518 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41519
41520         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41521         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41522
41523 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41524
41525         * elf/Makefile (tst-auxv): New test.
41526         * elf/tst-auxv.c: New
41527         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41528
41529 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41530
41531         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41532         (hidden_proto): Caller changed.
41533         (hidden_tls_proto): New macro.
41534         (libc_hidden_tls_proto): Likewise.
41535         (rtld_hidden_tls_proto): Likewise.
41536         (libm_hidden_tls_proto): Likewise.
41537         (libresolv_hidden_tls_proto): Likewise.
41538         (librt_hidden_tls_proto): Likewise.
41539         (libdl_hidden_tls_proto): Likewise.
41540         (libnss_files_hidden_tls_proto): Likewise.
41541         (libnsl_hidden_tls_proto): Likewise.
41542         (libnss_nisplus_hidden_tls_proto): Likewise.
41543         (libutil_hidden_tls_proto): Likewise.
41544
41545 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41546
41547         [BZ #10253]
41548         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41549         (decompose_rpath): Defer expansion to fillin_rpath.
41550         (_dl_init_paths): Pass linkmap to fillin_rpath.
41551
41552 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41553
41554         * benchtests/Makefile: Add strsep.
41555         * benchtests/bench-strsep.c: New file: strsep benchtest.
41556         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41557
41558 2013-11-18  Andreas Schwab  <schwab@suse.de>
41559
41560         * locale/programs/locale.c (show_info) [case byte]: Check for
41561         '\377' instead of '\177'.
41562         * locale/C-monetary.c (not_available): Always use "\377".
41563         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41564         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41565         detect unavailable sign_posn locale elements.
41566         * locale/localeconv.c (__localeconv): For grouping and
41567         mon_grouping handle "\177" and "\377" like no grouping.
41568         (INT_ELEM): New macro.  Use it to set all numeric members.
41569         * locale/programs/ld-monetary.c (monetary_read)
41570         <tok_mon_grouping>: Normalize single -1 to the empty string.
41571         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41572         Likewise.
41573
41574 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41575
41576         [BZ #16055]
41577         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41578         when we match (nil).
41579         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41580
41581 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41582
41583         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41584         (NO_TEST_INLINE): Update value.
41585         (ERRNO_UNCHANGED): Likewise.
41586         (ERRNO_EDOM): Likewise.
41587         (ERRNO_ERANGE): Likewise.
41588         (IGNORE_RESULT): Likewise.
41589         (check_float_internal): Check signs of NaN results if
41590         TEST_NAN_SIGN used.
41591         (check_complex): Pass TEST_NAN_SIGN flag through to second
41592         check_float_internal call.
41593         (copysign_test_data): Add tests with quiet NaNs as second
41594         argument.  Use TEST_NAN_SIGN.
41595         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41596         TEST_NAN_SIGN.
41597         (signbit_test_data): Add tests of quiet NaN argument.
41598         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41599
41600         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41601         $ignore_result.
41602         (parse_args): Handle function results specified as IGNORE.
41603         * math/libm-test.inc (IGNORE_RESULT): New macro.
41604         (check_float_internal): Do not check numerical result if flag
41605         IGNORE_RESULT set.
41606         (check_complex): Pass through IGNORE_RESULT to second
41607         check_float_internal call.
41608         (check_int): Do not check numerical result if flag IGNORE_RESULT
41609         set.
41610         (check_long): Likewise.
41611         (check_bool): Likewise.
41612         (check_longlong): Likewise.
41613         (lrint_test_data): Add tests of infinite and NaN arguments.
41614         (lrint_tonearest_test_data): Likewise.
41615         (lrint_towardzero_test_data): Likewise.
41616         (lrint_downward_test_data): Likewise.
41617         (lrint_upward_test_data): Likewise.
41618         (llrint_test_data): Likewise.
41619         (llrint_tonearest_test_data): Likewise.
41620         (llrint_towardzero_test_data): Likewise.
41621         (llrint_downward_test_data): Likewise.
41622         (llrint_upward_test_data): Likewise.
41623         (lround_test_data): Likewise.
41624         (llround_test_data): Likewise.
41625
41626         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41627         (ERRNO_UNCHANGED): Update value.
41628         (ERRNO_EDOM): Likewise.
41629         (ERRNO_ERANGE): Likewise.
41630         (NO_TEST_INLINE_FLOAT): New macro.
41631         (NO_TEST_INLINE_DOUBLE): Likewise.
41632         (enable_test): New function.
41633         (RUN_TEST_f_f): Check enable_test before running test.
41634         (RUN_TEST_2_f): Likewise.
41635         (RUN_TEST_fff_f): Likewise.
41636         (RUN_TEST_c_f): Likewise.
41637         (RUN_TEST_f_f1): Likewise.
41638         (RUN_TEST_fF_f1): Likewise.
41639         (RUN_TEST_fI_f1): Likewise.
41640         (RUN_TEST_ffI_f1): Likewise.
41641         (RUN_TEST_c_c): Likewise.
41642         (RUN_TEST_cc_c): Likewise.
41643         (RUN_TEST_f_i): Likewise.
41644         (RUN_TEST_f_i_tg): Likewise.
41645         (RUN_TEST_ff_i_tg): Likewise.
41646         (RUN_TEST_f_b): Likewise.
41647         (RUN_TEST_f_b_tg): Likewise.
41648         (RUN_TEST_f_l): Likewise.
41649         (RUN_TEST_f_L): Likewise.
41650         (RUN_TEST_fFF_11): Likewise.
41651         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41652         conditionals.
41653         (cosh_test_data): Likewise.
41654         (exp_test_data): Likewise.
41655         (expm1_test_data): Likewise.
41656         (hypot_test_data): Likewise.
41657         (pow_test_data): Likewise.
41658         (sinh_test_data): Likewise.
41659         (tanh_test_data): Likewise.
41660         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41661         flags argument.
41662
41663         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41664         tests with quiet NaN input and output.
41665         (acosh_test_data): Likewise.
41666         (asin_test_data): Likewise.
41667         (asinh_test_data): Likewise.
41668         (atan_test_data): Likewise.
41669         (atanh_test_data): Likewise.
41670         (atan2_test_data): Likewise.
41671         (cbrt_test_data): Likewise.
41672         (cos_test_data): Likewise.
41673         (cosh_test_data): Likewise.
41674         (erf_test_data): Likewise.
41675         (erfc_test_data): Likewise.
41676         (exp_test_data): Likewise.
41677         (exp10_test_data): Likewise.
41678         (exp2_test_data): Likewise.
41679         (expm1_test_data): Likewise.
41680         (hypot_test_data): Likewise.
41681         (j0_test_data): Likewise.
41682         (j1_test_data): Likewise.
41683         (jn_test_data): Likewise.
41684         (lgamma_test_data): Likewise.
41685         (log_test_data): Likewise.
41686         (log10_test_data): Likewise.
41687         (log1p_test_data): Likewise.
41688         (log2_test_data): Likewise.
41689         (pow_test_data): Likewise.
41690         (scalb_test_data): Likewise.
41691         (sin_test_data): Likewise.
41692         (sincos_test_data): Likewise.
41693         (sinh_test_data): Likewise.
41694         (tan_test_data): Likewise.
41695         (tanh_test_data): Likewise.
41696         (tgamma_test_data): Likewise.
41697         (y0_test_data): Likewise.
41698         (y1_test_data): Likewise.
41699         (yn_test_data): Likewise.
41700
41701         [BZ #16167]
41702         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41703         argument being NaN and avoid computations with second argument in
41704         that case.
41705         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41706         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41707         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41708
41709 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41710
41711         * locale/iso-639.def: Add Chitwani Tharu (the).
41712
41713 2013-11-14  Andreas Schwab  <schwab@suse.de>
41714
41715         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41716         word instead of empty string.
41717
41718 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41719
41720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41721         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41723         (__fe_nomask_env): Likewise.
41724
41725 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41726
41727         * benchtests/bench-timing.h: Include time.h.
41728
41729 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41730
41731         [BZ #15997]
41732         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41733         to 3.4.0 for x32.
41734         * sysdeps/unix/sysv/linux/configure: Regenerated.
41735
41736 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41737
41738         [BZ #16151]
41739         * stdlib/strtod_l.c (round_and_return): Do not consider
41740         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41741         exponent one less than half the least subnormal exponent.
41742         * stdlib/test-strtod-round-data: Add more tests.
41743         * stdlib/tst-strtod-round.c (tests): Regenerated.
41744
41745 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41746
41747         [BZ #14143]
41748         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41749         (__fe_mask_env): Likewise.
41750         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41751         libm_hidden_proto and add function prototype.
41752         (__fe_mask_env): Add function prototype.
41753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41754         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41756         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41758         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41759
41760 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41761
41762         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41763         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
41764
41765 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41766
41767         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
41768         of htab_find_slot().
41769
41770 2013-11-11  David S. Miller  <davem@davemloft.net>
41771
41772         [BZ #16150]
41773         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
41774         symbol in the non-vis3 case in static builds.
41775         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
41776         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
41777         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
41778         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
41779
41780 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
41781
41782         [BZ #387]
41783         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
41784         it is empty.
41785
41786 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41787
41788         * benchtests/Makefile: Add bench-strtod.
41789         * benchtests/bench-strtod.c: New file: strtod benchtest
41790
41791 2013-11-11  Andreas Schwab  <schwab@suse.de>
41792
41793         [BZ #16153]
41794         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
41795         terminating NUL in key length.
41796
41797 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41798
41799         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41800         Add artificial ODP entry for vDSO symbol for PPC64.
41801         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
41802         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
41803
41804 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41805
41806         [BZ #15374]
41807         * nss/getent.c (services_keys): Recognize services starting with digit.
41808
41809 2013-11-06  David S. Miller  <davem@davemloft.net>
41810
41811         [BZ #15985]
41812         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
41813         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
41814
41815 2013-11-06  Will Newton  <will.newton@linaro.org>
41816
41817         * manual/memory.texi (Malloc Examples): Remove register
41818         keyword from examples.
41819
41820 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
41821
41822         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
41823
41824 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
41825
41826         [BZ #6981]
41827         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
41828         depending on [__GCC_IEC_559 > 0].
41829         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
41830         depending on [__GCC_IEC_559_COMPLEX > 0].
41831
41832 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
41833
41834         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
41835         to iso-639.def.
41836
41837 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
41838
41839         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
41840
41841 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
41842
41843         [BZ #16112]
41844         * malloc/malloc (malloc_info): Do not handle first bin as
41845         special case.
41846
41847 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
41848
41849         * locale/iso-639.def: Add Central Nahuatl (nhn).
41850
41851 2013-11-01  Bruno Haible  <bruno@clisp.org>
41852
41853         [BZ #7003]
41854         * manual/math.texi (BSD Random): Specify range upper bound as
41855         in POSIX.
41856
41857 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
41858
41859         * locale/iso-639.def: Add Meadow Mari (mhr).
41860
41861 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
41862
41863         [BZ #14752], [BZ #15763]
41864         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
41865         Validate name.
41866         * rt/tst_shm.c: Add test for escaping directory.
41867
41868 2013-10-31  Andreas Schwab  <schwab@suse.de>
41869
41870         [BZ #15917]
41871         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
41872         followed by 'x' as part of digit sequence.
41873         * stdio-common/tst-sscanf.c (double_tests2): New tests.
41874
41875 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
41876
41877         [BZ #16037]
41878         * configure.ac: allow GNU Make 4.0 and greater.
41879         * configure: Regenerated.
41880
41881 2013-10-30  Will Newton  <will.newton@linaro.org>
41882
41883         [BZ #16038]
41884         * malloc/hooks.c (memalign_check): Limit alignment to the
41885         maximum representable power of two.
41886         * malloc/malloc.c (__libc_memalign): Likewise.
41887         * malloc/tst-memalign.c (do_test): Add test for very
41888         large alignment values.
41889         * malloc/tst-posix_memalign.c (do_test): Likewise.
41890
41891 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41892
41893         [BZ #11087]
41894         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
41895         (munmap_chunk): Likewise.
41896         (mremap_chunk): Likewise.
41897
41898 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41899
41900         [BZ #15799]
41901         * stdlib/div.c (div): Remove obsolete code.
41902         * stdlib/ldiv.c (ldiv): Likewise.
41903         * stdlib/lldiv.c (lldiv): Likewise.
41904
41905 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
41906
41907         [BZ #16071]
41908         * nss/nss_files/files-XXX.c (get_contents_ret): New
41909         enumerator.
41910         (get_contents): New function.
41911         (internal_getent): Use it.  Expand size of LINEBUFLEN.
41912
41913 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
41914
41915         * configure.in: Moved to ...
41916         * configure.ac: ... here. Change reference to configure.in
41917         to configure.ac.
41918         * sysdeps/arm/preconfigure.ac: ... here.
41919         configure.in to configure.ac.
41920         * sysdeps/gnu/configure.in: Moved to ...
41921         * sysdeps/gnu/configure.ac: ... here.
41922         * sysdeps/i386/configure.in: Moved to ...
41923         * sysdeps/i386/configure.ac: ... here.
41924         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
41925         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
41926         * sysdeps/mach/configure.in: Moved to ...
41927         * sysdeps/mach/configure.ac: ... here.
41928         * sysdeps/mach/hurd/configure.in: Moved to ...
41929         * sysdeps/mach/hurd/configure.ac: ... here.
41930         * sysdeps/powerpc/configure.in: Moved to ...
41931         * sysdeps/powerpc/configure.ac: ... here.
41932         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
41933         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
41934         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
41935         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
41936         * sysdeps/s390/s390-32/configure.in: Moved to ...
41937         * sysdeps/s390/s390-32/configure.ac: ... here.
41938         * sysdeps/s390/s390-64/configure.in: Moved to ...
41939         * sysdeps/s390/s390-64/configure.ac: ... here.
41940         * sysdeps/sh/configure.in: Moved to ...
41941         * sysdeps/sh/configure.ac: ... here.
41942         * sysdeps/sparc/configure.in: Moved to ...
41943         * sysdeps/sparc/configure.ac: ... here.
41944         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
41945         * sysdeps/unix/sysv/linux/configure.ac: ... here.
41946         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
41947         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
41948         * sysdeps/x86_64/configure.in: Moved to ...
41949         * sysdeps/x86_64/configure.ac: ... here.
41950         * sysdeps/x86_64/preconfigure.in: Moved to ...
41951         * sysdeps/x86_64/preconfigure.ac: ... here.
41952         * aclocal.m4: Change reference to configure.in to configure.ac.
41953         * config.h.in: Likewise.
41954         * manual/install.texi: Likewise.
41955         * manual/maint.texi: Likewise.
41956         * Makefile: Likewise.
41957         * malloc/Makefile: Likewise.
41958         * nscd/Makefile: Likewise.
41959         * Makeconfig: Change reference to configure.in and
41960         preconfigure.in to configure.ac and preconfigure.ac
41961         respectively.
41962         * INSTALL: Regenerated.
41963         * configure: Likewise.
41964         * sysdeps/gnu/configure: Likewise.
41965         * sysdeps/i386/configure: Likewise.
41966         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
41967         * sysdeps/mach/configure: Likewise.
41968         * sysdeps/mach/hurd/configure: Likewise.
41969         * sysdeps/powerpc/configure: Likewise.
41970         * sysdeps/powerpc/powerpc32/configure: Likewise.
41971         * sysdeps/powerpc/powerpc64/configure: Likewise.
41972         * sysdeps/s390/s390-32/configure: Likewise.
41973         * sysdeps/s390/s390-64/configure: Likewise.
41974         * sysdeps/sh/configure: Likewise.
41975         * sysdeps/sparc/configure: Likewise.
41976         * sysdeps/unix/sysv/linux/configure: Likewise.
41977         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
41978         * sysdeps/x86_64/configure: Likewise.
41979         * sysdeps/x86_64/preconfigure: Likewise.
41980
41981 2013-10-29  Andreas Schwab  <schwab@suse.de>
41982
41983         * stdio-common/Makefile (tst-swscanf-ENV): Define.
41984
41985 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41986
41987         * benchtests/pow-inputs: Add new inputs.
41988
41989         * benchtests/exp-inputs: Add new inputs.
41990
41991         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
41992         conditional check for return value.
41993         (__cos32): Likewise.
41994
41995 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41996
41997         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
41998         to provide a boost for large inputs with word alignment.
41999         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42000         implementation based on optimized PPC64 strcpy.
42001         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42002         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42003         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42004         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42005
42006 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42007
42008         [BZ #2801]
42009         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42010
42011 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42012
42013         [BZ #14876]
42014         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42015         * time/tst-strptime.c (day_tests): Add testcase.
42016
42017 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42018
42019         [BZ #14029]
42020         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42021
42022 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42023
42024         [BZ #16074]
42025         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42026         MAP_FAILED on error.
42027
42028 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42029
42030         [BZ #16072]
42031         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42032         heap for large requests.
42033
42034 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42035
42036         [BZ #9954]
42037         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42038         result if the result has no associated interface.
42039         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42040         interface for all 127.X.Y.Z addresses.
42041
42042 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42043
42044         * locale/iso-639.def: Add Ligurian (lij)
42045
42046 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42047
42048         [BZ #15825]
42049         * sunrpc/rpc_main.c: Document rpcgen -5.
42050
42051 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42052
42053         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42054
42055 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42056
42057         [BZ #10278]
42058         * posix/glob.c: Match only directories when trailing slash is present.
42059         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42060         (main): Add testcase.
42061
42062 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42063
42064         [BZ #15670]
42065         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42066
42067 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42068
42069         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42070         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42071         AUTH_DES and cindex for FIPS 140-2.
42072         (DES Encryption): Add cindex FIPS 46-3.
42073
42074         * locale/locarchive.h (struct locarhandle): Add fname.
42075         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42076         if an optional argument was specified to --list-archive,
42077         otherwise NULL.
42078         * locale/programs/locarchive.c (show_archive_content): Take new
42079         argument fname and pass it via ah.fname to open_archive.
42080         * locale/programs/localedef.h: Update decl.
42081         (open_archive): If AH->fname is non-null, open that file
42082         rather than the default file name, and don't ignore ENOENT.
42083         (create_archive): Set AH.fname to NULL.
42084         (delete_locales_from_archive): Likewise.
42085         (add_locales_to_archive): Likewise.
42086         * locale/programs/locfile.c (write_all_categories): Likewise.
42087
42088 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42089             Aldy Hernandez  <aldyh@redhat.com>
42090
42091         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42092         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42093         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42094         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42095         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42096         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42097         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42098         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42099         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42100         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42101         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42102         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42103         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42104         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42105         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42106         Likewise.
42107         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42108         Likewise.
42109         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42110         Likewise.
42111         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42112         Likewise.
42113         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42114         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42115         Likewise.
42116         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42117         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42118         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42119         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42120         Likewise.
42121         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42122         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42123         * sysdeps/powerpc/preconfigure: Likewise.
42124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42125         Likewise.
42126         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42127         Replace contents of file by #include of <fenv_libc.h>.
42128         * sysdeps/powerpc/soft-fp/sfp-machine.h
42129         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42130         and <sys/prctl.h>.
42131         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42132         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42133         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42134         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42135         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42136         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42137         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42138         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42139         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42140         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42141         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42142         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42144         Allow copysignl PLT reference to be missing.
42145
42146 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42147             Joseph Myers  <joseph@codesourcery.com
42148
42149         [BZ #15948]
42150         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42151         single character.
42152         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42153
42154 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42155
42156         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42157         * elf/tst-tls1.c: Likewise.
42158         * elf/tst-tls10.h: Likewise.
42159         * elf/tst-tls14.c: Likewise.
42160         * elf/tst-tls2.c: Likewise.
42161         * elf/tst-tls3.c: Likewise.
42162         * elf/tst-tls4.c: Likewise.
42163         * elf/tst-tls5.c: Likewise.
42164         * elf/tst-tls6.c: Likewise.
42165         * elf/tst-tls7.c: Likewise.
42166         * elf/tst-tls8.c: Likewise.
42167         * elf/tst-tls9.c: Likewise.
42168         * elf/tst-tlsmod1.c: Likewise.
42169         * elf/tst-tlsmod13.c: Likewise.
42170         * elf/tst-tlsmod13a.c: Likewise.
42171         * elf/tst-tlsmod14a.c: Likewise.
42172         * elf/tst-tlsmod16a.c: Likewise.
42173         * elf/tst-tlsmod16b.c: Likewise.
42174         * elf/tst-tlsmod2.c: Likewise.
42175         * elf/tst-tlsmod3.c: Likewise.
42176         * elf/tst-tlsmod4.c: Likewise.
42177         * elf/tst-tlsmod5.c: Likewise.
42178         * elf/tst-tlsmod6.c: Likewise.
42179
42180 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42181
42182         [BZ #12486]
42183         * malloc/malloc.c: remove checks for statistics.
42184
42185 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42186
42187         [BZ #15277]
42188         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42189         * inet/tst-network.c: Add testcase.
42190
42191 2013-10-17  Andreas Schwab  <schwab@suse.de>
42192
42193         [BZ #15218]
42194         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42195         to determine canonical name.
42196
42197 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42198
42199         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42200         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42201         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42202         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42203         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42204         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42205         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42206         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42207         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42208         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42209         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42210         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42211         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42212         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42213         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42214         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42215         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42216         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42217         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42218         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42219         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42220         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42221         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42222         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42223         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42224         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42225         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42226         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42227         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42228         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42229         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42230         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42231         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42232         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42233         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42234         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42235         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42236         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42237         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42238         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42239         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42240         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42241         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42242         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42243         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42244         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42245         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42246         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42247         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42248         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42249         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42250         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42251         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42252         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42253         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42254         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42255         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42256         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42257
42258 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42259
42260         [BZ #16041]
42261         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42262         make result into a quiet NaN.
42263
42264 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42265
42266         * soft-fp/adddf3.c: Fix horizontal whitespace.
42267         * soft-fp/addsf3.c: Likewise.
42268         * soft-fp/addtf3.c: Likewise.
42269         * soft-fp/divdf3.c: Likewise.
42270         * soft-fp/divsf3.c: Likewise.
42271         * soft-fp/divtf3.c: Likewise.
42272         * soft-fp/double.h: Likewise.
42273         * soft-fp/eqdf2.c: Likewise.
42274         * soft-fp/eqsf2.c: Likewise.
42275         * soft-fp/eqtf2.c: Likewise.
42276         * soft-fp/extenddftf2.c: Likewise.
42277         * soft-fp/extended.h: Likewise.
42278         * soft-fp/extendsfdf2.c: Likewise.
42279         * soft-fp/extendsftf2.c: Likewise.
42280         * soft-fp/extendxftf2.c: Likewise.
42281         * soft-fp/fixdfdi.c: Likewise.
42282         * soft-fp/fixdfsi.c: Likewise.
42283         * soft-fp/fixdfti.c: Likewise.
42284         * soft-fp/fixsfdi.c: Likewise.
42285         * soft-fp/fixsfsi.c: Likewise.
42286         * soft-fp/fixsfti.c: Likewise.
42287         * soft-fp/fixtfdi.c: Likewise.
42288         * soft-fp/fixtfsi.c: Likewise.
42289         * soft-fp/fixtfti.c: Likewise.
42290         * soft-fp/fixunsdfdi.c: Likewise.
42291         * soft-fp/fixunsdfsi.c: Likewise.
42292         * soft-fp/fixunsdfti.c: Likewise.
42293         * soft-fp/fixunssfdi.c: Likewise.
42294         * soft-fp/fixunssfsi.c: Likewise.
42295         * soft-fp/fixunssfti.c: Likewise.
42296         * soft-fp/fixunstfdi.c: Likewise.
42297         * soft-fp/fixunstfsi.c: Likewise.
42298         * soft-fp/fixunstfti.c: Likewise.
42299         * soft-fp/floatdidf.c: Likewise.
42300         * soft-fp/floatdisf.c: Likewise.
42301         * soft-fp/floatditf.c: Likewise.
42302         * soft-fp/floatsidf.c: Likewise.
42303         * soft-fp/floatsisf.c: Likewise.
42304         * soft-fp/floatsitf.c: Likewise.
42305         * soft-fp/floattidf.c: Likewise.
42306         * soft-fp/floattisf.c: Likewise.
42307         * soft-fp/floattitf.c: Likewise.
42308         * soft-fp/floatundidf.c: Likewise.
42309         * soft-fp/floatundisf.c: Likewise.
42310         * soft-fp/floatunditf.c: Likewise.
42311         * soft-fp/floatunsidf.c: Likewise.
42312         * soft-fp/floatunsisf.c: Likewise.
42313         * soft-fp/floatunsitf.c: Likewise.
42314         * soft-fp/floatuntidf.c: Likewise.
42315         * soft-fp/floatuntisf.c: Likewise.
42316         * soft-fp/floatuntitf.c: Likewise.
42317         * soft-fp/fmadf4.c: Likewise.
42318         * soft-fp/fmasf4.c: Likewise.
42319         * soft-fp/fmatf4.c: Likewise.
42320         * soft-fp/gedf2.c: Likewise.
42321         * soft-fp/gesf2.c: Likewise.
42322         * soft-fp/getf2.c: Likewise.
42323         * soft-fp/ledf2.c: Likewise.
42324         * soft-fp/lesf2.c: Likewise.
42325         * soft-fp/letf2.c: Likewise.
42326         * soft-fp/muldf3.c: Likewise.
42327         * soft-fp/mulsf3.c: Likewise.
42328         * soft-fp/multf3.c: Likewise.
42329         * soft-fp/negdf2.c: Likewise.
42330         * soft-fp/negsf2.c: Likewise.
42331         * soft-fp/negtf2.c: Likewise.
42332         * soft-fp/op-1.h: Likewise.
42333         * soft-fp/op-2.h: Likewise.
42334         * soft-fp/op-4.h: Likewise.
42335         * soft-fp/op-8.h: Likewise.
42336         * soft-fp/op-common.h: Likewise.
42337         * soft-fp/quad.h: Likewise.
42338         * soft-fp/single.h: Likewise.
42339         * soft-fp/soft-fp.h: Likewise.
42340         * soft-fp/sqrtdf2.c: Likewise.
42341         * soft-fp/sqrtsf2.c: Likewise.
42342         * soft-fp/sqrttf2.c: Likewise.
42343         * soft-fp/subdf3.c: Likewise.
42344         * soft-fp/subsf3.c: Likewise.
42345         * soft-fp/subtf3.c: Likewise.
42346         * soft-fp/truncdfsf2.c: Likewise.
42347         * soft-fp/trunctfdf2.c: Likewise.
42348         * soft-fp/trunctfsf2.c: Likewise.
42349         * soft-fp/trunctfxf2.c: Likewise.
42350         * soft-fp/unorddf2.c: Likewise.
42351         * soft-fp/unordsf2.c: Likewise.
42352         * soft-fp/unordtf2.c: Likewise.
42353
42354 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42355
42356         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42357         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42358
42359 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42360
42361         * elf/dl-libc.c: Clear initfini list after freeing.
42362
42363 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42364
42365         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42366         * soft-fp/addsf3.c: Likewise.
42367         * soft-fp/addtf3.c: Likewise.
42368         * soft-fp/divdf3.c: Likewise.
42369         * soft-fp/divsf3.c: Likewise.
42370         * soft-fp/divtf3.c: Likewise.
42371         * soft-fp/double.h: Likewise.
42372         * soft-fp/eqdf2.c: Likewise.
42373         * soft-fp/eqsf2.c: Likewise.
42374         * soft-fp/eqtf2.c: Likewise.
42375         * soft-fp/extenddftf2.c: Likewise.
42376         * soft-fp/extended.h: Likewise.
42377         * soft-fp/extendsfdf2.c: Likewise.
42378         * soft-fp/extendsftf2.c: Likewise.
42379         * soft-fp/extendxftf2.c: Likewise.
42380         * soft-fp/fixdfdi.c: Likewise.
42381         * soft-fp/fixdfsi.c: Likewise.
42382         * soft-fp/fixdfti.c: Likewise.
42383         * soft-fp/fixsfdi.c: Likewise.
42384         * soft-fp/fixsfsi.c: Likewise.
42385         * soft-fp/fixsfti.c: Likewise.
42386         * soft-fp/fixtfdi.c: Likewise.
42387         * soft-fp/fixtfsi.c: Likewise.
42388         * soft-fp/fixtfti.c: Likewise.
42389         * soft-fp/fixunsdfdi.c: Likewise.
42390         * soft-fp/fixunsdfsi.c: Likewise.
42391         * soft-fp/fixunsdfti.c: Likewise.
42392         * soft-fp/fixunssfdi.c: Likewise.
42393         * soft-fp/fixunssfsi.c: Likewise.
42394         * soft-fp/fixunssfti.c: Likewise.
42395         * soft-fp/fixunstfdi.c: Likewise.
42396         * soft-fp/fixunstfsi.c: Likewise.
42397         * soft-fp/fixunstfti.c: Likewise.
42398         * soft-fp/floatdidf.c: Likewise.
42399         * soft-fp/floatdisf.c: Likewise.
42400         * soft-fp/floatditf.c: Likewise.
42401         * soft-fp/floatsidf.c: Likewise.
42402         * soft-fp/floatsisf.c: Likewise.
42403         * soft-fp/floatsitf.c: Likewise.
42404         * soft-fp/floattidf.c: Likewise.
42405         * soft-fp/floattisf.c: Likewise.
42406         * soft-fp/floattitf.c: Likewise.
42407         * soft-fp/floatundidf.c: Likewise.
42408         * soft-fp/floatundisf.c: Likewise.
42409         * soft-fp/floatunsidf.c: Likewise.
42410         * soft-fp/floatunsisf.c: Likewise.
42411         * soft-fp/floatuntidf.c: Likewise.
42412         * soft-fp/floatuntisf.c: Likewise.
42413         * soft-fp/floatuntitf.c: Likewise.
42414         * soft-fp/fmadf4.c: Likewise.
42415         * soft-fp/fmasf4.c: Likewise.
42416         * soft-fp/fmatf4.c: Likewise.
42417         * soft-fp/gedf2.c: Likewise.
42418         * soft-fp/gesf2.c: Likewise.
42419         * soft-fp/getf2.c: Likewise.
42420         * soft-fp/ledf2.c: Likewise.
42421         * soft-fp/lesf2.c: Likewise.
42422         * soft-fp/letf2.c: Likewise.
42423         * soft-fp/muldf3.c: Likewise.
42424         * soft-fp/mulsf3.c: Likewise.
42425         * soft-fp/multf3.c: Likewise.
42426         * soft-fp/negdf2.c: Likewise.
42427         * soft-fp/negsf2.c: Likewise.
42428         * soft-fp/negtf2.c: Likewise.
42429         * soft-fp/op-1.h: Likewise.
42430         * soft-fp/op-2.h: Likewise.
42431         * soft-fp/op-4.h: Likewise.
42432         * soft-fp/op-8.h: Likewise.
42433         * soft-fp/op-common.h: Likewise.
42434         * soft-fp/quad.h: Likewise.
42435         * soft-fp/single.h: Likewise.
42436         * soft-fp/soft-fp.h: Likewise.
42437         * soft-fp/sqrtdf2.c: Likewise.
42438         * soft-fp/sqrtsf2.c: Likewise.
42439         * soft-fp/sqrttf2.c: Likewise.
42440         * soft-fp/subdf3.c: Likewise.
42441         * soft-fp/subsf3.c: Likewise.
42442         * soft-fp/subtf3.c: Likewise.
42443         * soft-fp/truncdfsf2.c: Likewise.
42444         * soft-fp/trunctfdf2.c: Likewise.
42445         * soft-fp/trunctfsf2.c: Likewise.
42446         * soft-fp/trunctfxf2.c: Likewise.
42447         * soft-fp/unorddf2.c: Likewise.
42448         * soft-fp/unordsf2.c: Likewise.
42449         * soft-fp/unordtf2.c: Likewise.
42450
42451 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42452
42453         [BZ #15672]
42454         * misc/error.c (error_tail): Fix possible buffer overflow.
42455
42456 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42457
42458         [BZ #13028]
42459         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42460         address.
42461
42462 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42463
42464         [BZ #832]
42465         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42466         testing pipefail option.
42467
42468 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42469
42470         * soft-fp/double.h: Indent preprocessor directives inside #if.
42471         * soft-fp/extended.h: Likewise.
42472         * soft-fp/op-2.h: Likewise.
42473         * soft-fp/op-4.h: Likewise.
42474         * soft-fp/op-common.h: Likewise.
42475         * soft-fp/quad.h: Likewise.
42476         * soft-fp/single.h: Likewise.
42477         * soft-fp/soft-fp.h: Likewise.
42478
42479 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42480
42481         * iconv/iconv_prog.c: Fix typos.
42482         * stdio-common/psiginfo-data.h: Likewise.
42483
42484 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42485
42486         [BZ #15764]
42487         * locale/setlocale.c: Fix typo.
42488
42489 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42490
42491         [BZ #16036]
42492         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42493         signaling NaN arguments.
42494         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42495         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42496
42497         [BZ #14910]
42498         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42499         unordered operands.
42500         * soft-fp/gesf2.c (__gesf2): Likewise.
42501         * soft-fp/getf2.c (__getf2): Likewise.
42502         * soft-fp/ledf2.c (__ledf2): Likewise.
42503         * soft-fp/lesf2.c (__lesf2): Likewise.
42504         * soft-fp/letf2.c (__letf2): Likewise.
42505
42506         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42507         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42508         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42509         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42510         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42511         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42512         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42513         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42514         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42515         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42516         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42517         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42518         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42519         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42520         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42521         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42522         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42523         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42524         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42525         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42526         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42527         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42528         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42529         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42530         * soft-fp/floattidf.c (__floattidf): Likewise.
42531         * soft-fp/floattisf.c (__floattisf): Likewise.
42532         * soft-fp/floattitf.c (__floattitf): Likewise.
42533         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42534         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42535         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42536         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42537         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42538         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42539         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42540         * soft-fp/gesf2.c (__gesf2): Likewise.
42541         * soft-fp/getf2.c (__getf2): Likewise.
42542         * soft-fp/ledf2.c (__ledf2): Likewise.
42543         * soft-fp/lesf2.c (__lesf2): Likewise.
42544         * soft-fp/letf2.c (__letf2): Likewise.
42545
42546         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42547         Undefine and redefine.
42548         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42549         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42550         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42551         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42552         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42553         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42554         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42555         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42556         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42557         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42558         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42559         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42560         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42561         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42562         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42563
42564         [BZ #16032]
42565         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42566         without decrementing exponent if mantissa >= that for the
42567         denominator, not >.
42568         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42569         denominator, not >.  Decrement exponent in < case instead of
42570         incrementing in >= case.
42571         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42572         without decrementing exponent if mantissa >= that for the
42573         denominator, not >.
42574
42575         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42576         computing saturated result for unsigned overflow.
42577
42578 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42579             Jeff Law  <law@redhat.com>
42580
42581         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42582         (atan2Mp): Add systemtap probe marker.
42583         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42584         (__ieee754_log): Add systemtap probe marker.
42585         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42586         (atanMp): Add systemtap probe marker.
42587         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42588         (tanMp): Add systemtap probe marker.
42589         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42590         (__slowexp): Add systemtap probe marker.
42591         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42592         (__slowpow): Add systemtap probe marker.
42593         * manual/probes.texi: Document probes.
42594
42595 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42596
42597         [BZ #15362]
42598         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42599         written.
42600         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42601         written.
42602         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42603         written to buffer but not flushed.
42604         * libio/iofwrite_u.c:  Likewise.
42605         * libio/iopadn.c:  Return bytes returned even if EOF was
42606         encountered.
42607         * libio/iowpadn.c:  Likewise.
42608         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42609         if _IO_padn does not write the whole buffer.
42610         [!COMPILE_WPRINTF] (PAD): Likewise.
42611
42612 2013-10-10  David S. Miller  <davem@davemloft.net>
42613
42614         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42615         directory block.
42616
42617 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42618
42619         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42620         instead of FSF address.
42621         * soft-fp/fixdfti.c: Likewise.
42622         * soft-fp/fixsfti.c: Likewise.
42623         * soft-fp/fixtfti.c: Likewise.
42624         * soft-fp/fixunsdfti.c: Likewise.
42625         * soft-fp/fixunssfti.c: Likewise.
42626         * soft-fp/fixunstfti.c: Likewise.
42627         * soft-fp/floattidf.c: Likewise.
42628         * soft-fp/floattisf.c: Likewise.
42629         * soft-fp/floattitf.c: Likewise.
42630         * soft-fp/floatuntidf.c: Likewise.
42631         * soft-fp/floatuntisf.c: Likewise.
42632         * soft-fp/floatuntitf.c: Likewise.
42633         * soft-fp/trunctfxf2.c: Likewise.
42634
42635         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42636         * soft-fp/fixdfti.c: Likewise.
42637         * soft-fp/fixsfti.c: Likewise.
42638         * soft-fp/fixtfti.c: Likewise.
42639         * soft-fp/fixunsdfti.c: Likewise.
42640         * soft-fp/fixunssfti.c: Likewise.
42641         * soft-fp/fixunstfti.c: Likewise.
42642         * soft-fp/floattidf.c: Likewise.
42643         * soft-fp/floattisf.c: Likewise.
42644         * soft-fp/floattitf.c: Likewise.
42645         * soft-fp/floatuntidf.c: Likewise.
42646         * soft-fp/floatuntisf.c: Likewise.
42647         * soft-fp/floatuntitf.c: Likewise.
42648         * soft-fp/trunctfxf2.c: Likewise.
42649
42650 2013-10-10  David S. Miller  <davem@davemloft.net>
42651
42652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42653
42654 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42655
42656         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42657         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42658         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42659         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42660         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42661         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42662         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42663
42664         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42665         for NaNs before doing comparisons on argument.
42666         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42667         Likewise.
42668
42669 2013-10-10  Will Newton  <will.newton@linaro.org>
42670
42671         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42672         passed to _int_memalign does not overflow.
42673
42674 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42675
42676         * scripts/bench.pl: Add include-sources directive.
42677         * benchtests/README: Update documentation.
42678
42679 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42680
42681         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42682         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42683         instead of FP_INIT_ROUNDMODE.
42684         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42685         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42686
42687         [BZ #16034]
42688         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42689         copy class of input value.
42690         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42691         not handle exceptions.
42692         * soft-fp/negsf2.c (__negsf2): Likewise.
42693         * soft-fp/negtf2.c (__negtf2): Likewise.
42694         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42695
42696 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42697
42698         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42699         semicolon.  From Linux kernel.
42700
42701 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42702
42703         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42704
42705 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42706
42707         [BZ #156]
42708         * manual/socket.texi: Added statement about buffer
42709         for gethostbyname2_r.
42710
42711 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42712
42713         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42714         Use .p2align directive instead, throughout.
42715         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42716         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42717         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42718         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42719         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42720         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42721         * sysdeps/x86_64/strchr.S: Likewise.
42722         * sysdeps/x86_64/strrchr.S: Likewise.
42723
42724 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42725
42726         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42727
42728         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42729
42730         * sysdeps/generic/math_private.h (__mpsin1): Remove
42731         declaration.
42732         (__mpcos1): Likewise.
42733         (__mpsin): New argument __range_reduce.
42734         (__mpcos): Likewise.
42735         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42736         (slow): Use __mpsin and __mpcos.
42737         (slow1): Likewise.
42738         (slow2): Likewise.
42739         (sloww): Likewise.
42740         (sloww1): Likewise.
42741         (sloww2): Likewise.
42742         (bsloww): Likewise.
42743         (bsloww1): Likewise.
42744         (bsloww2): Likewise.
42745         (cslow2): Likewise.
42746         (csloww): Likewise.
42747         (csloww1): Likewise.
42748         (csloww2): Likewise.
42749         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42750         range_reduce.  Merge in __mpsin1.
42751         (__mpcos): Likewise.
42752         (__mpsin1): Remove.
42753         (__mpcos1): Likewise.
42754
42755 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42756
42757         * locale/loadlocale.c (_nl_intern_locale_data): Use
42758         LOCFILE_ALIGNED_P.
42759         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42760         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42761         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42762         obstack data is appropriately aligned.
42763         (obstack_int32_grow_fast): Likewise.
42764         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
42765         * locale/programs/locfile.c (add_locale_uint32): Likewise.
42766         (add_locale_uint32_array): Likewise.
42767
42768 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42769
42770         * benchtests/Makefile: Remove ARGLIST and RET variables.
42771         ($(objpfx)bench-%.c): Pass only function name to the script.
42772         * benchtests/README: Update documentation.
42773         * benchtests/acos-inputs: Add new directives.
42774         * benchtests/acosh-inputs: Likewise.
42775         * benchtests/asin-inputs: Likewise.
42776         * benchtests/asinh-inputs: Likewise.
42777         * benchtests/atan-inputs: Likewise.
42778         * benchtests/atanh-inputs: Likewise.
42779         * benchtests/cos-inputs: Likewise.
42780         * benchtests/cosh-inputs: Likewise.
42781         * benchtests/exp-inputs: Likewise.
42782         * benchtests/log-inputs: Likewise.
42783         * benchtests/pow-inputs: Likewise.
42784         * benchtests/rint-inputs: Likewise.
42785         * benchtests/sin-inputs: Likewise.
42786         * benchtests/sinh-inputs: Likewise.
42787         * benchtests/tan-inputs: Likewise.
42788         * benchtests/tanh-inputs: Likewise.
42789         * scripts/bench.pl: Add support for new directives.
42790
42791 2013-10-07  Alan Modra  <amodra@gmail.com>
42792
42793         * README: Fix careless merge.
42794
42795 2013-10-05  Alan Modra  <amodra@gmail.com>
42796
42797         * NEWS: Mention powerpc64le support and bugs fixed.
42798         * README: Both big-endian and little-endian powerpc64 supported.
42799
42800 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42801
42802         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
42803         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
42804         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
42805         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
42806
42807 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
42808
42809         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
42810         match prototype.
42811
42812 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
42813
42814         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
42815         Move -mhard-float appending from
42816         ports/sysdeps/powerpc/powerpc32/Makefile.
42817         [$(with-fp) = yes] (ASFLAGS): Likewise.
42818         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
42819         * sysdeps/powerpc/nofpu: Move directory from
42820         ports/sysdeps/powerpc/nofpu.
42821         * sysdeps/powerpc/soft-fp: Move directory from
42822         ports/sysdeps/powerpc/soft-fp.
42823         * sysdeps/powerpc/powerpc32/405: Move directory from
42824         ports/sysdeps/powerpc/powerpc32/405.
42825         * sysdeps/powerpc/powerpc32/440: Move directory from
42826         ports/sysdeps/powerpc/powerpc32/440.
42827         * sysdeps/powerpc/powerpc32/464: Move directory from
42828         ports/sysdeps/powerpc/powerpc32/464.
42829         * sysdeps/powerpc/powerpc32/476: Move directory from
42830         ports/sysdeps/powerpc/powerpc32/476.
42831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42832         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
42833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
42834         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
42835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
42836         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
42837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
42838         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
42839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
42840         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
42841         * README: Update for powerpc-*-linux-gnu software floating point
42842         support in libc.
42843
42844         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
42845         case to powerpc/powerpc32*.
42846         * sysdeps/unix/sysv/linux/configure: Regenerated.
42847
42848         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
42849         (_FPU_MASK_OM): Define as 0x04.
42850         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
42851         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
42852         0x00c10080.
42853         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
42854         0x0000003c.
42855         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
42856
42857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
42858         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42859         getcontext_e500.
42860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
42861         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42862         setcontext_e500.
42863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
42864         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
42865         and setcontext_e500.
42866
42867 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
42868
42869         * locale/iso-3166.def: Update iso-1366.def and related occurrences
42870
42871 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42872
42873         * manual/threads.texi (Default Thread Attributes): Fix typo.
42874
42875 2013-10-04  Will Newton  <will.newton@linaro.org>
42876
42877         * malloc/Makefile: Add tst-memalign.
42878         * malloc/tst-memalign.c: New file.
42879
42880         * malloc/tst-posix_memalign.c: Add comments.
42881         (do_test): Add comments and call free on all potentially
42882         allocated pointers. Add space after cast.
42883
42884         * malloc/tst-pvalloc.c: Add comments.
42885         (do_test): Add comments and call free on all potentially
42886         allocated pointers. Remove duplicate check for NULL pointer.
42887         Add space after cast.
42888
42889         * malloc/tst-valloc.c: Add comments.
42890         (do_test): Add comments and call free on all potentially
42891         allocated pointers. Remove duplicate check for NULL pointer.
42892         Add space after cast.
42893
42894 2013-10-04  Alan Modra  <amodra@gmail.com>
42895
42896         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42897         Use stdint types in rather than __attribute__((mode())).
42898         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42899
42900 2013-10-04  Alan Modra  <amodra@gmail.com>
42901
42902         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42903         Correct handling of unaligned relocs for little-endian.
42904         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42905
42906 2013-10-04  Alan Modra  <amodra@gmail.com>
42907
42908         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
42909         * configure: Regenerate.
42910         * nptl/shlib-versions: Powerpc*le starts at 2.18.
42911         * shlib-versions: Likewise.
42912
42913 2013-10-04  Alan Modra  <amodra@gmail.com>
42914
42915         * string/tester.c (test_memrchr): Increment reported test cycle.
42916
42917 2013-10-04  Alan Modra  <amodra@gmail.com>
42918
42919         * string/test-memcpy.c (do_one_test): When reporting errors, print
42920         string address and don't overrun end of string.
42921
42922 2013-10-04  Alan Modra  <amodra@gmail.com>
42923
42924         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
42925         insrdi.  Make better use of reg selection to speed exit slightly.
42926         Schedule entry path a little better.  Remove useless "are we done"
42927         checks on entry to main loop.  Handle wrapping around zero address.
42928         Correct main loop count.  Handle single left-over word from main
42929         loop inline rather than by using loop_small.  Remove extra word
42930         case in loop_small caused by wrong loop count.  Add little-endian
42931         support.
42932         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
42933         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
42934         cache hint.
42935         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
42936         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
42937         support.  Avoid rlwimi.
42938         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
42939
42940 2013-10-04  Alan Modra  <amodra@gmail.com>
42941
42942         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
42943         insrdi.  Formatting.
42944         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
42945         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
42946         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
42947         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
42948         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
42949         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
42950
42951 2013-10-04  Alan Modra  <amodra@gmail.com>
42952
42953         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
42954         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
42955         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42956         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
42957         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
42958         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
42959         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
42960         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42961         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
42962         use of regs.  Use power7 mtocrf.  Tidy function tails.
42963
42964 2013-10-04  Alan Modra  <amodra@gmail.com>
42965
42966         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
42967         Formatting.  Consistently use rXXX register defines or rN defines.
42968         Use early exit labels that avoid restoring unused non-volatile regs.
42969         Make cr field use more consistent with rWORDn compares.  Rename
42970         regs used as shift registers for unaligned loop, using rN defines
42971         for short lifetime/multiple use regs.
42972         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
42973         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
42974         addi 1,1,64 to pop stack frame.  Simplify return value code.
42975         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
42976
42977 2013-10-04  Alan Modra  <amodra@gmail.com>
42978
42979         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
42980         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
42981         rather than rlwimi.
42982         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
42983         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
42984         little-endian support.  Correct typos.
42985         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
42986         rather than rlwimi.
42987         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
42988         in loop and entry code to keep "and." results.
42989         (strchr): Add little-endian support.  Comment.  Move cntlzd
42990         earlier in tail.
42991         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
42992
42993 2013-10-04  Alan Modra  <amodra@gmail.com>
42994
42995         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
42996         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
42997         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
42998         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
42999
43000 2013-10-04  Alan Modra  <amodra@gmail.com>
43001
43002         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43003         (rTMP): Define as r11.
43004         (strcmp): Add little-endian support.  Optimise tail.
43005         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43006         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43007         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43008         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43009         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43010         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43011         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43012
43013 2013-10-04  Alan Modra  <amodra@gmail.com>
43014
43015         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43016         little-endian support.  Remove unnecessary "are we done" tests.
43017         Handle "s" wrapping around zero and extremely large "size".
43018         Correct main loop count.  Handle single left-over word from main
43019         loop inline rather than by using small_loop.  Correct comments.
43020         Delete "zero" tail, use "end_max" instead.
43021         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43022
43023 2013-10-04  Alan Modra  <amodra@gmail.com>
43024
43025         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43026         support.  Don't branch over align.
43027         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43028         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43029         support.  Rearrange tmp reg use to suit.  Comment.
43030         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43031
43032 2013-10-04  Alan Modra  <amodra@gmail.com>
43033
43034         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43035
43036 2013-10-04  Alan Modra  <amodra@gmail.com>
43037
43038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43039         conditional form of branch and link when obtaining pc.
43040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43041
43042 2013-10-04  Alan Modra  <amodra@gmail.com>
43043
43044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43045         HIWORD/LOWORD.
43046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43048
43049 2013-10-04  Alan Modra  <amodra@gmail.com>
43050
43051         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43052         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43053         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43054         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43055         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43056         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43057         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43058         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43059         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43060         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43061
43062 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43063             Alistair Popple <alistair@ozlabs.au.ibm.com>
43064             Alan Modra <amodra@gmail.com>
43065
43066         [BZ #15723]
43067         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43068         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43069         _dl_hwcap access for little-endian.
43070         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43071         destroy vmx regs when saving unaligned.
43072         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43073         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43074         destroy vmx regs when saving unaligned.
43075
43076 2013-10-04  Alan Modra  <amodra@gmail.com>
43077
43078         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43079         Don't use a union to pack hi/low value.
43080
43081 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43082
43083         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43084         for little-endian.
43085         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43086         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43087         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43088         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43089         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43090
43091 2013-10-04  Alan Modra  <amodra@gmail.com>
43092
43093         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43094         constants to usual value for .cst8 section, and remove redundant
43095         high address load.
43096         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43097         constant for 0x1p52.  Load little-endian words of double from
43098         correct stack offsets.
43099
43100 2013-10-04  Alan Modra  <amodra@gmail.com>
43101
43102         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43103         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43104         words of double from correct stack offsets.
43105         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43106         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43107         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43108         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43109         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43110         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43111         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43112         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43113         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43114         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43115         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43116         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43117         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43118         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43119         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43120         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43121         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43122
43123 2013-10-04  Alan Modra  <amodra@gmail.com>
43124
43125         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43126         64-bit int/double union.
43127         (_FPU_SETCW): Likewise.
43128         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43129         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43130
43131 2013-10-04  Alan Modra  <amodra@gmail.com>
43132
43133         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43134         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43135
43136 2013-10-04  Alan Modra  <amodra@gmail.com>
43137
43138         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43139         use vector int constants.
43140         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43141
43142 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43143
43144         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43145         array with long long.
43146         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43147         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43148         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43149         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43150         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43151         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43152         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43153         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43154         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43155         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43156         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43157         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43158         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43159
43160 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43161
43162         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43163         (__signbit): Likewise.  Correct for little-endian.
43164         (__signbitl): Call __signbit.
43165         (lrint): Correct for little-endian.
43166         (lrintf): Call lrint.
43167
43168 2013-10-04  Alan Modra  <amodra@gmail.com>
43169
43170         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43171         union 32-bit int array member with 64-bit int array.
43172         (t515, tm256): Double rather than long double.
43173         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43174
43175 2013-10-04  Alan Modra  <amodra@gmail.com>
43176
43177         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43178         Delete.
43179         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43180         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43181         version of math_ldbl.h.
43182
43183 2013-10-04  Alan Modra  <amodra@gmail.com>
43184
43185         [BZ #15734], [BZ #15735]
43186         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43187         all uses of ieee875 long double macros and unions.  Simplify test
43188         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43189         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43190         normalize after ldbl_extract_mantissa, and don't add hidden bit
43191         already handled.  Don't treat low word of ieee854 mantissa like
43192         low word of IBM long double and mask off bit when testing for
43193         zero.
43194         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43195         all uses of ieee875 long double macros and unions.  Simplify tests
43196         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43197         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43198         two1022, instead use their values.  Recognise that tests for large
43199         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43200         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43201         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43202         test for 0.0L and nan.  Correct negation.
43203         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43204         ieee875 long double macros and unions.  Correct output for large
43205         magnitude x.  Correct absolute value calculation.
43206         (__erfcl): Likewise.
43207         * math/libm-test.inc: Add tests for errors discovered in IBM long
43208         double versions of fmodl, remainderl, erfl and erfcl.
43209
43210 2013-10-04  Alan Modra  <amodra@gmail.com>
43211
43212         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43213         all uses of ieee854 long double macros and unions.  Simplify tests
43214         for long doubles that are fully specified by the high double.
43215         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43216         Likewise.
43217         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43218         Remove dead code too.
43219         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43220         (__ieee754_ynl): Likewise.
43221         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43222         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43223         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43224         Remove dead code too.
43225         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43226         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43227         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43228         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43229         Simplify.
43230         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43231         Simplify.
43232         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43233         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43234         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43235         Comment on variable precision.
43236         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43237         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43238         Likewise.
43239         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43240         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43241         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43242         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43243         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43244
43245 2013-10-04  Alan Modra  <amodra@gmail.com>
43246
43247         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43248         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43249         all uses of ieee854 long double macros and unions.
43250         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43251         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43252         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43253         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43254         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43255         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43256         Likewise.
43257         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43258         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43259         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43260         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43261         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43262         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43263         Simplify sign and nan test too.
43264         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43265         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43266         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43267         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43268         Likewise.
43269         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43270         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43271         Likewise.
43272         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43273         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43274         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43275         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43276         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43277         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43278
43279 2013-10-04  Alan Modra  <amodra@gmail.com>
43280
43281         * stdio-common/printf_size.c (__printf_size): Don't use
43282         union ieee854_long_double in fpnum union.
43283         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43284         signbit macro to retrieve sign from long double.
43285         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43286         retrieve sign from long double.
43287         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43288         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43289         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43290         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43291         * math/test-misc.c (main): Don't use union ieee854_long_double.
43292
43293 2013-10-04  Alan Modra  <amodra@gmail.com>
43294
43295         [BZ #15680]
43296         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43297         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43298         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43299         calculation.  Remove unnecessary test for denormal exponent.
43300         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43301         Correct handling of denormals.  Avoid undefined shift behaviour.
43302         Correct normalisation of low mantissa when low double is denormal.
43303         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43304         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43305         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43306         Correct normalisation of low mantissa.  Test for overflow of high
43307         mantissa and normalise.
43308         (ldbl_nearbyint): Use more readable constant for two52.
43309         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43310         (__mpn_construct_long_double): Fix test for overflow of high
43311         mantissa and correct normalisation.  Avoid undefined shift.
43312
43313 2013-10-04  Alan Modra  <amodra@gmail.com>
43314
43315         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43316         (union ibm_extended_long_double): Define as an array of ieee754_double.
43317         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43318         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43319         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43320         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43321         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43322         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43323         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43324         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43325         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43326         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43327         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43328
43329 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43330
43331         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43332         page size instead of calling getpagesize.
43333
43334         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43335         (LOCFILE_ALIGN_MASK): Likewise.
43336         (LOCFILE_ALIGN_UP): Likewise.
43337         (LOCFILE_ALIGNED_P): Likewise.
43338         * locale/programs/ld-collate.c (collate_output): Use the new
43339         macros instead of __alignof__ (int32_t).
43340         * locale/weight.h (findidx): Likewise.
43341
43342 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43343
43344         [BZ #431]
43345         * manual/string.texi: Fix strncat and wcsncat.
43346
43347 2013-10-03  Brooks Moses  <bmoses@google.com>
43348
43349         [BZ #15915]
43350         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43351         * Makerules: ...here, and adjust associated comments.
43352
43353 2013-10-02  Will Newton  <will.newton@linaro.org>
43354
43355         * malloc/Makefile: Add tst-pvalloc.
43356         * malloc/tst-pvalloc.c: New file.
43357
43358 2013-10-02  Will Newton  <will.newton@linaro.org>
43359
43360         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43361         improve test coverage.
43362
43363 2013-10-02  Will Newton  <will.newton@linaro.org>
43364
43365         * malloc/Makefile: Add tst-posix_memalign.
43366         * malloc/tst-posix_memalign.c: New file.
43367
43368 2013-10-01  Eric Blake  <eblake@redhat.com>
43369
43370         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43371         Use __THROWNL rather than __THROW on static functions.
43372
43373 2013-09-30  Petr Machata  <pmachata@redhat.com>
43374
43375         * elf/elf.h (R_AARCH64_ABS16): New macro.
43376         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43377         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43378         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43379         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43380         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43381         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43382         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43383         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43384         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43385         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43386         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43387         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43388         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43389         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43390         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43391         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43392         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43393         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43394         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43395         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43396         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43397         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43398         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43399         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43400         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43401         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43402         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43403         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43404         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43405         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43406         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43407         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43408         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43409         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43410         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43411         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43412         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43413         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43414         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43415         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43416         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43417         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43418         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43419         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43420         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43421         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43422         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43423         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43424         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43425         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43426         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43427         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43428         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43429         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43430         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43431         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43432         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43433         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43434         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43435         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43436         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43437         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43438         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43439         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43440         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43441         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43442         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43443         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43444         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43445         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43446         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43447         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43448         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43449         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43450         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43451         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43452         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43453         (R_AARCH64_TLSDESC_LDR): Likewise.
43454         (R_AARCH64_TLSDESC_ADD): Likewise.
43455         (R_AARCH64_TLSDESC_CALL): Likewise.
43456
43457 2013-09-30  Andreas Schwab  <schwab@suse.de>
43458
43459         [BZ #15048]
43460         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43461         the nss database lookup.
43462         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43463         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43464
43465 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43466
43467         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43468
43469 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43470
43471         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43472         ${Bash-specific parameter/pattern/string} parameter expansion.
43473         * sysdeps/unix/make-syscalls.sh: Likewise.
43474
43475 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43476
43477         * sysdeps/sh/stackguard-macros.h: New file.
43478
43479 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43480
43481         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43482         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43483         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43484         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43485         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43486         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43487
43488 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43489
43490         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43491         Fix thread ID register.
43492
43493 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43494
43495         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43496         [POSIX || UNIX98]: Require rather than permitting all symbols from
43497         <time.h>.
43498         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43499         element of struct sched_param.
43500         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43501         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43502         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43503         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43504         constant.
43505
43506 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43507
43508         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43509         argument calculation.
43510
43511 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43512
43513         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43514         Expect macro.
43515         [POSIX] (pthread_attr_t): Do not require type.
43516         [POSIX] (pthread_cond_t): Likewise.
43517         [POSIX] (pthread_condattr_t): Likewise.
43518         [POSIX] (pthread_key_t): Likewise.
43519         [POSIX] (pthread_mutex_t): Likewise.
43520         [POSIX] (pthread_mutexattr_t): Likewise.
43521         [POSIX] (pthread_once_t): Likewise.
43522         [POSIX] (pthread_t): Likewise.
43523         [POSIX-based standards] (pthread_atfork): Expect function.
43524
43525 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43526             Richard Sandiford  <richard@codesourcery.com>
43527
43528         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43529         (swap_endianness_p): New extern variable.
43530         (set_big_endian): New inline function.
43531         (maybe_swap_uint32): Likewise.
43532         (maybe_swap_uint32_array): Likewise.
43533         (maybe_swap_uint32_obstack): Likewise.
43534         * locale/programs/locfile.c: Include <stdbool.h>.
43535         (swap_endianness_p): New variable.
43536         (add_locale_uint32): Call maybe_swap_uint32.
43537         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43538         (write_locale_data): Call maybe_swap_uint32_array.
43539         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43540         maybe_swap_uint32.
43541         (obstack_int32_grow_fast): Likewise.
43542         (output_weightwc): Call maybe_swap_uint32_obstack.
43543         (collate_output): Likewise.
43544         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43545         (OPT_LITTLE_ENDIAN): Likewise.
43546         (options): Add --little-endian and --big-endian options.
43547         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43548         * locale/programs/locarchive.c: Include "locfile.h".
43549         (GET): New macro.
43550         (SET): Likewise.
43551         (INC): Likewise.
43552         (create_archive): Use the new macros to access fields of
43553         structures directly mapped from or written to locale archives.
43554         (oldlocrecentcmp): Likewise.
43555         (enlarge_archive): Likewise.
43556         (insert_name): Likewise.
43557         (add_alias): Likewise.
43558         (add_locale): Likewise.
43559         (delete_locales_from_archive): Likewise.
43560         (show_archive_content): Likewise.
43561         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43562         locale data.
43563
43564 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43565
43566         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43567         http://www.gnu.org/doc/freemanuals.texi.
43568         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43569
43570 2013-09-24  Will Newton  <will.newton@linaro.org>
43571
43572         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43573         macro.
43574
43575 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43576
43577         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43578         unsigned char.
43579
43580 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43581
43582         * manual/threads.texi (POSIX Threads): Fix a typo.
43583
43584 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43585
43586         [BZ #14547]
43587         * string/tst-strcoll-overflow.c: New test case.
43588         * string/Makefile (xtests): Add tst-strcoll-overflow.
43589         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43590         cache if string sizes may cause integer overflow.
43591
43592         [BZ #14547]
43593         * string/strcoll_l.c (coll_seq): New members rule, idx,
43594         save_idx and back_us.
43595         (get_next_seq_nocache): New function.
43596         (do_compare_nocache): New function.
43597         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43598         when malloc fails.
43599
43600 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43601
43602         [BZ #15754]
43603         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43604         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43605         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43606
43607         [BZ #15754]
43608         * elf/Makefile (tests): Add tst-ptrguard1.
43609         (tests-static): Add tst-ptrguard1-static.
43610         (tst-ptrguard1-ARGS): Define.
43611         (tst-ptrguard1-static-ARGS): Define.
43612         * elf/tst-ptrguard1.c: New file.
43613         * elf/tst-ptrguard1-static.c: New file.
43614         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43615         * sysdeps/i386/stackguard-macros.h: Likewise.
43616         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43617         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43618         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43619         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43620         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43621         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43622
43623 2013-09-23  Hector Marco  <hecmargi@upv.es>
43624             Ismael Ripoll  <iripoll@disca.upv.es>
43625             Carlos O'Donell  <carlos@redhat.com>
43626
43627         [BZ #15754]
43628         * sysdeps/generic/stackguard-macros.h: Define
43629         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43630         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43631         Define __pointer_chk_guard_local.
43632         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43633         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43634
43635 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43636
43637         [BZ #15859]
43638         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43639
43640 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43641
43642         * include/string.h (__ffs): Declare as hidden.
43643         * string/ffs.c (__ffs): Define as hidden.
43644         * sysdeps/i386/ffs.c (__ffs): Likewise.
43645         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43646         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43647         * sysdeps/s390/ffs.c (__ffs): Likewise.
43648         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43649
43650 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43651
43652         * NEWS: Mention malloc probes.
43653
43654         * malloc/arena.c (new_heap): New memory_heap_new probe.
43655         (grow_heap): New memory_heap_more probe.
43656         (shrink_heap): New memory_heap_less probe.
43657         (heap_trim): New memory_heap_free probe.
43658         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43659         (systrim): New memory_sbrk_less probe.
43660         * manual/probes.texi: Document them.
43661
43662         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43663         * manual/probes.texi: Document it.
43664
43665         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43666         (__libc_realloc): Add memory_realloc_retry probe.
43667         (__libc_memalign): Add memory_memalign_retry probe.
43668         (__libc_valloc): Add memory_valloc_retry probe.
43669         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43670         (__libc_calloc): Add memory_calloc_retry probe.
43671         * manual/probes.texi: Document them.
43672
43673         * malloc/arena.c (get_free_list): Add probe
43674         memory_arena_reuse_free_list.
43675         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43676         and memory_arena_reuse.
43677         (arena_get2) [!PER_THREAD]: Likewise.
43678         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43679         memory_arena_reuse_realloc.
43680         * manual/probes.texi: Document them.
43681
43682         * malloc/malloc.c (__libc_free): Add
43683         memory_mallopt_free_dyn_thresholds probe.
43684         (__libc_mallopt): Add multiple memory_mallopt probes.
43685         * manual/probes.texi: Document them.
43686
43687         * malloc/malloc.c: Include stap-probe.h.
43688         (__libc_mallopt): Add memory_mallopt probe.
43689         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43690         * manual/probes.texi: New.
43691         * manual/Makefile (chapters): Add probes.
43692         * manual/threads.texi: Set next node.
43693
43694 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43695
43696         [BZ #15963, #13985]
43697         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43698         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43699         Add `Chinese' to `nan' entry name.
43700
43701 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43702
43703         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43704         (POLYNOMIAL): Likewise.
43705         (TAYLOR_SINCOS): Likewise.
43706         (TAYLOR_SLOW): Likewise.
43707         (__sin): Use TAYLOR_SINCOS.
43708         (__cos): Likewise.
43709         (slow): Use TAYLOR_SLOW.
43710         (sloww): Likewise.
43711         (bsloww): Likewise.
43712         (csloww): Likewise.
43713
43714 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43715
43716         * stdlib/strtod_l.c: Fix buffer overrun.
43717
43718 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43719
43720         * benchtests/Makefile (bench): Add sincos.
43721         * benchtests/bench-sincos.c: New file.
43722
43723         * math/libm-test.inc (cos_test_data): New test inputs.
43724         (sin_test_data): Likewise.
43725
43726         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43727         macro.
43728         (__sin): Use it.
43729         (__cos): Likewise.
43730         (slow1): Likewise.
43731         (slow2): Likewise.
43732         (sloww1): Likewise.
43733         (sloww2): Likewise.
43734         (bsloww1): Likewise.
43735         (bsloww2): Likewise.
43736         (cslow2): Likewise.
43737         (csloww1): Likewise.
43738         (csloww2): Likewise.
43739
43740         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43741         function.
43742         (__sin): Use it.
43743         (__cos): Likewise.
43744
43745         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43746         gotos.
43747         (__cos): Likewise.
43748
43749 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43750
43751         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43752         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43753         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43754         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43755         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43756         * elf/cache.c (print_entry): Handle the new cache flags.
43757
43758 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43759             Aldy Hernandez  <aldyh@redhat.com>
43760
43761         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43762         Change condition to [_SOFT_FLOAT].
43763         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
43764         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
43765         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
43766         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
43767         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
43768         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
43769         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
43770         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
43771         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
43772         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
43773         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
43774         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
43775         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
43776         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
43777         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
43778         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
43779         declaration.
43780
43781 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43782
43783         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
43784         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43785         (__longjmp): Use LOAD_GP to load saved GPRs.
43786         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
43787         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43788         (__sigsetjmp): Use SAVE_GP to save GPRs.
43789
43790         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
43791         Do not append -msoft-float.
43792         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
43793
43794 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43795
43796         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
43797
43798 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
43799
43800         [BZ #15966]
43801         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
43802         (_FPU_GETCW): Use initial "__" on variable and field names but not
43803         on macro parameter name.
43804         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
43805         parentheses around reference to macro parameter.
43806
43807 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
43808
43809         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
43810         prototype.
43811         (ctype_startup): Use uint32_t in cast and sizeof for
43812         ctype->charnames.
43813
43814 2013-09-11  Jia Liu  <proljc@gmail.com>
43815
43816         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
43817         __daddr_t_defined.
43818         [__FreeBSD__]: Likewise.
43819
43820 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
43821
43822         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
43823         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
43824         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
43825         (strchr): Remove __strchr_sse42 ifunc selection.
43826         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
43827         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
43828
43829 2013-09-11  Will Newton  <will.newton@linaro.org>
43830
43831         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
43832         parameter to RES. Remove hardcoded 1000 value.
43833         * benchtests/bench-skeleton.c (main): Pass RES parameter
43834         to TIMING_INIT and multiply result by 1000.
43835
43836 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43837
43838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43839
43840 2013-09-11  Andreas Schwab  <schwab@suse.de>
43841
43842         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
43843         if not defined.
43844         (O_TMPFILE) [__USE_GNU]: Define.
43845         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
43846         Define.
43847
43848 2013-09-11  Will Newton  <will.newton@linaro.org>
43849
43850         [BZ #15857]
43851         * malloc/malloc.c (__libc_memalign): Check the value of bytes
43852         does not overflow.
43853
43854 2013-09-11  Will Newton  <will.newton@linaro.org>
43855
43856         [BZ #15856]
43857         * malloc/malloc.c (__libc_valloc): Check the value of bytes
43858         does not overflow.
43859
43860 2013-09-11  Will Newton  <will.newton@linaro.org>
43861
43862         [BZ #15855]
43863         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
43864         does not overflow.
43865
43866 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
43867
43868         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
43869         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43870         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43871         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43872         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43873
43874 2013-09-10  Allan McRae  <allan@archlinux.org>
43875
43876         [BZ #15748]
43877         * manual/arith.texi (Parsing of Floats): Clarify
43878         cross-reference.
43879
43880         [BZ #15849]
43881         * manual/install.texi (Running make install): Mention
43882         --enable-pt-chown.
43883         * INSTALL: Regenerated.
43884
43885 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
43886
43887         * csu/init-first.c (_init): Remove the !SHARED condition around
43888         FPU control word initialization.
43889         * elf/dl-support.c (_dl_fpu_control): New variable.
43890         (_dl_aux_init) <AT_FPUCW>: Initialize it.
43891         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
43892         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
43893         * math/test-fpucw-static.c: New file.
43894         * math/test-fpucw-ieee.c: New file.
43895         * math/test-fpucw-ieee-static.c: New file.
43896         * math/Makefile (tests): Add `test-fpucw-ieee' and
43897         `$(tests-static)'.
43898         (tests-static): New variable.
43899         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
43900         dependency to...
43901         [($(build-shared),yes)]
43902         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
43903         ... this.
43904         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
43905         New dependency.
43906
43907 2013-09-09  Allan McRae  <allan@archlinux.org>
43908
43909         [BZ #15939]
43910         * manual/string.texi (Collation Functions): Fix typo in
43911         strcoll example.
43912         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
43913
43914         [BZ #15893]
43915         * stdlib/isomac.c (get_null_defines): Fix memory leak.
43916
43917         [BZ #15892]
43918         * libio/memstream.c (open_memstream): Fix memory leak.
43919         * libio/wmemstream.c (open_wmemstream): Likewise.
43920
43921         [BZ #15895]
43922         * nscd/netgroupcache.c: Fix nesting of ifdefs.
43923
43924 2013-09-09  Will Newton  <will.newton@linaro.org>
43925
43926         * malloc/Makefile: Add tst-realloc to tests.
43927         * malloc/tst-realloc.c: New file.
43928
43929 2013-09-09  Allan McRae  <allan@archlinux.org>
43930
43931         [BZ #15844]
43932         * COPYING: Update from GNU website to fix FSF address.
43933         * COPYING.LIB: Likewise.
43934
43935 2013-09-06  David S. Miller  <davem@davemloft.net>
43936
43937         * po/zh_TW.po: Update Chinese (traditional) translation from
43938         translation project.
43939
43940 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
43941             Joseph Myers  <joseph@codesourcery.com>
43942
43943         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
43944         "localeinfo.h".
43945         (obstack_chunk_alloc): New macro.
43946         (obstack_chunk_free): Likewise.
43947         (record_offset): New function.
43948         (init_locale_data): Likewise.
43949         (align_locale_data): Likewise.
43950         (add_locale_empty): Likewise.
43951         (add_locale_raw_data): Likewise.
43952         (add_locale_raw_obstack): Likewise.
43953         (add_locale_string): Likewise.
43954         (add_locale_wstring): Likewise.
43955         (add_locale_uint32): Likewise.
43956         (add_locale_uint32_array): Likewise.
43957         (add_locale_char): Likewise.
43958         (start_locale_structure): Likewise.
43959         (end_locale_structure): Likewise.
43960         (start_locale_prelude): Likewise.
43961         (end_locale_prelude): Likewise.
43962         (write_locale_data): Take locale_file structure rather than an
43963         iovec.
43964         * locale/programs/locfile.h: Include "obstack.h".
43965         (struct locale_file): Change to store locale file contents instead
43966         of header.
43967         (init_locale_data): New prototype.
43968         (align_locale_data): Likewise.
43969         (add_locale_empty): Likewise.
43970         (add_locale_raw_data): Likewise.
43971         (add_locale_raw_obstack): Likewise.
43972         (add_locale_string): Likewise.
43973         (add_locale_wstring): Likewise.
43974         (add_locale_uint32): Likewise.
43975         (add_locale_uint32_array): Likewise.
43976         (add_locale_char): Likewise.
43977         (start_locale_structure): Likewise.
43978         (end_locale_structure): Likewise.
43979         (start_locale_prelude): Likewise.
43980         (end_locale_prelude): Likewise.
43981         (write_locale_data): Update prototype.
43982         * locale/programs/3level.h (struct TABLE): Remove result field.
43983         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
43984         Use new locale_file interface.
43985         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
43986         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
43987         * locale/programs/ld-address.c (address_output): Use new
43988         locale_file interface.
43989         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
43990         NO_ADD_LOCALE.
43991         (collate_finish): Don't call collseq_table_finalize.
43992         (collate_output): Use new locale_file interface.
43993         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
43994         in file.
43995         (NO_FINALIZE): Change to NO_ADD_LOCALE.
43996         (TABLE): Move defines earlier in file.
43997         (ELEMENT): Likewise.
43998         (DEFAULT): Likewise.
43999         (wctrans_table_add): Move macro and inline function earlier in
44000         file.
44001         (struct wctype_table): Move type earlier in file.
44002         (add_locale_wctype_table): New static prototype.
44003         (struct locale_ctype_t): Use logical types instead of struct iovec
44004         pointers for members.
44005         (ctype_output): Use new locale_file interface.
44006         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44007         new locale_file interface.
44008         (allocate_arrays): Update for use of new locale_file interface.
44009         * locale/programs/ld-identification.c (identification_output): Use
44010         new locale_file interface.
44011         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44012         * locale/programs/ld-messages.c (messages_output): Likewise.
44013         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44014         * locale/programs/ld-name.c (name_output): Likewise.
44015         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44016         * locale/programs/ld-paper.c (paper_output): Likewise.
44017         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44018         * locale/programs/ld-time.c (time_output): Likewise.
44019
44020 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44021
44022         * benchtests/Makefile: Add memrchr benchmark.
44023         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44024         benchmark as memrchr.
44025         * benchtests/bench-memrchr-ifunc.c: New file.
44026         * benchtests/bench-memrchr.c: New file.
44027
44028 2013-09-06   Will Newton  <will.newton@linaro.org>
44029
44030         * benchtests/Makefile (string-bench): Add memcpy.
44031
44032 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44033             Cong Wang  <amwang@redhat.com>
44034
44035         [BZ #15850]
44036         * sysdeps/unix/sysv/linux/bits/in.h
44037         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44038         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44039         before __USE_KERNEL_IPV6_DEFS uses.
44040         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44041         IPPROTO_BEETPH.
44042         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44043         sockaddr_in6, or ipv6_mreq.
44044
44045 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44046
44047         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44048         memory access for final bytes in some large inputs.
44049         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44050
44051 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44052
44053         * string/test-memrchr.c: New file.
44054         * string/test-memrchr-ifunc.c: New file.
44055         * string/Makefile: Add new memrchr testcase.
44056
44057 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44058
44059         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44060         fanotify_init returns EPERM.
44061
44062 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44063
44064         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44065         errors.
44066         (top level): Treat second token from macro or constant entries for
44067         allowed headers as allowed.
44068         * include/complex.h: Condition internal declarations on
44069         [!_ISOMAC].
44070         * include/fenv.h: Condition include of <stdbool.h> and internal
44071         declarations on [!_ISOMAC].
44072
44073 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44074
44075         [BZ #15923]
44076         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44077
44078 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44079
44080         * configure.in (--enable-versioning): Remove configure option.
44081         (libc_cv_asm_symver_directive): Remove configure test.
44082         (libc_cv_ld_version_script_option): Likewise.
44083         (VERSIONING): Remove variable and AC_SUBST.
44084         (DO_VERSIONING): Remove AC_DEFINE.
44085         * configure: Regenerated.
44086         * config.h.in (DO_VERSIONING): Remove macro.
44087         * Makerules [$(versioning) = yes]: Change conditionals to
44088         [$(build-shared) = yes].
44089         * config.make.in (versioning): Remove variable.
44090         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44091         [$(build-shared) = yes].
44092         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44093         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44094         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44095         [$(build-shared) = yes].
44096         * extra-lib.mk [$(versioning) = yes]: Likewise.
44097         * hurd/Makefile [$(versioning) = yes]: Likewise.
44098         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44099         [SHARED].
44100         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44101         [SHARED].
44102         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44103         [SHARED && !NO_HIDDEN].
44104         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44105         [SHARED].
44106         [SHARED && DO_VERSIONING]: Likewise..
44107         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44108         [$(build-shared) = yes].
44109         * manual/install.texi (--disable-versioning): Remove
44110         documentation.
44111         * INSTALL: Regenerated.
44112         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44113         to [SHARED].
44114         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44115         [$(build-shared) = yes].
44116         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44117         * sysdeps/i386/i686/multiarch/strstr-c.c
44118         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44119         [SHARED && !NO_HIDDEN].
44120         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44121         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44122         * sysdeps/powerpc/powerpc32/dl-machine.c
44123         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44124         * sysdeps/powerpc/powerpc32/sysdep.h
44125         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44126         to [SHARED && PIC && !NO_HIDDEN].
44127         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44128         conditional to [SHARED].
44129
44130 2013-09-04   Will Newton  <will.newton@linaro.org>
44131
44132         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44133         * benchtests/bench-string.h: Include bench-timing.h instead
44134         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44135         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44136         call to HP_TIMING_DIFF_INIT.
44137         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44138         instead of hp-timing.h macros.
44139         * benchtests/bench-memchr.c: Likewise.
44140         * benchtests/bench-memcmp.c: Likewise.
44141         * benchtests/bench-memcpy.c: Likewise.
44142         * benchtests/bench-memmem.c: Likewise.
44143         * benchtests/bench-memmove.c: Likewise.
44144         * benchtests/bench-memset.c: Likewise.
44145         * benchtests/bench-rawmemchr.c: Likewise.
44146         * benchtests/bench-strcasecmp.c: Likewise.
44147         * benchtests/bench-strcasestr.c: Likewise.
44148         * benchtests/bench-strcat.c: Likewise.
44149         * benchtests/bench-strchr.c: Likewise.
44150         * benchtests/bench-strcmp.c: Likewise.
44151         * benchtests/bench-strcpy.c: Likewise.
44152         * benchtests/bench-strcpy_chk.c: Likewise.
44153         * benchtests/bench-strlen.c: Likewise.
44154         * benchtests/bench-strncasecmp.c: Likewise.
44155         * benchtests/bench-strncat.c: Likewise.
44156         * benchtests/bench-strncmp.c: Likewise.
44157         * benchtests/bench-strncpy.c: Likewise.
44158         * benchtests/bench-strnlen.c: Likewise.
44159         * benchtests/bench-strpbrk.c: Likewise.
44160         * benchtests/bench-strrchr.c: Likewise.
44161         * benchtests/bench-strspn.c: Likewise.
44162         * benchtests/bench-strstr.c: Likewise.
44163
44164 2013-09-04  Will Newton  <will.newton@linaro.org>
44165
44166         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44167
44168 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44169
44170         [BZ #15427]
44171         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44172         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44173         * math/libm-test.inc (lgamma_test_data): Add more tests.
44174         * sysdeps/i386/fpu/libm-test-ulps: Update.
44175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44176
44177 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44178
44179         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44180         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44181         Add ifunc.
44182         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44183         Add strcmp-sse2-unaligned
44184         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44185
44186 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44187
44188         * Versions.def (libc): Add GLIBC_2.19.
44189
44190 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44191
44192         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44193         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44194
44195 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44196
44197         [BZ #14155]
44198         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44199         intermediate calculations in recurrence.
44200         (__ieee754_ynf): Likewise.
44201         * math/libm-test.inc (jn_test_data): Do not allow spurious
44202         underflow exception.  Add more tests.
44203         (yn_test_data): Add more tests.
44204         * sysdeps/i386/fpu/libm-test-ulps: Update.
44205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44206
44207 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44208
44209         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44210
44211 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44212
44213         * csu/init-first.c: Fix then/than typos.
44214         * locale/programs/ld-collate.c: Likewise.
44215         * locale/programs/linereader.h: Likewise.
44216         * manual/charset.texi: Likewise.
44217         * manual/filesys.texi: Likewise.
44218         * manual/stdio.texi: Likewise.
44219         * manual/string.texi: Likewise.
44220         * stdlib/fmtmsg.c: Likewise.
44221         * sysdeps/i386/stpncpy.S: Likewise.
44222         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44223         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44224         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44225         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44226
44227 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44228
44229         * elf/dl-open.c: Fix typos.
44230         * iconvdata/gbbig5.c: Likewise.
44231         * iconvdata/iso-2022-jp.c: Likewise.
44232         * iconv/gconv_int.h: Likewise.
44233         * iconv/loop.c: Likewise.
44234         * nis/rpcsvc/nis.h: Likewise.
44235         * resolv/ns_name.c: Likewise.
44236         * stdio-common/vfscanf.c: Likewise.
44237         * streams/stropts.h: Likewise.
44238         * sunrpc/rpc_thread.c: Likewise.
44239         * sysdeps/i386/strpbrk.S: Likewise.
44240         * sysdeps/ieee754/k_standard.c: Likewise.
44241         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44242         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44243         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44244         * sysdeps/mach/hurd/profil.c: Likewise.
44245         * sysdeps/s390/dl-procinfo.h: Likewise.
44246         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44247         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44248         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44249         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44250         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44251
44252 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44253
44254         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44255         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44256
44257 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44258
44259         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44260         aix specific files.
44261         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44262         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44263         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44264         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44265         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44266         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44267         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44268         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44269
44270 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44271             Roland McGrath  <roland@hack.frob.com>
44272
44273         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44274         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44275
44276 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44277
44278         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44279         __executable_start symbol instead of _start.
44280
44281 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44282
44283         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44284         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44285         Move macros to...
44286         * sysdeps/gnu/ldsodefs.h: ... this new file.
44287
44288         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44289         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44290         instead of ELFOSABI_LINUX.
44291
44292         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44293         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44294         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44295         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44296         Likewise.
44297         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44298         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44299         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44300         Likewise.
44301         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44302         (ibm_extended_long_double): Add ieee_nan member.
44303         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44304         (do_test): New function.
44305
44306         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44307         TEST_TRUNC.
44308         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44309         functions, renamed from truncdfsf_test, trunctfsf_test,
44310         trunctfdf_test.
44311         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44312         functions.
44313         (do_test): Run all these.
44314
44315 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44316
44317         * argp/argp-help.c: Fix typos.
44318         * argp/argp-parse.c: Likewise.
44319         * debug/backtracesyms.c: Likewise.
44320         * elf/elf.h: Likewise.
44321         * malloc/malloc.c: Likewise.
44322         * nis/nis_print.c: Likewise.
44323         * resolv/res_comp.c: Likewise.
44324         * stdlib/stdlib.h: Likewise.
44325         * sunrpc/clnt_tcp.c: Likewise.
44326         * sunrpc/clnt_udp.c: Likewise.
44327         * sunrpc/clnt_unix.c: Likewise.
44328         * sysdeps/unix/bsd/ptsname.c: Likewise.
44329         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44330         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44332         Likewise.
44333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44334         Likewise.
44335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44336         Likewise.
44337         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44338
44339 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44340
44341         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44342         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44343
44344 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44345
44346         [BZ #15897]
44347         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44348         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44349         ($(objpfx)bug-dl-leaf): New rule.
44350         ($(objpfx)bug-dl-leaf.so): Likewise.
44351         ($(objpfx)bug-dl-leaf.out): Likewise.
44352         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44353         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44354         * dlfcn/bug-dl-leaf.c: New test.
44355         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44356         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44357         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44358         (dlclose): Likewise.
44359         (dlmopen): Likewise.
44360
44361 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44362
44363         * include/netdb.h [!_ISOMAC]:
44364         Don't include <tls.h>.
44365         (h_errno, __libc_h_errno): Move declaration and macros out of
44366         [_LIBC_REENTRANT].
44367
44368         * include/resolv.h [_RESOLV_H_]:
44369         Don't include <tls.h>.
44370         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44371         * resolv/res_libc.c: Don't include <tls.h>.
44372         (_res): Use __attribute__ ((nocommon)) in place of
44373         __attribute__ ((section (".bss"))).
44374
44375         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44376         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44377
44378         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44379
44380         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44381         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44382
44383         * resolv/res_mkquery.c: Include <sys/time.h>.
44384
44385         * inet/ifreq.c: Moved to ...
44386         * sysdeps/unix/ifreq.c: ... here.
44387         * inet/ifreq.c: New file, true stub version.
44388
44389         * socket/sa_len.c: New file.
44390         * socket/Makefile (aux): Add it.
44391         * sysdeps/unix/sysv/linux/Makefile
44392         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44393         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44394         and #include <socket/sa_len.c>.
44395         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44396         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44397
44398         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44399         * bits/socket.h: ... here.
44400
44401         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44402         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44403         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44404
44405 2013-08-27  Andreas Schwab  <schwab@suse.de>
44406
44407         [BZ #15736]
44408         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44409         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44410         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44411         * string/test-strcasecmp.c (test_main): Run tests in several
44412         locales.
44413         * string/test-strncasecmp.c (test_main): Likewise.
44414
44415         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44416         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44417         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44418         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44419         (__strncasecmp_ssse3) [PIC]: Likewise.
44420
44421 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44422
44423         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44424
44425         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44426         instead of explicitly declaring xdecrypt.
44427         * nis/nss_nis/nis-publickey.c: Likewise.
44428
44429 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44430
44431         [BZ #15890]
44432         * nscd/aicache.c: Include res_hconf.h.
44433         (addhstaiX): Initialize res_hconf.
44434
44435 2013-08-26  Andreas Schwab  <schwab@suse.de>
44436
44437         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44438         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44439
44440 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44441
44442         * nscd/aicache.c (addhstaiX): Fix indentation.
44443
44444 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44445
44446         * configure.ac: Quote $build_pt_chown test.
44447         * configure: Regenerated.
44448
44449 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44450
44451         [BZ #15532]
44452         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44453         * math/s_cexpf.c (__cexpf): Likewise.
44454         * math/s_cexpl.c (__cexpl): Likewise.
44455         * math/libm-test.inc (cexp_test_data): Correct expected return
44456         value for NaN + i0.  Add another test.
44457
44458 2013-08-22  David S. Miller  <davem@davemloft.net>
44459
44460         * po/ca.po: Update Catalan translation from translation project.
44461         * po/uk.po: Add Ukrainian translations from translation project.
44462
44463 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44464
44465         [BZ #15797]
44466         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44467         is infinite, not alongside NaN test.
44468         * math/s_fdimf.c (__fdimf): Likewise.
44469         * math/s_fdiml.c (__fdiml): Likewise.
44470         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44471         errno is unchanged.
44472
44473 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44474
44475         * argp/argp-help.c: Fix typos.
44476         * crypt/speeds.c: Likewise.
44477         * csu/check_fds.c: Likewise.
44478         * elf/dl-load.c: Likewise.
44479         * elf/dl-open.c: Likewise.
44480         * elf/reldep3.c: Likewise.
44481         * elf/reldep.c: Likewise.
44482         * elf/sprof.c: Likewise.
44483         * iconv/iconv_charmap.c: Likewise.
44484         * iconv/skeleton.c: Likewise.
44485         * iconv/strtab.c: Likewise.
44486         * io/lockf64.c: Likewise.
44487         * libio/libioP.h: Likewise.
44488         * resolv/gai_notify.c: Likewise.
44489         * resolv/ns_name.c: Likewise.
44490         * resolv/ns_samedomain.c: Likewise.
44491         * resolv/res_send.c: Likewise.
44492         * stdlib/random.c: Likewise.
44493         * sunrpc/rpc/xdr.h: Likewise.
44494         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44495         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44496         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44497         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44498         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44499         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44500         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44501         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44502         * sysdeps/mach/hurd/check_fds.c: Likewise.
44503         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44504         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44505         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44506         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44507         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44508         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44509         * sysdeps/pthread/aio_notify.c: Likewise.
44510         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44511         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44512         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44513         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44514         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44515
44516 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44517
44518         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44519         version if bit_Slow_SSE4_2 is set.
44520         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44521         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44522
44523 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44524
44525         [BZ #15867]
44526         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44527         trampoline stack frame information.
44528         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44529         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44530         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44531         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44532         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44533         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44534         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44535         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44536         sa_flags value.
44537         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44538         interrupting a syscall and set with option SA_SIGINFO.
44539
44540 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44541
44542         [BZ #15531]
44543         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44544         argument is infinite.
44545         * math/s_cprojf.c (__cprojf): Likewise.
44546         * math/s_cprojl.c (__cprojl): Likewise.
44547         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44548         * math/libm-test.inc (cproj_test_data): Add more tests.
44549
44550         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44551
44552         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44553         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44554         size.  Use __ffs to determine corresponding shift.
44555
44556 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44557             Roland McGrath  <roland@hack.frob.com>
44558
44559         * Makefile (INSTALL): Remove trailing blank lines from output of
44560         makeinfo.
44561
44562 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44563
44564         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44565         Align 32 bit compat elf_greg to 8 bytes.
44566
44567 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44568
44569         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44570
44571 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44572
44573         * string/strcoll_l.c (coll_seq): New structure.
44574         (get_next_seq_cached): New function.
44575         (get_next_seq): New function.
44576         (do_compare): New function.
44577         (STRCOLL): Use GNU style definition.  Simplify implementation
44578         by using get_next_seq, get_next_seq_cached and do_compare.
44579
44580 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44581
44582         [BZ #14699]
44583         CVE-2013-4237
44584         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44585         member.
44586         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44587         member.
44588         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44589         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44590         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44591         conditional.
44592         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44593         GETDENTS_64BIT_ALIGNED.
44594         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44595         * manual/filesys.texi (Reading/Closing Directory): Document
44596         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44597         strongly.
44598         * manual/conf.texi (Limits for Files): Add portability note to
44599         NAME_MAX, PATH_MAX.
44600         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44601
44602 2013-08-13  Andreas Schwab  <schwab@suse.de>
44603
44604         [BZ #15749]
44605         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44606         of fabs.
44607         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44608         LDBL_MAX_EXP >= 16384]: Add tests for it.
44609
44610 2013-08-12  David S. Miller  <davem@davemloft.net>
44611
44612         * version.h (RELEASE): Set to "development".
44613         (VERSION): Set to "2.18.90".
44614         * NEWS: Add 2.19 section.
44615
44616 2013-08-03  David S. Miller  <davem@davemloft.net>
44617
44618         * po/ko.po: Update Korean translation from translation project.
44619
44620 2013-08-01  David S. Miller  <davem@davemloft.net>
44621
44622         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44623         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44624         Bilka.
44625
44626 2013-07-30  David S. Miller  <davem@davemloft.net>
44627
44628         * po/fr.po: Update French translation from translation project.
44629
44630 2013-07-28  David S. Miller  <davem@davemloft.net>
44631
44632         * po/cs.po: Update Czech translation from translation project.
44633
44634         * po/sv.po: Update Swedish translation from translation project.
44635
44636 2013-07-27  David S. Miller  <davem@davemloft.net>
44637
44638         * po/eo.po: Update Esperanto translation from translation project.
44639
44640         * po/vi.po: Update Vietnamese translation from translation project.
44641
44642         * po/de.po: Update German translation from translation project.
44643
44644 2013-07-26  David S. Miller  <davem@davemloft.net>
44645
44646         * po/bg.po: Update Bulgarian translation from translation project.
44647
44648         * po/nl.po: Update Dutch translation from translation project.
44649         * po/pl.po: Update Polish translation from translation project.
44650         * po/ru.po: Update Russian translation from translation project.
44651
44652 2013-07-24  David S. Miller  <davem@davemloft.net>
44653
44654         * po/libc.pot: Update.
44655
44656 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44657
44658         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44659         variable page size.
44660         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44661         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44662         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44663
44664 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44665
44666         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44667
44668 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44669             Andreas Schwab  <schwab@suse.de>
44670             Roland McGrath  <roland@hack.frob.com>
44671             Joseph Myers  <joseph@codesourcery.com>
44672             Carlos O'Donell  <carlos@redhat.com>
44673
44674         [BZ #15755]
44675         * config.h.in: Define HAVE_PT_CHOWN.
44676         * config.make.in (build-pt-chown): New variable.
44677         * configure.in (--enable-pt_chown): New configure option.
44678         * configure: Regenerate.
44679         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44680         build-pt-chown is enabled.
44681         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44682         pt_chown to fix pty ownership.
44683         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44684         CLOSE_ALL_FDS.
44685         * manual/install.texi (Configuring and compiling): Mention
44686         --enable-pt_chown. Add @findex for grantpt.
44687         * INSTALL: Regenerate.
44688
44689 2013-07-20  David S. Miller  <davem@davemloft.net>
44690
44691         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44692         difference between 32-bit and 64-bit.
44693
44694 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44695
44696         [BZ #15711]
44697         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44698         Avoid system header dependency with -ffreestanding.
44699         ($(objpfx)bits/syscall%d): Likewise.
44700
44701 2013-07-13  David S. Miller  <davem@davemloft.net>
44702
44703         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44704         underflows from atanl/atan2l due to bug 15319.
44705         (casinh_test_data): Likewise.
44706
44707 2013-07-07  David S. Miller  <davem@davemloft.net>
44708
44709         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44710
44711 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44712
44713         * sysdeps/i386/fpu/libm-test-ulps: Update.
44714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44715
44716 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44717
44718         * configure.in (--enable-lock-elision): Fix message text.
44719         * INSTALL: Regenerate.
44720         * configure: Regenerate.
44721
44722 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44723
44724         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44725
44726 2013-07-03  Andreas Jaeger  <aj@suse.de>
44727
44728         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44729         define.
44730         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44731         (ptrace_peeksiginfo_args): Add.
44732         (__ptrace_peeksiginfo_flags): Add.
44733         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44734         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44735         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44736
44737 2013-07-03  Allan McRae  <allan@archlinux.org>
44738
44739         * sysdeps/i386/fpu/libm-test-ulps: Update.
44740
44741 2013-07-02  David S. Miller  <davem@davemloft.net>
44742
44743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44744
44745 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44746
44747         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44748
44749 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44750
44751         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44753
44754 2013-07-02  Andi Kleen <ak@linux.intel.com>
44755
44756         * config.h.in (ENABLE_LOCK_ELISION): Add.
44757         * configure.in (--enable-lock-elision): Add option.
44758         * manual/install.texi: Document --enable lock elision.
44759         * configure: Regenerate
44760         * INSTALL: Regenerate.
44761
44762 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44763
44764         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
44765         SSE4.2 strcasecmp for libc.a.
44766         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
44767
44768 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44769
44770         [BZ #13304]
44771         * soft-fp/op-common.h (_FP_FMA): New macro.
44772         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
44773         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
44774         (_FP_MUL_MEAT_1_imm): ... here.
44775         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
44776         (_FP_MUL_MEAT_1_wide): ... here.
44777         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
44778         (_FP_MUL_MEAT_1_hard): ... here.
44779         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
44780         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
44781         (_FP_MUL_MEAT_2_wide): ... here.
44782         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
44783         (_FP_MUL_MEAT_2_wide_3mul): ... here.
44784         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
44785         (_FP_MUL_MEAT_2_gmp): ... here.
44786         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
44787         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
44788         (_FP_MUL_MEAT_4_wide): ... here.
44789         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
44790         (_FP_MUL_MEAT_4_gmp): ... here.
44791         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
44792         (_FP_WFRACBITS_DW_S): Likewise.
44793         (_FP_WFRACXBITS_DW_S): Likewise.
44794         (_FP_HIGHBIT_DW_S): Likewise.
44795         (FP_FMA_S): Likewise.
44796         (_FP_FRAC_HIGH_DW_S): Likewise.
44797         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
44798         (_FP_WFRACBITS_DW_D): Likewise.
44799         (_FP_WFRACXBITS_DW_D): Likewise.
44800         (_FP_HIGHBIT_DW_D): Likewise.
44801         (FP_FMA_D): Likewise.
44802         (_FP_FRAC_HIGH_DW_D): Likewise.
44803         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
44804         (_FP_WFRACBITS_DW_E): Likewise.
44805         (_FP_WFRACXBITS_DW_E): Likewise.
44806         (_FP_HIGHBIT_DW_E): Likewise.
44807         (FP_FMA_E): Likewise.
44808         (_FP_FRAC_HIGH_DW_E): Likewise.
44809         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
44810         (_FP_WFRACBITS_DW_Q): Likewise.
44811         (_FP_WFRACXBITS_DW_Q): Likewise.
44812         (_FP_HIGHBIT_DW_Q): Likewise.
44813         (FP_FMA_Q): Likewise.
44814         (_FP_FRAC_HIGH_DW_Q): Likewise.
44815         * soft-fp/fmasf4.c: New file.
44816         * soft-fp/fmadf4.c: Likewise.
44817         * soft-fp/fmatf4.c: Likewise.
44818
44819 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44820
44821         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44822         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
44823         Silvermont.
44824         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
44825         macro.
44826         (index_Slow_SSE4_2): Likewise.
44827         (index_Prefer_PMINUB_for_stringop): Likewise.
44828         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
44829         bit_Slow_SSE4_2 is set.
44830         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
44831         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44832
44833 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44834
44835         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
44836         rtld_global._dl_hwcap2.
44837         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
44838         POWER8.
44839         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
44840         POWER8 feature descriptions defined in _dl_hwcap2.
44841         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
44842         string handling for POWER8 feature bits.
44843         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
44844         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
44845         _dl_powerpc_cap_flags.
44846         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
44847         * sysdeps/powerpc/rtld-global-offsets.sym
44848         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
44849         _dl_hwcap2 in the rtld_global_ro structure.
44850
44851 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44852
44853         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
44854         hardware capabilities in support of AT_HWCAP2.
44855         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
44856         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
44857         GLRO(dl_hwcap2).
44858         (_dl_show_auxv): Add support for calling _dl_procinfo to display
44859         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
44860         explicitly the unknown a_type display mechanism is used.
44861         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
44862         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
44863         struct member.
44864         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
44865         to macro prototype for AT_HWCAP2 support.
44866         * sysdeps/i386/dl-procinfo.h: Likewise.
44867         * sysdeps/s390/dl-procinfo.h: Likewise.
44868         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
44869         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
44870         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
44871         return -1 for unknown a_type display fallback.
44872         * sysdeps/sparc/dl-procinfo.h: Likewise.
44873         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
44874         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
44875
44876 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
44877
44878         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
44879         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
44880
44881 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
44882
44883         [BZ #12492]
44884         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
44885         mprotect making __stack_prot writable.
44886
44887 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
44888             Joseph Myers  <joseph@codesourcery.com>
44889
44890         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
44891         as being properly aligned.
44892
44893 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
44894
44895         * dlfcn/modstatic5.c: New file.
44896         * dlfcn/tststatic5.c: New file.
44897         * dlfcn/Makefile (tests): Add tststatic5.
44898         (tests-static): Likewise.
44899         (modules-names): Add modstatic5.
44900         (tststatic5-ENV): New variable.
44901         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
44902
44903         [BZ #15022]
44904         * elf/dl-support.c (_dl_main_map): New variable.
44905         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
44906         (_dl_nns, _dl_load_adds): Set to 1.
44907         (_dl_initial_searchlist): Refer to _dl_main_map.
44908         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
44909         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
44910         call to _dl_get_origin.
44911         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
44912         around call_map.
44913         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
44914         * dlfcn/modstatic3.c: New file.
44915         * dlfcn/tststatic3.c: New file.
44916         * dlfcn/tststatic4.c: New file.
44917         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
44918         (tests-static): Likewise.
44919         (modules-names): Add modstatic3.
44920         (tststatic3-ENV, tststatic4-ENV): New variables.
44921         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
44922         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
44923
44924 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
44925
44926         * configure.in (CC): Require GCC version 4.4 or later.
44927         * configure: Regenerated.
44928         * manual/install.texi (Tools for Compilation): Update GCC version
44929         requirement.
44930         * INSTALL: Regenerated.
44931
44932 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44933
44934         [BZ #15674]
44935         * string/test-memcmp.c (check2): New.
44936         (main): Call check2.
44937
44938         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
44939
44940 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
44941
44942         [BZ #15022]
44943         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
44944         over to...
44945         (dl_open_worker) [!SHARED]: ... here.
44946
44947 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44948
44949         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
44950
44951 2013-06-25  Richard Henderson  <rth@redhat.com>
44952
44953         * locale/programs/locarchive.c: Include <libc-internal.h>
44954
44955 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
44956
44957         * manual/texinfo.tex: Update to version 2013-06-21.17, with
44958         trailing whitespace removed.
44959
44960 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44961
44962         [BZ #10283]
44963         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
44964         * locale/programs/locarchive.c: Include libc-mmap.h.
44965         (prepare_address_space): Take two new outputs (the mmap base and len).
44966         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
44967         values.
44968         (create_archive): Declare new mmap base and len values for
44969         prepare_address_space, and store the result in ah.
44970         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
44971         (enlarge_archive): If ah->mmap_base is not NULL, use that and
44972         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44973         Declare new mmap base and len values for
44974         prepare_address_space, and store the result in new_ah.
44975         (open_archive): Declare new mmap base and len values for
44976         prepare_address_space, and store the result in ah.
44977         (close_archive): If ah->mmap_base is not NULL, use that and
44978         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44979         * sysdeps/generic/libc-mmap.h: New file.
44980
44981 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44982
44983         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
44984         (ALIGN_UP): Likewise.
44985         (PTR_ALIGN_DOWN): Likewise.
44986         (PTR_ALIGN_UP): Likewise.
44987
44988 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44989
44990         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
44991         entry mapped to PPC_PLATFORM_POWER8.
44992         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
44993         POWER8.
44994         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
44995         (_dl_string_platform): Add case for exporting platform position for
44996         POWER8.
44997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
44998         search path to sysdeps/powerpc/powerpc32/power8 directory.
44999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45000         search path to sysdeps/powerpc/powerpc64/power8 directory.
45001         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45002         power7 directories.
45003         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45004         power7 directories.
45005
45006 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45007
45008         * INSTALL: Regenerate.
45009
45010         * nscd/connections.c (nscd_init): Fix comment.
45011
45012 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45013
45014         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45015
45016         [BZ #15667]
45017         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45018         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45019
45020 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45021
45022         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45023         DL_DST_REQ_STATIC.
45024         (DL_DST_REQ_STATIC): Remove macro.
45025
45026 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45027
45028         [BZ #7006]
45029         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45030         with a shift of 0 bits.
45031
45032 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45033
45034         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45035         $(tststatic-ENV).
45036
45037 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45038
45039         [BZ #15655]
45040         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45041
45042 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45043
45044         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45045         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45046         accepts -fno-tree-loop-distribute-patterns.
45047         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45048         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45049         recursive call.
45050         * string/memset.c (memset): Likewise.
45051         * string/test-memmove.c (simple_memmove): Disable loop transformation
45052         to library calls.
45053         * string/test-memset.c (simple_memset): Likewise.
45054         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45055         * benchtests/bench-memset.c (simple_memset): Likewise.
45056         * configure: Regenerated.
45057
45058 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45059
45060         * math/test-misc.c (main): Ignore fesetround failure when failures
45061         of subsequent rounding tests would be ignored.
45062
45063         [BZ #15654]
45064         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45065         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45066         * math/fegetenv.c (__fegetenv): Return 0.
45067         * math/fegetexcept.c (fegetexcept): Return 0.
45068         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45069         FE_TONEAREST.
45070         * math/feholdexcpt.c (feholdexcept): Return 0.
45071         * math/fesetenv.c (__fesetenv): Return 0.
45072         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45073         argument FE_TONEAREST.
45074         * math/feupdateenv.c (__feupdateenv): Return 0.
45075         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45076
45077 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45078
45079         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45080         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45081         ($(objpfx)rtld-%.os rules): Use them.
45082
45083 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45084
45085         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45086         fields.
45087
45088 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45089
45090         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45091         length of target pattern, then descending length of dependency pattern.
45092         * configure.in (AWK): Require gawk 3.1.2 or newer.
45093         * manual/install.texi (Tools for Compilation): Say that we do.
45094         * configure: Regenerated.
45095
45096         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45097         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45098         * scripts/sysd-rules.awk: ... this new script.
45099         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45100         than a glob-style pattern.
45101
45102 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45103
45104         * math/test-misc.c (main): Do not treat incorrectly rounded
45105         conversions as failure unless ROUNDING_TESTS passes.
45106
45107 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45108
45109         [BZ #15631]
45110         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45111         restore exception state around main square root computation, then
45112         check for inexactness explicitly.
45113
45114         * math/libm-test.inc (fma_test_data): Add another test.
45115
45116 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45117
45118         * manual/threads.texi (Non-POSIX Extensions): New document
45119         node.  Document pthread_getattr_default_np and
45120         pthread_setattr_default_np.
45121
45122         * Versions.def (libpthread): Add GLIBC_2.18.
45123         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45125         Likewise.
45126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45127         Likewise.
45128         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45129         Likewise.
45130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45131         Likewise.
45132         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45133         Likewise.
45134         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45135         Likewise.
45136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45137         Likewise.
45138         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45139         Likewise.
45140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45141         Likewise.
45142
45143 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45144
45145         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45146         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45147
45148 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45149             H.J. Lu  <hjl.tools@gmail.com>
45150
45151         [BZ #15627]
45152         * sysdeps/x86_64/rtld-memset.c: Remove file.
45153         * sysdeps/x86_64/rtld-memset.S: New file.
45154
45155 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45156
45157         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45158         (test_in_one_mode): Take arguments for whether the rounding mode
45159         is supported for each floating-point type.
45160         (do_test): Pass new arguments to test_in_one_mode using
45161         ROUNDING_TESTS.
45162
45163 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45164
45165         * posix/tst-waitid.c (do_test): Distinguish different instances of
45166         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45167         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45168         before entering the kernel for waitpid.
45169
45170 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45171
45172         * NEWS: Fix note on clock function precision.  Text by Roland
45173         McGrath.
45174
45175 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45176
45177         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45178         it into place only when and if the sanity check passes.
45179
45180 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45181
45182         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45183         output for whether conversion result is exact.  Take argument
45184         indicating whether type is IBM long double.
45185         (round_for_all): Change need_exact field to ibm_ld.
45186         * stdlib/tst-strtod-round.c (struct exactness): New type.
45187         (struct test): Change bool ld_ok field to struct exactness exact.
45188         (TEST): Update all definitions for change to field.
45189         (tests): Regenerate array contents.
45190         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45191         field value.  Check for IBM long double here.
45192         (do_test): Update calls to test_in_one_mode.
45193
45194 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45195
45196         [BZ #12515]
45197         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45198         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45199
45200 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45201
45202         [BZ #15605]
45203         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45204         generated by the compiler on loop optimizations.
45205         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45206         general definitions.
45207
45208 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45209
45210         * math/bug-nextafter.c: Include <math-tests.h>.
45211         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45212         the relevant type.
45213         * math/bug-nexttoward.c: Include <math-tests.h>.
45214         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45215         the relevant type.
45216         * math/test-misc.c: Include <math-tests.h>.
45217         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45218         the relevant type.
45219
45220 2013-06-12  Andreas Jaeger  <aj@suse.de>
45221
45222         * po/ia.po: Update Interlingua translation from translation
45223         project.
45224
45225 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45226
45227         * include/fenv.h: Include stdbool.h.
45228         (struct rm_ctx): New structure.
45229         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45230         Define macro.
45231         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45232         (SET_RESTORE_ROUNDF): Likewise.
45233         (SET_RESTORE_ROUNDL): Likewise.
45234         (SET_RESTORE_ROUND_NOEX): Likewise.
45235         (SET_RESTORE_ROUND_NOEXF): Likewise.
45236         (SET_RESTORE_ROUND_NOEXL): Likewise.
45237         (SET_RESTORE_ROUND_53BIT): Likewise.
45238         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45239         (libc_feresetround_noexf_ctx): Likewise.
45240         (libc_feresetround_noexl_ctx): Likewise.
45241         (libc_feholdsetround_53bit_ctx): Likewise.
45242         (libc_feresetround_53bit_ctx): Likewise.
45243         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45244         (libc_feholdexcept_setround_sse_ctx): New function.
45245         (libc_fesetenv_sse_ctx): Likewise.
45246         (libc_feupdateenv_sse_ctx): Likewise.
45247         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45248         (libc_feholdexcept_setround_387_ctx): Likewise.
45249         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45250         (libc_feholdsetround_387_prec_ctx): Likewise.
45251         (libc_feholdsetround_387_ctx): Likewise.
45252         (libc_feholdsetround_387_53bit_ctx): Likewise.
45253         (libc_feholdsetround_sse_ctx): Likewise.
45254         (libc_feresetround_sse_ctx): Likewise.
45255         (libc_feresetround_387_ctx): Likewise.
45256         (libc_feupdateenv_387_ctx): Likewise.
45257         (libc_feholdexcept_setroundf_ctx): Define macro.
45258         (libc_fesetenvf_ctx): Likewise.
45259         (libc_feupdateenvf_ctx): Likewise.
45260         (libc_feholdsetroundf_ctx): Likewise.
45261         (libc_feresetroundf_ctx): Likewise.
45262         (libc_feholdexcept_setround_ctx): Likewise.
45263         (libc_fesetenv_ctx): Likewise.
45264         (libc_feupdateenv_ctx): Likewise.
45265         (libc_feholdsetround_ctx): Likewise.
45266         (libc_feresetround_ctx): Likewise.
45267         (libc_feholdexcept_setroundl_ctx): Likewise.
45268         (libc_feupdateenvl_ctx): Likewise.
45269         (libc_feholdsetroundl_ctx): Likewise.
45270         (libc_feresetroundl_ctx): Likewise.
45271         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45272         (libc_feresetround_53bit_ctx): Likewise.
45273
45274 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45275
45276         * locale/iso-639.def: Convert to UTF-8.
45277
45278 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45279
45280         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45281         (EXCEPTION_TESTS_double): Likewise.
45282         (EXCEPTION_TESTS_long_double): Likewise.
45283         (EXCEPTION_TESTS): Likewise.
45284         * math/libm-test.inc (test_exceptions): Only test exceptions if
45285         EXCEPTION_TESTS (FLOAT).
45286
45287 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45288
45289         * benchtests/Makefile (string-bench): Add strcpy_chk and
45290         stpcpy_chk.
45291         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45292         * benchtests/bench-stpcpy_chk.c: New file.
45293         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45294         * benchtests/bench-strcpy_chk.c: New file.
45295         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45296         code.
45297         (do_test): Likewise.
45298
45299 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45300
45301         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45302         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45303         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45304         with tabs where appropriate.
45305         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45306         dl-procinfo.h.
45307         [PPC_PLATFORM_PPC440]: Likewise.
45308         [PPC_PLATFORM_PPC464]: Likewise.
45309         [PPC_PLATFORM_PPC476]: Likewise.
45310         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45311         ppc464, and ppc476 platform strings merging from ports/
45312         dl-procinfo.h.
45313
45314 2013-06-11  Andreas Schwab  <schwab@suse.de>
45315
45316         [BZ #14991]
45317         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45318         (from_ucs4_idx): Regenerate.
45319         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45320         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45321         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45322         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45323         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45324         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45325         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45326         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45327         from FROM_LOOP and TO_LOOP specific macros.
45328         (BODY): Handle combining characters.
45329         * iconvdata/BIG5HKSCS.irreversible: Update.
45330         * iconvdata/BIG5HKSCS.precomposed: New file.
45331         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45332         characters.
45333         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45334
45335 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45336
45337         * include/sys/time.h: Fix indentation and add copyright header.
45338
45339         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45340         (do_test): Likewise.
45341         * string/test-memchr.c (do_one_test): Likewise.
45342         (do_test): Likewise.
45343         * string/test-memcmp.c (do_one_test): Likewise.
45344         (do_test): Likewise.
45345         * string/test-memcpy.c (do_one_test): Likewise.
45346         (do_test): Likewise.
45347         * string/test-memmem.c (do_one_test): Likewise.
45348         (do_test): Likewise.
45349         (do_random_tests): Likewise.
45350         * string/test-memmove.c (do_one_test): Likewise.
45351         (do_test): Likewise.
45352         * string/test-memset.c (do_one_test): Likewise.
45353         (do_test): Likewise.
45354         * string/test-rawmemchr.c (do_one_test): Likewise.
45355         (do_test): Likewise.
45356         * string/test-strcasecmp.c (do_one_test): Likewise.
45357         (do_test): Likewise.
45358         * string/test-strcasestr.c (do_one_test): Likewise.
45359         (do_test): Likewise.
45360         * string/test-strcat.c (do_one_test): Likewise.
45361         (do_test): Likewise.
45362         * string/test-strchr.c (do_one_test): Likewise.
45363         (do_test): Likewise.
45364         * string/test-strcmp.c (do_one_test): Likewise.
45365         (do_test): Likewise.
45366         * string/test-strcpy.c (do_one_test): Likewise.
45367         (do_test): Likewise.
45368         * string/test-string.h: Likewise.
45369         (test_init): Likewise.
45370         * string/test-strlen.c (do_one_test): Likewise.
45371         (do_test): Likewise.
45372         * string/test-strncasecmp.c (do_one_test): Likewise.
45373         (do_test): Likewise.
45374         * string/test-strncat.c (do_one_test): Likewise.
45375         (do_test): Likewise.
45376         * string/test-strncmp.c (do_one_test): Likewise.
45377         (do_test_limit): Likewise.
45378         (do_test): Likewise.
45379         * string/test-strncpy.c (do_one_test): Likewise.
45380         (do_test): Likewise.
45381         * string/test-strnlen.c (do_one_test): Likewise.
45382         (do_test): Likewise.
45383         * string/test-strpbrk.c (do_one_test): Likewise.
45384         (do_test): Likewise.
45385         * string/test-strrchr.c (do_one_test): Likewise.
45386         (do_test): Likewise.
45387         * string/test-strspn.c (do_one_test): Likewise.
45388         (do_test): Likewise.
45389         * string/test-strstr.c (do_one_test): Likewise.
45390         (do_test): Likewise.
45391
45392         * benchtests/Makefile (string-bench): Add string benchmarks.
45393         * benchtests/bench-bcopy-ifunc.c: New file.
45394         * benchtests/bench-bcopy.c: New file.
45395         * benchtests/bench-bzero-ifunc.c: New file.
45396         * benchtests/bench-bzero.c: New file.
45397         * benchtests/bench-memccpy-ifunc.c: New file.
45398         * benchtests/bench-memccpy.c: New file.
45399         * benchtests/bench-memchr-ifunc.c: New file.
45400         * benchtests/bench-memchr.c: New file.
45401         * benchtests/bench-memcmp-ifunc.c: New file.
45402         * benchtests/bench-memcmp.c: New file.
45403         * benchtests/bench-memmem-ifunc.c: New file.
45404         * benchtests/bench-memmem.c: New file.
45405         * benchtests/bench-memmove-ifunc.c: New file.
45406         * benchtests/bench-memmove.c: New file.
45407         * benchtests/bench-mempcpy-ifunc.c: New file.
45408         * benchtests/bench-mempcpy.c: New file.
45409         * benchtests/bench-memset-ifunc.c: New file.
45410         * benchtests/bench-memset.c: New file.
45411         * benchtests/bench-rawmemchr-ifunc.c: New file.
45412         * benchtests/bench-rawmemchr.c: New file.
45413         * benchtests/bench-stpcpy-ifunc.c: New file.
45414         * benchtests/bench-stpcpy.c: New file.
45415         * benchtests/bench-stpncpy-ifunc.c: New file.
45416         * benchtests/bench-stpncpy.c: New file.
45417         * benchtests/bench-strcasecmp-ifunc.c: New file.
45418         * benchtests/bench-strcasecmp.c: New file.
45419         * benchtests/bench-strcasestr-ifunc.c: New file.
45420         * benchtests/bench-strcasestr.c: New file.
45421         * benchtests/bench-strcat-ifunc.c: New file.
45422         * benchtests/bench-strcat.c: New file.
45423         * benchtests/bench-strchr-ifunc.c: New file.
45424         * benchtests/bench-strchr.c: New file.
45425         * benchtests/bench-strchrnul-ifunc.c: New file.
45426         * benchtests/bench-strchrnul.c: New file.
45427         * benchtests/bench-strcmp-ifunc.c: New file.
45428         * benchtests/bench-strcmp.c: New file.
45429         * benchtests/bench-strcpy-ifunc.c: New file.
45430         * benchtests/bench-strcpy.c: New file.
45431         * benchtests/bench-strcspn-ifunc.c: New file.
45432         * benchtests/bench-strcspn.c: New file.
45433         * benchtests/bench-strlen-ifunc.c: New file.
45434         * benchtests/bench-strlen.c: New file.
45435         * benchtests/bench-strncasecmp-ifunc.c: New file.
45436         * benchtests/bench-strncasecmp.c: New file.
45437         * benchtests/bench-strncat-ifunc.c: New file.
45438         * benchtests/bench-strncat.c: New file.
45439         * benchtests/bench-strncmp-ifunc.c: New file.
45440         * benchtests/bench-strncmp.c: New file.
45441         * benchtests/bench-strncpy-ifunc.c: New file.
45442         * benchtests/bench-strncpy.c: New file.
45443         * benchtests/bench-strnlen-ifunc.c: New file.
45444         * benchtests/bench-strnlen.c: New file.
45445         * benchtests/bench-strpbrk-ifunc.c: New file.
45446         * benchtests/bench-strpbrk.c: New file.
45447         * benchtests/bench-strrchr-ifunc.c: New file.
45448         * benchtests/bench-strrchr.c: New file.
45449         * benchtests/bench-strspn-ifunc.c: New file.
45450         * benchtests/bench-strspn.c: New file.
45451         * benchtests/bench-strstr-ifunc.c: New file.
45452         * benchtests/bench-strstr.c: New file.
45453
45454         * benchtests/Makefile: Disable parallel execution of targets.
45455         (string-bench): Add memcpy.
45456         (benchset): New variable to store a list of benchmark sets.
45457         (bench-func): Renamed from bench.
45458         (bench-set): New target.
45459         (bench): Depend on bench-func and bench-set.
45460         * benchtests/README: Add section on benchmark sets.
45461         * benchtests/bench-memcpy-ifunc.c: New file.
45462         * benchtests/bench-memcpy.c: New file.
45463         * benchtests/bench-string.h: New file.
45464
45465 2013-06-11  Andreas Schwab  <schwab@suse.de>
45466
45467         [BZ #15577]
45468         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45469         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45470         values in the triple.
45471         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45472         terminator in the group key.
45473
45474 2013-06-11  Andreas Jaeger  <aj@suse.de>
45475
45476         * po/zh_TW.po: Update Chinese (traditional) translation from
45477         translation project.
45478
45479 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45480
45481         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45482         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45483         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45484         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45485         (clock_getcpuclockid): Likewise.
45486         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45487         Add weak_alias and libc_hidden_def.
45488         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45489         * rt/clock_gettime.c (clock_gettime): Rename to
45490         __clock_gettime.  Add weak_alias and libc_hidden_def.
45491         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45492         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45493         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45494         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45495         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45496         Likewise.
45497         * rt/clock_settime.c (clock_settime): Rename to
45498         __clock_settime.  Add weak_alias and libc_hidden_def.
45499         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45500
45501 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45502
45503         * mach/err_boot.sub: Remove trailing whitespace.
45504         * mach/err_ipc.sub: Likewise.
45505         * mach/err_mach.sub: Likewise.
45506
45507         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45508         (ROUNDING_TESTS_double): Likewise.
45509         (ROUNDING_TESTS_long_double): Likewise.
45510         (ROUNDING_TESTS): Likewise.
45511         * math/libm-test.inc: Include <math-tests.h>.
45512         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45513         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45514         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45515         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45516
45517 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45518
45519         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45520         of assigning.
45521
45522 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45523
45524         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45525         otherwise empty TRANS lines.
45526         * sysdeps/gnu/errlist.c: Regenerated.
45527
45528         * catgets/gencat.c (error_print): Use (void) in function
45529         definition.
45530         * crypt/crypt_util.c (__init_des): Likewise.
45531         * crypt/speeds.c (Stop): Likewise.
45532         (main): Likewise.
45533         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45534         * inet/ruserpass.c (token): Likewise.
45535         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45536         * intl/localealias.c (extend_alias_table): Likewise.
45537         * intl/plural-exp.c (init_germanic_plural): Likewise.
45538         * libio/fcloseall.c (__fcloseall): Likewise.
45539         * libio/genops.c (_IO_flush_all): Likewise.
45540         (_IO_flush_all_linebuffered): Likewise.
45541         (_IO_cleanup): Likewise.
45542         (_IO_iter_begin): Likewise.
45543         (_IO_iter_end): Likewise.
45544         (_IO_list_lock): Likewise.
45545         (_IO_list_unlock): Likewise.
45546         (_IO_list_resetlock): Likewise.
45547         * libio/getchar.c (getchar): Likewise.
45548         * libio/getchar_u.c (getchar_unlocked): Likewise.
45549         * libio/getwchar.c (getwchar): Likewise.
45550         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45551         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45552         * login/getpt.c (__getpt): Likewise.
45553         * login/tst-utmp.c (main): Likewise.
45554         * malloc/hooks.c (__malloc_check_init): Likewise.
45555         * malloc/malloc.c (__malloc_stats): Likewise.
45556         * malloc/mtrace.c (tr_break): Likewise.
45557         (mtrace): Likewise.
45558         (muntrace): Likewise.
45559         * misc/fstab.c (endfsent): Likewise.
45560         * misc/getclktck.c (__getclktck): Likewise.
45561         * misc/getdtsz.c (__getdtablesize): Likewise.
45562         * misc/gethostid.c (gethostid): Likewise.
45563         * misc/getpagesize.c (__getpagesize): Likewise.
45564         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45565         (__get_nprocs): Likewise.
45566         (__get_phys_pages): Likewise.
45567         (__get_avphys_pages): Likewise.
45568         * misc/getttyent.c (getttyent): Likewise.
45569         (setttyent): Likewise.
45570         (endttyent): Likewise.
45571         * misc/getusershell.c (getusershell): Likewise.
45572         (endusershell): Likewise.
45573         (setusershell): Likewise.
45574         (initshells): Likewise.
45575         * misc/hsearch.c (__hdestroy): Likewise.
45576         * misc/sync.c (sync): Likewise.
45577         * misc/syslog.c (closelog_internal): Likewise.
45578         (closelog): Likewise.
45579         * misc/ttyslot.c (ttyslot): Likewise.
45580         * misc/vhangup.c (vhangup): Likewise.
45581         * posix/fork.c (__fork): Likewise.
45582         * posix/getegid.c (__getegid): Likewise.
45583         * posix/geteuid.c (__geteuid): Likewise.
45584         * posix/getgid.c (__getgid): Likewise.
45585         * posix/getpid.c (__getpid): Likewise.
45586         * posix/getppid.c (__getppid): Likewise.
45587         * posix/getuid.c (__getuid): Likewise.
45588         * posix/pause.c (pause): Likewise.
45589         * posix/setpgrp.c (setpgrp): Likewise.
45590         * posix/setsid.c (__setsid): Likewise.
45591         * posix/test-vfork.c (noop): Likewise.
45592         * resolv/gethnamaddr.c (_endhtent): Likewise.
45593         (_gethtent): Likewise.
45594         (ht_endhostent): Likewise.
45595         (gethostent): Likewise.
45596         (dns_service): Likewise.
45597         * stdlib/drand48.c (drand48): Likewise.
45598         * stdlib/lrand48.c (lrand48): Likewise.
45599         * stdlib/mrand48.c (mrand48): Likewise.
45600         * stdlib/rand.c (rand): Likewise.
45601         * stdlib/random.c (__random): Likewise.
45602         * stdlib/setenv.c (clearenv): Likewise.
45603         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45604         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45605         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45606         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45607         (__get_nprocs): Likewise.
45608         (__get_phys_pages): Likewise.
45609         (__get_avphys_pages): Likewise.
45610         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45611         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45612         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45613         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45614         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45615         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45616         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45617         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45618         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45619         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45620         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45621         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45622         * sysdeps/posix/clock.c (clock): Likewise.
45623         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45624         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45625         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45626         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45627         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45628         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45629         (__get_nprocs_conf): Likewise.
45630         (__get_phys_pages): Likewise.
45631         (__get_avphys_pages): Likewise.
45632         * time/clock.c (clock): Likewise.
45633         * time/tzset.c (__tzname_max): Likewise.
45634
45635 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45636
45637         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45638         (__bswap_32): Do not use "register".
45639         * crypt/crypt.c (_ufc_doit_r): Likewise.
45640         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45641         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45642         * gmon/gmon.c (__monstartup): Likewise.
45643         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45644         * hurd/hurdmalloc.c (more_memory): Likewise.
45645         (malloc): Likewise.
45646         (free): Likewise.
45647         (realloc): Likewise.
45648         (malloc_fork_prepare): Likewise.
45649         (malloc_fork_parent): Likewise.
45650         (malloc_fork_child): Likewise.
45651         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45652         (_svcauth_des): Likewise.
45653         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45654         * inet/inet_net.c (inet_network): Likewise.
45655         * inet/inet_netof.c (inet_netof): Likewise.
45656         * inet/rcmd.c (__validuser2_sa): Likewise.
45657         * io/fts.c (fts_open): Likewise.
45658         (fts_load): Likewise.
45659         (fts_close): Likewise.
45660         (fts_read): Likewise.
45661         (fts_children): Likewise.
45662         (fts_build): Likewise.
45663         (fts_stat): Likewise.
45664         (fts_sort): Likewise.
45665         (fts_alloc): Likewise.
45666         (fts_lfree): Likewise.
45667         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45668         (_IO_file_xsgetn): Likewise.
45669         (_IO_file_xsgetn_mmap): Likewise.
45670         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45671         (_IO_cookie_write): Likewise.
45672         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45673         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45674         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45675         * malloc/obstack.c (_obstack_begin): Likewise.
45676         (_obstack_begin_1): Likewise.
45677         (_obstack_newchunk): Likewise.
45678         (_obstack_allocated_p): Likewise.
45679         (obstack_free): Likewise.
45680         (_obstack_memory_used): Likewise.
45681         * misc/getttyent.c (getttynam): Likewise.
45682         (getttyent): Likewise.
45683         (skip): Likewise.
45684         (value): Likewise.
45685         * misc/getusershell.c (initshells): Likewise.
45686         * misc/syslog.c (__vsyslog_chk): Likewise.
45687         * misc/ttyslot.c (ttyslot): Likewise.
45688         * nis/nis_hash.c (__nis_hash): Likewise.
45689         * posix/fnmatch_loop.c (FCT): Likewise.
45690         * posix/getconf.c (print_all): Likewise.
45691         (main): Likewise.
45692         * posix/getopt.c (exchange): Likewise.
45693         * posix/glob.c (globfree): Likewise.
45694         (prefix_array): Likewise.
45695         (__glob_pattern_type): Likewise.
45696         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45697         (NS_GET32): Likewise.
45698         (NS_PUT16): Likewise.
45699         (NS_PUT32): Likewise.
45700         * resolv/gethnamaddr.c (getanswer): Likewise.
45701         (gethostbyname2): Likewise.
45702         (gethostbyaddr): Likewise.
45703         (_gethtent): Likewise.
45704         (_gethtbyname2): Likewise.
45705         (_gethtbyaddr): Likewise.
45706         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45707         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45708         * resolv/res_init.c (__res_vinit): Likewise.
45709         (net_mask): Likewise.
45710         * resolv/res_mkquery.c (outchar): Likewise.
45711         (PRINT): Likewise.
45712         * stdio-common/printf_fp.c (outchar): Likewise.
45713         (PRINT): Likewise.
45714         * stdio-common/printf_fphex.c (outchar): Likewise.
45715         (PRINT): Likewise.
45716         * stdio-common/printf_size.c (outchar): Likewise.
45717         (PRINT): Likewise.
45718         * stdio-common/test_rdwr.c (main): Likewise.
45719         * stdio-common/tfformat.c (matches): Likewise.
45720         * stdio-common/vfprintf.c (outchar): Likewise.
45721         (printf_unknown): Likewise.
45722         (buffered_vfprintf): Likewise.
45723         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45724         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45725         (ReadFile): Likewise.
45726         * stdlib/qsort.c (SWAP): Likewise.
45727         (_quicksort): Likewise.
45728         * stdlib/setenv.c (__add_to_environ): Likewise.
45729         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45730         * stdlib/strtol_l.c (__strtol_l): Likewise.
45731         * stdlib/tst-strtod.c (main): Likewise.
45732         * stdlib/tst-strtol.c (main): Likewise.
45733         * stdlib/tst-strtoll.c (main): Likewise.
45734         * string/bits/string2.h (__strcmp_cc): Likewise.
45735         (__strcmp_cg): Likewise.
45736         (__strcspn_c1): Likewise.
45737         (__strcspn_c2): Likewise.
45738         (__strcspn_c3): Likewise.
45739         (__strspn_c1): Likewise.
45740         (__strspn_c2): Likewise.
45741         (__strspn_c3): Likewise.
45742         (__strsep_1c): Likewise.
45743         (__strsep_2c): Likewise.
45744         (__strsep_3c): Likewise.
45745         * string/memccpy.c (__memccpy): Likewise.
45746         * string/stpcpy.c (__stpcpy): Likewise.
45747         * string/strcmp.c (strcmp): Likewise.
45748         * string/strrchr.c (strrchr): Likewise.
45749         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45750         Likewise.
45751         * sysdeps/mach/hurd/getcwd.c
45752         (_hurd_canonicalize_directory_name_internal): Likewise.
45753         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45754         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45755         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45756         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45757         Likewise, in both definitions.
45758         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45759         definitions.
45760         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45761         64] (__bswap_64): Likewise.
45762         * time/test_time.c (main): Likewise.
45763         * time/tzfile.c (__tzfile_read): Likewise.
45764         (__tzfile_compute): Likewise.
45765         * time/tzset.c (__tzset_parse_tz): Likewise.
45766         (tzset_internal): Likewise.
45767         (compute_change): Likewise.
45768         * wcsmbs/wcscat.c (__wcscat): Likewise.
45769         * wcsmbs/wcschr.c (wcschr): Likewise.
45770         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
45771         * wcsmbs/wcscspn.c (wcscspn): Likewise.
45772         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
45773         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
45774         * wcsmbs/wcsspn.c (wcsspn): Likewise.
45775         * wcsmbs/wcsstr.c (wcsstr): Likewise.
45776         * wcsmbs/wmemchr.c (wmemchr): Likewise.
45777         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
45778         * wcsmbs/wmemset.c (wmemset): Likewise.
45779
45780 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
45781
45782         * scripts/config.guess: Update to version 2013-05-16.
45783         * scripts/config.sub: Update to version 2013-04-24.
45784         * scripts/install-sh: Update to version 2011-11-20.07.
45785         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
45786         * scripts/move-if-change: Update to version 2012-01-06 07:23.
45787
45788 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
45789
45790         * debug/fgetws_u_chk.c: Fix leading whitespaces.
45791         * elf/sln.c: Likewise.
45792         * hurd/hurd/ioctl.h: Likewise.
45793         * hurd/hurdmalloc.c: Likewise.
45794         * hurd/xattr.c: Likewise.
45795         * include/shlib-compat.h: Likewise.
45796         * inet/ruserpass.c: Likewise.
45797         * libio/iofgets_u.c: Likewise.
45798         * libio/iofgetws_u.c: Likewise.
45799         * locale/programs/ld-identification.c: Likewise.
45800         * locale/programs/ld-time.c: Likewise.
45801         * mach/msg-destroy.c: Likewise.
45802         * nss/nss_files/files-netgrp.c: Likewise.
45803         * resolv/res_data.c: Likewise.
45804         * soft-fp/op-1.h: Likewise.
45805         * soft-fp/op-2.h: Likewise.
45806         * soft-fp/op-4.h: Likewise.
45807         * soft-fp/op-common.h: Likewise.
45808         * stdio-common/printf_fphex.c: Likewise.
45809         * stdlib/strtod_l.c: Likewise.
45810         * sunrpc/rpc/clnt.h: Likewise.
45811         * sysdeps/generic/framestate.c: Likewise.
45812         * sysdeps/i386/bsd-_setjmp.S: Likewise.
45813         * sysdeps/i386/bsd-setjmp.S: Likewise.
45814         * sysdeps/i386/__longjmp.S: Likewise.
45815         * sysdeps/i386/setjmp.S: Likewise.
45816         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45817         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
45818         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45819         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45820         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45821         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
45822         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
45823         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
45824         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
45825         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
45826         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
45827         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
45828         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
45829         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
45830         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
45831         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
45832         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
45833         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
45834         * sysdeps/ieee754/support.c: Likewise.
45835         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
45836         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
45837         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
45838         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
45839         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
45840         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
45841         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
45842         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
45843         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
45844         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
45845         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
45846         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
45847         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
45848         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
45849         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
45850         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
45851         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
45852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
45853
45854 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
45855
45856         * posix/transbug.c: Remove executable mode.
45857
45858 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
45859
45860         * crypt/speeds.c: Remove trailing whitespace.
45861         * dlfcn/default.c: Likewise.
45862         * elf/ifuncdep2.c: Likewise.
45863         * elf/ifuncmain1.c: Likewise.
45864         * elf/ifuncmain1vis.c: Likewise.
45865         * elf/testobj.h: Likewise.
45866         * elf/tst-stackguard1.c: Likewise.
45867         * gmon/sys/gmon.h: Likewise.
45868         * hurd/hurdmsg.c: Likewise.
45869         * hurd/new-fd.c: Likewise.
45870         * hurd/ports-get.c: Likewise.
45871         * iconvdata/ibm1008_420.c: Likewise.
45872         * inet/tst-getni1.c: Likewise.
45873         * inet/tst-getni2.c: Likewise.
45874         * libio/ioungetc.c: Likewise.
45875         * libio/wfiledoalloc.c: Likewise.
45876         * manual/libm-err-tab.pl: Likewise.
45877         * math/w_dremf.c: Likewise.
45878         * misc/ftruncate.c: Likewise.
45879         * posix/bug-glob2.c: Likewise.
45880         * posix/tst-pcre.c: Likewise.
45881         * posix/wait4.c: Likewise.
45882         * resolv/README: Likewise.
45883         * resolv/res_debug.h: Likewise.
45884         * resolv/tst-inet_ntop.c: Likewise.
45885         * setjmp/bug269-setjmp.c: Likewise.
45886         * soft-fp/extended.h: Likewise.
45887         * soft-fp/op-1.h: Likewise.
45888         * soft-fp/op-2.h: Likewise.
45889         * soft-fp/op-4.h: Likewise.
45890         * soft-fp/op-8.h: Likewise.
45891         * soft-fp/testit.c: Likewise.
45892         * stdio-common/bug16.c: Likewise.
45893         * stdlib/random.c: Likewise.
45894         * sunrpc/rpcsvc/rquota.x: Likewise.
45895         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
45896         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
45897         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45898         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
45899         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
45900         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
45901         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
45902         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
45903         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
45904         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
45905         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
45906         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
45907         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
45908         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
45909         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
45910         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
45911         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
45912         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
45913         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
45914         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
45915         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
45916         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
45917         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
45918         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
45919         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
45920         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
45921         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
45922         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
45923         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
45924         * sysdeps/ieee754/s_lib_version.c: Likewise.
45925         * sysdeps/mach/hurd/check_fds.c: Likewise.
45926         * sysdeps/mach/hurd/getsockname.c: Likewise.
45927         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
45928         * sysdeps/mach/hurd/recvfrom.c: Likewise.
45929         * sysdeps/powerpc/bits/link.h: Likewise.
45930         * sysdeps/powerpc/dl-procinfo.c: Likewise.
45931         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
45932         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
45933         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
45934         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
45935         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
45936         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
45937         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
45938         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
45939         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
45940         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
45941         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
45942         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
45943         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
45944         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
45945         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
45946         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
45947         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
45948         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
45949         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
45950         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
45951         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
45952         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45953         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
45954         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
45955         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
45956         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
45957         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
45958         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
45959         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
45960         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
45961         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
45962         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
45963         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
45964         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
45965         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
45966         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
45967         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
45968         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
45969         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
45970         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
45971         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
45972         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
45973         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
45974         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
45975         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
45976         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
45977         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
45978         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
45979         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
45980         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
45981         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
45982         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
45983         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
45984         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
45985         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
45986         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
45987         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
45988         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
45989         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
45990         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
45991         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
45992         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
45993         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
45994         * sysdeps/powerpc/sysdep.h: Likewise.
45995         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
45996         * sysdeps/s390/s390-64/sub_n.S: Likewise.
45997         * sysdeps/sh/dl-trampoline.S: Likewise.
45998         * sysdeps/sh/memset.S: Likewise.
45999         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46000         * sysdeps/sh/strlen.S: Likewise.
46001         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46002         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46003         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46004         * sysdeps/sparc/sparc32/rem.S: Likewise.
46005         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46006         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46007         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46008         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46009         * sysdeps/sparc/sparc32/urem.S: Likewise.
46010         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46011         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46012         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46013         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46014         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46015         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46016         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46017         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46018         * sysdeps/unix/bsd/times.c: Likewise.
46019         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46020         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46024         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46025         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46026         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46027         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46028         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46029         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46030         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46031         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46032         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46033         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46034         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46035         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46036         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46037         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46038         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46039         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46040         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46041         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46042         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46043         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46044         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46045         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46046         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46047         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46048         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46049         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46050         * sysdeps/x86_64/strcspn.S: Likewise.
46051
46052 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46053
46054         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46055         generated file.  Regenerate properly from gen-translit.pl.
46056         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46057         locale/C-translit.h.
46058
46059 2013-06-05  Andreas Schwab  <schwab@suse.de>
46060
46061         [BZ #15100]
46062         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46063         week as 6 instead of -1.
46064         * time/tst-strptime.c (day_tests): Add test case.
46065
46066 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46067
46068         * sysdeps/generic/math_private.h
46069         (libc_feholdexcept_setround_53bit): Replace with
46070         libc_feholdsetround_53bit.
46071         (libc_feupdateenv_53bit): Replace with
46072         libc_feresetround_53bit.
46073         (SET_RESTORE_ROUND_53BIT): Adjust.
46074
46075 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46076
46077         * string/test-strchrnul.c: Add copyright header.
46078
46079         * posix/tst-getaddrinfo4.c: Increase test timeout.
46080
46081 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46082
46083         [BZ #15536]
46084         * math/libm-test.inc (MAX_EXP): Remove
46085         (MIN_EXP): Define.
46086         (ulp): Use MIN_EXP - MANT_DIG.
46087         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46088
46089 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46090
46091         * po/be.po: Revert last change.
46092         * po/zh_CN.po: Likewise.
46093         * po/header.pot: Likewise.
46094
46095 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46096
46097         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46098         link-libc-deps to empty as target-specific variable.
46099         * Makerules (link-libc-args): New variable.
46100         (libc-for-link): Likewise.
46101         (link-libc-deps): Likewise.
46102         (lib%.so): Depend on $(link-libc-deps).  Link with
46103         $(link-libc-args).
46104         (build-module): Link with $(link-libc-args).
46105         (build-module-asneeded): Likewise.
46106         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46107         list of objects.
46108         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46109         target-specific variable.
46110         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46111         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46112         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46113         libc.
46114         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46115         libc and ld.so.
46116         ($(objpfx)libpcprofile.so): Likewise.
46117         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46118         libc_nonshared.a.
46119         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46120         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46121         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46122         $(link-libc-deps).
46123         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46124         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46125         * login/Makefile ($(objpfx)libutil.so): Likewise.
46126         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46127         * math/Makefile ($(objpfx)libm.so): Likewise.
46128         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46129         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46130         variable instead of depending directly on libc.
46131         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46132         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46133         $(link-libc-deps).
46134         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46135         libc.
46136         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46137         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46138         ($(objpfx)libanl.so): Likewise.
46139         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46140         ld.so.
46141         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46142         $(link-libc-deps).
46143         * sysdeps/i386/fpu/Makefile: Remove file.
46144         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46145         ($(objpfx)libm.so): Remove dependency on ld.so.
46146
46147 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46148
46149         [BZ # 15553]
46150         * nis/yp_xdr.c (XDRMAXNAME): Define.
46151         (XDRMAXRECORD): Define.
46152         (xdr_domainname): Use XDRMAXNAME.
46153         (xdr_mapname): Likewise.
46154         (xdr_peername): Likewise.
46155         (xdr_keydat): Use XDRMAXRECORD.
46156         (xdr_valdat): Likewise.
46157
46158 2013-05-30  Jeff Law  <law@redhat.com>
46159
46160         [BZ #14256]
46161         * manual/errno.texi (ESTALE): Update to account for more than
46162         just NFS file systems.
46163         * sysdeps/gnu/errlist.c: Regenerated.
46164
46165 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46166
46167         [BZ #15465]
46168         * elf/Makefile (tests): Add tst-null-argv.
46169         (modules-names):  Add tst-null-argv-lib.
46170         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46171         (tst-null-argv-ENV): Set environment for tst-null-argv.
46172         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46173         (RTLD_PROGNAME): New macro.
46174         * elf/tst-null-argv.c: New test case.
46175         * elf/tst-null-argv-lib.c: Library for test case.
46176         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46177         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46178         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46179         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46180         * elf/dl-init.c (call_init): Likewise.
46181         (_dl_init): Likewise.
46182         * elf/dl-load.c (print_search_path): Likewise.
46183         (_dl_map_object): Likewise.
46184         * elf/dl-lookup.c (do_lookup_x): Likewise.
46185         (add_dependency): Likewise.
46186         (_dl_lookup_symbol_x): Likewise.
46187         (_dl_debug_bindings): Likewise.
46188         * elf/dl-open.c (_dl_show_scope): Likewise.
46189         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46190         * elf/dl-version.c (match_symbol): Likewise.
46191         (_dl_check_map_versions): Likewise.
46192         * elf/rtld.c (dl_main): Likewise.
46193         (print_unresolved): Use RTLD_PROGNAME.
46194         (print_missing_version): Likewise.
46195         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46196         (elf_machine_rela): Likewise.
46197         * sysdeps/powerpc/powerpc32/dl-machine.c
46198         (__process_machine_rela): Likewise.
46199         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46200         Likewise.
46201         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46202         Likewise.
46203         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46204         Likewise.
46205         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46206         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46207         Likewise.
46208         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46209         Likewise.
46210         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46211
46212 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46213
46214         * po/be.po: Add descriptive title.
46215         * po/zh_CN.po: Likewise.
46216         * po/header.pot: Likewise.
46217
46218 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46219
46220         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46221         error message.
46222         (enlarge_archive): Likewise.
46223
46224 2013-05-28  Ben North  <ben@redfrontdoor.org>
46225
46226         * manual/arith.texi (frexp): It is the magnitude of the return
46227         value which lies in [0.5, 1), not the return value itself.
46228
46229 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46230
46231         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46232
46233 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46234
46235         * stdio-common/bug26.c (main): Correct fscanf template.
46236
46237         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46238         declare _dl_skip_args.
46239
46240         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46241         Don't declare.
46242
46243         * manual/platform.texi: Add missing @end deftypefun.
46244
46245 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46246
46247         [BZ #15529]
46248         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46249         bit of mantissa of 2^16382.
46250         * math/libm-test.inc (hypot_test_data): Add more tests.
46251
46252         * math/libm-test.inc: Add drem and pow10 to list of tested
46253         functions.
46254         (pow10_test): New function.
46255         (drem_test): Likewise.
46256         (drem_test_tonearest): Likewise.
46257         (drem_test_towardzero): Likewise.
46258         (drem_test_downward): Likewise.
46259         (drem_test_upward): Likewise.
46260         (main): Call the new functions.
46261
46262         * math/libm-test.inc (finite_test_data): Remove.
46263         (finite_test): Run tests from isfinite_test_data.
46264         (gamma_test_data): Remove.
46265         (gamma_test): Run tests from lgamma_test_data.
46266         * sysdeps/i386/fpu/libm-test-ulps: Update.
46267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46268
46269 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46270
46271         * manual/platform.texi: Add PowerPC PPR function set documentation.
46272         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46273         implementation.
46274
46275 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46276
46277         * math/libm-test.inc (MAX_EXP): Define.
46278         (ULPDIFF): Define.
46279         (ulp): New function.
46280         (check_float_internal): Use ULPDIFF.
46281         (cpow_test): Disable failing test.
46282         (check_ulp): Test ulp() implemetnation.
46283         (main): Call check_ulp before starting tests.
46284
46285 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46286
46287         * math/gen-libm-test.pl (generate_testfile): Do not handle
46288         START_DATA and END_DATA.
46289         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46290         END_DATA.
46291         (acos_tonearest_test_data): Likewise.
46292         (acos_towardzero_test_data): Likewise.
46293         (acos_downward_test_data): Likewise.
46294         (acos_upward_test_data): Likewise.
46295         (acosh_test_data): Likewise.
46296         (asin_test_data): Likewise.
46297         (asin_tonearest_test_data): Likewise.
46298         (asin_towardzero_test_data): Likewise.
46299         (asin_downward_test_data): Likewise.
46300         (asin_upward_test_data): Likewise.
46301         (asinh_test_data): Likewise.
46302         (atan_test_data): Likewise.
46303         (atanh_test_data): Likewise.
46304         (atan2_test_data): Likewise.
46305         (cabs_test_data): Likewise.
46306         (cacos_test_data): Likewise.
46307         (cacosh_test_data): Likewise.
46308         (carg_test_data): Likewise.
46309         (casin_test_data): Likewise.
46310         (casinh_test_data): Likewise.
46311         (catan_test_data): Likewise.
46312         (catanh_test_data): Likewise.
46313         (cbrt_test_data): Likewise.
46314         (ccos_test_data): Likewise.
46315         (ccosh_test_data): Likewise.
46316         (ceil_test_data): Likewise.
46317         (cexp_test_data): Likewise.
46318         (cimag_test_data): Likewise.
46319         (clog_test_data): Likewise.
46320         (clog10_test_data): Likewise.
46321         (conj_test_data): Likewise.
46322         (copysign_test_data): Likewise.
46323         (cos_test_data): Likewise.
46324         (cos_tonearest_test_data): Likewise.
46325         (cos_towardzero_test_data): Likewise.
46326         (cos_downward_test_data): Likewise.
46327         (cos_upward_test_data): Likewise.
46328         (cosh_test_data): Likewise.
46329         (cosh_tonearest_test_data): Likewise.
46330         (cosh_towardzero_test_data): Likewise.
46331         (cosh_downward_test_data): Likewise.
46332         (cosh_upward_test_data): Likewise.
46333         (cpow_test_data): Likewise.
46334         (cproj_test_data): Likewise.
46335         (creal_test_data): Likewise.
46336         (csin_test_data): Likewise.
46337         (csinh_test_data): Likewise.
46338         (csqrt_test_data): Likewise.
46339         (ctan_test_data): Likewise.
46340         (ctan_tonearest_test_data): Likewise.
46341         (ctan_towardzero_test_data): Likewise.
46342         (ctan_downward_test_data): Likewise.
46343         (ctan_upward_test_data): Likewise.
46344         (ctanh_test_data): Likewise.
46345         (ctanh_tonearest_test_data): Likewise.
46346         (ctanh_towardzero_test_data): Likewise.
46347         (ctanh_downward_test_data): Likewise.
46348         (ctanh_upward_test_data): Likewise.
46349         (erf_test_data): Likewise.
46350         (erfc_test_data): Likewise.
46351         (exp_test_data): Likewise.
46352         (exp_tonearest_test_data): Likewise.
46353         (exp_towardzero_test_data): Likewise.
46354         (exp_downward_test_data): Likewise.
46355         (exp_upward_test_data): Likewise.
46356         (exp10_test_data): Likewise.
46357         (exp2_test_data): Likewise.
46358         (expm1_test_data): Likewise.
46359         (fabs_test_data): Likewise.
46360         (fdim_test_data): Likewise.
46361         (finite_test_data): Likewise.
46362         (floor_test_data): Likewise.
46363         (fma_test_data): Likewise.
46364         (fma_towardzero_test_data): Likewise.
46365         (fma_downward_test_data): Likewise.
46366         (fma_upward_test_data): Likewise.
46367         (fmax_test_data): Likewise.
46368         (fmin_test_data): Likewise.
46369         (fmod_test_data): Likewise.
46370         (fpclassify_test_data): Likewise.
46371         (frexp_test_data): Likewise.
46372         (gamma_test_data): Likewise.
46373         (hypot_test_data): Likewise.
46374         (ilogb_test_data): Likewise.
46375         (isfinite_test_data): Likewise.
46376         (isgreater_test_data): Likewise.
46377         (isgreaterequal_test_data): Likewise.
46378         (isinf_test_data): Likewise.
46379         (isless_test_data): Likewise.
46380         (islessequal_test_data): Likewise.
46381         (islessgreater_test_data): Likewise.
46382         (isnan_test_data): Likewise.
46383         (isnormal_test_data): Likewise.
46384         (issignaling_test_data): Likewise.
46385         (isunordered_test_data): Likewise.
46386         (j0_test_data): Likewise.
46387         (j1_test_data): Likewise.
46388         (jn_test_data): Likewise.
46389         (ldexp_test_data): Likewise.
46390         (lgamma_test_data): Likewise.
46391         (lrint_test_data): Likewise.
46392         (lrint_tonearest_test_data): Likewise.
46393         (lrint_towardzero_test_data): Likewise.
46394         (lrint_downward_test_data): Likewise.
46395         (lrint_upward_test_data): Likewise.
46396         (llrint_test_data): Likewise.
46397         (llrint_tonearest_test_data): Likewise.
46398         (llrint_towardzero_test_data): Likewise.
46399         (llrint_downward_test_data): Likewise.
46400         (llrint_upward_test_data): Likewise.
46401         (log_test_data): Likewise.
46402         (log10_test_data): Likewise.
46403         (log1p_test_data): Likewise.
46404         (log2_test_data): Likewise.
46405         (logb_test_data): Likewise.
46406         (logb_downward_test_data): Likewise.
46407         (lround_test_data): Likewise.
46408         (llround_test_data): Likewise.
46409         (modf_test_data): Likewise.
46410         (nearbyint_test_data): Likewise.
46411         (nextafter_test_data): Likewise.
46412         (nexttoward_test_data): Likewise.
46413         (pow_test_data): Likewise.
46414         (pow_tonearest_test_data): Likewise.
46415         (pow_towardzero_test_data): Likewise.
46416         (pow_downward_test_data): Likewise.
46417         (pow_upward_test_data): Likewise.
46418         (remainder_test_data): Likewise.
46419         (remainder_tonearest_test_data): Likewise.
46420         (remainder_towardzero_test_data): Likewise.
46421         (remainder_downward_test_data): Likewise.
46422         (remainder_upward_test_data): Likewise.
46423         (remquo_test_data): Likewise.
46424         (rint_test_data): Likewise.
46425         (rint_tonearest_test_data): Likewise.
46426         (rint_towardzero_test_data): Likewise.
46427         (rint_downward_test_data): Likewise.
46428         (rint_upward_test_data): Likewise.
46429         (round_test_data): Likewise.
46430         (scalb_test_data): Likewise.
46431         (scalbn_test_data): Likewise.
46432         (scalbln_test_data): Likewise.
46433         (signbit_test_data): Likewise.
46434         (sin_test_data): Likewise.
46435         (sin_tonearest_test_data): Likewise.
46436         (sin_towardzero_test_data): Likewise.
46437         (sin_downward_test_data): Likewise.
46438         (sin_upward_test_data): Likewise.
46439         (sincos_test_data): Likewise.
46440         (sinh_test_data): Likewise.
46441         (sinh_tonearest_test_data): Likewise.
46442         (sinh_towardzero_test_data): Likewise.
46443         (sinh_downward_test_data): Likewise.
46444         (sinh_upward_test_data): Likewise.
46445         (sqrt_test_data): Likewise.
46446         (tan_test_data): Likewise.
46447         (tan_tonearest_test_data): Likewise.
46448         (tan_towardzero_test_data): Likewise.
46449         (tan_downward_test_data): Likewise.
46450         (tan_upward_test_data): Likewise.
46451         (tanh_test_data): Likewise.
46452         (tgamma_test_data): Likewise.
46453         (trunc_test_data): Likewise.
46454         (y0_test_data): Likewise.
46455         (y1_test_data): Likewise.
46456         (yn_test_data): Likewise.
46457         (significand_test_data): Likewise.
46458
46459         * math/gen-libm-test.pl (@functions): Remove variable.
46460         (generate_testfile): Don't handle START and END lines.
46461         * math/libm-test.inc (START): New macro.
46462         (END): Likewise.
46463         (END_COMPLEX): Likewise.
46464         (acos_test): Use END macro without arguments.
46465         (acos_test_tonearest): Likewise.
46466         (acos_test_towardzero): Likewise.
46467         (acos_test_downward): Likewise.
46468         (acos_test_upward): Likewise.
46469         (acosh_test): Likewise.
46470         (asin_test): Likewise.
46471         (asin_test_tonearest): Likewise.
46472         (asin_test_towardzero): Likewise.
46473         (asin_test_downward): Likewise.
46474         (asin_test_upward): Likewise.
46475         (asinh_test): Likewise.
46476         (atan_test): Likewise.
46477         (atanh_test): Likewise.
46478         (atan2_test): Likewise.
46479         (cabs_test): Likewise.
46480         (cacos_test): Use END_COMPLEX macro without arguments.
46481         (cacosh_test): Likewise.
46482         (carg_test): Use END macro without arguments.
46483         (casin_test): Use END_COMPLEX macro without arguments.
46484         (casinh_test): Likewise.
46485         (catan_test): Likewise.
46486         (catanh_test): Likewise.
46487         (cbrt_test): Use END macro without arguments.
46488         (ccos_test): Use END_COMPLEX macro without arguments.
46489         (ccosh_test): Likewise.
46490         (ceil_test): Use END macro without arguments.
46491         (cexp_test): Use END_COMPLEX macro without arguments.
46492         (cimag_test): Use END macro without arguments.
46493         (clog_test): Use END_COMPLEX macro without arguments.
46494         (clog10_test): Likewise.
46495         (conj_test): Likewise.
46496         (copysign_test): Use END macro without arguments.
46497         (cos_test): Likewise.
46498         (cos_test_tonearest): Likewise.
46499         (cos_test_towardzero): Likewise.
46500         (cos_test_downward): Likewise.
46501         (cos_test_upward): Likewise.
46502         (cosh_test): Likewise.
46503         (cosh_test_tonearest): Likewise.
46504         (cosh_test_towardzero): Likewise.
46505         (cosh_test_downward): Likewise.
46506         (cosh_test_upward): Likewise.
46507         (cpow_test): Use END_COMPLEX macro without arguments.
46508         (cproj_test): Likewise.
46509         (creal_test): Use END macro without arguments.
46510         (csin_test): Use END_COMPLEX macro without arguments.
46511         (csinh_test): Likewise.
46512         (csqrt_test): Likewise.
46513         (ctan_test): Likewise.
46514         (ctan_test_tonearest): Likewise.
46515         (ctan_test_towardzero): Likewise.
46516         (ctan_test_downward): Likewise.
46517         (ctan_test_upward): Likewise.
46518         (ctanh_test): Likewise.
46519         (ctanh_test_tonearest): Likewise.
46520         (ctanh_test_towardzero): Likewise.
46521         (ctanh_test_downward): Likewise.
46522         (ctanh_test_upward): Likewise.
46523         (erf_test): Use END macro without arguments.
46524         (erfc_test): Likewise.
46525         (exp_test): Likewise.
46526         (exp_test_tonearest): Likewise.
46527         (exp_test_towardzero): Likewise.
46528         (exp_test_downward): Likewise.
46529         (exp_test_upward): Likewise.
46530         (exp10_test): Likewise.
46531         (exp2_test): Likewise.
46532         (expm1_test): Likewise.
46533         (fabs_test): Likewise.
46534         (fdim_test): Likewise.
46535         (finite_test): Likewise.
46536         (floor_test): Likewise.
46537         (fma_test): Likewise.
46538         (fma_test_towardzero): Likewise.
46539         (fma_test_downward): Likewise.
46540         (fma_test_upward): Likewise.
46541         (fmax_test): Likewise.
46542         (fmin_test): Likewise.
46543         (fmod_test): Likewise.
46544         (fpclassify_test): Likewise.
46545         (frexp_test): Likewise.
46546         (gamma_test): Likewise.
46547         (hypot_test): Likewise.
46548         (ilogb_test): Likewise.
46549         (isfinite_test): Likewise.
46550         (isgreater_test): Likewise.
46551         (isgreaterequal_test): Likewise.
46552         (isinf_test): Likewise.
46553         (isless_test): Likewise.
46554         (islessequal_test): Likewise.
46555         (islessgreater_test): Likewise.
46556         (isnan_test): Likewise.
46557         (isnormal_test): Likewise.
46558         (issignaling_test): Likewise.
46559         (isunordered_test): Likewise.
46560         (j0_test): Likewise.
46561         (j1_test): Likewise.
46562         (jn_test): Likewise.
46563         (ldexp_test): Likewise.
46564         (lgamma_test): Likewise.
46565         (lrint_test): Likewise.
46566         (lrint_test_tonearest): Likewise.
46567         (lrint_test_towardzero): Likewise.
46568         (lrint_test_downward): Likewise.
46569         (lrint_test_upward): Likewise.
46570         (llrint_test): Likewise.
46571         (llrint_test_tonearest): Likewise.
46572         (llrint_test_towardzero): Likewise.
46573         (llrint_test_downward): Likewise.
46574         (llrint_test_upward): Likewise.
46575         (log_test): Likewise.
46576         (log10_test): Likewise.
46577         (log1p_test): Likewise.
46578         (log2_test): Likewise.
46579         (logb_test): Likewise.
46580         (logb_test_downward): Likewise.
46581         (lround_test): Likewise.
46582         (llround_test): Likewise.
46583         (modf_test): Likewise.
46584         (nearbyint_test): Likewise.
46585         (nextafter_test): Likewise.
46586         (nexttoward_test): Likewise.
46587         (pow_test): Likewise.
46588         (pow_test_tonearest): Likewise.
46589         (pow_test_towardzero): Likewise.
46590         (pow_test_downward): Likewise.
46591         (pow_test_upward): Likewise.
46592         (remainder_test): Likewise.
46593         (remainder_test_tonearest): Likewise.
46594         (remainder_test_towardzero): Likewise.
46595         (remainder_test_downward): Likewise.
46596         (remainder_test_upward): Likewise.
46597         (remquo_test): Likewise.
46598         (rint_test): Likewise.
46599         (rint_test_tonearest): Likewise.
46600         (rint_test_towardzero): Likewise.
46601         (rint_test_downward): Likewise.
46602         (rint_test_upward): Likewise.
46603         (round_test): Likewise.
46604         (scalb_test): Likewise.
46605         (scalbn_test): Likewise.
46606         (scalbln_test): Likewise.
46607         (signbit_test): Likewise.
46608         (sin_test): Likewise.
46609         (sin_test_tonearest): Likewise.
46610         (sin_test_towardzero): Likewise.
46611         (sin_test_downward): Likewise.
46612         (sin_test_upward): Likewise.
46613         (sincos_test): Likewise.
46614         (sinh_test): Likewise.
46615         (sinh_test_tonearest): Likewise.
46616         (sinh_test_towardzero): Likewise.
46617         (sinh_test_downward): Likewise.
46618         (sinh_test_upward): Likewise.
46619         (sqrt_test): Likewise.
46620         (tan_test): Likewise.
46621         (tan_test_tonearest): Likewise.
46622         (tan_test_towardzero): Likewise.
46623         (tan_test_downward): Likewise.
46624         (tan_test_upward): Likewise.
46625         (tanh_test): Likewise.
46626         (tgamma_test): Likewise.
46627         (trunc_test): Likewise.
46628         (y0_test): Likewise.
46629         (y1_test): Likewise.
46630         (yn_test): Likewise.
46631         (significand_test): Likewise.
46632
46633 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46634
46635         [BZ #15381]
46636         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46637
46638 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46639
46640         [BZ #14894]
46641         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46642         __ppc_mdoio and __ppc_mdoom.
46643         * manual/platform.texi: Document new functions __ppc_yield,
46644         __ppc_mdoio and __ppc_mdoom.
46645
46646 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46647
46648         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46649         (main): Mention "tls" pseudo-hwcap is legacy.
46650         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46651
46652 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46653
46654         * math/gen-libm-test.pl (parse_args): Output only string of
46655         arguments as text for test name, not full call or descriptions of
46656         tests for extra outputs.
46657         (generate_testfile): Do not pass function name to parse_args.
46658         Generate this_func variable from START.
46659         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46660         field to arg_str.
46661         (struct test_ff_f_data): Likewise.
46662         (test_ff_f_data_nexttoward): Likewise.
46663         (struct test_fi_f_data): Likewise.
46664         (struct test_fl_f_data): Likewise.
46665         (struct test_if_f_data): Likewise.
46666         (struct test_fff_f_data): Likewise.
46667         (struct test_c_f_data): Likewise.
46668         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46669         (struct test_fF_f1_data): Likewise.
46670         (struct test_ffI_f1_data): Likewise.
46671         (struct test_c_c_data): Rename test_name field to arg_str.
46672         (struct test_cc_c_data): Likewise.
46673         (struct test_f_i_data): Likewise.
46674         (struct test_ff_i_data): Likewise.
46675         (struct test_f_l_data): Likewise.
46676         (struct test_f_L_data): Likewise.
46677         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46678         and extra2_name.
46679         (COMMON_TEST_SETUP): New macro.
46680         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46681         (COMMON_TEST_CLEANUP): Likewise.
46682         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46683         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46684         macros.
46685         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46686         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46687         macros.
46688         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46689         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46690         cleanup macros.
46691         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46692         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46693         macros.
46694         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46695         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46696         macros.
46697         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46698         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46699         cleanup macros.
46700         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46701         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46702         cleanup macros.
46703         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46704         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46705         cleanup macros.
46706         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46707         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46708         macros.
46709         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46710         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46711         macros.
46712         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46713         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46714         macros.
46715         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46716         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46717         cleanup macros.
46718         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46719         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46720         cleanup macros.
46721         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46722         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46723         macros.
46724         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46725         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46726         cleanup macros.
46727         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46728         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46729         macros.
46730         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46731         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46732         macros.
46733         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46734         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46735         cleanup macros.
46736         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46737
46738 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46739
46740         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46741         to _sifields.sigfault.
46742         (si_addr_lsb): Define new macro.
46743         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46744         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46745         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46746
46747 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46748
46749         [BZ #15441]
46750         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46751         returns -1.
46752         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46753         null return -1.
46754         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46755         loading the domain.
46756
46757 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46758
46759         * math/gen-libm-test.pl (parse_args): Do not include expected
46760         result in test name.
46761         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46762         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46763         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46764         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46765         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46767
46768 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46769
46770         * benchtests/Makefile: Sort function entries.
46771
46772         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
46773         tanh, asinh, acosh, atanh.
46774         * benchtests/acos-inputs: New file.
46775         * benchtests/acosh-inputs: New file.
46776         * benchtests/asin-inputs: New file.
46777         * benchtests/asinh-inputs: New file.
46778         * benchtests/atanh-inputs: New file.
46779         * benchtests/cosh-inputs: New file.
46780         * benchtests/log-inputs: New file.
46781         * benchtests/sinh-inputs: New file.
46782         * benchtests/tanh-inputs: New file.
46783
46784 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
46785
46786         [BZ #15339]
46787         * posix/tst-getaddrinfo4.c: New test.
46788         * posix/Makefile (tests): Add it.
46789
46790 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46791
46792         [BZ #15339]
46793         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
46794         when no services were used.
46795         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
46796         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
46797
46798 2013-05-21  Andreas Schwab  <schwab@suse.de>
46799
46800         [BZ #15014]
46801         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
46802         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
46803         successful.
46804         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
46805         redundant variable declarations and reallocation of buffer when
46806         parsing as IPv6 address.  Always set NSS status when called from
46807         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
46808         buffer too small.  Correct computation of needed size.
46809         * nss/Makefile (tests): Add test-digits-dots.
46810         * nss/test-digits-dots.c: New test.
46811
46812 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46813
46814         * benchtests/Makefile: Remove instructions for adding
46815         benchmark tests.
46816         * benchtests/README: New file to explain how to execute and
46817         enhance the benchmark tests.
46818
46819 2013-05-21  Andreas Schwab  <schwab@suse.de>
46820
46821         [BZ #15493]
46822         * setjmp/Makefile (tests): Add tst-sigsetjmp.
46823         * setjmp/tst-sigsetjmp.c: New test.
46824
46825 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46826
46827         * sysdeps/x86_64/memset.S (memset): New implementation.
46828         (__bzero): Likewise.
46829         (__memset_tail): New function.
46830
46831 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46832
46833         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
46834         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
46835         __memcpy_sse2_unaligned ifunc selection.
46836         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
46837         Add memcpy-sse2-unaligned.S.
46838         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
46839         Add: __memcpy_sse2_unaligned.
46840
46841 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
46842
46843         [BZ #15490]
46844         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
46845         math_force_eval before restoring floating-point envrionment.
46846         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
46847         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
46848         Likewise.
46849         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
46850         <math_private.h>.
46851         (__nearbyintl): Use math_force_eval before restoring
46852         floating-point environment.
46853         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
46854
46855         * math/gen-libm-test.pl (special_functions): Remove.
46856         (parse_args): Don't handle TEST_extra.  Handle functions with no
46857         return value.
46858         * math/libm-test.inc (struct test_sincos_data): Replace with
46859         struct test_fFF_11_data.
46860         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
46861         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
46862         (sincos_test_data): Change element type to struct
46863         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
46864         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
46865         RUN_TEST_LOOP_sincos.
46866         * math/README.libm-test: Don't mention special handling of
46867         individual functions.
46868         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
46869         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46870         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46871         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46872         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46874
46875         * math/gen-libm-test.pl (get_variable): Remove function.
46876         (parse_args): Don't show pointer parameters to call in test
46877         names.  Use "extra output N" in test names for extra outputs
46878         rather than naming variables.
46879
46880 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
46881
46882         [BZ #15488]
46883         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
46884         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
46885         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
46886         double tests.
46887         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
46888         disable.
46889         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
46890         check_long_double.
46891
46892         * math/gen-libm-test.pl (@tests): Remove variable.
46893         ($count): Likewise.
46894         (new_test): Remove function.
46895         (show_exceptions): New function.
46896         (special_functions): Use show_exceptions instead of new_test.
46897         (parse_args): Likewise.
46898         (generate_testfile): Pass only function name in generated call to
46899         print_max_error or print_complex_max_error.
46900         (get_ulps): Do not handle complex tests specially.
46901         (output_test): Rename to ...
46902         (get_all_ulps_for_test): ... this.  Return a string rather than
46903         printing to a file.  Require ulps to be present.
46904         (output_ulps): Generate arrays rather than #defines.
46905         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
46906         (struct ulp_data): New type.
46907         (BUILD_COMPLEX_ULP): Remove macro.
46908         (compare_ulp_data): New function.
46909         (find_ulps): Likewise.
46910         (find_test_ulps): Likewise.
46911         (find_function_ulps): Likewise.
46912         (find_complex_function_ulps): Likewise.
46913         (print_max_error): Determine allowed ulps using
46914         find_function_ulps.
46915         (print_complex_max_error): Determine allowed ulps using
46916         find_complex_function_ulps.
46917         (check_float_internal): Determine max ulps using find_test_ulps.
46918         (check_float): Do not take max_ulp parameter.  Update call to
46919         check_float_internal.
46920         (check_complex): Likewise.
46921         (check_int): Do not take max_ulp parameter.
46922         (check_long): Likewise.
46923         (check_bool): Likewise.
46924         (check_longlong): Likewise.
46925         (struct test_f_f_data): Remove max_ulp field.
46926         (struct test_ff_f_data): Likewise.
46927         (struct test_ff_f_data_nexttoward): Likewise.
46928         (struct test_fi_f_data): Likewise.
46929         (struct test_fl_f_data): Likewise.
46930         (struct test_if_f_data): Likewise.
46931         (struct test_fff_f_data): Likewise.
46932         (struct test_c_f_data): Likewise.
46933         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
46934         (struct test_fF_f1_data): Likewise.
46935         (struct test_ffI_f1_data): Likewise.
46936         (struct test_c_c_data): Remove max_ulp field.
46937         (struct test_cc_c_data): Likewise.
46938         (struct test_f_i_data): Likewise.
46939         (struct test_ff_i_data): Likewise.
46940         (struct test_f_l_data): Likewise.
46941         (struct test_f_L_data): Likewise.
46942         (struct test_sincos_data): Likewise.
46943         (RUN_TEST_f_f): Do not handle ulps.
46944         (RUN_TEST_LOOP_f_f): Likewise.
46945         (RUN_TEST_2_f): Likewise.
46946         (RUN_TEST_LOOP_2_f): Likewise.
46947         (RUN_TEST_fff_f): Likewise.
46948         (RUN_TEST_LOOP_fff_f): Likewise.
46949         (RUN_TEST_c_f): Likewise.
46950         (RUN_TEST_LOOP_c_f): Likewise.
46951         (RUN_TEST_f_f1): Likewise.
46952         (RUN_TEST_LOOP_f_f1): Likewise.
46953         (RUN_TEST_fF_f1): Likewise.
46954         (RUN_TEST_LOOP_fF_f1): Likewise.
46955         (RUN_TEST_fI_f1): Likewise.
46956         (RUN_TEST_LOOP_fI_f1): Likewise.
46957         (RUN_TEST_ffI_f1): Likewise.
46958         (RUN_TEST_LOOP_ffI_f1): Likewise.
46959         (RUN_TEST_c_c): Likewise.
46960         (RUN_TEST_LOOP_c_c): Likewise.
46961         (RUN_TEST_cc_c): Likewise.
46962         (RUN_TEST_LOOP_cc_c): Likewise.
46963         (RUN_TEST_f_i): Likewise.
46964         (RUN_TEST_LOOP_f_i): Likewise.
46965         (RUN_TEST_f_i_tg): Likewise.
46966         (RUN_TEST_LOOP_f_i_tg): Likewise.
46967         (RUN_TEST_ff_i_tg): Likewise.
46968         (RUN_TEST_LOOP_ff_i_tg): Likewise.
46969         (RUN_TEST_f_b): Likewise.
46970         (RUN_TEST_LOOP_f_b): Likewise.
46971         (RUN_TEST_f_b_tg): Likewise.
46972         (RUN_TEST_LOOP_f_b_tg): Likewise.
46973         (RUN_TEST_f_l): Likewise.
46974         (RUN_TEST_LOOP_f_l): Likewise.
46975         (RUN_TEST_f_L): Likewise.
46976         (RUN_TEST_LOOP_f_L): Likewise.
46977         (RUN_TEST_sincos): Likewise.
46978         (RUN_TEST_LOOP_sincos): Likewise.
46979
46980 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
46981
46982         [BZ #15480]
46983         [BZ #15485]
46984         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
46985         main case of finite arguments, set rounding mode to FE_TONEAREST
46986         and discard exceptions.
46987         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
46988         exceptions.
46989         (remainder_tonearest_test_data): New variable.
46990         (remainder_test_tonearest): New function.
46991         (remainder_towardzero_test_data): New variable.
46992         (remainder_test_towardzero): New function.
46993         (remainder_downward_test_data): New variable.
46994         (remainder_test_downward): New function.
46995         (remainder_upward_test_data): New variable.
46996         (remainder_test_upward): New function.
46997         (main): Call the new test functions.
46998
46999         * math/libm-test.inc (struct test_f_f1_data): Remove field
47000         extra_init.
47001         (struct test_fF_f1_data): Likewise.
47002         (struct test_ffI_f1_data): Likewise.
47003         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47004         based on value of EXTRA_EXPECTED.
47005         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47006         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47007         EXTRA_VAR based on value of EXTRA_EXPECTED.
47008         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47009         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47010         EXTRA_VAR based on value of EXTRA_EXPECTED.
47011         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47012         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47013         EXTRA_VAR based on value of EXTRA_EXPECTED.
47014         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47015         * math/gen-libm-test.pl (parse_args): Don't output initializers
47016         for extra output values.
47017
47018         * math/libm-test.inc (check_int): Expect result to be exactly
47019         equal to expected value and do not handle ulps.
47020         (check_long): Likewise.
47021         (check_longlong): Likewise.
47022
47023         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47024         exceptions.
47025         (cimag_test_data): Likewise.
47026         (conj_test_data): Likewise.
47027         (copysign_test_data): Likewise.
47028         (cproj_test_data): Likewise.
47029         (creal_test_data): Likewise.
47030         (fabs_test_data): Likewise.
47031         (fdim_test_data): Likewise.
47032         (finite_test_data): Likewise.
47033         (floor_test_data): Likewise.
47034         (fmax_test_data): Likewise.
47035         (fmin_test_data): Likewise.
47036         (fmod_test_data): Likewise.
47037         (fpclassify_test_data): Likewise.
47038         (frexp_test_data): Likewise.
47039         (ilogb_test_data): Likewise.
47040         (isfinite_test_data): Likewise.
47041         (isgreater_test_data): Likewise.
47042         (isgreaterequal_test_data): Likewise.
47043         (isinf_test_data): Likewise.
47044         (isless_test_data): Likewise.
47045         (islessequal_test_data): Likewise.
47046         (islessgreater_test_data): Likewise.
47047         (isnan_test_data): Likewise.
47048         (isnormal_test_data): Likewise.
47049         (issignaling_test_data): Likewise.
47050         (isunordered_test_data): Likewise.
47051         (ldexp_test_data): Likewise.
47052         (lrint_test_data): Likewise.
47053         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47054         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47055         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47056         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47057         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47058         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47059         test input.
47060         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47061         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47062         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47063         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47064         that test input.
47065         (lrint_downward_test_data): Test for "inexact" exceptions.
47066         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47067         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47068         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47069         test input.
47070         (lrint_upward_test_data): Test for "inexact" exceptions.
47071         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47072         test input.
47073         (llrint_test_data): Test for "inexact" exceptions.
47074         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47075         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47076         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47077         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47078         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47079         (llrint_downward_test_data): Test for "inexact" exceptions.
47080         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47081         (llrint_upward_test_data): Test for "inexact" exceptions.
47082         (logb_test_data): Likewise.
47083         (logb_downward_test_data): Likewise.
47084         (nextafter_test_data): Likewise.
47085         (nexttoward_test_data): Likewise.
47086         (remainder_test_data): Likewise.
47087         (remquo_test_data): Likewise.
47088         (scalbn_test_data): Likewise.
47089         (scalbln_test_data): Likewise.
47090         (signbit_test_data): Likewise.
47091         (sqrt_test_data): Likewise.
47092         (significand_test_data): Likewise.
47093
47094 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47095
47096         [BZ #15424]
47097         * benchtests/bench-modf.c (struct args): Mark arg0 as
47098         volatile.
47099         * scripts/bench.pl: Mark members of struct args as volatile.
47100
47101 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47102
47103         [BZ # 15497]
47104         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47105         negative infinity on POWER6 or lower.
47106         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47107
47108 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47109
47110         [BZ #15442]
47111         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47112         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47113         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47114         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47115         (_FP_SETQNAN): New macro.
47116         (_FP_SETQNAN_SEMIRAW): Likewise.
47117         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47118         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47119         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47120         (FP_EXTEND): Use _FP_FRAC_SNANP.
47121         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47122         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47123         into account.
47124         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47125         New macro.
47126         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47127         Likewise.
47128
47129 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47130
47131         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47132         with DIVIDE_BY_ZERO_EXCEPTION.
47133         (gamma_test_data): Likewise.
47134         (lgamma_test_data): Likewise.
47135         (log_test_data): Likewise.
47136         (log10_test_data): Likewise.
47137         (log2_test_data): Likewise.
47138         (tgamma_test_data): Likewise.
47139
47140         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47141         (acos_test_tonearest): Likewise.
47142         (acos_test_towardzero): Likewise.
47143         (acos_test_downward): Likewise.
47144         (acos_test_upward): Likewise.
47145         (acosh_test): Likewise.
47146         (asin_test): Likewise.
47147         (asin_test_tonearest): Likewise.
47148         (asin_test_towardzero): Likewise.
47149         (asin_test_downward): Likewise.
47150         (asin_test_upward): Likewise.
47151         (asinh_test): Likewise.
47152         (atan_test): Likewise.
47153         (atanh_test): Likewise.
47154         (atan2_test): Likewise.
47155         (cabs_test): Likewise.
47156         (cacos_test): Likewise.
47157         (cacosh_test): Likewise.
47158         (casin_test): Likewise.
47159         (casinh_test): Likewise.
47160         (catan_test): Likewise.
47161         (catanh_test): Likewise.
47162         (cbrt_test): Likewise.
47163         (ccos_test): Likewise.
47164         (ccosh_test): Likewise.
47165         (cexp_test): Likewise.
47166         (clog_test): Likewise.
47167         (clog10_test): Likewise.
47168         (cos_test): Likewise.
47169         (cos_test_tonearest): Likewise.
47170         (cos_test_towardzero): Likewise.
47171         (cos_test_downward): Likewise.
47172         (cos_test_upward): Likewise.
47173         (cosh_test): Likewise.
47174         (cosh_test_tonearest): Likewise.
47175         (cosh_test_towardzero): Likewise.
47176         (cosh_test_downward): Likewise.
47177         (cosh_test_upward): Likewise.
47178         (cpow_test): Likewise.
47179         (csin_test): Likewise.
47180         (csinh_test): Likewise.
47181         (csqrt_test): Likewise.
47182         (ctan_test): Likewise.
47183         (ctan_test_tonearest): Likewise.
47184         (ctan_test_towardzero): Likewise.
47185         (ctan_test_downward): Likewise.
47186         (ctan_test_upward): Likewise.
47187         (ctanh_test): Likewise.
47188         (ctanh_test_tonearest): Likewise.
47189         (ctanh_test_towardzero): Likewise.
47190         (ctanh_test_downward): Likewise.
47191         (ctanh_test_upward): Likewise.
47192         (erf_test): Likewise.
47193         (erfc_test): Likewise.
47194         (exp_test): Likewise.
47195         (exp_test_tonearest): Likewise.
47196         (exp_test_towardzero): Likewise.
47197         (exp_test_downward): Likewise.
47198         (exp_test_upward): Likewise.
47199         (exp10_test): Likewise.
47200         (exp2_test): Likewise.
47201         (expm1_test): Likewise.
47202         (fmod_test): Likewise.
47203         (gamma_test): Likewise.
47204         (hypot_test): Likewise.
47205         (j0_test): Likewise.
47206         (j1_test): Likewise.
47207         (jn_test): Likewise.
47208         (lgamma_test): Likewise.
47209         (log_test): Likewise.
47210         (log10_test): Likewise.
47211         (log1p_test): Likewise.
47212         (log2_test): Likewise.
47213         (logb_test_downward): Likewise.
47214         (pow_test): Likewise.
47215         (pow_test_tonearest): Likewise.
47216         (pow_test_towardzero): Likewise.
47217         (pow_test_downward): Likewise.
47218         (pow_test_upward): Likewise.
47219         (remainder_test): Likewise.
47220         (remquo_test): Likewise.
47221         (sin_test): Likewise.
47222         (sin_test_tonearest): Likewise.
47223         (sin_test_towardzero): Likewise.
47224         (sin_test_downward): Likewise.
47225         (sin_test_upward): Likewise.
47226         (sincos_test): Likewise.
47227         (sinh_test): Likewise.
47228         (sinh_test_tonearest): Likewise.
47229         (sinh_test_towardzero): Likewise.
47230         (sinh_test_downward): Likewise.
47231         (sinh_test_upward): Likewise.
47232         (sqrt_test): Likewise.
47233         (tan_test): Likewise.
47234         (tan_test_tonearest): Likewise.
47235         (tan_test_towardzero): Likewise.
47236         (tan_test_downward): Likewise.
47237         (tan_test_upward): Likewise.
47238         (tanh_test): Likewise.
47239         (tgamma_test): Likewise.
47240         (y0_test): Likewise.
47241         (y1_test): Likewise.
47242         (yn_test): Likewise.
47243
47244         * math/gen-libm-test.pl (adjust_arg): Remove function.
47245         (special_function): Remove argument $in_func.  Only handle
47246         generating output for tables of tests, not inside functions.
47247         (parse_args): Likewise.
47248         (generate_testfile): Remove variable $in_func.  Update call to
47249         parse_args.
47250         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47251         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47252         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47253         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47254         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47255         (MAX_VALUE_INIT): Rename macro to max_value.
47256         (MIN_VALUE_INIT): Rename macro to min_value.
47257         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47258         (plus_zero): Remove variable.
47259         (minus_zero): Likewise.
47260         (plus_infty): Likewise.
47261         (minus_infty): Likewise.
47262         (qnan_value): Likewise.
47263         (max_value): Likewise.
47264         (min_value): Likewise.
47265         (min_subnorm_value): Likewise.
47266
47267 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47268
47269         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47270         uint64_t or uint32_t usage.
47271         * crypt/sha256-block.c: Likewise.
47272         * crypt/sha256-crypt.c: Likewise.
47273         * crypt/sha256.c: Likewise.
47274         * crypt/sha512-block.c: Likewise.
47275         * crypt/sha512-crypt.c: Likewise.
47276         * crypt/sha512.c: Likewise.
47277         * debug/backtrace-tst.c: Likewise.
47278         * debug/pcprofiledump.c: Likewise.
47279         * elf/cache.c: Likewise.
47280         * elf/dl-cache.c: Likewise.
47281         * elf/dl-misc.c: Likewise.
47282         * elf/dl-profile.c: Likewise.
47283         * elf/dl-support.c: Likewise.
47284         * elf/ldconfig.c: Likewise.
47285         * elf/sprof.c: Likewise.
47286         * iconv/dummy-repertoire.c: Likewise.
47287         * iconv/iconv_charmap.c: Likewise.
47288         * iconv/skeleton.c: Likewise.
47289         * iconvdata/8bit-generic.c: Likewise.
47290         * iconvdata/cp737.h: Likewise.
47291         * iconvdata/cp775.h: Likewise.
47292         * iconvdata/ibm1008.h: Likewise.
47293         * iconvdata/ibm1025.h: Likewise.
47294         * iconvdata/ibm1046.h: Likewise.
47295         * iconvdata/ibm1097.h: Likewise.
47296         * iconvdata/ibm1112.h: Likewise.
47297         * iconvdata/ibm1122.h: Likewise.
47298         * iconvdata/ibm1123.h: Likewise.
47299         * iconvdata/ibm1124.h: Likewise.
47300         * iconvdata/ibm1129.h: Likewise.
47301         * iconvdata/ibm1130.h: Likewise.
47302         * iconvdata/ibm1132.h: Likewise.
47303         * iconvdata/ibm1133.h: Likewise.
47304         * iconvdata/ibm1137.h: Likewise.
47305         * iconvdata/ibm1140.h: Likewise.
47306         * iconvdata/ibm1141.h: Likewise.
47307         * iconvdata/ibm1142.h: Likewise.
47308         * iconvdata/ibm1143.h: Likewise.
47309         * iconvdata/ibm1144.h: Likewise.
47310         * iconvdata/ibm1145.h: Likewise.
47311         * iconvdata/ibm1146.h: Likewise.
47312         * iconvdata/ibm1147.h: Likewise.
47313         * iconvdata/ibm1148.h: Likewise.
47314         * iconvdata/ibm1149.h: Likewise.
47315         * iconvdata/ibm1153.h: Likewise.
47316         * iconvdata/ibm1154.h: Likewise.
47317         * iconvdata/ibm1155.h: Likewise.
47318         * iconvdata/ibm1156.h: Likewise.
47319         * iconvdata/ibm1157.h: Likewise.
47320         * iconvdata/ibm1158.h: Likewise.
47321         * iconvdata/ibm1160.h: Likewise.
47322         * iconvdata/ibm1161.h: Likewise.
47323         * iconvdata/ibm1162.h: Likewise.
47324         * iconvdata/ibm1163.h: Likewise.
47325         * iconvdata/ibm1164.h: Likewise.
47326         * iconvdata/ibm1166.h: Likewise.
47327         * iconvdata/ibm1167.h: Likewise.
47328         * iconvdata/ibm12712.h: Likewise.
47329         * iconvdata/ibm1390.h: Likewise.
47330         * iconvdata/ibm1399.h: Likewise.
47331         * iconvdata/ibm16804.h: Likewise.
47332         * iconvdata/ibm4517.h: Likewise.
47333         * iconvdata/ibm4899.h: Likewise.
47334         * iconvdata/ibm4909.h: Likewise.
47335         * iconvdata/ibm4971.h: Likewise.
47336         * iconvdata/ibm5347.h: Likewise.
47337         * iconvdata/ibm803.h: Likewise.
47338         * iconvdata/ibm856.h: Likewise.
47339         * iconvdata/ibm901.h: Likewise.
47340         * iconvdata/ibm902.h: Likewise.
47341         * iconvdata/ibm9030.h: Likewise.
47342         * iconvdata/ibm9066.h: Likewise.
47343         * iconvdata/ibm921.h: Likewise.
47344         * iconvdata/ibm922.h: Likewise.
47345         * iconvdata/ibm9448.h: Likewise.
47346         * iconvdata/isiri-3342.h: Likewise.
47347         * iconvdata/jis0201.h: Likewise.
47348         * include/link.h: Likewise.
47349         * include/netdb.h: Likewise.
47350         * inet/check_native.c: Likewise.
47351         * inet/check_pf.c: Likewise.
47352         * inet/getipv4sourcefilter.c: Likewise.
47353         * inet/getnameinfo.c: Likewise.
47354         * inet/getsourcefilter.c: Likewise.
47355         * inet/htonl.c: Likewise.
47356         * inet/setipv4sourcefilter.c: Likewise.
47357         * inet/setsourcefilter.c: Likewise.
47358         * inet/test-inet6_opt.c: Likewise.
47359         * inet/tst-network.c: Likewise.
47360         * locale/C-collate.c: Likewise.
47361         * locale/C-ctype.c: Likewise.
47362         * locale/C-time.c: Likewise.
47363         * locale/C-translit.h: Likewise.
47364         * locale/loadarchive.c: Likewise.
47365         * locale/programs/3level.h: Likewise.
47366         * locale/programs/charmap.c: Likewise.
47367         * locale/programs/charmap.h: Likewise.
47368         * locale/programs/ld-address.c: Likewise.
47369         * locale/programs/ld-collate.c: Likewise.
47370         * locale/programs/ld-ctype.c: Likewise.
47371         * locale/programs/ld-identification.c: Likewise.
47372         * locale/programs/ld-measurement.c: Likewise.
47373         * locale/programs/ld-messages.c: Likewise.
47374         * locale/programs/ld-monetary.c: Likewise.
47375         * locale/programs/ld-name.c: Likewise.
47376         * locale/programs/ld-numeric.c: Likewise.
47377         * locale/programs/ld-paper.c: Likewise.
47378         * locale/programs/ld-telephone.c: Likewise.
47379         * locale/programs/ld-time.c: Likewise.
47380         * locale/programs/linereader.c: Likewise.
47381         * locale/programs/locale.c: Likewise.
47382         * locale/programs/locarchive.c: Likewise.
47383         * locale/programs/locfile.h: Likewise.
47384         * locale/programs/repertoire.c: Likewise.
47385         * locale/programs/simple-hash.c: Likewise.
47386         * locale/programs/simple-hash.h: Likewise.
47387         * malloc/memusage.c: Likewise.
47388         * malloc/memusagestat.c: Likewise.
47389         * nis/nis_defaults.c: Likewise.
47390         * nis/nis_hash.c: Likewise.
47391         * nis/nis_print.c: Likewise.
47392         * nis/nis_xdr.c: Likewise.
47393         * nscd/connections.c: Likewise.
47394         * nscd/hstcache.c: Likewise.
47395         * nscd/nscd_gethst_r.c: Likewise.
47396         * nscd/nscd_getserv_r.c: Likewise.
47397         * nscd/nscd_helper.c: Likewise.
47398         * nscd/servicescache.c: Likewise.
47399         * nss/makedb.c: Likewise.
47400         * nss/nss_db/db-XXX.c: Likewise.
47401         * nss/nss_db/db-initgroups.c: Likewise.
47402         * nss/nss_db/db-netgrp.c: Likewise.
47403         * nss/nss_files/files-network.c: Likewise.
47404         * nss/nss_files/files-parse.c: Likewise.
47405         * posix/bug-regex5.c: Likewise.
47406         * posix/fnmatch_loop.c: Likewise.
47407         * posix/regcomp.c: Likewise.
47408         * posix/regexec.c: Likewise.
47409         * posix/tst-rfc3484-2.c: Likewise.
47410         * posix/tst-rfc3484-3.c: Likewise.
47411         * posix/tst-rfc3484.c: Likewise.
47412         * resolv/nss_dns/dns-canon.c: Likewise.
47413         * resolv/nss_dns/dns-network.c: Likewise.
47414         * resolv/res_init.c: Likewise.
47415         * resolv/res_mkquery.c: Likewise.
47416         * resolv/tst-aton.c: Likewise.
47417         * stdlib/cxa_atexit.c: Likewise.
47418         * stdlib/cxa_finalize.c: Likewise.
47419         * stdlib/gen-fpioconst.c: Likewise.
47420         * stdlib/strtol_l.c: Likewise.
47421         * string/tst-endian.c: Likewise.
47422         * sunrpc/auth_des.c: Likewise.
47423         * sunrpc/clnt_udp.c: Likewise.
47424         * sunrpc/rtime.c: Likewise.
47425         * sunrpc/svcauth_des.c: Likewise.
47426         * sunrpc/xdr.c: Likewise.
47427         * sunrpc/xdr_intXX_t.c: Likewise.
47428         * sunrpc/xdr_rec.c: Likewise.
47429         * sysdeps/generic/ldconfig.h: Likewise.
47430         * sysdeps/generic/ldsodefs.h: Likewise.
47431         * sysdeps/generic/memusage.h: Likewise.
47432         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47433         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47434         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47435         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47436         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47437         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47438         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47439         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47440         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47441         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47442         * sysdeps/posix/getaddrinfo.c: Likewise.
47443         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47444         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47445         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47446         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47447         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47448         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47449         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47450         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47451         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47452         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47453         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47454         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47455         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47456         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47457         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47458         * sysdeps/x86_64/dl-tls.h: Likewise.
47459         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47460         * time/alt_digit.c: Likewise.
47461         * time/era.c: Likewise.
47462         * wcsmbs/tst-c16c32-1.c: Likewise.
47463
47464 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47465
47466         * math/libm-test.inc (struct test_sincos_data): New type.
47467         (RUN_TEST_LOOP_sincos): New macro.
47468         (sincos_test_data): New variable.
47469         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47470
47471 2013-05-16  Richard Henderson  <rth@redhat.com>
47472
47473         * math/atest-exp2.c (LIMB64): New macro.
47474         (CONSTSZ): New macro.
47475         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47476         (hexdig): Move ...
47477         (print_mpn_fp): ... to function scope.
47478         (read_mpn_hex): Remove.
47479         (get_log2): Remove.
47480         (exp2_mpn): Use mp_log2.
47481         (main): Use mp_exp1.
47482
47483 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47484
47485         * math/libm-test.inc: Remove comment about not testing "inexact"
47486         exceptions.
47487         (INEXACT_EXCEPTION): New macro.
47488         (NO_INEXACT_EXCEPTION): Likewise.
47489         (INVALID_EXCEPTION_OK): Update value.
47490         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47491         (OVERFLOW_EXCEPTION_OK): Likewise.
47492         (UNDERFLOW_EXCEPTION_OK): Likewise.
47493         (IGNORE_ZERO_INF_SIGN): Likewise.
47494         (ERRNO_UNCHANGED): Likewise.
47495         (ERRNO_EDOM): Likewise.
47496         (ERRNO_ERANGE): Likewise.
47497         (test_exceptions): Handle testing "inexact" exceptions.
47498         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47499         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47500         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47501         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47502         INEXACT_EXCEPTION.
47503         (rint_towardzero_test_data): Likewise.
47504         (rint_downward_test_data): Likewise.
47505         (rint_upward_test_data): Likewise.
47506
47507         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47508         with OVERFLOW_EXCEPTION.
47509         (exp10_test_data): Likewise.
47510         (exp2_test_data): Likewise.
47511         (expm1_test_data): Likewise.
47512         (lgamma_test_data): Likewise.
47513         (pow_test_data): Likewise.
47514         (tgamma_test_data): Likewise.
47515         (yn_test_data): Remove duplicate test of overflow.
47516
47517         * math/libm-test.inc (struct test_cc_c_data): New type.
47518         (RUN_TEST_LOOP_cc_c): New macro.
47519         (cpow_test_data): New variable.
47520         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47521
47522         * math/libm-test.inc (struct test_f_L_data): New type.
47523         (RUN_TEST_LOOP_f_L): New macro.
47524         (llrint_test_data): New variable.
47525         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47526         (llrint_tonearest_test_data): New variable.
47527         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47528         (llrint_towardzero_test_data): New variable.
47529         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47530         (llrint_downward_test_data): New variable.
47531         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47532         (llrint_upward_test_data): New variable.
47533         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47534         (llround_test_data): New variable.
47535         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47536
47537 2013-05-13  Peter Collingbourne  <pcc@google.com>
47538
47539         * math/atest-exp2.c (get_log2): Remove const attribute.
47540
47541 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47542
47543         * math/libm-test.inc (struct test_f_l_data): New type.
47544         (RUN_TEST_LOOP_f_l): New macro.
47545         (lrint_test_data): New variable.
47546         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47547         (lrint_tonearest_test_data): New variable.
47548         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47549         (lrint_towardzero_test_data): New variable.
47550         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47551         (lrint_downward_test_data): New variable.
47552         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47553         (lrint_upward_test_data): New variable.
47554         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47555         (lround_test_data): New variable.
47556         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47557
47558 2013-05-15  Peter Collingbourne  <pcc@google.com>
47559
47560         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47561         (EXTRACT_WORDS64) Use where appropriate.
47562         (INSERT_WORDS64) Likewise.
47563
47564         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47565         constraints with x constraints.
47566         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47567
47568         * malloc/obstack.c (_obstack_compat): Add initializer.
47569
47570 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47571
47572         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47573         si_trapno and add si_addr_lsb to _sifields.sigfault.
47574         (si_trapno): Remove macro.
47575         (si_addr_lsb): Define new macro.
47576         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47577
47578 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47579
47580         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47581         instead of TEST_f_l.
47582         (llrint_test_tonearest): Likewise.
47583         (llrint_test_towardzero): Likewise.
47584         (llrint_test_downward): Likewise.
47585         (llrint_test_upward): Likewise.
47586         (llround_test): Likewise.
47587
47588         * math/libm-test.inc (struct test_f_i_data): Add comment.
47589         (RUN_TEST_LOOP_f_b): New macro.
47590         (RUN_TEST_LOOP_f_b_tg): Likewise.
47591         (finite_test_data): New variable.
47592         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47593         (isfinite_test_data): New variable.
47594         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47595         (isinf_test_data): New variable.
47596         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47597         (isnan_test_data): New variable.
47598         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47599         (isnormal_test_data): New variable.
47600         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47601         (issignaling_test_data): New variable.
47602         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47603         (signbit_test_data): New variable.
47604         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47605
47606         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47607         with INVALID_EXCEPTION.
47608         (acosh_test_data): Likewise.
47609         (asin_test_data): Likewise.
47610         (atanh_test_data): Likewise.
47611         (fmod_test_data): Likewise.
47612         (log_test_data): Likewise.
47613         (log10_test_data): Likewise.
47614         (log2_test_data): Likewise.
47615         (pow_test_data): Likewise.
47616         (sqrt_test_data): Likewise.
47617         (y0_test_data): Likewise.
47618         (y1_test_data): Likewise.
47619         (yn_test_data): Likewise.
47620
47621         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47622         function contents.
47623
47624         * math/libm-test.inc (struct test_ff_i_data): New type.
47625         (RUN_TEST_LOOP_ff_i_tg): New macro.
47626         (isgreater_test_data): New variable.
47627         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47628         (isgreaterequal_test_data): New variable.
47629         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47630         (isless_test_data): New variable.
47631         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47632         (islessequal_test_data): New variable.
47633         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47634         (islessgreater_test_data): New variable.
47635         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47636         (isunordered_test_data): New variable.
47637         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47638
47639 2013-05-14  David S. Miller  <davem@davemloft.net>
47640
47641         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47642
47643 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47644
47645         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47646
47647         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47648         extra_test to int.
47649         (struct test_f_i_data): Change type of max_ulp to int.
47650
47651         * math/libm-test.inc (test_ffI_f1_data): New type.
47652         (RUN_TEST_LOOP_ffI_f1): New macro.
47653         (remquo_test_data): New variable.
47654         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47655
47656         * setjmp/tst-setjmp-fp.c: New file.
47657         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47658         (link-libm): New variable.
47659         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47660
47661         * math/libm-test.inc (struct test_f_i_data): New type.
47662         (RUN_TEST_LOOP_f_i): New macro.
47663         (RUN_TEST_LOOP_f_i_tg): Likewise.
47664         (fpclassify_test_data): New variable.
47665         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47666         (ilogb_test_data): New variable.
47667         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47668
47669         * math/libm-test.inc (scalbln_test): Correct function name in END
47670         call.
47671
47672         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47673         (RUN_TEST_LOOP_fI_f1): New macro.
47674         (frexp_test_data): New variable.
47675         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47676
47677         * math/libm-test.inc (struct test_fF_f1_data): New type.
47678         (RUN_TEST_LOOP_fF_f1): New macro.
47679         (modf_test_data): New variable.
47680         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47681
47682         * math/libm-test.inc (struct test_f_f1_data): New type.
47683         (RUN_TEST_LOOP_f_f1): New macro.
47684         (gamma_test_data): New variable.
47685         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47686         (lgamma_test_data): New variable.
47687         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47688
47689 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47690
47691         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47692         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47693         (main): Comment "tls" pseudo-hwcap.
47694
47695 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47696
47697         * math/libm-test.inc (struct test_fl_f_data): New type.
47698         (RUN_TEST_LOOP_fl_f): New variable.
47699         (scalbln_test_data): New variable.
47700         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47701
47702         * math/libm-test.inc (struct test_fi_f_data): New type.
47703         (RUN_TEST_LOOP_fi_f): New macro.
47704         (ldexp_test_data): New variable.
47705         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47706         (scalbn_test_data): New variable.
47707         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47708
47709         * math/libm-test.inc (struct test_c_f_data): New type.
47710         (RUN_TEST_LOOP_c_f): New macro.
47711         (cabs_test_data): New variable.
47712         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47713         (carg_test_data): New variable.
47714         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47715         (cimag_test_data): New variable.
47716         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47717         (creal_test_data): New variable.
47718         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47719
47720         * math/libm-test.inc (struct test_if_f_data): New type.
47721         (RUN_TEST_LOOP_if_f): New macro.
47722         (jn_test_data): New variable.
47723         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47724         (yn_test_data): New variable.
47725         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47726
47727         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47728
47729 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47730
47731         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47732         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47733
47734 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47735
47736         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47737         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47738         (bench-deps): Add bench-timing.h.
47739         * benchtests-bench-skeleton.c: Include bench-timing.h.
47740         (main): Use TIMING_* macros instead of clock_gettime.
47741         * benchtests/bench-timing.h: New file.
47742
47743         [BZ #14582]
47744         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47745         Renamed from _LIB_VERSION.
47746         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47747
47748 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47749
47750         * math/libm-test.inc (struct test_fff_f_data): New type.
47751         (RUN_TEST_LOOP_fff_f): New macro.
47752         (fma_test_data): New variable.
47753         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47754         (fma_towardzero_test_data): New variable.
47755         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47756         (fma_downward_test_data): New variable.
47757         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47758         (fma_upward_test_data): New variable.
47759         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47760
47761         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47762         (struct test_c_c_data): New type.
47763         (RUN_TEST_LOOP_c_c): New macro.
47764         (cacos_test_data): New variable.
47765         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
47766         (cacosh_test_data): New variable.
47767         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
47768         (casin_test_data): New variable.
47769         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
47770         (casinh_test_data): New variable.
47771         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
47772         (catan_test_data): New variable.
47773         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
47774         (catanh_test_data): New variable.
47775         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
47776         (ccos_test_data): New variable.
47777         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
47778         (ccosh_test_data): New variable.
47779         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
47780         (cexp_test_data): New variable.
47781         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
47782         (clog_test_data): New variable.
47783         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
47784         (clog10_test_data): New variable.
47785         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
47786         (conj_test_data): New variable.
47787         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
47788         (cproj_test_data): New variable.
47789         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
47790         (csin_test_data): New variable.
47791         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
47792         (csinh_test_data): New variable.
47793         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
47794         (csqrt_test_data): New variable.
47795         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
47796         (ctan_test_data): New variable.
47797         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
47798         (ctan_tonearest_test_data): New variable.
47799         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47800         (ctan_towardzero_test_data): New variable.
47801         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47802         (ctan_downward_test_data): New variable.
47803         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47804         (ctan_upward_test_data): New variable.
47805         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47806         (ctanh_test_data): New variable.
47807         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
47808         (ctanh_tonearest_test_data): New variable.
47809         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47810         (ctanh_towardzero_test_data): New variable.
47811         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47812         (ctanh_downward_test_data): New variable.
47813         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47814         (ctanh_upward_test_data): New variable.
47815         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47816         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
47817         of BUILD_COMPLEX.
47818
47819         * math/libm-test.inc (struct test_ff_f_data): New type.
47820         (struct test_ff_f_data_nexttoward): Likewise.
47821         (RUN_TEST_LOOP_2_f): New macro.
47822         (RUN_TEST_LOOP_ff_f): Likewise.
47823         (atan2_test_data): New variable.
47824         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
47825         (copysign_test_data): New variable.
47826         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
47827         (fdim_test_data): New variable.
47828         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
47829         (fmax_test_data): New variable.
47830         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
47831         (fmin_test_data): New variable.
47832         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
47833         (fmod_test_data): New variable.
47834         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
47835         (hypot_test_data): New variable.
47836         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
47837         (nextafter_test_data): New variable.
47838         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
47839         (nexttoward_test_data): New variable.
47840         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
47841         (pow_test_data): New variable.
47842         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
47843         (pow_tonearest_test_data): New variable.
47844         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
47845         (pow_towardzero_test_data): New variable.
47846         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
47847         (pow_downward_test_data): New variable.
47848         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
47849         (pow_upward_test_data): New variable.
47850         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
47851         (remainder_test_data): New variable.
47852         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
47853         (scalb_test_data): New variable.
47854         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
47855         * sysdeps/i386/fpu/libm-test-ulps: Update.
47856
47857 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
47858
47859         * math/libm-test.inc (fma_test): Use max_value instead of local
47860         variable fltmax.
47861         (nextafter_test): Likewise.
47862
47863         * math/libm-test.inc (acos_towardzero_test_data): New variable.
47864         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47865         (acos_downward_test_data): New variable.
47866         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47867         (acos_upward_test_data): New variable.
47868         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47869         (acosh_test_data): New variable.
47870         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
47871         (asin_test_data): New variable.
47872         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
47873         (asin_tonearest_test_data): New variable.
47874         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47875         (asin_towardzero_test_data): New variable.
47876         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47877         (asin_downward_test_data): New variable.
47878         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47879         (asin_upward_test_data): New variable.
47880         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47881         (asinh_test_data): New variable.
47882         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
47883         (atan_test_data): New variable.
47884         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
47885         (atanh_test_data): New variable.
47886         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
47887         (cbrt_test_data): New variable.
47888         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
47889         (ceil_test_data): New variable.
47890         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
47891         (cos_test_data): New variable.
47892         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
47893         (cos_tonearest_test_data): New variable.
47894         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47895         (cos_towardzero_test_data): New variable.
47896         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47897         (cos_downward_test_data): New variable.
47898         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47899         (cos_upward_test_data): New variable.
47900         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47901         (cosh_test_data): New variable.
47902         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
47903         (cosh_tonearest_test_data): New variable.
47904         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47905         (cosh_towardzero_test_data): New variable.
47906         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47907         (cosh_downward_test_data): New variable.
47908         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47909         (cosh_upward_test_data): New variable.
47910         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47911         (erf_test_data): New variable.
47912         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
47913         (erfc_test_data): New variable.
47914         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
47915         (exp_test_data): New variable.
47916         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
47917         (exp_tonearest_test_data): New variable.
47918         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47919         (exp_towardzero_test_data): New variable.
47920         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47921         (exp_downward_test_data): New variable.
47922         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47923         (exp_upward_test_data): New variable.
47924         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47925         (exp10_test_data): New variable.
47926         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
47927         (exp2_test_data): New variable.
47928         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
47929         (expm1_test_data): New variable.
47930         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
47931         (fabs_test_data): New variable.
47932         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
47933         (floor_test_data): New variable.
47934         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
47935         (j0_test_data): New variable.
47936         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
47937         (j1_test_data): New variable.
47938         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
47939         (log_test_data): New variable.
47940         (log_test): Run tests with RUN_TEST_LOOP_f_f.
47941         (log10_test_data): New variable.
47942         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
47943         (log1p_test_data): New variable.
47944         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
47945         (log2_test_data): New variable.
47946         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
47947         (logb_test_data): New variable.
47948         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
47949         (logb_downward_test_data): New variable.
47950         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47951         (nearbyint_test_data): New variable.
47952         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
47953         (rint_test_data): New variable.
47954         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
47955         (rint_tonearest_test_data): New variable.
47956         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47957         (rint_towardzero_test_data): New variable.
47958         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47959         (rint_downward_test_data): New variable.
47960         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47961         (rint_upward_test_data): New variable.
47962         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47963         (round_test_data): New variable.
47964         (round_test): Run tests with RUN_TEST_LOOP_f_f.
47965         (sin_test_data): New variable.
47966         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
47967         (sin_tonearest_test_data): New variable.
47968         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47969         (sin_towardzero_test_data): New variable.
47970         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47971         (sin_downward_test_data): New variable.
47972         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47973         (sin_upward_test_data): New variable.
47974         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47975         (sinh_test_data): New variable.
47976         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
47977         (sinh_tonearest_test_data): New variable.
47978         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47979         (sinh_towardzero_test_data): New variable.
47980         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47981         (sinh_downward_test_data): New variable.
47982         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47983         (sinh_upward_test_data): New variable.
47984         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47985         (sqrt_test_data): New variable.
47986         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
47987         (tan_test_data): New variable.
47988         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
47989         (tan_tonearest_test_data): New variable.
47990         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47991         (tan_towardzero_test_data): New variable.
47992         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47993         (tan_downward_test_data): New variable.
47994         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47995         (tan_upward_test_data): New variable.
47996         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47997         (tanh_test_data): New variable.
47998         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
47999         (tgamma_test_data): New variable.
48000         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48001         (trunc_test_data): New variable.
48002         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48003         (y0_test_data): New variable.
48004         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48005         (y1_test_data): New variable.
48006         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48007         (significand_test_data): New variable.
48008         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48009
48010 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48011
48012         [BZ #12387]
48013         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48014
48015 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48016
48017         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48018
48019 2013-05-10  Andreas Jaeger  <aj@suse.de>
48020
48021         [BZ #15448]
48022         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48023         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48024
48025 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48026
48027         * math/gen-libm-test.pl (adjust_arg): New function.
48028         (special_functions): Handle generating output in both functions
48029         and arrays.
48030         (parse_args): Likewise.
48031         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48032         $in_func argument to parse_args.
48033         * math/libm-test.inc (struct test_f_f_data): New type.
48034         (IF_ROUND_INIT_): New macro.
48035         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48036         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48037         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48038         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48039         (ROUND_RESTORE_): Likewise.
48040         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48041         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48042         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48043         (ROUND_RESTORE_FE_UPWARD): Likewise.
48044         (RUN_TEST_LOOP_f_f): New macro.
48045         (acos_test_data): New variable.
48046         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48047         (acos_tonearest_test_data): New variable.
48048         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48049
48050 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48051
48052         * benchtests/bench-skeleton.c (startup): Fix coding style.
48053
48054 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48055
48056         [BZ #6809]
48057         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48058         negative infinity argument.
48059         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48060         negative infinity argument.
48061         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48062         negative infinity argument.
48063         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48064         domain errors.
48065
48066 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48067
48068         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48069         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48070         * iconv/iconv_prog.c (main): Likewise.
48071         * locale/programs/charmap-dir.c (charmap_readdir)
48072         (fopen_uncompressed): Likewise.
48073         * locale/programs/locfile.c (siblings_uncached)
48074         (write_locale_data): Use lstat64 instead of lstat.
48075         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48076         stat.
48077
48078 2013-05-10  Andreas Jaeger  <aj@suse.de>
48079
48080         [BZ #15395]
48081         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48082         localization.
48083         Include <locale.h>.
48084
48085 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48086
48087         * elf/dl-close.c (_dl_close_worker): Add comments.
48088
48089 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48090
48091         [BZ #15359]
48092         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48093         high part of pi/2.
48094         (__ieee754_rem_pio2l): Update comments.
48095
48096         [BZ #15429]
48097         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48098         high part of pi/2.
48099         (__ieee754_rem_pio2l): Update comments.
48100
48101         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48102         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48103
48104         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48105         M_PI_4l.
48106
48107         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48108         (M_PI_34_LOG10El): Likewise.
48109         (M_PI2_LOG10El): Likewise.
48110         (M_PI4_LOG10El): Likewise.
48111         (M_PI_LOG10El): Likewise.
48112
48113 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48114
48115         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48116
48117 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48118
48119         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48120         (MINUS_ZERO_INIT): Likewise.
48121         (PLUS_INFTY_INIT): Likewise.
48122         (MINUS_INFTY_INIT): Likewise.
48123         (QNAN_VALUE_INIT): Likewise.
48124         (MAX_VALUE_INIT): Likewise.
48125         (MIN_VALUE_INIT): Likewise.
48126         (MIN_SUBNORM_VALUE_INIT): Likewise.
48127         (plus_zero): Initialize with PLUS_ZERO_INIT.
48128         (minus_zero): Initialize with MINUS_ZERO_INIT.
48129         (plus_infty): Initialize with PLUS_INFTY_INIT.
48130         (minus_infty): Initialize with MINUS_INFTY_INIT.
48131         (qnan_value): Initialize with QNAN_VALUE_INIT.
48132         (max_value): Initialize with MAX_VALUE_INIT.
48133         (min_value): Initialize with MIN_VALUE_INIT.
48134         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48135
48136         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48137         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48138         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48139         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48140
48141         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48142         (RUN_TEST_2_f): Likewise.
48143         (RUN_TEST_ff_f): Likewise.
48144         (RUN_TEST_fi_f): Likewise.
48145         (RUN_TEST_fl_f): Likewise.
48146         (RUN_TEST_fff_f): Likewise.
48147         (RUN_TEST_c_f): Likewise.
48148         (RUN_TEST_f_f1): Likewise.
48149         (RUN_TEST_fF_f1): Likewise.
48150         (RUN_TEST_fI_f1): Likewise.
48151         (RUN_TEST_ffI_f1): Likewise.
48152         (RUN_TEST_c_c): Likewise.
48153         (RUN_TEST_cc_c): Likewise.
48154         (RUN_TEST_f_i): Likewise.
48155         (RUN_TEST_f_i_tg): Likewise.
48156         (RUN_TEST_ff_i_tg): Likewise.
48157         (RUN_TEST_f_b): Likewise.
48158         (RUN_TEST_f_b_tg): Likewise.
48159         (RUN_TEST_f_l): Likewise.
48160         (RUN_TEST_f_L): Likewise.
48161         (RUN_TEST_sincos): Likewise.
48162         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48163         whether to show exceptions.  Do not include ");\n" in return
48164         value.
48165         (special_functions): Output call to RUN_TEST_sincos instead of
48166         check_float calls.  Update calls to new_test.
48167         (parse_args): Output call to single RUN_TEST_* macro instead of
48168         check_* calls and other assignments.  Update calls to new_test.
48169
48170         [BZ #2546]
48171         [BZ #2560]
48172         [BZ #5159]
48173         [BZ #15426]
48174         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48175         input to result for tgamma overflow.
48176         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48177         (gamma_coeff): New variable.
48178         (NCOEFF): New macro.
48179         (gamma_positive): New function.
48180         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48181         underflow here.  Use gamma_positive instead of exp (lgamma) for
48182         other arguments.
48183         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48184         (gamma_coeff): New variable.
48185         (NCOEFF): New macro.
48186         (gammaf_positive): New function.
48187         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48188         underflow here.  Use gamma_positive instead of exp (lgamma) for
48189         other arguments.
48190         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48191         (gamma_coeff): New variable.
48192         (NCOEFF): New macro.
48193         (gammal_positive): New function.
48194         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48195         underflow here.  Use gamma_positive instead of exp (lgamma) for
48196         other arguments.
48197         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48198         (gamma_coeff): New variable.
48199         (NCOEFF): New macro.
48200         (gammal_positive): New function.
48201         (__ieee754_gammal_r): Handle positive infinity, overflow and
48202         underflow here.  Handle NaN the same as positive infinity.  Remove
48203         check x < 0xffffffff for negative integers.  Use gamma_positive
48204         instead of exp (lgamma) for other arguments.
48205         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48206         (gamma_coeff): New variable.
48207         (NCOEFF): New macro.
48208         (gammal_positive): New function.
48209         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48210         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48211         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48212         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48213         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48214         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48215         * sysdeps/generic/math_private.h (__gamma_productf): New
48216         prototype.
48217         (__gamma_product): Likewise.
48218         (__gamma_productl): Likewise.
48219         * math/Makefile (libm-calls): Add gamma_product.
48220         * math/libm-test.inc (tgamma_test): Add more tests.
48221         * sysdeps/i386/fpu/libm-test-ulps: Update.
48222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48223
48224 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48225
48226         * benchtests/bench-skeleton.c (main): Preheat CPU.
48227
48228 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48229
48230         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48231
48232 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48233
48234         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48235         and _dl_skip_args_internal.
48236
48237 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48238
48239         * manual/message.texi (Message Translation): Talk about users.
48240         Message to key mapping impacts design.
48241
48242 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48243
48244         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48245
48246         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48247
48248         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48249         * sysdeps/wordsize-64/glob64.c: ... here.
48250
48251         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48252         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48253         New macros.
48254
48255         * debug/getlogin_r_chk.c: Moved to ...
48256         * login/getlogin_r_chk.c: ... here.
48257         * debug/Makefile (routines): Move getlogin_r_chk to ...
48258         * login/Makefile (routines): ... here.
48259         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48260         * login/Versions (libc: GLIBC_2.4): ... here.
48261
48262         * io/poll.c (__poll): Renamed from poll.
48263         Add libc_hidden_def.
48264         (poll): Define as weak alias.
48265
48266         * debug/ptsname_r_chk.c: Moved to ...
48267         * login/ptsname_r_chk.c: ... here.
48268         * debug/Makefile (routines): Move ptsname_r_chk to ...
48269         * login/Makefile (routines): ... here.
48270         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48271         * login/Versions (libc: GLIBC_2.4): ... here.
48272
48273         * posix/getlogin.c: Moved to ...
48274         * login/getlogin.c: ... here.
48275         * posix/getlogin_r.c: Moved to ...
48276         * login/getlogin_r.c: ... here.
48277         * posix/getlogin_r.c: Moved to ...
48278         * login/getlogin_r.c: ... here.
48279         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48280         * login/Makefile (routines): ... here.
48281         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48282         * login/Versions (libc: GLIBC_2.0): ... here.
48283
48284         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48285         (setrlimit): Define as weak alias.
48286
48287         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48288         Call __ names for open, ftruncate, and close.
48289         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48290         (truncate): Define as weak alias.
48291
48292 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48293
48294         * math/gen-libm-test.pl (parse_args): Initialize x before each
48295         test of frexp, modf and remquo.
48296
48297         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48298         test signgam value.
48299
48300 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48301
48302         [BZ #15418]
48303         [BZ #15419]
48304         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48305         internal tests.
48306         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48307
48308 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48309
48310         * elf/dl-writev.h: New file.
48311         * elf/dl-misc.c: Include it.
48312         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48313         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48314
48315 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48316
48317         * math/libm-test.inc (noXFails): Remove variable.
48318         (noXPasses): Likewise.
48319         (BUILD_COMPLEX_INT): Remove macro.
48320         (print_screen): Remove xfail argument.
48321         (print_screen_max_error): Likewise.
48322         (update_stats): Likewise.
48323         (print_max_error): Likewise.  Update calls to other affected
48324         functions.
48325         (print_complex_max_error): Likewise.
48326         (test_single_exception): Update calls to print_screen.
48327         (test_single_errno): Likewise.
48328         (check_float_internal): Remove xfail argument.  Update calls to
48329         other affected functions.
48330         (check_float): Likewise.
48331         (check_complex): Likewise.
48332         (check_int): Likewise.
48333         (check_long): Likewise.
48334         (check_bool): Likewise.
48335         (check_longlong): Likewise.
48336         (main): Don't print noXFails and noXPasses.
48337         * math/gen-libm-test.pl (top level): Don't mention expected
48338         failure handling in comment.
48339         (new_test): Don't handle expected failures.
48340         (parse_args): Don't mention expected failure handling in comment.
48341         (generate_testfile): Don't handle expected failures.
48342         (parse_ulps): Likewise.
48343         (print_ulps_file): Likewise.
48344         (get_failure): Remove function.
48345         (output_test): Don't handle expected failures.
48346         * make/README.libm-test: Don't mention expected failure handling.
48347
48348         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48349         (minus_zero): Likewise.
48350         (plus_infty): Likewise.
48351         (minus_infty): Likewise.
48352         (qnan_value): Likewise.
48353         (max_value): Likewise.
48354         (min_value): Likewise.
48355         (min_subnorm_value): Likewise.
48356         (initialize): Do not initialize those variables dynamically.
48357
48358 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48359
48360         * io/open.c (__open_2): Moved to ...
48361         * io/open_2.c: ... this new file.
48362         * io/open64.c (__open64_2): Moved to ...
48363         * io/open64_2.c: ... this new file.
48364         * io/openat.c (__openat_2): Moved to ...
48365         * io/openat_2.c: ... this new file.
48366         * io/openat64.c (__openat64_2): Moved to ...
48367         * io/openat64_2.c: ... this new file.
48368         * io/Makefile (routines): Add them.
48369         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48370         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48371         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48372         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48373         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48374         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48375         (__openat64): Add hidden_ver.
48376         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48377         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48378
48379         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48380         Separately conditionalize setting of GLRO(dl_sysinfo) so
48381         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48382         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48383
48384 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48385
48386         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48387         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48388         definition.
48389         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48390         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48391         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48392         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48393         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48394
48395 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48396
48397         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48398         test signgam value.
48399
48400         * math/libm-test.inc (hypot_test): Do not use
48401         IGNORE_ZERO_INF_SIGN.
48402
48403 2013-05-03  Andreas Jaeger  <aj@suse.de>
48404
48405         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48406         Linux 3.9.
48407         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48408         (PF_MAX): Adjust for VSOCK change.
48409
48410 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48411
48412         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48413
48414 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48415
48416         [BZ #15264]
48417         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48418         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48419         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48420
48421 2013-05-02  David S. Miller  <davem@davemloft.net>
48422
48423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48424
48425 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48426
48427         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48428
48429 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48430
48431         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48432
48433 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48434
48435         [BZ #14952]
48436         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48437         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48438         Use __attribute__ ((__gnu_inline__)).
48439         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48440         Don't use __attribute__ ((__gnu_inline__)).
48441
48442 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48443
48444         [BZ #15423]
48445         * math/s_catan.c (__catan): Handle small real or imaginary part of
48446         input specially to avoid spurious underflow.
48447         * math/s_catanf.c (__catanf): Likewise.
48448         * math/s_catanh.c (__catanh): Likewise.
48449         * math/s_catanhf.c (__catanhf): Likewise.
48450         * math/s_catanhl.c (__catanhl): Likewise.
48451         * math/s_catanl.c (__catanl): Likewise.
48452         * math/libm-test.inc (catan_test): Add more tests.
48453         (catanh_test): Likewise.
48454         * sysdeps/i386/fpu/libm-test-ulps: Update.
48455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48456
48457 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48458
48459         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48460
48461 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48462
48463         [BZ #15416]
48464         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48465         accurately for denominator in atan2.
48466         * math/s_catanf.c (__catanf): Likewise.
48467         * math/s_catanh.c (__catanh): Likewise.
48468         * math/s_catanhf.c (__catanhf): Likewise.
48469         * math/s_catanhl.c (__catanhl): Likewise.
48470         * math/s_catanl.c (__catanl): Likewise.
48471         * math/libm-test.inc (catan_test): Add more tests.
48472         (catanh_test): Likewise.
48473         * sysdeps/i386/fpu/libm-test-ulps: Update.
48474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48475
48476 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48477
48478         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48479
48480         * benchtests/Makefile (bench): Remove slow benchmarks.
48481         * benchtests/atan-inputs: Add slow benchmark inputs.
48482         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48483         (BENCH_FUNC): Accept variant offset.
48484         (VARIANT): Define.
48485         * benchtests/bench-skeleton.c (main): Run benchmark for each
48486         variant.
48487         * benchtests/cos-inputs: Add slow benchmark inputs.
48488         * benchtests/exp-inputs: Likewise.
48489         * benchtests/pow-inputs: Likewise.
48490         * benchtests/sin-inputs: Likewise.
48491         * benchtests/slowatan-inputs: Remove.
48492         * benchtests/slowatan.c: Remove.
48493         * benchtests/slowcos-inputs: Remove.
48494         * benchtests/slowcos.c: Remove.
48495         * benchtests/slowexp-inputs: Remove.
48496         * benchtests/slowexp.c: Remove.
48497         * benchtests/slowpow-inputs: Remove.
48498         * benchtests/slowpow.c: Remove.
48499         * benchtests/slowsin-inputs: Remove.
48500         * benchtests/slowsin.c: Remove.
48501         * benchtests/slowtan-inputs: Remove.
48502         * benchtests/slowtan.c: Remove.
48503         * benchtests/tan-inputs: Add slow benchmark inputs.
48504         * scripts/bench.pl: Parse comments and directives.
48505
48506         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48507         in CPPFLAGS.
48508         ($(objpfx)bench-%.c): Remove *-ITER.
48509         * benchtests/bench-modf.c: Remove definition of ITER.
48510         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48511         (main): Loop for DURATION seconds instead of fixed number of
48512         iterations.
48513         * scripts/bench.pl: Don't expect iterations in parameters.
48514
48515 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48516
48517         * io/fchdir.c (__fchdir): Renamed from fchdir.
48518         (fchdir): Define as weak alias.
48519
48520 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48521
48522         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48523         (ERRNO_EDOM): Likewise.
48524         (ERRNO_ERANGE): Likewise.
48525         (noErrnoTests): New variable.
48526         (init_max_error): Set errno to 0.
48527         (test_single_errno): New function.
48528         (test_errno): Likewise.
48529         (check_float_internal): Call test_errno.  Set errno to 0.
48530         (check_complex): Refer to errno tests in comment.
48531         (check_int): Call test_errno.  Set errno to 0.
48532         (check_long): Likewise.
48533         (check_bool): Likewise.
48534         (check_longlong): Likewise.
48535         (cos_test): Use ERRNO_* flags for errno tests instead of
48536         check_int.
48537         (expm1_test): Likewise.
48538         (fmod_test): Likewise.
48539         (ilogb_test): Likewise.
48540         (lgamma_test): Likewise.
48541         (pow_test): Likewise.
48542         (remainder_test): Likewise.
48543         (sin_test): Likewise.
48544         (tan_test): Likewise.
48545         (yn_test): Likewise.
48546         (initialize): Set errno to 0.
48547         (main): Print number of errno tests.
48548         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48549
48550 2013-04-29  Andreas Jaeger  <aj@suse.de>
48551
48552         [BZ #15084]
48553         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48554         and RES_USEVC.
48555
48556         [BZ #15085]
48557         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48558         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48559         unimplemented.
48560
48561         [BZ #15380]
48562         * stdlib/random.c (__initstate): Return NULL if
48563         __initstate fails.
48564
48565         [BZ #15086]
48566         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48567         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48568         RES_SNGLKUPREOP.
48569
48570 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48571
48572         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48573
48574 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48575
48576         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48577         of individual tests.
48578         (casin_test): Likewise.
48579         (casinh_test): Likewise.
48580
48581 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48582
48583         [BZ #15409]
48584         * math/s_catan.c (__catan): Handle arguments with large real or
48585         imaginary part separately without squaring.
48586         * math/s_catanf.c (__catanf): Likewise.
48587         * math/s_catanh.c (__catanh): Likewise.
48588         * math/s_catanhf.c (__catanhf): Likewise.
48589         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48590         and redefine.
48591         (__catanhl): Handle arguments with large real or imaginary part
48592         separately without squaring.
48593         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48594         and redefine.
48595         (__catanl): Handle arguments with large real or imaginary part
48596         separately without squaring.
48597         * math/libm-test.inc (catan_test): Add more tests.
48598         (catanh_test): Likewise.
48599         * sysdeps/i386/fpu/libm-test-ulps: Update.
48600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48601
48602 2013-04-27  Andreas Jaeger  <aj@suse.de>
48603
48604         [BZ #15007]
48605         * stdlib/stdlib.h: Update guards for qecvt.
48606         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48607         <stdlib.h>.
48608
48609 2013-04-27  Allan McRae  <allan@archlinux.org>
48610
48611         * sysdeps/i386/fpu/libm-test-ulps: Update.
48612
48613 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48614
48615         [BZ #15406]
48616         * math/s_catan.c: Include <float.h>.
48617         (__catan): Ensure underflow exception occurs for underflowed
48618         result.
48619         * math/s_catanf.c: Include <float.h>.
48620         (__catanf): Ensure underflow exception occurs for underflowed
48621         result.
48622         * math/s_catanh.c: Include <float.h>.
48623         (__catanh): Ensure underflow exception occurs for underflowed
48624         result.
48625         * math/s_catanhf.c: Include <float.h>.
48626         (__catanhf): Ensure underflow exception occurs for underflowed
48627         result.
48628         * math/s_catanhl.c: Include <float.h>.
48629         (__catanhl): Ensure underflow exception occurs for underflowed
48630         result.
48631         * math/s_catanl.c: Include <float.h>.
48632         (__catanl): Ensure underflow exception occurs for underflowed
48633         result.
48634         * math/libm-test.inc (catan_test): Add more tests.
48635         (catanh_test): Likewise.
48636
48637         [BZ #15405]
48638         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48639         underflowed result.
48640         * math/s_ccoshf.c (__ccoshf): Likewise.
48641         * math/s_ccoshl.c (__ccoshl): Likewise.
48642         * math/s_csin.c (__csin): Likewise.
48643         * math/s_csinf.c (__csinf): Likewise.
48644         * math/s_csinh.c (__csinh): Likewise.
48645         * math/s_csinhf.c (__csinhf): Likewise.
48646         * math/s_csinhl.c (__csinhl): Likewise.
48647         * math/s_csinl.c (__csinl): Likewise.
48648         * math/libm-test.inc (ccos_test): Add more tests.
48649         (ccosh_test): Likewise.
48650         (csin_test): Likewise.
48651         (csinh_test): Likewise.
48652
48653 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48654
48655         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48656         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48657         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48658         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48659         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48660         powerpc/power5+/fpu folders.
48661         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48662
48663
48664 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48665
48666         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48667
48668 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48669
48670         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48671         additions to variable.
48672         [$(config-machine) = x86_64] (modules-names): Likewise.
48673         ($(objpfx)tst-audit3): Remove dependency.
48674         ($(objpfx)tst-audit3.out): Likewise.
48675         ($(objpfx)tst-audit4): Likewise.
48676         ($(objpfx)tst-audit4.out): Likewise.
48677         ($(objpfx)tst-audit5): Likewise.
48678         ($(objpfx)tst-audit5.out): Likewise.
48679         ($(objpfx)tst-audit6): Likewise.
48680         ($(objpfx)tst-audit6.out): Likewise.
48681         ($(objpfx)tst-audit7): Likewise.
48682         ($(objpfx)tst-audit7.out): Likewise.
48683         (tst-audit3-ENV): Remove variable.
48684         (tst-audit4-ENV): Likewise.
48685         (tst-audit5-ENV): Likewise.
48686         (tst-audit6-ENV): Likewise.
48687         (tst-audit7-ENV): Likewise.
48688         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48689         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48690         addition to variable.
48691         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48692         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48693         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48694         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48695         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48696         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48697         tst-audit3, tst-audit4 and tst-audit5.
48698         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48699         tst-audit6 and tst-audit7.
48700         [$(subdir) = elf] (modules-names): Add audit modules for those
48701         tests.
48702         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48703         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48704         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48705         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48706         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48707         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48708         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48709         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48710         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48711         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48712         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48713         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48714         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48715         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48716         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48717         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48718         Likewise.
48719         [$(subdir) = elf && $(config-cflags-avx) = yes]
48720         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48721         [$(subdir) = elf && $(config-cflags-avx) = yes]
48722         (CFLAGS-tst-auditmod4a.c): Likewise.
48723         [$(subdir) = elf && $(config-cflags-avx) = yes]
48724         (CFLAGS-tst-auditmod4b.c): Likewise.
48725         [$(subdir) = elf && $(config-cflags-avx) = yes]
48726         (CFLAGS-tst-auditmod6b.c): Likewise.
48727         [$(subdir) = elf && $(config-cflags-avx) = yes]
48728         (CFLAGS-tst-auditmod6c.c): Likewise.
48729         [$(subdir) = elf && $(config-cflags-avx) = yes]
48730         (CFLAGS-tst-auditmod7b.c): Likewise.
48731         * elf/tst-audit3.c: Move to ...
48732         * sysdeps/x86_64/tst-audit3.c: ... here.
48733         * elf/tst-audit4.c: Move to ...
48734         * sysdeps/x86_64/tst-audit4.c: ... here.
48735         * elf/tst-audit5.c: Move to ...
48736         * sysdeps/x86_64/tst-audit5.c: ... here.
48737         * elf/tst-audit6.c: Move to ...
48738         * sysdeps/x86_64/tst-audit6.c: ... here.
48739         * elf/tst-audit7.c: Move to ...
48740         * sysdeps/x86_64/tst-audit7.c: ... here.
48741         * elf/tst-auditmod3a.c: Move to ...
48742         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48743         * elf/tst-auditmod3b.c: Move to ...
48744         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48745         * elf/tst-auditmod4a.c: Move to ...
48746         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48747         * elf/tst-auditmod4b.c: Move to ...
48748         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48749         * elf/tst-auditmod5a.c: Move to ...
48750         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48751         * elf/tst-auditmod5b.c: Move to ...
48752         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48753         * elf/tst-auditmod6a.c: Move to ...
48754         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48755         * elf/tst-auditmod6b.c: Move to ...
48756         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48757         * elf/tst-auditmod6c.c: Move to ...
48758         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48759         * elf/tst-auditmod7a.c: Move to ...
48760         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48761         * elf/tst-auditmod7b.c: Move to ...
48762         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48763
48764 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
48765
48766         [BZ #15366]
48767         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
48768         define unconditionally.
48769         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
48770         define unconditionally.
48771         (INT8_C, INT16_C, etc.): Likewise.
48772
48773 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
48774
48775         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
48776         __ehdr_start with hidden visibility.
48777
48778         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
48779
48780 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
48781
48782         * math/libm-test.inc (cos_test): Use accurate hex constants.
48783         (sincost_test): Likewise.
48784
48785 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
48786
48787         * math/libm-test.inc (catan_test): Add more tests.
48788         (catanh_test): Likewise.
48789
48790         * math/s_catanf.c (__catanf): Use suffixed floating-point
48791         constants.
48792         * math/s_catanhf.c (__catanhf): Likewise.
48793         * math/s_catanhl.c (__catanhl): Likewise.
48794         * math/s_catanl.c (__catanl): Likewise.
48795
48796         [BZ #15394]
48797         * math/s_catan.c (__catan): Calculate imaginary part of result
48798         with log1p not log unless computing log of number close to 0.
48799         * math/s_catanf.c (__catanf): Likewise.
48800         * math/s_catanl.c (__catanl): Likewise.
48801         * math/s_catanh.c (__catanh): Calculate real part of result with
48802         log1p not log unless computing log of number close to 0.
48803         * math/s_catanhf.c (__catanhf): Likewise.
48804         * math/s_catanhl.c (__catanhl): Likewise.
48805         * math/libm-test.inc (catan_test): Add more tests.
48806         (catanh_test): Likewise.
48807         * sysdeps/i386/fpu/libm-test-ulps: Update.
48808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48809
48810 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48811
48812         * benchtests/Makefile: Mention files in which fast and slow
48813         paths of math functions are implemented.
48814
48815 2013-04-23  Roland McGrath  <roland@hack.frob.com>
48816
48817         * sysdeps/posix/timespec_get.c: New file.
48818
48819 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48820
48821         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
48822         POWER.
48823         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
48824         for POWER.
48825         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
48826         powerpc/power5/fpu folders.
48827         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
48828         * benchtests/Makefile: Add modf testcase.
48829         * benchtests/bench-modf.c: New file: Benchmark test for mo
48830
48831 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48832
48833         [BZ #14888]
48834         * time/Makefile (tests): Add tst-strptime-whitespace.
48835         * time/strptime_l.c (get_number): Use ISSPACE.
48836         (__strptime_internal): Likewise.
48837         * time/tst-strptime-whitespace.c: New test case.
48838
48839 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
48840
48841         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
48842         member.
48843         (_nss_files_init): Set it here.
48844
48845 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
48846
48847         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
48848         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
48849         unsigned.
48850
48851 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
48852
48853         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
48854
48855 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48856
48857         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
48858         size just once.
48859
48860 2013-04-21  David S. Miller  <davem@davemloft.net>
48861
48862         * po/ru.po: Update Russion translation from translation project.
48863
48864 2013-04-17  Adam Conrad  <adconrad@0c3.net>
48865
48866         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
48867         and setfsgid.
48868
48869 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
48870
48871         * configure.in: Remove i386 configure warning. Remove i386 case.
48872         * configure: Regenerate.
48873         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
48874         Add example to error message.
48875         * sysdeps/i386/configure: Regenerate.
48876
48877 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48878
48879         * benchtests/Makefile (bench): Add cos, tan, slowcos and
48880         slowtan.
48881         * benchtests/cos-inputs: New file.
48882         * benchtests/slowcos-inputs: New file.
48883         * benchtests/slowcos.c: New file.
48884         * benchtests/slowtan-inputs: New file.
48885         * benchtests/slowtan.c: New file.
48886         * benchtests/tan-inputs: New file.
48887
48888 2013-04-16  Roland McGrath  <roland@hack.frob.com>
48889
48890         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
48891         considered kosher.
48892
48893 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
48894
48895         * benchtests/Makefile: Include cppflags-iterator.mk to add
48896         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
48897
48898         * Makefile.in (bench-clean): New target.
48899         * benchtests/Makefile (bench-clean): Likewise.
48900
48901 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
48902
48903         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
48904
48905 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
48906
48907         * stdio-common/tstdiomisc.c: Fix coding-style violation.
48908
48909 2013-04-15  Andreas Schwab  <schwab@suse.de>
48910
48911         * nscd/grpcache.c (cache_addgr): Properly check for short write.
48912         * nscd/initgrcache.c (addinitgroupsX): Likewise.
48913         * nscd/pwdcache.c (cache_addpw): Likewise.
48914         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
48915         more than recsize.
48916
48917 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48918
48919         * benchtests/Makefile (bench): Write all output to
48920         bench-out.tmp together.
48921
48922 2013-04-15  Andreas Schwab  <schwab@suse.de>
48923
48924         * nscd/nscd.c (main): Don't fork again after closing files.
48925
48926 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48927
48928         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
48929
48930         * benchtests/Rules (bench-deps): Collect dependencies into a
48931         single variable.  Add Makefile to dependencies.
48932         ($(objpfx)bench-%.c): Depend on bench-deps.
48933
48934 2013-04-12  Roland McGrath  <roland@hack.frob.com>
48935             Xavier Roche  <roche+kml2@exalead.com>
48936
48937         [BZ #15361]
48938         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
48939         just that it's a file descriptor.
48940         * manual/llio.texi (Synchronizing AIO Operations): Update description
48941         for EBADF error from aio_fsync.
48942
48943 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48944
48945         * Rules (bench): Move target definition...
48946         * benchtests/Makefile: ... here.
48947
48948 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
48949
48950         * math/libm-test.inc (cos_test): Fix PI/2 test.
48951         (sincos_test): Likewise.
48952         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
48953         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
48954
48955 2013-04-11  Andreas Schwab  <schwab@suse.de>
48956
48957         [BZ #13988]
48958         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
48959         accept exponent character only when digits were seen.
48960         * stdio-common/Makefile (tests): Add bug26.
48961         * stdio-common/bug26.c: New file.
48962
48963         [BZ #14293]
48964         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
48965         non-freeable.
48966
48967 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48968
48969         * Makeconfig (rtld-prefix): Define built linker prefix.
48970         * Rules (run-bench): Use it.
48971         * math/Makefile (run-regen-ulps): Likewise.
48972
48973         * Rules (bench): Remove eval.
48974
48975 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48976             Roland McGrath  <roland@hack.frob.com>
48977             Ondrej Bilka  <neleai@seznam.cz>
48978
48979         [BZ #15346]
48980         * time/getdate.c: Include ctype.h and alloca.h.
48981         (__getdate_r): Trim leading and trailing spaces of input.
48982         * time/tst-getdate.c (tests): Add tests with leading and
48983         trailing spaces.
48984
48985 2013-04-08  Roland McGrath  <roland@hack.frob.com>
48986
48987         [BZ #14280]
48988         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
48989         when computing value.
48990
48991 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48992
48993         * math/README.libm-test (How can I generate "libm-test-ulps"?):
48994         Use testrun.sh to run libm tests.
48995
48996         [BZ #15309]
48997         * elf/dl-open.c (dl_open_worker): memset all of seen array.
48998
48999 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49000
49001         [BZ #15264]
49002         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49003
49004 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49005
49006         * Makefile.in (regen-ulps): New target.
49007         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49008         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49009         [ifneq (no,$(PERL)] (regen-ulps): New target.
49010         [ifeq (no,$(PERL)] (regen-ulps): New target.
49011         * math/libm-test.inc (ulps_file_name): Define.
49012         (output_dir): New variable.
49013         (options): Add "output-dir" option.
49014         (parse_opt): Handle 'o' case.
49015         (main): If output_dir is non-NULL use it as a prefix
49016         otherwise use "".
49017         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49018
49019 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49020
49021         [BZ #10060, #10062]
49022         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49023         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49024         fail configure if __sync_val_compare_and_swap is not inlined.
49025         * sysdeps/i386/configure: Regenerate.
49026         * configure.in: Build for i686 when configured for i386.
49027         * configure: Regenerate.
49028         * README: Remove i386 reference.
49029
49030 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49031
49032         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49033         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49034
49035 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49036
49037         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49038         (lmsnanval): New variables.
49039         (F): Add conversion tests.
49040         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49041         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49042
49043         * stdio-common/tstdiomisc.c (F): Properly collect individual
49044         tests' results.
49045
49046         [BZ #14686, #15336]
49047         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49048         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49049         Instead, use input NaN values or generate a qNaN by arithmetic
49050         operation.  Also fix bugs to comply with the standard.
49051         * math/libm-test.inc (remainder_test): Add more tests.
49052
49053         [BZ #15335, #15342]
49054         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49055         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49056         input NaN values or generate a qNaN by arithmetic operation.
49057
49058         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49059         unreachable code.
49060
49061         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49062         definitions.
49063
49064 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49065
49066         [BZ #14478]
49067         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49068         underflowed result.
49069         * math/s_cexpf.c (__cexpf): Likewise.
49070         * math/s_cexpl.c (__cexpl): Likewise.
49071         * math/libm-test.inc (cexp_test): Add more tests.
49072
49073 2013-04-03  Andreas Schwab  <schwab@suse.de>
49074
49075         [BZ #15330]
49076         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49077         order arrays from heap if bigger than alloca cutoff.
49078
49079 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49080
49081         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49082         (SNAN_TESTS_double): Refer to GCC PR56831.
49083         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49084         GCC PR56828.
49085
49086 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49087
49088         * Rules (bench): Move bench.out after the run is complete.
49089
49090         * Rules (bench): Echo currently running benchmark.
49091
49092         * benchtests/Makefile (bench): Add atan and slowatan.
49093         * benchtests/atan-inputs: New file.
49094         * benchtests/slowatan-inputs: New file.
49095         * benchtests/slowatan.c: New file.
49096
49097         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49098         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49099         its value.
49100
49101         [BZ #15305]
49102         * sysdeps/unix/sysv/linux/kernel-features.h
49103         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49104         __ASSUME_XFS_RESTRICTED_CHOWN.
49105         * sysdeps/unix/sysv/linux/pathconf.c
49106         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49107         Save and restore errno.
49108
49109 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49110
49111         [BZ #15327]
49112         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49113         arguments using __kernel_casinh.
49114         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49115         arguments using __kernel_casinhf.
49116         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49117         arguments using __kernel_casinhl.
49118         * math/libm-test.inc (cacosh_test): Add more tests.
49119         * sysdeps/i386/fpu/libm-test-ulps: Update.
49120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49121
49122 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49123
49124         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49125         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49126
49127         * bench/Makefile (bench): Add sin and slowsin.
49128         * benchtests/sin-inputs: New file.
49129         * benchtests/slowsin-inputs: New file.
49130         * benchtests/slowsin.c: New file.
49131
49132         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49133         (bench): Add slowexp and slowpow.
49134         (exp-ITER): Increase iterations.
49135         (pow-ITER): Likewise.
49136         * benchtests/exp-inputs: Change input.
49137         * benchtests/pow-inputs: Likewise.
49138         * benchtests/slowexp-inputs: New file.
49139         * benchtests/slowexp.c: New file.
49140         * benchtests/slowpow-inputs: New file.
49141         * benchtests/slowpow.c: New file.
49142
49143 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49144
49145         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49146         instructions.
49147         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49148         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49149         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49150         * benchtests/Makefile: Add rint benchtest.
49151         * benchtests/rint-inputs: Input for rint benchtest.
49152
49153 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49154
49155         * Versions.def (libm): Add GLIBC_2.18.
49156         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49157         hidden libm prototypes.
49158         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49159         * math/Makefile (libm-calls): Add s_issignaling.
49160         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49161         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49162         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49163         declaration.
49164         * math/math.h [__USE_GNU] (issignaling): New macro.
49165         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49166         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49167         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49168         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49169         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49170         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49171         * manual/arith.texi (issignaling): New section.
49172         * manual/libm-err-tab.pl (@all_functions): Update comment.
49173         * math/gen-libm-test.pl (parse_args): Apply special handling for
49174         issignaling.
49175         * math/libm-test.inc (print_float, issignaling_test): New
49176         functions.
49177         (check_float_internal): Add issignaling checks.
49178         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49179         default definition.
49180         * sysdeps/powerpc/math-tests.h: New file.
49181         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49182         tests.
49183         * math/test-snan.c (TEST_FUNC): Likewise.
49184
49185 2013-03-30  David S. Miller  <davem@davemloft.net>
49186
49187         * po/de.po: Update from translation team.
49188
49189 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49190
49191         [BZ #10357]
49192         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49193         imaginary part less than 1.0 and real part less than 0.5
49194         specially.
49195         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49196         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49197         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49198         (cacos_test): Add more tests.
49199         (casin_test): Likewise.
49200         (casinh_test): Likewise.
49201         * sysdeps/i386/fpu/libm-test-ulps: Update.
49202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49203
49204 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49205
49206         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49207         ONE with its value.
49208
49209         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49210         (__pow_mp): Replace ONE and MONE with their values.
49211         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49212         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49213         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49214         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49215         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49216         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49217
49218         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49219
49220         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49221         (__pow_mp): Replace ZERO and MZERO with their values.
49222         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49223         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49224         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49225         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49226         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49227         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49228         (__sqr): Likewise.
49229
49230         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49231
49232         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49233
49234 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49235
49236         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49237         Declare with __attribute__ ((weak)).
49238         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49239         Call __call_tls_dtors only if it's not NULL.
49240
49241 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49242
49243         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49244         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49245         magic __ehdr_start linker symbol if it's defined.
49246         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49247         them up here if it was already done.
49248
49249         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49250         (_dl_aux_init): Use const in cast when setting it.
49251         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49252         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49253         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49254
49255         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49256         Declare them here.
49257         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49258         * csu/libc-tls.c: Nor here.
49259         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49260
49261         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49262         (__libc_message): Never call vsyslog.
49263
49264 2013-03-28  Alan Modra  <amodra@gmail.com>
49265
49266         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49267         Define as empty.
49268         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49269         Likewise.
49270
49271 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49272
49273         [BZ #15214]
49274         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49275         underflow.
49276         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49277
49278 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49279
49280         [BZ #15304]
49281         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49282         Don't add gid passed as argument.
49283
49284         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49285
49286 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49287
49288         [BZ #15307]
49289         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49290         imaginary part between 1.0 and 1.5 and real part less than 0.5
49291         specially.
49292         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49293         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49294         * math/libm-test.inc (cacos_test): Add more tests.
49295         (casin_test): Likewise.
49296         (casinh_test): Likewise.
49297         * sysdeps/i386/fpu/libm-test-ulps: Update.
49298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49299
49300 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49301
49302         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49303         constants.
49304         (norm): Likewise.
49305         (denorm): Likewise.
49306         (__dbl_mp): Likewise.
49307         (add_magnitudes): Likewise.
49308         (sub_magnitudes): Likewise.
49309         (__add): Likewise.
49310         (__sub): Likewise.
49311         (__mul): Likewise.
49312         (__sqr): Likewise.
49313         (__inv): Likewise.
49314         (__dvd): Likewise.
49315
49316         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49317         commented code.
49318         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49319         (__dubcos): Likewise.
49320         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49321         (__ieee754_acos): Likewise.
49322         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49323         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49324         (__exp1): Likewise.
49325         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49326         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49327         (log1): Likewise.
49328         (my_log2): Likewise.
49329         (checkint): Likewise.
49330         * sysdeps/ieee754/dbl-64/e_remainder.c
49331         (__ieee754_remainder): Likewise.
49332         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49333         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49334         (bsloww): Likewise.
49335         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49336
49337         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49338         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49339         MANTISSA_STORE_T to store computations on mantissa.  Use
49340         macros for rounding and division.
49341         (denorm): Likewise.
49342         (__dbl_mp): Likewise.
49343         (add_magnitudes): Likewise.
49344         (sub_magnitudes): Likewise.
49345         (__mul): Likewise.
49346         (__sqr): Likewise.
49347         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49348         powers of two in terms of TWOPOW macro.
49349         (mp_no): Make type of mantissa as MANTISSA_T.
49350         [!RADIXI]: Define RADIXI.
49351         [!TWO52]: Define TWO52.
49352         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49353
49354 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49355
49356         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49357         llroundl symbol when building for PPC32.
49358
49359 2013-03-24  Mark H Weaver  <mhw@netris.org>
49360
49361         * manual/arith.texi (Normalization Functions): Fix prototypes for
49362         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49363
49364 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49365
49366         [BZ #13889]
49367         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49368         high value to check if expl overflow.
49369         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49370         to check for underflow and overflow.
49371         * math/libm-test.inc: Add exp test.
49372
49373 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49374
49375         [BZ #11120]
49376         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49377         with NOT_IN_libc.
49378
49379 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49380
49381         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49382         symbol.
49383
49384 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49385
49386         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49387         wrap blocks consisting of several statements.
49388
49389         * sysdeps/generic/math-tests.h: New file.
49390         * sysdeps/i386/fpu/math-tests.h: Likewise.
49391         * math/test-snan.c: Include it.
49392         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49393
49394 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49395
49396         [BZ #15285]
49397         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49398         (__ieee754_j0l): Do not improve calculations using cos of twice
49399         input for inputs above LDBL_MAX / 2.0L.
49400         (__ieee754_y0l): Likewise.
49401         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49402         (__ieee754_j1l): Do not improve calculations using cos of twice
49403         input for inputs above LDBL_MAX / 2.0L.
49404         (__ieee754_y1l): Likewise.
49405         * math/libm-test.inc (j0_test): Add another test.
49406         (j1_test): Likewise.
49407         (y0_test): Likewise.
49408         (y1_test): Likewise.
49409         * sysdeps/i386/fpu/libm-test-ulps: Update.
49410
49411 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49412
49413         * Rules ($(objpfx)bench-%.c): Include code from a C source
49414         file.
49415
49416 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49417
49418         [BZ #15287]
49419         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49420         imaginary part 1.0 and real part less than 0.5 specially.
49421         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49422         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49423         * math/libm-test.inc (cacos_test): Add more tests.
49424         (casin_test): Likewise.
49425         (casinh_test): Likewise.
49426         * sysdeps/i386/fpu/libm-test-ulps: Update.
49427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49428
49429 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49430
49431         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49432         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49433
49434 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49435
49436         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49437         * config.make.in (config-cflags-sse4): Remove variable.
49438         (config-cflags-avx): Likewise.
49439         (config-cflags-sse2avx): Likewise.
49440         (config-cflags-novzeroupper): Likewise.
49441         (config-asflags-i686): Likewise.
49442         (have-mfma4): Likewise.
49443         (have-as-vis3): Likewise.
49444         (MIG): Likewise.
49445         * configure.in (MIG): Do not AC_SUBST.
49446         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49447         (libc_cv_cc_sse4): Do not AC_SUBST.
49448         (libc_cv_cc_avx): Likewise.
49449         (libc_cv_cc_sse2avx): Likewise.
49450         (libc_cv_cc_novzeroupper): Likewise.
49451         (libc_cv_cc_fma4): Likewise.
49452         (libc_cv_as_i686): Likewise.
49453         (libc_cv_sparc_as_vis3): Likewise.
49454         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49455         LIBC_CONFIG_VAR.
49456         (config-asflags-i686): Likewise.
49457         (config-cflags-avx): Likewise.
49458         (config-cflags-sse2avx): Likewise.
49459         (have-mfma4): Likewise.
49460         (config-cflags-novzeroupper): Likewise.
49461         * sysdeps/mach/configure.in (MIG): Likewise.
49462         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49463         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49464         LIBC_CONFIG_VAR.
49465         (config-cflags-avx): Likewise.
49466         (config-cflags-sse2avx): Likewise.
49467         (have-mfma4): Likewise.
49468         (config-cflags-novzeroupper): Likewise.
49469         * configure: Regenerated.
49470         * sysdeps/i386/configure: Likewise.
49471         * sysdeps/mach/configure: Likewise.
49472         * sysdeps/sparc/configure: Likewise.
49473         * sysdeps/x86_64/configure: Likewise.
49474
49475 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49476
49477         [BZ #14812]
49478         * locale/programs/localedef.c (options): Put N_ translation marker
49479         on argument names, not just descriptions.
49480
49481 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49482
49483         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49484
49485 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49486
49487         [BZ #14176]
49488         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49489
49490 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49491
49492         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49493         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49494         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49495         [!BEFORE_ABORT] (before_abort): New function.
49496         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49497         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49498         (writev_for_fatal): New function.
49499         (WRITEV_FOR_FATAL): New macro; call that.
49500         (backtrace_and_maps): New function.
49501         (BEFORE_ABORT): New macro; call that.
49502         (struct str_list): Type removed.
49503         (__libc_message, __libc_fatal): Functions removed.
49504         Include <sysdeps/posix/libc_fatal.c> instead.
49505
49506 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49507
49508         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49509         constants.
49510         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49511         double constants.
49512
49513 2013-03-19  Andreas Schwab  <schwab@suse.de>
49514
49515         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49516         * sysdeps/gnu/configure: Regenerate.
49517
49518         * configure.in: Substitute libc_cv_rtlddir.
49519         * configure: Regenerate.
49520         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49521         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49522         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49523         * elf/Makefile (install-others, CFLAGS-interp.c)
49524         (ldso_install, common-ldd-rewrite): Likewise.
49525         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49526         $(inst_slibdir)/$(rtld-installed-name).
49527         * scripts/rellns-sh: Add -p option.
49528         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49529         for source.
49530
49531 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49532
49533         * manual/nptl.texi: Renamed to ...
49534         * manual/threads.texi: ... this.
49535         * manual/Makefile (chapters): Update.
49536
49537 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49538
49539         [BZ #14812]
49540         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49541         on argument names, not just descriptions.
49542         * malloc/memusagestat.c (options): Likewise.
49543         * nss/getent.c (options): Likewise.
49544
49545 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49546
49547         [BZ #14812]
49548         * iconv/iconv_prog.c (options): Put N_ translation marker
49549         on argument names, not just descriptions.
49550         * iconv/iconvconfig.c (options): Likewise.
49551
49552 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49553
49554         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49555         implementation which is faster on all x86_64 architectures.
49556         Tested on AMD, Intel Nehalem, SNB, IVB.
49557         * sysdeps/x86_64/strnlen.S: Likewise.
49558
49559         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49560         Remove all multiarch strlen and strnlen versions.
49561         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49562         Remove strlen and strnlen related parts.
49563
49564         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49565         Inline strlen part.
49566         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49567
49568         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49569         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49570         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49571         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49572         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49573         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49574
49575 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49576
49577         * manual/memory.texi (Malloc Tunable Parameters):
49578         Sort parameters alphabetically. Add comments for missing entries.
49579
49580 2013-03-17  David S. Miller  <davem@davemloft.net>
49581
49582         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49583
49584 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49585
49586         [BZ #15283]
49587         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49588         for arguments at most half maximum finite value.
49589         * math/libm-test.inc (j0_test): Add more tests.
49590         (j1_test): Likewise.
49591         (y0_test): Likewise.
49592         (y1_test): Likewise.
49593         * sysdeps/i386/fpu/libm-test-ulps: Update.
49594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49595
49596         [BZ #14155]
49597         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49598         1 / x and functions P and Q for arguments above 0x1p256L.
49599         (__ieee754_y0l): Likewise.
49600         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49601         (__ieee754_y1l): Likewise.
49602         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49603         (j1_test): Likewise.
49604         (y0_test): Likewise.
49605         (y1_test): Likewise.
49606
49607 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49608
49609         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49610         variable.
49611
49612 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49613
49614         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49615         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49616         zero since it's initialized to EXEC_PAGESIZE.
49617
49618         * sysdeps/unix/sysv/linux/ldsodefs.h
49619         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49620         * sysdeps/generic/ldsodefs.h: ... here.
49621
49622 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49623
49624         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49625
49626         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49627         math/test-snan.c.
49628         * math/test-snan.c: Renamed from
49629         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49630         * math/Makefile (tests): Add test-snan.
49631         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49632         test-powerpc-snan.
49633
49634         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49635         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49636         functions.
49637         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49638         __builtin_nan family of functions.
49639         * math/libm-test.inc (initialize): Initialize qnan_value with
49640         __builtin_nan family of functions.
49641         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49642         Remove variables.
49643         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49644         Remove functions.
49645         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49646         storage class.  Initialize qNaN_var and sNaN_var with
49647         __builtin_nan and __builtin_nans families of functions,
49648         respectively.
49649
49650         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49651         (sqrt_test): Remove duplicate test with qNaN input.
49652         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49653         (round_test, signbit_test, significand_test): Note missing +/-Inf
49654         as well as qNaN tests.
49655
49656         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49657         qNaN_var.  Fix a few strings, too.
49658         * math/libm-test.inc (nan_value): Rename to qnan_value.
49659         * math/gen-libm-test.pl (%beautify): Adjust to that.
49660         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49661         * math/test-misc.c (main): Likewise.
49662         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49663         to __qnan_bytes, and __qnan_union, respectively.
49664         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49665         Likewise.
49666         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49667         and lqnanval, respectively.
49668         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49669         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49670         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49671         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49672
49673         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49674         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49675         doubles.
49676
49677         * math/test-misc.c (main): Fix copy'n'pastos.
49678         * misc/tst-efgcvt.c (special): Likewise.
49679
49680         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49681         Remove declarations.
49682
49683 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49684
49685         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49686         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49687         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49688         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49689
49690 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49691
49692         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49693         macro to return vdso values correctly in IFUNC implementations.
49694         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49695         Optimization by using IFUNC.
49696
49697 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49698             Richard Henderson  <rth@redhat.com>
49699             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49700
49701         * Makefile.in (bench): New target.
49702         * NEWS: Mention the benchmark framework.
49703         * Rules (bench): Likewise.
49704         (binaries-bench): Generate binaries for functions to
49705         benchmark.
49706         * benchtests/Makefile: New makefile for benchmark tests.
49707         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49708         programs.
49709         * benchtests/exp-inputs: New input file for EXP function.
49710         * benchtests/pow-inputs: New input file for POW function.
49711         * scripts/bench.pl: New script to generate source files for
49712         benchmark programs.
49713
49714 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49715
49716         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49717         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49718         computations on mantissa.  Use macros for rounding and
49719         division.
49720         (denorm): Likewise.
49721         (__dbl_mp): Likewise.
49722         (add_magnitudes): Likewise.
49723         (sub_magnitudes): Likewise.
49724         (__mul): Likewise.
49725         (__sqr): Likewise.
49726         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49727         powers of two in terms of TWOPOW macro.
49728         (mp_no): Make type of mantissa as MANTISSA_T.
49729         [!RADIXI]: Define RADIXI.
49730         [!TWO52]: Define TWO52.
49731         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49732
49733         * manual/nptl.texi (cindex): Modify threads to pthreads.
49734
49735 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49736
49737         * sysdeps/x86_64/preconfigure: Regenerated.
49738
49739 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49740
49741         [BZ #14155]
49742         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49743         0x1p28 and above.
49744         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49745         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49746         0x1p28 and above.
49747         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49748         * math/libm-test.inc (j0_test): Do not allow one spurious
49749         underflow exception.
49750         (y1_test): Likewise.
49751
49752 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49753
49754         * manual/Makefile (chapters): Add nptl.
49755         * manual/debug.texi (Debugging Support): Add link to Threads
49756         chapter.
49757         * manual/nptl.texi: New file.
49758
49759         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49760
49761 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49762
49763         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
49764         for non-NULL pointer before the memory validity test. Pointed
49765         out by Holger Brunck <holger.brunck@keymile.com>.
49766
49767 2013-03-13  Andreas Schwab  <schwab@suse.de>
49768
49769         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
49770         instead of .os.
49771
49772 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
49773
49774         * timezone/zic.c: Update from tzcode 2013b.
49775
49776 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
49777
49778         * manual/install.texi (Configuring and compiling):
49779         Mention i686 and i586.
49780         * INSTALL: Regenerate.
49781
49782 2013-03-12  Roland McGrath  <roland@hack.frob.com>
49783
49784         * sysdeps/init_array/elf-init.c: New file.
49785         * csu/elf-init.c
49786         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
49787         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
49788
49789         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
49790         __gmon_start__ as global, but as static with a .preinit_array pointer.
49791         * sysdeps/init_array/gmon-start.c: New file.  Use that.
49792         * sysdeps/init_array/crti.S: New file, empty except for comments.
49793         * sysdeps/init_array/crtn.S: Likewise.
49794
49795 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
49796
49797         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
49798         definining bcopy.
49799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49800         Remove Prefer_SSE_for_memop.
49801         * sysdeps/x86_64/multiarch/init-arch.h: Remove
49802         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
49803         HAS_PREFER_SSE_FOR_MEMOP.
49804         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
49805         memset-x86-64.
49806         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
49807         Remove bzero, memset ifunc support.
49808         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
49809         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
49810         * sysdeps/x86_64/multiarch/memset.S: Likewise.
49811         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
49812
49813 2013-03-11  Andreas Schwab  <schwab@suse.de>
49814
49815         [BZ #15234]
49816         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
49817         by SHLIB_COMPAT.
49818         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
49819         (GLIBC_2.16): Remove pthread_atfork.
49820
49821 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
49822
49823         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
49824         (ptestcases.h): Likewise.
49825
49826 2013-03-08  Roland McGrath  <roland@hack.frob.com>
49827
49828         * Makeconfig ($(common-objpfx)config.status): Depend on
49829         sysdeps/*/preconfigure{,.in} too.
49830
49831 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
49832
49833         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
49834         (__free_hook): Use void * instead of __malloc_ptr_t.
49835         (__malloc_hook): Likewise.
49836         (__realloc_hook): Likewise.
49837         (__memalign_hook): Likewise.
49838         (__after_morecore_hook): Likewise.
49839         * malloc/arena.c (save_malloc_hook): Likewise.
49840         (save_free_hook): Likewise.
49841         * malloc/hooks.c (malloc_hook_ini): Likewise.
49842         (realloc_hook_ini): Likewise.
49843         (memalign_hook_ini): Likewise.
49844         * malloc/malloc.c (malloc_hook_ini): Likewise.
49845         (realloc_hook_ini): Likewise.
49846         (memalign_hook_ini): Likewise.
49847         (__free_hook): Likewise.
49848         (__malloc_hook): Likewise.
49849         (__realloc_hook): Likewise.
49850         (__memalign_hook): Likewise.
49851         (__libc_malloc): Likewise.
49852         (__libc_free): Likewise.
49853         (__libc_realloc): Likewise.
49854         (__libc_memalign): Likewise.
49855         (__libc_valloc): Likewise.
49856         (__libc_pvalloc): Likewise.
49857         (__libc_calloc): Likewise.
49858         (__posix_memalign): Likewise.
49859         * malloc/morecore.c (__sbrk): Likewise.
49860         (__default_morecore): Likewise.
49861
49862         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
49863
49864         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
49865         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
49866         __malloc_ptrdiff_t.
49867
49868         * malloc/malloc.h (__malloc_size_t): Remove macro.
49869         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
49870         __malloc_size_t.
49871         (old_memalign_hook): Likewise.
49872         (old_realloc_hook): Likewise.
49873         (struct hdr): Likewise.
49874         (flood): Likewise.
49875         (mallochook): Likewise.
49876         (memalignhook): Likewise.
49877         (reallochook): Likewise.
49878         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
49879         (tr_old_realloc_hook): Likewise.
49880         (tr_old_memalign_hook): Likewise.
49881         (tr_mallochook): Likewise.
49882         (tr_reallochook): Likewise.
49883         (tr_memalignhook): Likewise.
49884
49885 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49886
49887         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
49888         default_ldbl_pack and using as default implementation.
49889         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
49890         implementation.
49891         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
49892         redundant definition.
49893         (ldbl_insert_mantissa): Likewise.
49894         (ldbl_canonicalize): Likewise.
49895         (ldbl_nearbyint): Likewise.
49896         (ldbl_pack): Rename to ldbl_pack_ppc.
49897         (ldbl_unpack): Rename to ldbl_unpack_ppc.
49898         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
49899         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
49900
49901 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49902
49903         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
49904         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
49905         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
49906         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
49907         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
49908         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
49909         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
49910         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
49911
49912 2013-03-07  Andreas Jaeger  <aj@suse.de>
49913
49914         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
49915         bits/mman-linux.h.
49916
49917 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49918
49919         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
49920         Include mpa.h and declare __MPEXP.
49921         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
49922         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49923         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49924         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
49925         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49926         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49927         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
49928
49929         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
49930         (__slowpow): Use long double EXPL and LOGL functions to
49931         compute POW.
49932         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49933         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49934         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
49935         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49936         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49937         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
49938
49939         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
49940         intermediate variable to calculate exponent.
49941         (__sqr): Likewise.
49942         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
49943         Likewise.
49944         (__sqr): Likewise.
49945
49946         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
49947         [!NO__SQR]: Define __sqr.
49948         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
49949         and NO__SQR.  Remove all code except __mul and __sqr.  Include
49950         sysdeps/ieee754/dbl-64/mpa.c.
49951         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
49952
49953         [BZ #12723]
49954         * posix/Makefile (tests): Add tst-pathconf.
49955         * posix/tst-pathconf.c: New test case.
49956         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
49957         _PC_PIPE_BUF.
49958         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
49959
49960 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
49961
49962         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
49963
49964 2013-03-06  Andreas Jaeger  <aj@suse.de>
49965
49966         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
49967         definition via __MAP_ANONYMOUS.
49968
49969         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
49970         it's not part of Linux headers.
49971
49972         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
49973         (MAP_HUGE_MASK): Define.
49974
49975         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49976         Define.
49977         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49978         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49979         Define.
49980         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49981         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49982         Define.
49983         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49984         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
49985         Define.
49986         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49987
49988         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
49989         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
49990         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
49991         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
49992         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
49993         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
49994
49995         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
49996         Handle f2fs.
49997
49998         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
49999         Handle f2fs and efivarfs.
50000
50001         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50002         f2fs.
50003
50004         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50005         (EFIVARFS_MAGIC): Add.
50006         (F2FS_LINK_MAX): Add.
50007
50008 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50009
50010         * stdio-common/vfprintf.c: Replace __builtin_expect with
50011         __glibc_unlikely.
50012
50013 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50014
50015         [BZ #13550]
50016         * sysdeps/generic/bp-sym.h: Remove file.
50017         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50018         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50019         <bp-sym.h> and <bp-asm.h>.
50020         (__longjmp): Don't use BP_SYM.
50021         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50022         and <bp-asm.h>.
50023         (memcpy): Don't use BP_SYM.
50024         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50025         <bp-sym.h> and <bp-asm.h>.
50026         (memcpy): Don't use BP_SYM.
50027         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50028         <bp-asm.h>.
50029         (memcpy): Don't use BP_SYM.
50030         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50031         <bp-asm.h>.
50032         (memset): Don't use BP_SYM.
50033         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50034         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50035         (__bzero): Don't use BP_SYM.
50036         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50037         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50038         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50039         <bp-sym.h> and <bp-asm.h>.
50040         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50041         pointers.
50042         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50043         <bp-sym.h> and <bp-asm.h>.
50044         (memcpy): Don't use BP_SYM.
50045         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50046         <bp-sym.h> and <bp-asm.h>.
50047         (memset): Don't use BP_SYM.
50048         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50049         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50050         (__bzero): Don't use BP_SYM.
50051         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50052         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50053         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50054         <bp-sym.h> and <bp-asm.h>.
50055         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50056         pointers.
50057         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50058         <bp-sym.h> and <bp-asm.h>.
50059         (memcpy): Don't use BP_SYM.
50060         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50061         <bp-sym.h> and <bp-asm.h>.
50062         (memset): Don't use BP_SYM.
50063         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50064         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50065         (__bzero): Don't use BP_SYM.
50066         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50067         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50068         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50069         <bp-sym.h> and <bp-asm.h>.
50070         (__memchr): Don't use BP_SYM.
50071         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50072         <bp-sym.h> and <bp-asm.h>.
50073         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50074         pointers.
50075         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50076         <bp-sym.h> and <bp-asm.h>.
50077         (memcpy): Don't use BP_SYM.
50078         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50079         <bp-sym.h> and <bp-asm.h>.
50080         (__mempcpy): Don't use BP_SYM.
50081         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50082         <bp-sym.h> and <bp-asm.h>.
50083         (__memrchr): Don't use BP_SYM.
50084         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50085         <bp-sym.h> and <bp-asm.h>.
50086         (memset): Don't use BP_SYM.
50087         (__bzero): Likewise.
50088         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50089         <bp-sym.h> and <bp-asm.h>.
50090         (__rawmemchr): Don't use BP_SYM.
50091         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50092         <bp-sym.h> and <bp-asm.h>.
50093         (__STRCMP): Don't use BP_SYM.
50094         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50095         <bp-sym.h> and <bp-asm.h>.
50096         (strchr): Don't use BP_SYM.
50097         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50098         <bp-sym.h> and <bp-asm.h>.
50099         (__strchrnul): Don't use BP_SYM.
50100         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50101         <bp-sym.h> and <bp-asm.h>.
50102         (strlen): Don't use BP_SYM.
50103         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50104         <bp-sym.h> and <bp-asm.h>.
50105         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50106         pointers.
50107         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50108         <bp-sym.h> and <bp-asm.h>.
50109         (__strnlen): Don't use BP_SYM.
50110         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50111         <bp-sym.h> and <bp-asm.h>.
50112         (__GI__setjmp): Don't use BP_SYM.
50113         (_setjmp): Likewise.
50114         (__sigsetjmp): Likewise.
50115         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50116         (L(start_addresses)): Don't use BP_SYM.
50117         (_start): Likewise.
50118         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50119         <bp-asm.h>.
50120         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50121         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50122         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50123         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50124         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50125         <bp-asm.h>.
50126         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50127         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50128         about bounded pointers.
50129         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50130         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50131         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50132         <bp-asm.h>.
50133         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50134         about bounded pointers.  Remove GKM FIXME comments.
50135         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50136         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50137         <bp-asm.h>.
50138         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50139         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50140         Remove GKM FIXME comments.
50141         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50142         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50143         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50144         <bp-asm.h>.
50145         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50146         about bounded pointers.  Remove GKM FIXME comment.
50147         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50148         and <bp-asm.h>.
50149         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50150         pointers.
50151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50152         <bp-sym.h> and <bp-asm.h>.
50153         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50155         <bp-sym.h> and <bp-asm.h>.
50156         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50157         comment.
50158
50159 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50160
50161         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50162         call free(NULL).
50163
50164 2013-03-05  David S. Miller  <davem@davemloft.net>
50165
50166         * po/es.po: Update from translation team.
50167
50168 2013-03-05  Andreas Jaeger  <aj@suse.de>
50169
50170         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50171         <bits/mman-linux.h>.
50172         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50173         is fine.
50174         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50175         <bits/mman-linux.h> to end of file.
50176         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50177         is fine.
50178         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50179         <bits/mman-linux.h> to end of file.
50180         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50181         is fine.
50182         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50183         <bits/mman-linux.h> to end of file.
50184
50185         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50186         (MCL_CURRENT, MCL_FUTURE): Define here.
50187
50188 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50189
50190         [BZ #15232]
50191         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50192         attribute_hidden.
50193         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50194
50195 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50196
50197         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50198         fourth parameter needed for rt_sigprocmask syscall.
50199         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50200         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50201         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50202         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50203         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50204         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50205
50206 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50207
50208         [BZ #13550]
50209         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50210         comment about bounded pointers.
50211         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50212         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50213
50214 2013-03-04  Andreas Jaeger  <aj@suse.de>
50215
50216         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50217         common definitions.
50218
50219         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50220         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50221         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50222         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50223         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50224         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50225
50226 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50227
50228         [BZ #15055]
50229         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50230         __ieee754_sqrl instead of __sqrl.
50231
50232 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50233
50234         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50235         * sysdeps/powerpc/fpu_control.h: ... here.
50236         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50237         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50238         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50239         * sysdeps/powerpc/bits/mathinline.h: ... here.
50240
50241 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50242
50243         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50244         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50245         to just [NEED_DL_SYSINFO_DSO].
50246         * elf/dl-support.c: Likewise.
50247         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50248         * elf/rtld.c (dl_main): Likewise.
50249         * elf/setup-vdso.h (setup_vdso): Likewise.
50250         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50251         * sysdeps/unix/sysv/linux/dl-sysdep.c
50252         (_dl_discover_osversion): Likewise.
50253
50254 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50255
50256         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50257         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50258
50259 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50260
50261         * NEWS: Mention libm performance improvements and non-x86 PI
50262         futex support.
50263
50264         * csu/libc-start.c (__pthread_initialize_minimal): Change
50265         function arguments.
50266         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50267
50268 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50269
50270         [BZ #13550]
50271         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50272         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50273         <bp-sym.h> and <bp-asm.h>.
50274         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50275         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50276         and <bp-asm.h>.
50277         (memcpy): Don't use BP_SYM.
50278         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50279         <bp-asm.h>.
50280         (__mpn_add_n): Don't use BP_SYM.
50281         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50282         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50283         and <bp-asm.h>.
50284         (__mpn_addmul_1): Don't use BP_SYM.
50285         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50286         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50287         <bp-sym.h>.
50288         (_setjmp): Don't use BP_SYM.
50289         (__novmx_setjmp): Likewise.
50290         (__GI__setjmp): Likewise.
50291         (__vmx_setjmp): Likewise.
50292         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50293         <bp-sym.h>.
50294         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50295         (__bzero): Don't use BP_SYM.
50296         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50297         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50298         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50299         <bp-sym.h> and <bp-asm.h>.
50300         (memcpy): Don't use BP_SYM.
50301         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50302         <bp-sym.h> and <bp-asm.h>.
50303         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50304         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50305         <bp-sym.h> and <bp-asm.h>.
50306         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50307         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50308         <bp-asm.h>.
50309         (__mpn_lshift): Don't use BP_SYM.
50310         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50311         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50312         <bp-asm.h>.
50313         (memset): Don't use BP_SYM.
50314         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50315         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50316         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50317         <bp-asm.h>.
50318         (__mpn_mul_1): Don't use BP_SYM.
50319         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50320         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50321         <bp-sym.h> and <bp-asm.h>.
50322         (memcmp): Don't use BP_SYM.
50323         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50324         <bp-sym.h> and <bp-asm.h>.
50325         (memcpy): Don't use BP_SYM.
50326         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50327         <bp-sym.h> and <bp-asm.h>.
50328         (memset): Don't use BP_SYM.
50329         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50330         <bp-sym.h> and <bp-asm.h>.
50331         (strncmp): Don't use BP_SYM.
50332         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50333         <bp-sym.h> and <bp-asm.h>.
50334         (memcpy): Don't use BP_SYM.
50335         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50336         <bp-sym.h> and <bp-asm.h>.
50337         (memset): Don't use BP_SYM.
50338         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50339         <bp-sym.h> and <bp-asm.h>.
50340         (__memchr): Don't use BP_SYM.
50341         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50342         <bp-sym.h> and <bp-asm.h>.
50343         (memcmp): Don't use BP_SYM.
50344         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50345         <bp-sym.h> and <bp-asm.h>.
50346         (memcpy): Don't use BP_SYM.
50347         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50348         <bp-sym.h> and <bp-asm.h>.
50349         (__mempcpy): Don't use BP_SYM.
50350         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50351         <bp-sym.h> and <bp-asm.h>.
50352         (__memrchr): Don't use BP_SYM.
50353         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50354         <bp-sym.h> and <bp-asm.h>.
50355         (memset): Don't use BP_SYM.
50356         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50357         <bp-sym.h> and <bp-asm.h>.
50358         (__rawmemchr): Don't use BP_SYM.
50359         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50360         <bp-sym.h> and <bp-asm.h>.
50361         (__STRCMP): Don't use BP_SYM.
50362         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50363         <bp-sym.h> and <bp-asm.h>.
50364         (strchr): Don't use BP_SYM.
50365         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50366         <bp-sym.h> and <bp-asm.h>.
50367         (__strchrnul): Don't use BP_SYM.
50368         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50369         <bp-sym.h> and <bp-asm.h>.
50370         (strlen): Don't use BP_SYM.
50371         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50372         <bp-sym.h> and <bp-asm.h>.
50373         (strncmp): Don't use BP_SYM.
50374         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50375         <bp-sym.h> and <bp-asm.h>.
50376         (__strnlen): Don't use BP_SYM.
50377         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50378         <bp-asm.h>.
50379         (__mpn_rshift): Don't use BP_SYM.
50380         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50381         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50382         <bp-sym.h> and <bp-asm.h>.
50383         (__sigsetjmp): Don't use BP_SYM.
50384         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50385         (L(start_addresses)): Don't use BP_SYM.
50386         (_start): Likewise.
50387         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50388         <bp-asm.h>.
50389         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50390         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50391         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50392         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50393         <bp-asm.h>.
50394         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50395         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50396         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50397         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50398         <bp-asm.h>.
50399         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50400         comments.
50401         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50402         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50403         <bp-asm.h>.
50404         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50405         FIXME comments.
50406         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50407         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50408         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50409         <bp-asm.h>.
50410         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50411         comment.
50412         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50413         and <bp-asm.h>.
50414         (strncmp): Don't use BP_SYM,
50415         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50416         <bp-asm.h>.
50417         (__mpn_sub_n): Don't use BP_SYM.
50418         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50419         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50420         and <bp-asm.h>.
50421         (__mpn_submul_1): Don't use BP_SYM.
50422         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50424         <bp-sym.h> and <bp-asm.h>.
50425         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50427         <bp-sym.h> and <bp-asm.h>.
50428         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50429         comment.
50430
50431 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50432
50433         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50434         Use ZK to minimize writes to Z.
50435         (sub_magnitudes): Simplify code a bit.
50436         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50437         Use ZK to minimize writes to Z.
50438         (sub_magnitudes): Simplify code a bit.
50439
50440 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50441
50442         * csu/gmon-start.c: Add special exception to license text.
50443
50444 2013-02-27  Richard Henderson  <rth@redhat.com>
50445
50446         * scripts/config.guess: Update from config.git.
50447         * scripts/config.sub: Likewise.
50448
50449 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50450
50451         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50452
50453         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50454
50455         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50456
50457         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50458
50459         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50460
50461 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50462
50463         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50464         [$(build-shared = yes].
50465
50466 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50467
50468         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50469         (__mul): Reduce iterations for calculating mantissa.
50470
50471         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50472         MPTWO.
50473         (__mpranred): Likewise.
50474
50475         [BZ #15160]
50476         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50477         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50478
50479 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50480
50481         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50482         Define __attribute__.
50483
50484 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50485
50486         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50487         unused.
50488         * posix/regex_internal.h (__attribute): Remove.
50489         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50490         (re_string_context_at): Likewise.
50491         (bitset_not): Use __attribute__ and mark function as possibly
50492         unused.
50493         (bitset_merge): Likewise.
50494         (bitset_mask): Likewise.
50495         (re_string_char_size_at): Likewise.
50496         (re_string_wchar_at): Likewise.
50497         (re_string_elem_size_at): Likewise.
50498
50499 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50500
50501         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50502         code.
50503         (cc32): Likewise.
50504
50505         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50506         (__acr): Likewise.
50507         (__cpy): Likewise.
50508         (norm): Likewise.
50509         (denorm): Likewise.
50510         (__dbl_mp): Likewise.
50511         (add_magnitudes): Likewise.
50512         (sub_magnitudes): Likewise.
50513         (__mul): Likewise.
50514         (__inv): Likewise.
50515
50516         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50517         style.
50518
50519         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50520         style.
50521
50522         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50523         code.
50524
50525         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50526         up changes with default code.
50527         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50528         Likewise.
50529
50530 2013-02-24  Allan McRae  <allan@archlinux.org>
50531
50532         * manual/socket.texi (The Internet Namespace): Order menu items
50533         to match that in the file.
50534
50535         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50536         node listing of the info page menu.
50537
50538 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50539
50540         [BZ #13550]
50541         * sysdeps/i386/bp-asm.h: Remove file.
50542         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50543         (PARMS): Do not use macros from bp-asm.h.
50544         (S1): Likewise.
50545         (S2): Likewise.
50546         (SIZE): Likewise.
50547         (__mpn_add_n): Do not use BP_SYM
50548         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50549         "bp-asm.h".
50550         (PARMS): Do not use macros from bp-asm.h.
50551         (S1): Likewise.
50552         (SIZE): Likewise.
50553         (__mpn_addmul_1): Do not use BP_SYM
50554         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50555         "bp-asm.h".
50556         (PARMS): Do not use macros from bp-asm.h.
50557         (SIGMSK): Likewise.
50558         (_setjmp): Likewise.  Do not use BP_SYM.
50559         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50560         "bp-asm.h".
50561         (PARMS): Do not use macros from bp-asm.h.
50562         (SIGMSK): Likewise.
50563         (setjmp): Likewise.  Do not use BP_SYM.
50564         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50565         "bp-asm.h".
50566         (PARMS): Do not use macros from bp-asm.h.
50567         (__frexp): Do not use BP_SYM.
50568         (frexp): Likewise.
50569         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50570         "bp-asm.h".
50571         (PARMS): Do not use macros from bp-asm.h.
50572         (__frexpf): Do not use BP_SYM.
50573         (frexpf): Likewise.
50574         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50575         "bp-asm.h".
50576         (PARMS): Do not use macros from bp-asm.h.
50577         (__frexpl): Do not use BP_SYM.
50578         (frexpl): Likewise.
50579         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50580         "bp-asm.h".
50581         (PARMS): Do not use macros from bp-asm.h.
50582         (__remquo): Do not use BP_SYM.
50583         (remquo): Likewise.
50584         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50585         "bp-asm.h".
50586         (PARMS): Do not use macros from bp-asm.h.
50587         (__remquof): Do not use BP_SYM.
50588         (remquof): Likewise.
50589         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50590         "bp-asm.h".
50591         (PARMS): Do not use macros from bp-asm.h.
50592         (__remquol): Do not use BP_SYM.
50593         (remquol): Likewise.
50594         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50595         "bp-asm.h".
50596         (PARMS): Do not use macros from bp-asm.h.
50597         (DEST): Likewise.
50598         (SRC): Likewise.
50599         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50600         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50601         "bp-asm.h".
50602         (PARMS): Do not use macros from bp-asm.h.
50603         (strlen): Do not use BP_SYM.
50604         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50605         "bp-asm.h".
50606         (PARMS): Do not use macros from bp-asm.h.
50607         (S1): Likewise.
50608         (S2): Likewise.
50609         (SIZE): Likewise.
50610         (__mpn_add_n): Do not use BP_SYM.
50611         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50612         "bp-asm.h".
50613         (PARMS): Do not use macros from bp-asm.h.
50614         (S1): Likewise.
50615         (SIZE): Likewise.
50616         (__mpn_addmul_1): Do not use BP_SYM.
50617         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50618         weak_alias.
50619         (bzero): Likewise.
50620         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50621         "bp-asm.h".
50622         (PARMS): Do not use macros from bp-asm.h.
50623         (S): Likewise.
50624         (SIZE): Likewise.
50625         (__mpn_lshift): Do not use BP_SYM.
50626         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50627         "bp-asm.h".
50628         (PARMS): Do not use macros from bp-asm.h.
50629         (DEST): Likewise.
50630         (SRC): Likewise.
50631         (LEN): Likewise.
50632         (memcpy): Likewise.  Do not use BP_SYM.
50633         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50634         libc_hidden_def and weak_alias.
50635         (mempcpy): Do not use BP_SYM in weak_alias.
50636         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50637         "bp-asm.h".
50638         (PARMS): Do not use macros from bp-asm.h.
50639         (DEST): Likewise.
50640         (LEN): Likewise.
50641         [!BZERO_P] (CHR): Likewise.
50642         (memset): Likewise.  Do not use BP_SYM.
50643         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50644         "bp-asm.h".
50645         (PARMS): Do not use macros from bp-asm.h.
50646         (S1): Likewise.
50647         (SIZE): Likewise.
50648         (__mpn_mul_1): Do not use BP_SYM.
50649         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50650         "bp-asm.h".
50651         (PARMS): Do not use macros from bp-asm.h.
50652         (S): Likewise.
50653         (SIZE): Likewise.
50654         (__mpn_rshift): Do not use BP_SYM.
50655         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50656         "bp-asm.h".
50657         (PARMS): Do not use macros from bp-asm.h.
50658         (STR): Likewise.
50659         (CHR): Likewise.
50660         (strchr): Likewise.  Do not use BP_SYM.
50661         (index): Do not use BP_SYM in weak_alias.
50662         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50663         "bp-asm.h".
50664         (PARMS): Do not use macros from bp-asm.h.
50665         (DEST): Likewise.
50666         (SRC): Likewise.
50667         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50668         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50669         "bp-asm.h".
50670         (PARMS): Do not use macros from bp-asm.h.
50671         (strlen): Do not use BP_SYM.
50672         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50673         "bp-asm.h".
50674         (PARMS): Do not use macros from bp-asm.h.
50675         (S1): Likewise.
50676         (S2): Likewise.
50677         (SIZE): Likewise.
50678         (__mpn_sub_n): Do not use BP_SYM.
50679         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50680         "bp-asm.h".
50681         (PARMS): Do not use macros from bp-asm.h.
50682         (S1): Likewise.
50683         (SIZE): Likewise.
50684         (__mpn_submul_1): Do not use BP_SYM.
50685         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50686         "bp-asm.h".
50687         (PARMS): Do not use macros from bp-asm.h.
50688         (S1): Likewise.
50689         (S2): Likewise.
50690         (SIZE): Likewise.
50691         (__mpn_add_n): Do not use BP_SYM.
50692         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50693         weak_alias.
50694         (bzero): Likewise.
50695         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50696         "bp-asm.h".
50697         (PARMS): Do not use macros from bp-asm.h.
50698         (BLK2): Likewise.
50699         (LEN): Likewise.
50700         (memcmp): Do not use BP_SYM.
50701         (bcmp): Do not use BP_SYM in weak_alias.
50702         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50703         "bp-asm.h".
50704         (PARMS): Do not use macros from bp-asm.h.
50705         (DEST): Likewise.
50706         (SRC): Likewise.
50707         (LEN): Likewise.
50708         (memcpy): Likewise.  Do not use BP_SYM.
50709         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50710         "bp-asm.h".
50711         (PARMS): Do not use macros from bp-asm.h.
50712         (DEST): Likewise.
50713         (SRC): Likewise.
50714         (LEN): Likewise.
50715         (memmove): Likewise.  Do not use BP_SYM.
50716         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50717         "bp-asm.h".
50718         (PARMS): Do not use macros from bp-asm.h.
50719         (DEST): Likewise.
50720         (SRC): Likewise.
50721         (LEN): Likewise.
50722         (__mempcpy): Likewise.  Do not use BP_SYM.
50723         (mempcpy): Do not use BP_SYM in weak_alias.
50724         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50725         "bp-asm.h".
50726         (PARMS): Do not use macros from bp-asm.h.
50727         (DEST): Likewise.
50728         (LEN): Likewise.
50729         [!BZERO_P] (CHR): Likewise.
50730         (memset): Likewise.  Do not use BP_SYM.
50731         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50732         "bp-asm.h".
50733         (PARMS): Do not use macros from bp-asm.h.
50734         (STR2): Likewise.
50735         (strcmp): Do not use BP_SYM.
50736         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50737         "bp-asm.h".
50738         (PARMS): Do not use macros from bp-asm.h.
50739         (STR): Likewise.
50740         (DELIM): Likewise.
50741         [USE_AS_STRTOK_R] (SAVE): Likewise.
50742         (FUNCTION): Likewise.  Do not use BP_SYM.
50743         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50744         aliases.
50745         (strtok_r): Likewise.
50746         (__GI___strtok_r): Likewise.
50747         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50748         (PARMS): Do not use macros from bp-asm.h.
50749         (S): Likewise.
50750         (SIZE): Likewise.
50751         (__mpn_lshift): Do not use BP_SYM.
50752         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50753         (PARMS): Do not use macros from bp-asm.h.
50754         (STR): Likewise.
50755         (CHR): Likewise.
50756         (__memchr): Do not use BP_SYM.
50757         (memchr): Do not use BP_SYM in weak_alias.
50758         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50759         (PARMS): Do not use macros from bp-asm.h.
50760         (BLK2): Likewise.
50761         (LEN): Likewise.
50762         (memcmp): Do not use BP_SYM.
50763         (bcmp): Do not use BP_SYM in weak_alias.
50764         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
50765         (PARMS): Do not use macros from bp-asm.h.
50766         (S1): Likewise.
50767         (SIZE): Likewise.
50768         (__mpn_mul_1): Do not use BP_SYM.
50769         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
50770         "bp-asm.h".
50771         (PARMS): Do not use macros from bp-asm.h.
50772         (STR): Likewise.
50773         (CHR): Likewise.
50774         (__rawmemchr): Do not use BP_SYM.
50775         (rawmemchr): Do not use BP_SYM in weak_alias.
50776         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50777         (PARMS): Do not use macros from bp-asm.h.
50778         (S): Likewise.
50779         (SIZE): Likewise.
50780         (__mpn_rshift): Do not use BP_SYM.
50781         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50782         (PARMS): Do not use macros from bp-asm.h.
50783         (SIGMSK): Likewise.
50784         (__sigsetjmp): Likewise.  Do not use BP_SYM.
50785         * sysdeps/i386/start.S: Do not include "bp-sym.h".
50786         (_start): Do not use BP_SYM.
50787         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
50788         (PARMS): Do not use macros from bp-asm.h.
50789         (DEST): Likewise.
50790         (SRC): Likewise.
50791         (__stpcpy): Likewise.  Do not use BP_SYM.
50792         (stpcpy): Do not use BP_SYM in weak_alias.
50793         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
50794         "bp-asm.h".
50795         (PARMS): Do not use macros from bp-asm.h.
50796         (DEST): Likewise.
50797         (SRC): Likewise.
50798         (LEN): Likewise.
50799         (__stpncpy): Likewise.  Do not use BP_SYM.
50800         (stpncpy): Do not use BP_SYM in weak_alias.
50801         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50802         (PARMS): Do not use macros from bp-asm.h.
50803         (STR): Likewise.
50804         (CHR): Likewise.
50805         (strchr): Likewise.  Do not use BP_SYM.
50806         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
50807         "bp-asm.h".
50808         (PARMS): Do not use macros from bp-asm.h.
50809         (STR): Likewise.
50810         (CHR): Likewise.
50811         (__strchrnul): Likewise.  Do not use BP_SYM.
50812         (strchrnul): Do not use BP_SYM in weak_alias.
50813         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
50814         "bp-asm.h".
50815         (PARMS): Do not use macros from bp-asm.h.
50816         (STOP): Likewise.
50817         (strcspn): Do not use BP_SYM.
50818         * sysdeps/i386/strpbrk.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         (STOP): Likewise.
50823         (strpbrk): Likewise.  Do not use BP_SYM.
50824         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
50825         "bp-asm.h".
50826         (PARMS): Do not use macros from bp-asm.h.
50827         (STR): Likewise.
50828         (CHR): Likewise.
50829         (strrchr): Likewise.  Do not use BP_SYM.
50830         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
50831         (PARMS): Do not use macros from bp-asm.h.
50832         (SKIP): Likewise.
50833         (strspn): Do not use BP_SYM.
50834         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
50835         (PARMS): Do not use macros from bp-asm.h.
50836         (STR): Likewise.
50837         (DELIM): Likewise.
50838         (SAVE): Likewise.
50839         (FUNCTION): Likewise.  Do not use BP_SYM.
50840         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
50841         aliases.
50842         (strtok_r): Likewise.
50843         (__GI___strtok_r): Likewise.
50844         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50845         (PARMS): Do not use macros from bp-asm.h.
50846         (S1): Likewise.
50847         (S2): Likewise.
50848         (SIZE): Likewise.
50849         (__mpn_sub_n): Do not use BP_SYM.
50850         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
50851         "bp-asm.h".
50852         (PARMS): Do not use macros from bp-asm.h.
50853         (S1): Likewise.
50854         (SIZE): Likewise.
50855         (__mpn_submul_1): Do not use BP_SYM.
50856         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
50857         <bp-sym.h>.
50858         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
50859         and <bp-asm.h>.
50860         (PARMS): Do not use macros from bp-asm.h.
50861         (FLAGS): Likewise.
50862         (PTID): Likewise.
50863         (TLS): Likewise.
50864         (CTID): Likewise.
50865         (__clone): Do not use BP_SYM.
50866         (clone): Do not use BP_SYM in weak_alias.
50867         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
50868         and <bp-asm.h>.
50869         (PARMS): Do not use macros from bp-asm.h.
50870         (LEN): Likewise.
50871         (__mmap64): Do not use BP_SYM.
50872         (mmap64): Do not use BP_SYM in weak_alias.
50873         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
50874         <bp-sym.h> and <bp-asm.h>.
50875         (PARMS): Do not use macros from bp-asm.h.
50876         (__posix_fadvise64_l64): Do not use BP_SYM.
50877         * sysdeps/unix/sysv/linux/i386/semtimedop.S
50878         (PARMS): Do not use macros from bp-asm.h.
50879         (NSOPS): Likewise.
50880         (semtimedop): Do not use BP_SYM.
50881         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
50882         and <bp-asm.h>.
50883
50884 2013-02-21  Allan McRae  <allan@archlinux.org>
50885
50886         * manual/message.texi (Charset conversion in gettext):
50887         Move @end statement to beginning of line.
50888
50889 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50890
50891         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
50892         static.
50893         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
50894         Likewise.
50895
50896         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
50897         (denorm): Likewise.
50898         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
50899         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
50900
50901 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50902
50903         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
50904         tail-call to the resolved function if pltexit isn't needed.
50905
50906 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50907
50908         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
50909         or Y being zero as being unlikely.
50910         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50911         Likewise.
50912
50913 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
50914
50915         * manual/nss.texi (System Databases and Name Service Switch):
50916         Remove frobnicate @pxref.
50917
50918 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50919
50920         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50921         __attribute__ ((unused)) to __attribute__ ((__unused__)).
50922
50923 2013-02-20  Petr Machata  <pmachata@redhat.com>
50924
50925         * elf/elf.h (R_ARM_TARGET1): New macro.
50926         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
50927         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
50928         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
50929         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
50930         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
50931         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
50932         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
50933         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
50934         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
50935         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
50936         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
50937         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
50938         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
50939         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
50940         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
50941         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
50942         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
50943         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
50944         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
50945         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
50946         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
50947         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
50948         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
50949         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
50950         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
50951         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
50952         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
50953         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
50954         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
50955         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
50956         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
50957         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
50958         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
50959         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
50960         (R_ARM_THM_GOT_BREL12): Likewise.
50961         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
50962         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
50963         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
50964         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
50965         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
50966         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
50967         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
50968         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
50969         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
50970
50971 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50972
50973         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50974         __attribute_used__ to __attribute__ ((unused)).
50975
50976 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
50977
50978         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
50979         powerpc mpa.c.
50980         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
50981         comment formatting.
50982         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
50983
50984 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
50985
50986         [BZ #13550]
50987         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
50988         Remove macro.
50989         (ENTER): Remove both macro definitions.
50990         (LEAVE): Likewise.
50991         (CHECK_BOUNDS_LOW): Likewise.
50992         (CHECK_BOUNDS_HIGH): Likewise.
50993         (CHECK_BOUNDS_BOTH): Likewise.
50994         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
50995         (RETURN_BOUNDED_POINTER): Likewise.
50996         (RETURN_NULL_BOUNDED_POINTER): Likewise.
50997         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
50998         (POP_ERRNO_LOCATION_RETURN): Likewise.
50999         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51000         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51001         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51002         macros.
51003         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51004         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51005         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51006         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51007         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51008         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51009         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51010         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51011         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51012         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51013         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51014         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51015         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51016         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51017         removed macros.
51018         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51019         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51020         macros.
51021         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51022         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51023         * sysdeps/i386/i586/memset.S (memset): Likewise.
51024         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51025         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51026         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51027         macros.
51028         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51029         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51030         Change uses of L(2) to L(out).
51031         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51032         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51033         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51034         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51035         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51036         removed macros.
51037         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51038         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51039         macros.
51040         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51041         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51042         (RETURN): Do not use macro LEAVE.
51043         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51044         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51045         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51046         * sysdeps/i386/i686/memset.S (memset): Likewise.
51047         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51048         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51049         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51050         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51051         Likewise.
51052         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51053         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51054         L(1_2) and L(1_3) into L(1).
51055         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51056         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51057         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51058         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51059         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51060         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51061         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51062         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51063         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51064         macros.
51065         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51066         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51067         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51068         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51069         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51070         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51071         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51072         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51073         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51074         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51075         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51076         * sysdeps/i386/strspn.S (strspn): Likewise.
51077         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51078         conditional code.
51079         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51080         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51081         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51082         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51083         L(1_3) into L(1_1).
51084         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51085         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51086         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51087         macros.
51088         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51089
51090 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51091
51092         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51093         macro.
51094
51095 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51096
51097         * math/atest-exp.c (exp_mpn): Remove ROUND.
51098         * math/atest-exp2.c (exp_mpn): Likewise.
51099         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51100
51101         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51102         * stdlib/tst-tls-atexit-lib.c: Likewise.
51103         * stdlib/tst-tls-atexit.c: Likewise.
51104
51105 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51106
51107         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51108         and __attribute_alloc_size__.
51109
51110 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51111
51112         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51113         __attribute_alloc_size__.
51114         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51115         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51116
51117 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51118
51119         * include/programs/xmalloc.h: New file.
51120         * catgets/gencat.c: Include it.
51121         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51122         * elf/pldd.c: Likewise.
51123         * iconv/iconv_charmap.c: Likewise.
51124         * iconv/iconvconfig.c: Likewise.
51125         * iconv/strtab.c: Likewise.
51126         * locale/programs/locale.c: Likewise.
51127         * locale/programs/localedef.h: Likewise.
51128         * locale/programs/simple-hash.c: Likewise.
51129         * nscd/nscd.h: Likewise.
51130         * nss/makedb.c: Likewise.
51131         * sysdeps/generic/ldconfig.h: Likewise.
51132
51133 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51134
51135         * Versions.def: Add GLIBC_2.18.
51136         * include/link.h (struct link_map): New member l_tls_dtor_count.
51137         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51138         (__call_tls_dtors): Likewise.
51139         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51140         __cxa_thread_atexit_impl.
51141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51142         Likewise.
51143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51144         Likewise.
51145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51146         Likewise.
51147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51148         Likewise.
51149         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51151         Likewise.
51152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51153         Likewise.
51154         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51155         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51156         Likewise.
51157         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51158         (tests): Add test case tst-tls-atexit.
51159         (modules-names): Add shared library for tst-tls-atexit.
51160         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51161         (GLIBC_PRIVATE): Add __call_tls_dtors.
51162         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51163         for libstdc++.
51164         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51165         * stdlib/tst-tls-atexit.c: New test case.
51166         * stdlib/tst-tls-atexit-lib.c: New test case.
51167
51168         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51169
51170         * elf/Versions (ld): Add _dl_find_dso_for_object.
51171         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51172         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51173         (dl_open_worker): Use _dl_find_dso_for_object.
51174         * elf/dl-sym.c (do_sym): Likewise.
51175         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51176
51177 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51178
51179         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51180         Syntactic changes only.
51181         (_dl_runtime_profile): Do a tail-call to the resolved function.
51182
51183 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51184
51185         [BZ #13550]
51186         * sysdeps/x86_64/bp-asm.h: Remove file.
51187         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51188         <bp-sym.h> and <bp-asm.h>.
51189         (__clone): Do not use BP_SYM.
51190         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51191         <bp-sym.h> and <bp-asm.h>.
51192         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51193         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51194         "bp-asm.h".
51195         (_setjmp): Do not use BP_SYM.
51196         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51197         "bp-asm.h".
51198         (setjmp): Do not use BP_SYM.
51199         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51200         libc_hidden_def.
51201         (mempcpy): Do not use BP_SYM in weak_alias.
51202         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51203         "bp-asm.h".
51204         (strchr): Do not use BP_SYM.
51205         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51206         "bp-asm.h".
51207         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51208         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51209         (_start): Do not use BP_SYM.
51210         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51211         "bp-asm.h".
51212         (strcat): Do not use BP_SYM.
51213         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51214         "bp-asm.h".
51215         (STRCMP): Do not use BP_SYM.
51216         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51217         "bp-asm.h".
51218         (STRCPY): Do not use BP_SYM.
51219         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51220         "bp-asm.h".
51221         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51222         "bp-asm.h".
51223         (FUNCTION): Do not use BP_SYM.
51224         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51225         weak_alias.
51226         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51227
51228 2013-02-17  Andreas Jaeger  <aj@suse.de>
51229
51230         * time/Versions: Sort entries.
51231         * string/Versions: Likewise.
51232         * resolv/Versions: Likewise.
51233         * posix/Versions: Likewise.
51234         * iconv/Versions: Likewise.
51235         * elf/Versions: Likewise.
51236         * wcsmbs/Versions: Likewise.
51237
51238 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51239
51240         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51241         loop termination condition.
51242
51243         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51244         variable to calculate EZ.
51245         (__sqr): Likewise.
51246
51247         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51248         the lower precision input.
51249
51250 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51251
51252         [BZ #13550]
51253         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51254         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51255         (run-via-rtld-prefix): Do not handle %-bp tests.
51256         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51257         (all-object-suffixes): Remove .ob.
51258         (bppfx): Remove variable.
51259         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51260         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51261         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51262         [$(build-bounded) = yes] (libtype.ob): Likewise.
51263         * Makerules (elide-routines.ob): Remove variable.
51264         (do-tests-clean): Do not handle *-bp.out.
51265         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51266         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51267         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51268         (tests): Do not include $(tests-bp.out).
51269         (xtests): Do not include $(xtests-bp.out).
51270         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51271         [$(build-bounded) = yes] ($(addprefix
51272         $(objpfx),$(binaries-bounded))): Remove rule.
51273         ($(objpfx)%-bp.out): Remove rule.
51274         * config.make.in (build-bounded): Remove variable.
51275         * crypt/Makefile [$(build-bounded) = yes]
51276         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51277         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51278         append to variable.
51279         [$(build-bounded) = yes] (install-lib): Likewise.
51280         [$(build-bounded) = yes] (generated): Likewise.
51281         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51282         Remove rule.
51283         * intl/Makefile [$(build-bounded) = yes]
51284         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51285         * math/Makefile [$(build-bounded) = yes]
51286         ($(tests:%=$(objpfx)%-bp): Likewise.
51287         * misc/Makefile [$(build-bounded) = yes]
51288         ($(objpfx)tst-tsearch-bp): Likewise.
51289         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51290         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51291         Remove dependency.
51292         * string/Makefile (o-objects.ob): Remove variable.
51293         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51294         (CFLAGS-.ob): Remove variable.
51295         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51296         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51297         both definitions of variable.
51298         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51299         (ASFLAGS-.ob): Remove variable.
51300
51301 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51302
51303         [BZ #13550]
51304         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51305         Remove __BOUNDED_POINTERS__ from condition.
51306         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51307         * string/bits/string2.h [!__NO_STRING_INLINES &&
51308         !__BOUNDED_POINTERS__]: Likewise.
51309         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51310         Likewise.
51311         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51312         Remove conditional code.
51313         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51314         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51315         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51316         condition.
51317
51318         [BZ #13550]
51319         * csu/libc-start.c: Do not include <bp-sym.h>.
51320         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51321         * elf/dl-open.c: Do not include <bp-sym.h>.
51322         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51323         * math/fegetenv.c: Do not include <bp-sym.h>.
51324         (fegetenv): Do not use BP_SYM in versioned symbols.
51325         * nptl/sysdeps/pthread/bits/libc-lockP.h
51326         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51327         <bp-sym.h>.
51328         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51329         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51330         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51331         (__pthread_mutex_destroy): Likewise.
51332         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51333         (__pthread_mutex_lock): Likewise.
51334         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51335         (__pthread_mutex_trylock): Likewise.
51336         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51337         (__pthread_mutex_unlock): Likewise.
51338         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51339         (__pthread_mutexattr_init): Likewise.
51340         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51341         (__pthread_mutexattr_destroy): Likewise.
51342         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51343         (__pthread_mutexattr_settype): Likewise.
51344         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51345         (__pthread_rwlock_init): Likewise.
51346         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51347         (__pthread_rwlock_destroy): Likewise.
51348         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51349         (__pthread_rwlock_rdlock): Likewise.
51350         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51351         (__pthread_rwlock_tryrdlock): Likewise.
51352         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51353         (__pthread_rwlock_wrlock): Likewise.
51354         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51355         (__pthread_rwlock_trywrlock): Likewise.
51356         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51357         (__pthread_rwlock_unlock): Likewise.
51358         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51359         (__pthread_key_create): Likewise.
51360         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51361         (__pthread_setspecific): Likewise.
51362         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51363         (__pthread_getspecific): Likewise.
51364         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51365         Likewise.
51366         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51367         (_pthread_cleanup_push_defer): Likewise.
51368         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51369         (_pthread_cleanup_pop_restore): Likewise.
51370         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51371         (pthread_setcancelstate): Likewise.
51372         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51373         <bp-sym.h>.
51374         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51375         (memchr): Do not use BP_SYM in weak_alias.
51376         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51377         (fegetenv): Do not use BP_SYM in versioned symbols.
51378         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51379         (fesetenv): Do not use BP_SYM in versioned symbols.
51380         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51381         (feupdateenv): Do not use BP_SYM in versioned symbols.
51382         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51383         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51384         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51385         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51386         (open64): Do not use BP_SYM in weak_alias.
51387         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51388         (fegetenv): Do not use BP_SYM in versioned symbols.
51389         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51390         (fesetenv): Do not use BP_SYM in versioned symbols.
51391         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51392         (feupdateenv): Do not use BP_SYM in versioned symbols.
51393         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51394         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51395         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51396         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51397         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51398         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51399         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51400         <bp-sym.h>.
51401         (__libc_start_main): Do not use BP_SYM.
51402
51403 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51404
51405         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51406         redundant return line.
51407         (norm): Likewise.
51408         (denorm): Likewise.
51409         (dbl_mp): Likewise.
51410         (sub_magnitudes): Likewise.
51411         (__add): Likewise.
51412         (__sub): Likewise.
51413         (__mul): Likewise.
51414         (__inv): Likewise.
51415         (__dvd): Likewise.
51416         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51417         (norm): Likewise.
51418         (denorm): Likewise.
51419         (dbl_mp): Likewise.
51420         (sub_magnitudes): Likewise.
51421         (__add): Likewise.
51422         (__sub): Likewise.
51423         (__mul): Likewise.
51424         (__inv): Likewise.
51425         (__dvd): Likewise.
51426
51427         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51428         instead of __mul.
51429         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51430         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51431         (cc32): Likewise.
51432
51433         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51434         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51435         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51436         of __mul for squares.
51437         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51438         function
51439         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51440         Likewise.
51441         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51442         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51443
51444 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51445
51446         [BZ #13550]
51447         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51448         code.
51449         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51450         prototype or function definition.  Rename ubp_* variables and
51451         parameters.  Remove argv definitions conditional on
51452         [__BOUNDED_POINTERS__].
51453         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51454         * elf/dl-runtime.c (_dl_fixup): Likewise.
51455         * include/set-hooks.h (RUN_HOOK): Likewise.
51456         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51457         definition.
51458         * string/strcpy.c (strcpy): Do not use __unbounded.
51459         * sysdeps/generic/frame.h (struct layout): Likewise.
51460         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51461         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51462         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51463         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51464         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51465         (__backtrace): Likewise.
51466         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51467         use __ptrvalue.
51468         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51469         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51470         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51471         Likewise.
51472         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51473         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51474         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51475         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51476         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51477         Do not use __unbounded.
51478         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51479         Rename __unboundedrlimits parameter to rlimits in prototype.
51480         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51481         Do not use __unbounded.
51482         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51483         not use __ptrvalue.
51484         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51485         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51486         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51487         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51488         __ptrvalue or __unbounded.
51489         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51490         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51491         use __unbounded.
51492         (__new_msgctl): Do not use __ptrvalue.
51493         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51494         __unbounded.
51495         (__libc_msgrcv): Do not use __ptrvalue.
51496         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51497         startup_info): Do not use __unbounded.
51498         (__libc_start_main): Likewise.  Rename ubp_* variables and
51499         parameters.  Remove argv definitions conditional on
51500         [__BOUNDED_POINTERS__].
51501         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51502         __ptrvalue.
51503         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51504         use __unbounded.
51505         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51506         or __ptrvalue.
51507         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51508         use __unbounded.
51509         (__new_shmctl): Do not use __ptrvalue.
51510         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51511         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51512         Likewise.
51513         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51514         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51515         (__libc_sigaction): Likewise.
51516         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51517         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51518         Likewise.
51519         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51520
51521 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51522
51523         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51524
51525         * string/mempcpy.c: Implement by calling memcpy.
51526
51527 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51528
51529         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51530
51531         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51532         evaluation.
51533
51534         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51535         values in the mantissa.
51536
51537         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51538         minimize writes to Z.
51539         (sub_magnitudes): Simplify code a bit.
51540
51541 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51542
51543         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51544         from the message.  The linker prefixes all warnings with that already.
51545
51546 2013-02-12  Andreas Schwab  <schwab@suse.de>
51547
51548         [BZ #15078]
51549         * posix/regexec.c (extend_buffers): Add parameter min_len.
51550         (check_matching): Pass minimum needed length.
51551         (clean_state_log_if_needed): Likewise.
51552         (get_subexp): Likewise.
51553         * posix/Makefile (tests): Add bug-regex34.
51554         (bug-regex34-ENV): Define.
51555         * posix/bug-regex34.c: New file.
51556
51557         [BZ #11561]
51558         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51559         elements compare against the byte sequence of it, not its name.
51560         * posix/Makefile (tests): Add bug-regex35.
51561         (bug-regex35-ENV): Define.
51562         * posix/bug-regex35.c: New file.
51563
51564 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51565
51566         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51567         comment.
51568         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51569         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51570         (CHECK_EOL): Add undef.
51571
51572 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51573
51574         * bits/stdlib-bsearch.h: New file.
51575         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51576         * stdlib/stdlib.h: Likewise.
51577
51578 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51579
51580         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51581         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51582         declaration.
51583         * manual/search.texi (Array Search Function): Add missing const in
51584         lfind prototype.
51585         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51586         declaration to use rlim_t.
51587         (Basic Scheduling Functions): Remove erroneous const from
51588         sched_getparam prototype.  Remove erroneous * from
51589         sched_get_priority_max and sched_get_priority_min prototypes.
51590         (Resource Usage): Fix summary @comment on vtimes to refer to
51591         sys/vtimes.h rather than vtimes.h.
51592         Add missing *s in vtimes prototype.
51593         (Limits on Resources): Fix ulimit prototype to return long int.
51594         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51595         prototypes to use long int rather than double.
51596         (BSD Random): Fix initstate and setstate to use char *, not void *.
51597         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51598         prototype to make second argument 'struct aiocb64 *const[]'.
51599         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51600         (Status of AIO Operations): Remove erroneous const in aio_return and
51601         aio_return64 prototypes.
51602         (Synchronizing I/O): Fix sync prototype to return void.
51603         * manual/startup.texi (Suboptions): Remove an erroneous const in
51604         getsubopt prototype.
51605         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51606         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51607         use size_t rather than int.
51608         (Scanning All Users): Likewise for getpwent_r.
51609         (Setting Groups): Add missing const to setgroups prototype.
51610         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51611         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51612         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51613         'const void *' rather than 'const char *'.
51614         (Host Address Functions): Likewise for inet_ntop.
51615         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51616         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51617         ssize_t for return value.
51618         (Sending Data): Likewise for send, sendto, sendmsg.
51619         (Socket Option Functions): Add a missing const in setsockopt prototype.
51620         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51621         use wchar_t for the argument.
51622         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51623         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51624         take no arguments.
51625         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51626         double/float/long double for second argument.
51627         Fix return types of significand, significandf, significandl.
51628         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51629         argument in fchmod prototype.
51630         (File Owner): Use uid_t and gid_t in fchown prototype.
51631         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51632         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51633         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51634         use 'const struct dirent **' as argument types to CMP function pointer
51635         argument.
51636         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51637         (File Times): Fix summary magic @comment for struct utimbuf and utime
51638         to refer to utime.h, not time.h.
51639         * manual/string.texi (Argz Functions): Add missing const in
51640         argz_extract and argz_next prototypes.
51641         (Finding Tokens in a String): Likewise for basename.
51642         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51643         (Copying and Concatenation): Fix typo in wmemmove prototype.
51644         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51645         (Signal Stack): Remove erroneous const in sigstack prototype.
51646         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51647         prototype.
51648         (Simple Calendar Time): Likewise for stime.
51649         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51650         prototype.
51651         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51652         say sys/sysctl.h instead.
51653         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51654         and vsyslog prototypes.
51655
51656 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51657
51658         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51659         Remove.
51660
51661 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51662
51663         * misc/sys/mman.h: Fix typo in mremap comment.
51664
51665 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51666
51667         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51668         the '\0' terminator.
51669
51670 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51671
51672         [BZ #13550]
51673         * debug/segfault.c: Don't include <bp-checks.h>.
51674         * sysdeps/generic/bp-checks.h: Remove file.
51675         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51676         (__GETDENTS): Don't use CHECK_N.
51677         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51678         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51679         (__getgroups): Don't use CHECK_N.
51680         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51681         (setgroups): Don't use CHECK_N.
51682         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51683         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51684         (__libc_msgrcv): Don't use CHECK_N.
51685         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51686         (__libc_msgsnd): Don't use CHECK_N.
51687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51688         <bp-checks.h>.
51689         (__libc_pread): Don't use CHECK_N.
51690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51691         include <bp-checks.h>.
51692         (__libc_pread64): Don't use CHECK_N.
51693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51694         include <bp-checks.h>.
51695         (__libc_pwrite): Don't use CHECK_N.
51696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51697         include <bp-checks.h>.
51698         (__libc_pwrite64): Don't use CHECK_N.
51699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51700         <bp-checks.h>.
51701         (__libc_pread): Don't use CHECK_N.
51702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51703         include <bp-checks.h>.
51704         (__libc_pread64): Don't use CHECK_N.
51705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51706         include <bp-checks.h>.
51707         (__libc_pwrite): Don't use CHECK_N.
51708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51709         include <bp-checks.h>.
51710         (__libc_pwrite64): Don't use CHECK_N.
51711         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51712         (do_pread): Don't use CHECK_N.
51713         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51714         (do_pread64): Don't use CHECK_N.
51715         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51716         (do_pwrite): Don't use CHECK_N.
51717         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51718         (do_pwrite64): Don't use CHECK_N.
51719         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51720         (__libc_readv): Don't use CHECK_N.
51721         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51722         (semop): Don't use CHECK_N.
51723         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51724         <bp-checks.h>.
51725         (semtimedop): Don't use CHECK_N.
51726         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51727         (__libc_pread): Don't use CHECK_N.
51728         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51729         <bp-checks.h>.
51730         (__libc_pread64): Don't use CHECK_N.
51731         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51732         <bp-checks.h>.
51733         (__libc_pwrite): Don't use CHECK_N.
51734         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51735         <bp-checks.h>.
51736         (__libc_pwrite64): Don't use CHECK_N.
51737         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51738         <bp-checks.h>.
51739         (__libc_msgrcv): Don't use CHECK_N.
51740         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51741         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51742         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51743         (__libc_writev): Don't use CHECK_N.
51744
51745 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51746
51747         * string/strcpy.c: Removed unused variable.
51748
51749         * Makeconfig (+sysdep-includes): Define with := rather than =.
51750         Use an existing include/ subdir of each sysdeps dir before it.
51751
51752 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51753
51754         * nscd/connection.c (register_traced_file): Comment function.
51755         [HAVE_INOTIFY] (union __inev): Define.
51756         [HAVE_INOTIFY] (inotify_check_files): New function.
51757         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51758         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51759         clear_db_cache.
51760         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51761
51762 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51763
51764         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
51765         loaded if not already and that a failure is permanent.
51766
51767 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51768
51769         [BZ #15006]
51770         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
51771         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
51772
51773 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51774
51775         [BZ #13550]
51776         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
51777         (CHECK_1_NULL_OK): Likewise.
51778         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
51779         (__fxstat): Do not use CHECK_1.
51780         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
51781         <bp-checks.h>.
51782         (___fxstat64): Do not use CHECK_1.
51783         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
51784         <bp-checks.h>.
51785         (__fxstatat): Do not use CHECK_1.
51786         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
51787         <bp-checks.h>.
51788         (__fxstatat64): Do not use CHECK_1.
51789         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
51790         <bp-checks.h>.
51791         (__fxstat): Do not use CHECK_1.
51792         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
51793         <bp-checks.h>.
51794         (__fxstatat): Do not use CHECK_1.
51795         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
51796         <bp-checks.h>.
51797         (__getresgid): Do not use CHECK_1.
51798         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
51799         <bp-checks.h>.
51800         (__getresuid): Do not use CHECK_1.
51801         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
51802         <bp-checks.h>.
51803         (__lxstat): Do not use CHECK_1.
51804         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
51805         <bp-checks.h>.
51806         (__old_msgctl): Do not use CHECK_1.
51807         (__new_msgctl): Likewise.
51808         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
51809         <bp-checks.h>.
51810         (__new_setrlimit): Do not use CHECK_1.
51811         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
51812         <bp-checks.h>.
51813         (__old_shmctl): Do not use CHECK_1.
51814         (__new_shmctl): Likewise.
51815         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
51816         <bp-checks.h>.
51817         (__xstat): Do not use CHECK_1.
51818         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
51819         (__lxstat): Do not use CHECK_1.
51820         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
51821         <bp-checks.h>.
51822         (___lxstat64): Do not use CHECK_1.
51823         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
51824         (__old_msgctl): Do not use CHECK_1.
51825         (__new_msgctl): Likewise.
51826         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
51827         <bp-checks.h>.
51828         (__gettimeofday): Do not use CHECK_1.
51829         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
51830         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
51831         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
51832         <bp-checks.h>.
51833         (__gettimeofday): Do not use CHECK_1.
51834         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
51835         (__old_shmctl): Do not use CHECK_1_NULL_OK.
51836         (__new_shmctl): Do not use CHECK_1.
51837         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
51838         <bp-checks.h>.
51839         (do_sigtimedwait): Do not use CHECK_1.
51840         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
51841         <bp-checks.h>.
51842         (do_sigwaitinfo): Do not use CHECK_1.
51843         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
51844         <bp-checks.h>.
51845         (msgctl): Do not use CHECK_1.
51846         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
51847         <bp-checks.h>.
51848         (shmctl): Do not use CHECK_1.
51849         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
51850         (ustat): Do not use CHECK_1.
51851         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
51852         <bp-checks.h>.
51853         (__fxstat): Do not use CHECK_1.
51854         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
51855         <bp-checks.h>.
51856         (__fxstatat): Do not use CHECK_1.
51857         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
51858         <bp-checks.h>.
51859         (__lxstat): Do not use CHECK_1.
51860         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
51861         <bp-checks.h>.
51862         (__xstat): Do not use CHECK_1.
51863         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
51864         (__xstat): Do not use CHECK_1.
51865         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
51866         (___xstat64): Do not use CHECK_1.
51867
51868         [BZ #13550]
51869         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
51870         definitions.
51871         (CHECK_BOUNDS_HIGH): Likewise.
51872         * string/strcpy.c: Do not include <bp-checks.h>.
51873         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
51874
51875 2013-02-07  Roland McGrath  <roland@hack.frob.com>
51876
51877         * nscd/nscd-client.h (__nscd_drop_map_ref):
51878         Add __attribute__ ((unused)).
51879         * nis/nss-nisplus.h (niserr2nss): Likewise.
51880
51881         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
51882         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
51883
51884         * csu/libc-tls.c (init_static_tls, init_slotinfo):
51885         Remove inline keyword.
51886         * include/rounding-mode.h (round_away): Likewise.
51887         * libio/wfileops.c (adjust_wide_data): Likewise.
51888         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
51889         (__m128i_strloadu_tolower): Likewise.
51890         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
51891         (__m128i_strloadu_tolower): Likewise.
51892         * time/mktime.c (ydhms_diff): Likewise.
51893         * locale/elem-hash.h (elem_hash): Likewise.
51894         * locale/setlocale.c (setdata): Likewise.
51895         * posix/regex_internal.h (re_string_char_size_at): Likewise.
51896         (re_string_wchar_at): Likewise.
51897         (bitset_not, bitset_merge, bitset_mask): Likewise.
51898         [!(__GNUC__ > 3)] (inline): Remove macro.
51899         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
51900         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
51901         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
51902         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
51903         * string/memcmp.c (memcmp_bytes): Likewise.
51904         * locale/programs/locarchive.c (compute_hashval): Likewise.
51905         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
51906         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
51907         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
51908         * nss/getent.c (print_rpc, print_protocols): Likewise.
51909         (print_passwd, print_group, print_aliases): Likewise.
51910         * nis/nss-nisplus.h (niserr2nss): Likewise.
51911         * nscd/connections.c (restart_p): Likewise.
51912         Change return type to bool.
51913
51914 2013-02-05  Roland McGrath  <roland@hack.frob.com>
51915
51916         * Makeconfig (all-Depend-files): Add existing
51917         $(sorted-subdirs:=/Depend) files.
51918         (all-subdirs): Remove nss.
51919         * sysdeps/unix/inet/Subdirs: Add it here instead.
51920         * hesiod/Depend: New file.
51921
51922         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
51923         instead of calling alloca.
51924
51925         * io/lseek.c (__lseek): Rename to __libc_lseek.
51926         Define __lseek as an alias.
51927
51928         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
51929
51930 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
51931
51932         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
51933         else clause and remove check for non-standard endianness.
51934
51935 2013-02-04  David S. Miller  <davem@davemloft.net>
51936
51937         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51938
51939 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
51940
51941         [BZ #13550]
51942         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
51943         (__ubp_memchr): Remove prototype.
51944         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
51945         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51946         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
51947         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51948         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
51949         Remove alias.
51950         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
51951         (__ubp_memchr): Likewise.
51952         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
51953         (__ubp_memchr): Likewise.
51954         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
51955         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
51956         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
51957         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
51958         CHECK_STRING.
51959         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51960         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
51961         (__getcwd): Do not use CHECK_STRING.
51962         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
51963         <bp-checks.h>.
51964         (__real_chown): Do not use CHECK_STRING.
51965         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
51966         <bp-checks.h>.
51967         (fchownat): Do not use CHECK_STRING.
51968         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
51969         CHECK_STRING.
51970         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
51971         <bp-checks.h>.
51972         (__lchown): Do not use CHECK_STRING.
51973         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51974         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51975         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51976         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
51977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
51978         include <bp-checks.h>.
51979         (truncate64): Do not use CHECK_STRING.
51980         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
51981         <bp-checks.h>.
51982         (__real_chown): Do not use CHECK_STRING.
51983         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
51984         <bp-checks.h>.
51985         (__lchown): Do not use CHECK_STRING.
51986         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
51987         <bp-checks.h>.
51988         (__chown): Do not use CHECK_STRING.
51989         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
51990         <bp-checks.h>.
51991         (truncate64): Do not use CHECK_STRING.
51992         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
51993         Likewise.
51994         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
51995         (__xmknod): Do not use CHECK_STRING.
51996         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
51997         <bp-checks.h>.
51998         (__xmknodat): Do not use CHECK_STRING.
51999         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52000         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52001
52002 2013-02-04  Andreas Schwab  <schwab@suse.de>
52003
52004         [BZ #14142]
52005         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52006         * include/netdb.h: Likewise for h_errno.
52007         * elf/tst-stackguard1.c: Include <tls.h>.
52008
52009 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52010
52011         * elf/link.h (struct link_map): Extend the l_addr comment.
52012         * include/link.h (struct link_map): Likewise.
52013
52014 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52015
52016         [BZ #13550]
52017         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52018         (BOUNDED_1): Remove macro.
52019         * debug/backtrace.c: Don't include <bp-checks.h>.
52020         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52021         (__backtrace): Likewise.
52022         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52023         <bp-checks.h>.
52024         (__backtrace): Don't use BOUNDED_1.
52025         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52026         <bp-checks.h>.
52027         (__backtrace): Don't use BOUNDED_1.
52028         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52029         (__backtrace): Don't use BOUNDED_1.
52030         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52031         (shmat): Don't use BOUNDED_N.
52032
52033 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52034
52035         [BZ #13550]
52036         * sysdeps/generic/bp-start.h: Remove file.
52037         * csu/libc-start.c: Don't include <bp-start.h>.
52038         (LIBC_START_MAIN): Set up __environ directly instead of using
52039         INIT_ARGV_and_ENVIRON.
52040         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52041         <bp-start.h>.
52042
52043         [BZ #13550]
52044         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52045         definitions.
52046         (CHECK_FCNTL): Likewise.
52047         (CHECK_N_PAGES): Likewise.
52048
52049         [BZ #13550]
52050         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52051         definitions.
52052         (CHECK_SIGSET_NULL_OK): Likewise.
52053         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52054         <bp-checks.h>.
52055         (sigpending): Don't use CHECK_SIGSET.
52056         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52057         <bp-checks.h>.
52058         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52059         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52060         <bp-checks.h>.
52061         (do_sigsuspend): Don't use CHECK_SIGSET.
52062         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52063         use CHECK_SIGSET.
52064         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52065         (do_sigwait): Don't use CHECK_SIGSET.
52066         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52067         use CHECK_SIGSET.
52068         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52069         include <bp-checks.h>.
52070         (sigpending): Don't use CHECK_SIGSET.
52071         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52072         include <bp-checks.h>.
52073         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52074         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52075         <bp-checks.h>.
52076         (sigpending): Don't use CHECK_SIGSET.
52077         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52078         <bp-checks.h>.
52079         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52080
52081         [BZ #13550]
52082         * sysdeps/generic/bp-semctl.h: Remove file.
52083         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52084         <bp-checks.h> and <bp-semctl.h>.
52085         (__old_semctl): Don't use CHECK_SEMCTL.
52086         (__new_semctl): Likewise.
52087         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52088         and <bp-semctl.h>.
52089         (__old_semctl): Don't use CHECK_SEMCTL.
52090         (__new_semctl): Likewise.
52091         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52092         <bp-checks.h> and <bp-semctl.h>.
52093         (__old_semctl): Don't use CHECK_SEMCTL.
52094         (__new_semctl): Likewise.
52095         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52096         <bp-checks.h> and <bp-semctl.h>.
52097         (semctl): Don't use CHECK_SEMCTL.
52098
52099         [BZ #13550]
52100         * Makerules (elide-bp-thunks): Remove variable.
52101         (elide-routines.oS): Don't use $(elide-bp-thunks).
52102         (elide-routines.os): Likewise.
52103         (elide-routines.o): Likewise.
52104         (elide-routines.op): Likewise.
52105         (elide-routines.og): Likewise.
52106         (objects): Don't use $(bp-thunks).
52107         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52108         include.
52109         (common-generated): Do not add s-proto-bp.d.
52110         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52111         (int): Likewise.
52112         (typ): Likewise.
52113         Do not generate makefile rules for bounded-pointer thunks.
52114         * sysdeps/generic/bp-thunks.h: Remove file.
52115         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52116         * sysdeps/unix/s-proto-bp.S: Likewise.
52117
52118         [BZ #15062]
52119         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52120         parts of result separately when argument is not close to line from
52121         -i to i and one part of argument is small.
52122         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52123         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52124         * math/libm-test.inc (cacos_test): Add more tests.
52125         (casin_test): Likewise.
52126         (casinh_test): Likewise.
52127         * sysdeps/i386/fpu/libm-test-ulps: Update.
52128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52129
52130 2013-01-31  David S. Miller  <davem@davemloft.net>
52131
52132         * po/de.po: Update from translation team.
52133
52134 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52135
52136         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52137
52138 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52139
52140         * configure.in (_AC_PROG_CC_C89): New definition.
52141         * configure: Regenerate.
52142
52143         * configure.in (AC_PROG_CPP): New definition.
52144         * configure: Regenerate.
52145
52146 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52147
52148         * debug/tst-backtrace.h: New file.
52149         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52150         (ret): Remove variable.
52151         (x): Likewise.
52152         (FAIL): Remove macro.
52153         (NO_INLINE): Likewise.
52154         (fn1): Use match function instead of strstr.
52155         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52156         (ret): Remove variable.
52157         (x): Likewise.
52158         (FAIL): Remove macro.
52159         (NO_INLINE): Likewise.
52160         (fn): Use match function instead of strstr.
52161         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52162         (ret): Remove variable.
52163         (x): Likewise.
52164         (FAIL): Remove macro.
52165         (NO_INLINE): Likewise.
52166         (handle_signal): Use match function instead of strstr.
52167         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52168         (ret): Remove variable.
52169         (x): Likewise.
52170         (FAIL): Remove macro.
52171         (NO_INLINE): Likewise.
52172         (handle_signal): Use match function instead of strstr.
52173
52174 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52175
52176         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52177
52178 2013-01-23  David S. Miller  <davem@davemloft.net>
52179
52180         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52181         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52182         argument of CAS if possible.
52183         * sysdeps/sparc/sparc64/bits/atomic.h
52184         (__arch_compare_and_exchange_val_32_acq): Likewise.
52185         (__arch_compare_and_exchange_val_64_acq): Likewise.
52186
52187 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52188
52189         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52190         * sysdeps/posix/ulimit.c: ... this.
52191         Include <limits.h>.
52192         * sysdeps/unix/bsd/ulimit.c: Remove file.
52193
52194 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52195
52196         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52197         (LDFLAGS-tst-array5): Likewise.
52198
52199 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52200
52201         [BZ #15036]
52202         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52203         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52204         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52205         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52206
52207 2013-01-21  David S. Miller  <davem@davemloft.net>
52208
52209         * sysdeps/sparc/backtrace.c: New file.
52210         * sysdeps/sparc/sparc32/backtrace.h: New file.
52211         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52212         * sysdeps/sparc/sparc64/backtrace.h: New file.
52213         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52214         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52215         -funwind-tables.
52216
52217 2013-01-21  Andreas Schwab  <schwab@suse.de>
52218
52219         [BZ #15020]
52220         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52221         closed its stdout.
52222
52223 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52224
52225         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52226         "mpa2.h".
52227         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52228
52229 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52230             Mark Mitchell  <mark@codesourcery.com>
52231             Tom de Vries  <tom@codesourcery.com>
52232             Paul Pluzhnikov  <ppluzhnikov@google.com>
52233
52234         * debug/tst-backtrace2.c: New file.
52235         * debug/tst-backtrace3.c: Likewise.
52236         * debug/tst-backtrace4.c: Likewise.
52237         * debug/tst-backtrace5.c: Likewise.
52238         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52239         (CFLAGS-tst-backtrace3.c): Likewise.
52240         (CFLAGS-tst-backtrace4.c): Likewise.
52241         (CFLAGS-tst-backtrace5.c): Likewise.
52242         (LDFLAGS-tst-backtrace2): Likewise.
52243         (LDFLAGS-tst-backtrace3): Likewise.
52244         (LDFLAGS-tst-backtrace4): Likewise.
52245         (LDFLAGS-tst-backtrace5): Likewise.
52246         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52247         tst-backtrace4 and tst-backtrace5.
52248
52249 2013-01-18  Anton Blanchard  <anton@samba.org>
52250             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52251
52252         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52253         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52254         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52255         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52257         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52258         "+r" and remove output regs list as redundant.  Add explicit inline
52259         asm to specify register of return val to work around compiler codegen
52260         bug.  Remove (int) cast on return value.  Add return type parameter to
52261         use in macro so that this macro does not truncate return value for
52262         64-bit values.
52263         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52264         pass to INTERNAL_VSYSCALL_NCS.
52265         (INLINE_VSYSCALL): Add 'long int' as return type to
52266         INTERNAL_VSYSCALL_NCS macro invocation.
52267         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52268         INTERNAL_VSYSCALL_NCS macro invocation.
52269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52270
52271 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52272
52273         [BZ #14496]
52274         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52275         Fix application of SIMD FP exception mask.
52276
52277         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52278         mp_no from a power of two.
52279         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52280         __mpexp_twomm1.  Use __pow_mp.
52281
52282         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52283         multiplication.
52284
52285 2013-01-17  David S. Miller  <davem@davemloft.net>
52286
52287         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52288
52289 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52290
52291         [BZ #15023]
52292         * include/complex.h: Condition contents on [!_COMPLEX_H].
52293         (__kernel_casinhf): New prototype.
52294         (__kernel_casinh): Likewise.
52295         (__kernel_casinhl): Likewise.
52296         * math/Makefile (libm_calls): Add k_casinh.
52297         * math/k_casinh.c: New file.
52298         * math/k_casinhf.c: Likewise.
52299         * math/k_casinhl.c: Likewise.
52300         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52301         finite nonzero arguments.
52302         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52303         finite nonzero arguments.
52304         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52305         finite nonzero arguments.
52306         * math/s_casinh.c: Do not include <float.h>.
52307         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52308         * math/s_casinhf.c: Do not include <float.h>.
52309         (__casinhf): Move code for finite nonzero arguments to
52310         k_casinhf.c.
52311         * math/s_casinhl.c: Do not include <float.h>.
52312         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52313         redefine.
52314         (__casinhl): Move code for finite nonzero arguments to
52315         k_casinhl.c.
52316         * math/libm-test.inc (cacos_test): Add more tests.
52317         * sysdeps/i386/fpu/libm-test-ulps: Update.
52318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52319
52320 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52321
52322         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52323         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52324         [!HAVE_MREMAP]: Remove [defined linux] case.
52325         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52326
52327 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52328
52329         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52330
52331 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52332
52333         * elf/elf.h (R_386_SIZE32): New relocation.
52334         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52335         R_386_SIZE32.
52336         (elf_machine_rela): Likewise.
52337         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52338         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52339
52340 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52341
52342         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52343         (FP_FAST_FMA): Do not define.
52344         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52345         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52346         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52347         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52348         !_SOFT_FLOAT]: Likewise.
52349         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52350         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52351         value.
52352         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52353         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52354         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52355         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52356         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52357         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52358         file.
52359
52360 2013-01-16  Andreas Schwab  <schwab@suse.de>
52361
52362         [BZ #14327]
52363         * include/stdlib.h (__mktemp): Add declaration.
52364         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52365         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52366
52367 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52368
52369         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52370         definitions.
52371         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52372         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52373         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52374         definitions here.
52375         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52376         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52377         definitions.
52378         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52379         and ONE.
52380         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52381         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52382         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52383         definitions.
52384         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52385         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52386         definitions.
52387         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52388
52389         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52390
52391 2013-01-15  David S. Miller  <davem@davemloft.net>
52392
52393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52394         trunc{,f} to libm-sysdep_routes.
52395         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52397         file.
52398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52400         file.
52401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52402         file.
52403         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52404         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52405         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52406         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52407         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52408         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52409         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52410         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52411
52412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52413         nearbyint{,f} to libm-sysdep_routes.
52414         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52416         New file.
52417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52418         file.
52419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52420         New file.
52421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52422         file.
52423         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52424         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52425         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52426         file.
52427         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52428         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52429         file.
52430         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52431         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52432         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52433
52434         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52435         libc_feholdexcept and libc_fesetenv.
52436
52437 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52438
52439         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52440
52441 2013-01-14  David S. Miller  <davem@davemloft.net>
52442
52443         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52444         (SPARC_ASM_VIS2_IFUNC): Likewise.
52445         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52447         use of 'siam' instruction.
52448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52449         Likewise.
52450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52451         Likewise.
52452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52453         Likewise.
52454         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52455         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52456         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52457         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52459         file.
52460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52461         file.
52462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52463         file.
52464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52465         file.
52466         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52468         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52469         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52471         new VIS2 routines.
52472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52475         Likewise.
52476         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52477         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52478         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52479         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52481         routines to libm-sysdep_routines.
52482         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52483
52484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52485         fdim/fdimf to libm-sysdep_routines.
52486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52487         file.
52488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52490         file.
52491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52492         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52494         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52495         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52496         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52497         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52498
52499 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52500
52501         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52502         to optimize copies.
52503
52504         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52505         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52506         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52507
52508         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52509         local variable MPTWO.
52510         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52511         Likewise.
52512
52513 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52514
52515         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52516         GLOB_NOESCAPE.
52517
52518 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52519
52520         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52521
52522 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52523
52524         * manual/pattern.texi (glob_t): Document gl_flags.
52525         (glob64_t): Likewise.
52526
52527 2013-01-11  David S. Miller  <davem@davemloft.net>
52528
52529         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52530         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52531         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52532         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52533         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52534         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52535         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52536         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52537         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52538         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52539         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52540         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52541         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52542
52543         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52544         sparc V9 rather than using V8 code.
52545         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52546         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52547
52548         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52549         Move to...
52550         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52551         Here.
52552
52553 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52554
52555         [BZ #14941]
52556         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52557         not in the main loop.
52558         * configure: Regenerated.
52559
52560 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52561
52562         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52563         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52564         to just #else.
52565         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52566         [!__GLIBC_HAVE_LONG_LONG] case.
52567         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52568         condition to just #else.
52569         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52570         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52571         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52572         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52573         unconditional.
52574         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52575         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52576         #elif condition to just #else.
52577         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52578         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52579         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52580         #elif condition to just #else.
52581
52582 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52583
52584         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52585         (EF_MIPS_ARCH_64): Fix value.
52586         (EF_MIPS_ARCH_32R2): New.
52587         (EF_MIPS_ARCH_64R2): New.
52588
52589 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52590
52591         * Makeconfig (+link-pie-before-libc): New.
52592         (+link-pie-after-libc): Likewise.
52593         (+link-pie-tests): Likewise.
52594         (+link-pie): Rewritten.
52595         (link-before-libc): Remove $(config-LDFLAGS).
52596         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52597         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52598         (config-LDFLAGS): Renamed to ...
52599         (rtld-LDFLAGS): This.
52600         (rtld-tests-LDFLAGS): New macro.
52601         (link-libc-rpath-link): Likewise.
52602         (link-libc-tests-rpath-link): Likewise.
52603         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52604         (link-libc): Prepand $(link-libc-rpath-link).
52605         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52606         (test-program-prefix): New macro.
52607         (test-via-rtld-prefix): Likewise.
52608         (test-program-cmd): Likewise.
52609         (host-test-program-cmd): Likewise.
52610         * Makefile ($(common-objpfx)testrun.sh): Replace
52611         $(run-program-prefix) with $(test-program-prefix).
52612         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52613         $(rtld-LDFLAGS).
52614         ($(common-objpfx)shlib.lds): Likewise.
52615         (build-module-helper): Likewise.
52616         ($(common-objpfx)format.lds): Likewise.
52617         * Rules (binaries-pie-tests): New.
52618         (binaries-pie-notests): Likewise.
52619         (binaries-pie): Rewritten.
52620         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52621         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52622         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52623         (make-test-out): Replace $(host-built-program-cmd) with
52624         $(host-test-program-cmd).
52625         * config.make.in (build-hardcoded-path-in-tests): New variable.
52626         * configure.in (--enable-hardcoded-path-in-tests): New configure
52627         option.
52628         (hardcoded_path_in_tests): New AC_SUBST.
52629         * configure: Regenerated.
52630         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52631         $(built-program-cmd) with $(test-program-cmd).
52632         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52633         (test_program_cmd): This.
52634         * elf/Makefile ($(objpfx)order.out): Run test with
52635         $(test-program-prefix).
52636         ($(objpfx)order2.out): Likewise.
52637         ($(objpfx)tst-initorder.out): Likewise.
52638         ($(objpfx)tst-initorder2.out): Likewise.
52639         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52640         $(test-program-cmd).
52641         ($(objpfx)tst-array1-static.out): Likewise.
52642         ($(objpfx)tst-array2.out): Likewise.
52643         ($(objpfx)tst-array3.out): Likewise.
52644         ($(objpfx)tst-array4.out): Likewise.
52645         ($(objpfx)tst-array5.out): Likewise.
52646         ($(objpfx)tst-array5-static.out): Likewise.
52647         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52648         $(test-program-cmd).
52649         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52650         $(run-program-prefix) with $(test-program-prefix).
52651         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52652         (test_program_prefix): This.
52653         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52654         $(run-program-prefix) with $(test-program-prefix).
52655         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52656         (test_program_prefix): This.
52657         * iconvdata/tst-tables.sh: Likewise.
52658         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52659         $(run-program-prefix) with $(test-program-prefix).
52660         ($(objpfx)tst-translit.out): Likewise.
52661         ($(objpfx)tst-gettext2.out): Likewise.
52662         ($(objpfx)tst-gettext4.out): Likewise.
52663         ($(objpfx)tst-gettext6.out): Likewise.
52664         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52665         (test_program_prefix): This.
52666         * intl/tst-gettext2.sh: Likewise.
52667         * intl/tst-gettext4.sh  Likewise.
52668         * intl/tst-gettext6.sh: Likewise.
52669         * intl/tst-translit.sh: Likewise.
52670         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52671         with $(test-program-cmd).
52672         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52673         $(run-program-prefix) with $(test-program-prefix).
52674         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52675         (test_program_prefix): This.
52676         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52677         $(run-program-prefix) with $(test-program-prefix).
52678         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52679         (test_program_prefix): This.
52680         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52681         * posix/Makefile ($(objpfx)globtest.out): Replace
52682         $(run-via-rtld-prefix) and $(test-wrapper) with
52683         $(test-program-prefix) and $(test-via-rtld-prefix).
52684         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52685         $(test-program-prefix).
52686         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52687         $(host-test-program-cmd).
52688         (tst-spawn-ARGS): Likewise.
52689         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52690         $(test-program-prefix).
52691         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52692         (test_via_rtld_prefix): This.
52693         (test_wrapper): Renamed to ...
52694         (test_program_prefix): This.
52695         (run_program_prefix): Replaced by test_program_prefix.
52696         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52697         (test_program_prefix): This.
52698         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52699         with $(host-test-program-cmd).
52700         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52701         $(run-program-prefix) with $(test-program-prefix).
52702         ($(objpfx)tst-printf.out): Likewise.
52703         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52704         $(test-program-cmd).
52705         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52706         (test_program_prefix): This.
52707         * stdio-common/tst-unbputc.sh: Likewise.
52708         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52709         $(run-program-prefix) with $(test-program-prefix).
52710         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52711         (test_program_prefix): This.
52712         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52713         $(built-program-cmd) with $(test-program-cmd).
52714
52715 2013-01-11  Andreas Jaeger  <aj@suse.de>
52716
52717         [BZ #15003]
52718         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52719         value. Sync with Linux 3.7.
52720
52721 2013-01-10  David S. Miller  <davem@davemloft.net>
52722
52723         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52724         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52725         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52726
52727 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52728
52729         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52730         never set.
52731         * configure: Regenerated.
52732
52733 2013-01-10  David S. Miller  <davem@davemloft.net>
52734
52735         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52736         sparc V9 rather than using V8 code.
52737         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52738         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52739
52740 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52741
52742         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52743         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52744         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52745         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52746         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52747         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52748         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52749         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52750         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52751         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52752         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52753         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52754         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52755         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52756         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52757         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52758         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52759         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52760         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52761         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52762         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52763         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
52764         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
52765         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
52766         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
52767         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
52768         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
52769
52770 2013-01-10  David S. Miller  <davem@davemloft.net>
52771
52772         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52773
52774 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52775
52776         * posix/Makefile (tests-static): New variable.
52777         (tests): Add $(tests-static).
52778         (tst-exec-static-ARGS): New variable.
52779         (tst-spawn-static-ARGS): Likewise.
52780         * posix/tst-exec-static.c: New file.
52781         * posix/tst-spawn-static.c: Likewise.
52782         * posix/tst-exec.c: Support run directly.
52783         * posix/tst-spawn.c: Likewise.
52784
52785 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
52786
52787         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
52788         long.
52789         * math/bits/mathcalls.h (llrint): Likewise.
52790         (llround): Likewise.
52791         * stdlib/stdlib.h (struct drand48_data): Likewise.
52792         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
52793         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
52794         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
52795         Likewise.
52796         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
52797         Likewise.
52798         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
52799         (elf_greg_t): Likewise.
52800         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
52801         (__jmp_buf): Likewise.
52802         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
52803         definitions.
52804         (llrint): Likewise, for all definitions.
52805         (llrintl): Likewise.
52806
52807         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
52808         Remove [__GNUC__] condition.
52809         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
52810         condition to just [__USE_ISOC99].
52811         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
52812
52813 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52814
52815         [BZ #14200]
52816         * sysdeps/unix/sysv/linux/x86/bits/environments.h
52817         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
52818         defined.
52819         (_POSIX_V6_ILP32_OFF32): Likewise.
52820         (_XBS5_ILP32_OFF32): Likewise.
52821         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
52822         (__ILP32_OFFBIG_LDFLAGS): Likewise.
52823
52824 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52825
52826         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
52827
52828         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
52829         doubles __mpexp_twomm1.  Adjust usage.
52830         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
52831         Remove.
52832
52833 2013-01-10  Andreas Schwab  <schwab@suse.de>
52834
52835         [BZ #14964]
52836         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
52837         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
52838
52839 2013-01-09  David S. Miller  <davem@davemloft.net>
52840
52841         [BZ #15003]
52842         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
52843         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
52844         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
52845         (TCP_FASTOPEN): Define.
52846         (tcp_repair_opt): New structure.
52847         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
52848         enum values.
52849         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
52850         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
52851         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
52852         (tcp_cookie_transactions): New structure.
52853
52854 2013-01-09  Anton Blanchard  <anton@samba.org>
52855
52856         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
52857         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
52858         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
52859         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
52860
52861 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
52862
52863         * include/features.h (__USE_ANSI): Remove.
52864
52865 2013-01-09  Roland McGrath  <roland@hack.frob.com>
52866
52867         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
52868
52869         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
52870
52871 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
52872
52873         * sysdeps/s390/fpu/libm-test-ulps: Update.
52874
52875         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52876
52877         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
52878         (__acr): Likewise.
52879         (__cpy): Likewise.
52880         (norm): Likewise.
52881         (denorm): Likewise.
52882         (__mp_dbl): Likewise.
52883         (__dbl_mp): Likewise.
52884         (add_magnitudes): Likewise.
52885         (sub_magnitudes): Likewise.
52886         (__add): Likewise.
52887         (__sub): Likewise.
52888         (__mul): Likewise.
52889         (__inv): Likewise.
52890         (__dvd): Likewise.
52891         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
52892         (__acr): Likewise.
52893         (__cpy): Likewise.
52894         (norm): Likewise.
52895         (denorm): Likewise.
52896         (__mp_dbl): Likewise.
52897         (__dbl_mp): Likewise.
52898         (add_magnitudes): Likewise.
52899         (sub_magnitudes): Likewise.
52900         (__add): Likewise.
52901         (__sub): Likewise.
52902         (__mul): Likewise.
52903         (__inv): Likewise.
52904         (__dvd): Likewise.
52905         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
52906         (__acr): Likewise.
52907         (__cpy): Likewise.
52908         (norm): Likewise.
52909         (denorm): Likewise.
52910         (__mp_dbl): Likewise.
52911         (__dbl_mp): Likewise.
52912         (add_magnitudes): Likewise.
52913         (sub_magnitudes): Likewise.
52914         (__add): Likewise.
52915         (__sub): Likewise.
52916         (__mul): Likewise.
52917         (__inv): Likewise.
52918         (__dvd): Likewise.
52919
52920 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
52921
52922         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
52923         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
52924         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
52925         2 && __USE_EXTERN_INLINES]: Likewise.
52926
52927 2013-01-08  Andreas Jaeger  <aj@suse.de>
52928
52929         [BZ# 14985]
52930         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
52931         Remove.
52932         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52933         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52934
52935 2013-01-07  Anton Blanchard  <anton@samba.org>
52936
52937         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
52938         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52939         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
52940         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52941         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
52942         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52943         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
52944         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
52945         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52946         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
52947         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52948         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52949         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
52950         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52951         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
52952         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52953         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52954         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52955         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
52956         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
52957         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
52958         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
52959         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
52960         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
52961         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
52962         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
52963         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
52964         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52965         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
52966         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
52967         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
52968         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52969         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
52970         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52971         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52972         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
52973         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52974         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
52975         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
52976         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52977         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
52978         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
52979         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52980
52981 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
52982
52983         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
52984         (__MALLOC_PMT): Likewise.
52985         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
52986         [__GNUC__], only on [_LIBC].
52987         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52988         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
52989         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52990         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
52991         forward declaration.
52992         (realloc_hook_ini): Likewise.
52993         (memalign_hook_ini): Likewise.
52994         (__libc_memalign): Do not use __MALLOC_PMT in variable
52995         declaration.
52996         (__libc_valloc): Likewise.
52997         (__libc_pvalloc): Likewise.
52998         (__libc_calloc): Likewise.
52999         (__posix_memalign): Likewise.
53000
53001         [BZ #14996]
53002         * math/s_casinh.c: Include <float.h>.
53003         (__casinh): Do not do computation with squaring and square root
53004         for large arguments.
53005         * math/s_casinhf.c: Include <float.h>.
53006         (__casinhf): Do not do computation with squaring and square root
53007         for large arguments.
53008         * math/s_casinhl.c: Include <float.h>.
53009         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53010         (__casinhl): Do not do computation with squaring and square root
53011         for large arguments.
53012         * math/libm-test.inc (casin_test): Add more tests.
53013         (casinh_test): Likewise.
53014         * sysdeps/i386/fpu/libm-test-ulps: Update.
53015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53016
53017 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53018
53019         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53020         (__x86_64_raw_data_cache_size): Likewise.
53021         (__x86_64_data_cache_size_half): Likewise.
53022         (__x86_64_raw_data_cache_size_half): Likewise.
53023         (__x86_64_shared_cache_size): Likewise.
53024         (__x86_64_raw_shared_cache_size): Likewise.
53025         (__x86_64_shared_cache_size_half): Likewise.
53026         (__x86_64_raw_shared_cache_size_half): Likewise.
53027         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53028         to ...
53029         (__x86_data_cache_size): This.
53030         (__x86_64_raw_data_cache_size): Renamed to ...
53031         (__x86_raw_data_cache_size): This.
53032         (__x86_64_data_cache_size_half): Renamed to ...
53033         (__x86_data_cache_size_half): This.
53034         (__x86_64_raw_data_cache_size_half): Renamed to ...
53035         (__x86_raw_data_cache_size_half): This.
53036         (__x86_64_shared_cache_size): Renamed to ...
53037         (__x86_shared_cache_size): This.
53038         (__x86_64_raw_shared_cache_size): Renamed to ...
53039         (__x86_raw_shared_cache_size): This.
53040         (__x86_64_shared_cache_size_half): Renamed to ...
53041         (__x86_shared_cache_size_half): This.
53042         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53043         (__x86_raw_shared_cache_size_half): This.
53044         * sysdeps/x86_64/memcpy.S: Updated.
53045         * sysdeps/x86_64/memset.S: Likewise.
53046         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53047         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53048         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53049
53050 2013-01-04  David S. Miller  <davem@davemloft.net>
53051
53052         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53053
53054 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53055
53056         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53057         1 to avoid redefinition warning.
53058         (__USE_GNU): Don't define.
53059         (init_signaling_nan): Protoize.
53060
53061         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53062
53063 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53064
53065         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53066         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53067         (__cpymn): Likewise.
53068         (norm): Remove commented code.
53069         (denorm): Likewise.
53070         (__mp_dbl): Likewise.
53071         (__inv): Likewise.
53072         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53073         (__cpymn): Likewise.
53074         (norm): Remove commented code.
53075         (denorm): Likewise.
53076         (__mp_dbl): Likewise.
53077         (__inv): Likewise.
53078
53079         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53080         mp_no value for 1.0 and 2.0.
53081         (norm): Use RADIXI instead of radixi.d.
53082         (denorm): Likewise.
53083         (__mul): Use 0.0 instead of zero.d.
53084         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53085         mp_no value for 1.0 and 2.0.
53086         (norm): Use RADIXI instead of radixi.d.
53087         (denorm): Likewise.
53088         (__mul): Use 0.0 instead of zero.d.
53089
53090 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53091
53092         [BZ #14994]
53093         * math/s_casinh.c (__casinh): Reduce finite argument to first
53094         quadrant then set signs of results at the end.
53095         * math/s_casinhf.c (__casinhf): Likewise.
53096         * math/s_casinhl.c (__casinhl): Likewise.
53097         * math/libm-test.inc (casin_test): Add more tests.
53098         (casinh_test): Likewise.
53099         * sysdeps/i386/fpu/libm-test-ulps: Update.
53100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53101
53102 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53103
53104         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53105
53106         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53107
53108         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53109         declarations.
53110         (denorm): Likewise.
53111         (__mp_dbl): Likewise.
53112         (__inv): Likewise.
53113
53114         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53115         and adjust the header comment.
53116
53117         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53118         variable name from declaration.
53119
53120 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53121
53122         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53123         Initialize COMMON_CPUID_INDEX_7 element.
53124         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53125         (CPUID_RTM): Likewise.
53126         (HAS_RTM): Likewise.
53127         (COMMON_CPUID_INDEX_7): New enum.
53128
53129 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53130
53131         [BZ #14981]
53132         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53133         size is zero, record memory as freed.
53134
53135 2013-01-03  Andreas Jaeger  <aj@suse.de>
53136
53137         * po/ia.po: Add new Interlingua translation.
53138
53139 2012-01-03  Allan McRae  <allan@archlinux.org>
53140
53141         * locale/programs/localedef.c: Fix description of '--posix' flag.
53142
53143 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53144
53145         * NEWS: Update dates in second copyright notice.
53146         * README: Update copyright dates in example.
53147         * manual/libc.texinfo: Update copyright dates.
53148         * scripts/test-installation.pl: Update copyright date in --version
53149         output.
53150
53151         * hurd/ctty-input.c: Fix copyright notice formatting.
53152         * hurd/ctty-output.c: Likewise.
53153         * hurd/dtable.c: Likewise.
53154         * hurd/hurd-raise.c: Likewise.
53155         * hurd/hurdprio.c: Likewise.
53156         * hurd/msgportdemux.c: Likewise.
53157         * misc/sys/file.h: Likewise.
53158         * misc/sys/ioctl.h: Likewise.
53159         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53160         * sysdeps/mach/hurd/chdir.c: Likewise.
53161         * sysdeps/mach/hurd/fchdir.c: Likewise.
53162         * sysdeps/mach/hurd/rename.c: Likewise.
53163         * sysdeps/mach/hurd/rmdir.c: Likewise.
53164         * sysdeps/mach/hurd/seekdir.c: Likewise.
53165         * sysdeps/mach/hurd/setsid.c: Likewise.
53166         * sysdeps/posix/wait3.c: Likewise.
53167
53168         * All files with FSF copyright notices: Update copyright dates
53169         using scripts/update-copyrights.
53170         * intl/plural.c: Regenerated.
53171         * locale/programs/charmap-kw.h: Likewise.
53172         * locale/programs/locfile-kw.h: Likewise.
53173
53174 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53175
53176         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53177         four values.
53178
53179         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53180         calculation loop and add branch prediction.
53181
53182         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53183         check access beyond bounds of m1np.
53184
53185         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53186         MPTWO.
53187         (__inv): Remove local variable MPTWO to use the global
53188         constant.
53189         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53190         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53191         variable MPTWO.
53192         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53193         MP3HALFS static const.
53194
53195 2013-01-01  David S. Miller  <davem@davemloft.net>
53196
53197         * po/ca.po: Update from translation team.
53198
53199 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53200
53201         * scripts/update-copyrights: New file.
53202         * Makeconfig: Reformat copyright notice.
53203         * ctype/ctype.h: Likewise.
53204         * debug/swprintf_chk.c: Likewise.
53205         * elf/dl-cache.c: Likewise.
53206         * elf/dl-debug.c: Likewise.
53207         * elf/dl-object.c: Likewise.
53208         * grp/initgroups.c: Likewise.
53209         * hurd/Makefile: Likewise.
53210         * hurd/hurd/signal.h: Likewise.
53211         * hurd/hurdfault.c: Likewise.
53212         * hurd/hurdioctl.c: Likewise.
53213         * hurd/hurdlookup.c: Likewise.
53214         * hurd/intr-msg.c: Likewise.
53215         * iconv/gconv_open.c: Likewise.
53216         * libio/swprintf.c: Likewise.
53217         * locale/lc-ctype.c: Likewise.
53218         * locale/nl_langinfo.c: Likewise.
53219         * mach/Machrules: Likewise.
53220         * mach/Makefile: Likewise.
53221         * malloc/obstack.h: Likewise.
53222         * manual/Makefile: Likewise.
53223         * manual/tsort.awk: Likewise.
53224         * misc/bits/stab.def: Likewise.
53225         * nis/nis_print_group_entry.c: Likewise.
53226         * nis/nis_table.c: Likewise.
53227         * nis/nss_compat/compat-pwd.c: Likewise.
53228         * nis/nss_compat/compat-spwd.c: Likewise.
53229         * po/Makefile: Likewise.
53230         * posix/fnmatch.c: Likewise.
53231         * posix/regex.h: Likewise.
53232         * resolv/Makefile: Likewise.
53233         * resolv/nss_dns/dns-network.c: Likewise.
53234         * resolv/res_hconf.c: Likewise.
53235         * scripts/gen-sorted.awk: Likewise.
53236         * soft-fp/soft-fp.h: Likewise.
53237         * stdio-common/printf.h: Likewise.
53238         * stdlib/monetary.h: Likewise.
53239         * stdlib/random.c: Likewise.
53240         * stdlib/random_r.c: Likewise.
53241         * sysdeps/generic/Makefile: Likewise.
53242         * sysdeps/gnu/Makefile: Likewise.
53243         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53244         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53245         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53246         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53247         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53248         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53249         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53250         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53251         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53252         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53253         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53254         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53255         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53256         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53257         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53258         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53259         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53260         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53261         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53262         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53263         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53264         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53265         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53266         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53267         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53268         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53269         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53270         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53271         * sysdeps/mach/hurd/errnos.awk: Likewise.
53272         * sysdeps/mach/hurd/fork.c: Likewise.
53273         * sysdeps/mach/hurd/getcwd.c: Likewise.
53274         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53275         * sysdeps/mach/hurd/mmap.c: Likewise.
53276         * sysdeps/mach/hurd/utimes.c: Likewise.
53277         * sysdeps/mach/hurd/xmknod.c: Likewise.
53278         * sysdeps/posix/profil.c: Likewise.
53279         * sysdeps/posix/readdir_r.c: Likewise.
53280         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53281         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53282         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53283         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53284         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53285         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53286         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53287         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53288         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53289         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53290         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53291         * sysdeps/pthread/lio_listio.c: Likewise.
53292         * sysdeps/sparc/dl-procinfo.h: Likewise.
53293         * sysdeps/unix/i386/sysdep.S: Likewise.
53294         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53295         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53296         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53297         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53299         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53300         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53301         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53302         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53303         * sysdeps/wordsize-32/divdi3.c: Likewise.
53304         * time/sys/time.h: Likewise.
53305         * wcsmbs/Makefile: Likewise.
53306
53307 2013-01-01  David S. Miller  <davem@davemloft.net>
53308
53309         * po/fr.po: Update from translation team.
53310
53311         * catgets/gencat.c: Update copyright year.
53312         * csu/version.c: Likewise.
53313         * debug/catchsegv.sh: Likewise.
53314         * debug/pcprofiledump.c: Likewise.
53315         * debug/xtrace.sh: Likewise.
53316         * elf/ldconfig.c: Likewise.
53317         * elf/ldd.bash.in: Likewise.
53318         * elf/pldd.c: Likewise.
53319         * elf/sotruss.ksh: Likewise.
53320         * elf/sprof.c: Likewise.
53321         * iconv/iconv_prog.c: Likewise.
53322         * iconv/iconvconfig.c: Likewise.
53323         * locale/programs/locale.c: Likewise.
53324         * locale/programs/localedef.c: Likewise.
53325         * login/programs/pt_chown.c: Likewise.
53326         * malloc/memusage.sh: Likewise.
53327         * malloc/memusagestat.c: Likewise.
53328         * malloc/mtrace.pl: Likewise.
53329         * nscd/nscd.c: Likewise.
53330         * nss/getent.c: Likewise.
53331         * nss/makedb.c: Likewise.
53332         * posix/getconf.c: Likewise.
53333
53334 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53335
53336         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53337         numbers.
53338
53339 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53340
53341         * math/bits/mathcalls.h (modf): Use __nonnull.
53342
53343 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53344
53345         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53346         (split): Use macro CN instead of the bare value.
53347         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53348         could be used.
53349         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53350         instead of the bare value.
53351         (power1): Likewise.
53352
53353 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53354
53355         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53356         __ATAN_TWOM.
53357         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53358
53359         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53360         their values.
53361         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53362         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53363         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53364         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53365
53366 2012-12-28  Andreas Jaeger  <aj@suse.de>
53367
53368         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53369         values are from Linux 3.7.
53370
53371         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53372         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53373
53374 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53375
53376         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53377         TRUE case.
53378
53379         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53380         (norm): Likewise.
53381         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53382         variables with preprocessor constants.
53383         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53384         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53385         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53386
53387 2012-12-27  Bruno Haible  <bruno@clisp.org>
53388
53389         [BZ #14317]
53390         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53391         only if needed.
53392
53393 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53394
53395         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53396         and use variable directly.
53397         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53398
53399         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53400         MPONE.
53401         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53402         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53403         variable MPONE.
53404         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53405         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53406         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53407         include directive.  Remove local variable MPONE.
53408         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53409         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53410         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53411
53412 2012-12-25  David S. Miller  <davem@davemloft.net>
53413
53414         * version.h (RELEASE): Set to "development".
53415         (VERSION): Set to "2.17.90".
53416         * NEWS: Add 2.18 section.
53417
53418 2012-12-21  David S. Miller  <davem@davemloft.net>
53419
53420         * po/hr.po: Update from translation team.
53421
53422 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53423
53424         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53425
53426 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53427
53428         * NEWS:  Mention new memcpy for MIPS.
53429
53430 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53431
53432         * manual/contrib.texi (Contributors): Spelling correction.
53433
53434 2012-12-15  David S. Miller  <davem@davemloft.net>
53435
53436         * po/ru.po: Update from translation team.
53437
53438 2012-12-13  David S. Miller  <davem@davemloft.net>
53439
53440         * NEWS: Mention IFUNC testsuite enhancements.
53441
53442         * po/pl.po: Update from translation team.
53443         * po/bg.po: Likewise.
53444
53445         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53446         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53447
53448 2012-12-11  David S. Miller  <davem@davemloft.net>
53449
53450         * po/sv.po: Update from translation team.
53451
53452         * po/vi.po: Update from translation team.
53453
53454         * po/cs.po: Update from translation team.
53455
53456         * po/de.po: Update from translation team.
53457         * po/eo.po: Likewise.
53458         * po/nl.po: Likewise.
53459
53460 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53461
53462         [BZ #14246]
53463         * manual/argp.texi (Argp Helper Functions): Move node to follow
53464         Argp Parsing State.
53465
53466         [BZ #14872]
53467         * manual/conf.texi (Limits on File System Capacity): Mention if
53468         terminating null is included in the max size.
53469
53470 2012-12-10  Andreas Jaeger  <aj@suse.de>
53471
53472         * po/cs.po: Update from translation team.
53473
53474 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53475
53476         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53477         void pointer and cast to uintptr_t.
53478         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53479         path.
53480         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53481         * sysdeps/s390/s390-64/memset.S: Likewise.
53482
53483 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53484
53485         [BZ #14833]
53486         * menual/message.texi (Message Translation): Fix typos.
53487         (Helper programs for gettext): Likewise.
53488
53489 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53490
53491         [BZ #14898]
53492         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53493         Change to -1.
53494
53495 2012-12-07  David S. Miller  <davem@davemloft.net>
53496
53497         * po/libc.pot: Update.
53498
53499 2012-12-07  Richard Henderson  <rth@redhat.com>
53500
53501         [BZ #10114]
53502         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53503         normal/normal case to before the switch.
53504         (_FP_DIV): Likewise.
53505
53506 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53507             Mike Frysinger  <vapier@gentoo.org>
53508
53509         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53510         check for __NR_fadvise64_64.
53511
53512 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53513
53514         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53515         0, not just to plain "0" as a statement.
53516         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53517         with cw.
53518
53519 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53520
53521         * NEWS: Use sourceware.org in Bugzilla URL.
53522
53523 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53524
53525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53526         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53527
53528         * stdio-common/tst-put-error.c (do_test): Add newline to the
53529         padded test to ensure flush.
53530
53531 2012-12-05  Jeff Law  <law@redhat.com>
53532
53533         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53534
53535 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53536
53537         * README: Don't refer to ports add-on as distributed separately.
53538         Mention AArch64 in list of systems supported in the ports add-on.
53539
53540         * LICENSES: Add more non-FSF copyright and license notices.
53541
53542         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53543         ((unused)).
53544
53545         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53546
53547         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53548         10000 as width of padded output.
53549
53550 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53551
53552         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53553
53554         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53555         variable LX with __attribute__ ((unused)).
53556         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53557         Likewise.
53558         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53559         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53560         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53561         with __attribute__ ((unused)).
53562
53563 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53564
53565         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53566
53567 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53568
53569         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53570         (CFLAGS-nldbl-acos.c): New variable.
53571         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53572         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53573         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53574         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53575         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53576         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53577         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53578         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53579         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53580         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53581         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53582         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53583         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53584         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53585         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53586         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53587         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53588         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53589         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53590         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53591         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53592         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53593         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53594         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53595         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53596         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53597         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53598         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53599         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53600         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53601         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53602         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53603         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53604         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53605         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53606         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53607         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53608         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53609         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53610         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53611         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53612         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53613         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53614         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53615         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53616         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53617         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53618         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53619         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53620         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53621         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53622         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53623         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53624         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53625         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53626         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53627         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53628         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53629         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53630         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53631         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53632         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53633         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53634         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53635         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53636         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53637         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53638         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53639         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53640         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53641         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53642         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53643         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53644         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53645         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53646         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53647         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53648         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53649         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53650         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53651         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53652         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53653         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53654         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53655         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53656         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53657         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53658         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53659         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53660         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53661         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53662         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53663         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53664         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53665         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53666         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53667         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53668
53669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53670         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53671
53672         [BZ #14914]
53673         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53674         whole low double instead of just low 47 bits when splitting values
53675         into two parts.
53676
53677 2012-12-03  Allan McRae  <allan@archlinux.org>
53678
53679         * manual/stdio.texi (Predefined Printf Handlers): Remove
53680         @hsep and @vsep usage.
53681
53682 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53683
53684         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53685         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53686
53687 2012-12-03  Jeff Law  <law@redhat.com>
53688
53689         * time/sys/time.h (settimeofday): Do not mark TV argument
53690         as __nonnull.
53691
53692 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53693
53694         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53695         when currently writing and seek to current position when not.
53696         * libio/Makefile (tests): Remove bug-fclose1.
53697         * libio/bug-fclose1.c: Delete.
53698
53699 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53700
53701         * manual/arith.texi (feenableexcept): Fix typo.
53702         (fedisableexcept): Likewise.
53703
53704 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53705
53706         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53707         second, differently-typed declaration, rather than a cast.
53708
53709 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53710
53711         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53712         * include/rpc/svc.h: ... here.
53713
53714 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53715
53716         [BZ #13013]
53717         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53718         depending n and resplen2 to catch cases where answer
53719         equals answerp2.
53720
53721 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53722
53723         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53724         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53725
53726 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53727
53728         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53729
53730 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53731
53732         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53733
53734 2012-11-28  Jeff Law  <law@redhat.com>
53735
53736         [BZ #13761]
53737         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53738         dataset_temporary.  Track alloca usage into alloca_used.
53739         If dataset is large allocate and release it via malloc/free.
53740
53741 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53742
53743         [BZ #14197]
53744         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53745
53746 2012-11-28  David S. Miller  <davem@davemloft.net>
53747
53748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53749
53750 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53751
53752         [BZ #14803]
53753         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53754         of pi/2 rounded to nearest to 64 bits.
53755         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53756         nearest to 64 bits.
53757         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53758         bits.
53759
53760 2012-11-28  Jeff Law <law@redhat.com>
53761             Martin Osvald <mosvald@redhat.com>
53762
53763         [BZ #14889]
53764         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
53765         * sunrpc/svc.c: Include time.h.
53766         (__svc_accept_failed): New function.
53767         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
53768         any reason other than EINTR, call __svc_accept_failed.
53769         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
53770         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
53771
53772 2012-11-28  Andreas Schwab  <schwab@suse.de>
53773
53774         * scripts/abilist.awk: Also handle indirect functions in .opd
53775         section.
53776
53777 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53778
53779         [BZ #13881]
53780         * sysdeps/x86/fpu/powl_helper.c: New file.
53781         * sysdeps/x86/fpu/Makefile: Likewise.
53782         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
53783         (p3): New object.
53784         (__ieee754_powl): Use __powl_helper for finite arguments except
53785         integer exponents below 8.
53786         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
53787         (p3): New object.
53788         (__ieee754_powl): Use __powl_helper for finite arguments except
53789         integer exponents below 8.
53790         * math/libm-test.inc (pow_test): Add more tests and enable some
53791         previously disabled tests.
53792         * sysdeps/i386/fpu/libm-test-ulps: Update.
53793         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53794
53795 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53796             Carlos O'Donell  <carlos_odonell@mentor.com>
53797
53798         * nss/makedb.c (is_prime): Assert that input is odd and greater
53799         than 4.  Note that fact in a comment too.
53800         (next_prime): Add 4 to input.
53801
53802 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53803
53804         [BZ #11741]
53805         * libio/Makefile (tests): Add test case tst-fwrite-error.
53806         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
53807         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
53808         * libio/tst-fwrite-error.c: New test case.
53809
53810 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
53811
53812         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
53813         before casting to void *.
53814         * include/libc-internal.h (__pointer_type): New macro.
53815         (__integer_if_pointer_type_sub): Likewise.
53816         (__integer_if_pointer_type): Likewise.
53817         (cast_to_integer): Likewise.
53818         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
53819         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
53820         before casting to atomic64_t.
53821         (atomic_exchange_acq): Likewise.
53822         (__arch_exchange_and_add_body): Likewise.
53823         (__arch_add_body): Likewise.
53824         (atomic_add_negative): Likewise.
53825         (atomic_add_zero): Likewise.
53826
53827 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
53828
53829         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
53830         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
53831         (add_fdes): Likewise.
53832         (linear_search_fdes): Likewise.
53833         (binary_search_unencoded_fdes): Likewise.
53834
53835 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
53836
53837         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
53838
53839 2012-11-24  Adam Conrad  <adconrad@0c3.net>
53840
53841         * configure.in: Autodetect C++ header directories.
53842         * configure: Regenerated.
53843
53844 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
53845
53846         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
53847
53848 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
53849
53850         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53851
53852 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
53853
53854         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
53855         LDBL_MANT_DIG == 106]: Disable some tests.
53856         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53857         Likewise.
53858         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53859         Likewise.
53860
53861         [BZ #14871]
53862         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
53863         input for small inputs.  Return +/- pi/2 for large inputs.
53864         * math/libm-test.inc (atan_test): Add more tests.
53865
53866         * sysdeps/generic/unwind-dw2-fde-glibc.c
53867         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
53868         __attribute__ ((unused)).
53869
53870         [BZ #14645]
53871         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
53872         x * y if x and y are nonzero and z is zero.
53873
53874         [BZ #14811]
53875         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
53876         nonzero exponents with absolute value below 0x1p-117 to +/-
53877         0x1p-117.
53878
53879         [BZ #14869]
53880         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
53881         up arguments below 2**-450, not just those below 2**-500.
53882         * math/libm-test.inc (hypot_test): Add another test.
53883
53884         [BZ #14868]
53885         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
53886         Return a+b for ratio over 2**120, not 2**60.
53887         * math/libm-test.inc (hypot_test): Add another test.
53888
53889         * math/libm-test.inc (clog_test): Use
53890         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
53891         (clog10_test): Likewise.
53892
53893         [BZ #6778]
53894         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
53895
53896 2012-11-22  Andreas Schwab  <schwab@suse.de>
53897
53898         * sysdeps/i386/fpu/libm-test-ulps: Update.
53899
53900 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
53901
53902         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
53903         printf output with newline.
53904
53905 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
53906
53907         [BZ #14865]
53908         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
53909         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
53910         -z nodlopen, -z initfirst and -z execstack support.
53911         * configure: Regenerated.
53912
53913         * elf/elf.h (DF_1_NODIRECT): New macro.
53914         (DF_1_IGNMULDEF): Likewise.
53915         (DF_1_NOKSYMS): Likewise.
53916         (DF_1_NOHDR): Likewise.
53917         (DF_1_EDITED): Likewise.
53918         (DF_1_NORELOC): Likewise.
53919         (DF_1_SYMINTPOSE): Likewise.
53920         (DF_1_GLOBAUDIT): Likewise.
53921         (DF_1_SINGLETON): Likewise.
53922         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
53923         DT_1_SUPPORTED_MASK bits.
53924         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
53925
53926 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
53927
53928         * sysdeps/unix/make-syscalls.sh: Document prefixes.
53929
53930 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
53931
53932         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
53933         macro.
53934
53935         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
53936         (sendmmsg): Move declarations...
53937         * socket/sys/socket.h: ... here.
53938         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
53939         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
53940         include it from...
53941         * socket/recvmmsg.c: ... this new file.
53942         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
53943         (sendmmsg): Rename to __sendmmsg, create weak alias and make
53944         definition of __sendmmsg hidden.
53945         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
53946         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
53947         Move ENOSYS stub into and include it from...
53948         * socket/sendmmsg.c: ... this new file.
53949         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
53950         (sysdep_routines): Move recvmmsg and sendmmsg...
53951         * socket/Makefile (routines): ... here.
53952         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
53953         (GLIBC_PRIVATE): Add __sendmmsg.
53954         * include/sys/socket.h (__sendmmsg): Add declarations.
53955         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
53956         sendmmsg.
53957
53958 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
53959
53960         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
53961         variable I1 with __attribute__ ((unused)).
53962         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
53963
53964 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53965
53966         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
53967         DUMMY variables with __attribute__ ((unused)).
53968
53969         * bits/byteswap.h: Include <bits/types.h>.
53970         (__bswap_64): Use __uint64_t instead of unsigned long long int.
53971
53972 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
53973
53974         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
53975         string_t.  Do not manually set errno.
53976         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
53977         length with __strnlen.  Make sure to both set errno and return it on
53978         failure.
53979
53980 2012-11-19  David S. Miller  <davem@davemloft.net>
53981
53982         With help from Joseph Myers.
53983         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
53984         very large arguments properly.
53985         * math/libm-test.inc (atan_test): New tests.
53986         (atan2_test): New tests.
53987         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53988         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53989
53990 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53991
53992         [BZ #14856]
53993         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
53994         Define to 3.
53995
53996         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
53997         [POSIX] (EADDRNOTAVAIL): Likewise.
53998         [POSIX] (EAFNOSUPPORT): Likewise.
53999         [POSIX] (EALREADY): Likewise.
54000         [POSIX] (ECONNABORTED): Likewise.
54001         [POSIX] (ECONNREFUSED): Likewise.
54002         [POSIX] (ECONNRESET): Likewise.
54003         [POSIX] (EDESTADDRREQ): Likewise.
54004         [POSIX] (EDQUOT): Likewise.
54005         [POSIX] (EHOSTUNREACH): Likewise.
54006         [POSIX] (EIDRM): Likewise.
54007         [POSIX] (EISCONN): Likewise.
54008         [POSIX] (ELOOP): Likewise.
54009         [POSIX] (EMULTIHOP): Likewise.
54010         [POSIX] (ENETDOWN): Likewise.
54011         [POSIX] (ENETUNREACH): Likewise.
54012         [POSIX] (ENOBUFS): Likewise.
54013         [POSIX] (ENODATA): Likewise.
54014         [POSIX] (ENOLINK): Likewise.
54015         [POSIX] (ENOMSG): Likewise.
54016         [POSIX] (ENOPROTOOPT): Likewise.
54017         [POSIX] (ENOSR): Likewise.
54018         [POSIX] (ENOSTR): Likewise.
54019         [POSIX] (ENOTCONN): Likewise.
54020         [POSIX] (ENOTSOCK): Likewise.
54021         [POSIX] (EOPNOTSUPP): Likewise.
54022         [POSIX] (EOVERFLOW): Likewise.
54023         [POSIX] (EPROTO): Likewise.
54024         [POSIX] (EPROTONOSUPPORT): Likewise.
54025         [POSIX] (EPROTOTYPE): Likewise.
54026         [POSIX] (ESTALE): Likewise.
54027         [POSIX] (ETIME): Likewise.
54028         [POSIX] (ETXTBSY): Likewise.
54029         [POSIX] (EWOULDBLOCK): Likewise.
54030         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54031         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54032         [POSIX] (SEEK_CUR): Likewise.
54033         [POSIX] (SEEK_END): Likewise.
54034         [POSIX || UNIX98] (mode_t): Do not require.
54035         [POSIX] (off_t): Likewise.
54036         [POSIX] (pid_t): Likewise.
54037         [POSIX] (sys/stat.h): Do not allow header.
54038         [POSIX] (unistd.h): Likewise.
54039         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54040         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54041         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54042         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54043         require.
54044         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54045         sigevent): Specify elements.
54046         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54047         entry.
54048         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54049         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54050
54051         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54052         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54053         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54054         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54055         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54056         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54057         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54058         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54059         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54060         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54061         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54062         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54063         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54064         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54065         Likewise.
54066         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54067         Likewise.
54068         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54069         Likewise.
54070         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54071         Likewise.
54072         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54073         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54074         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54075         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54076         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54077         Specify lower bound on value.
54078         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54079         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54080         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54081         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54082         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54083         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54084         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54085         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54086         value.
54087         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54088         as optional.
54089         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54090         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54091         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54092         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54093         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54094         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54095         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54096         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54097         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54098         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54099         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54100         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54101         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54102         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54103         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54104         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54105         entry.
54106         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54107         optional.
54108         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54109         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54110         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54111         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54112         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54113         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54114         Likewise.
54115         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54116         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54117         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54118         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54119         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54120         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54121         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54122         as optional.
54123         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54124         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54125         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54126         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54127         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54128         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54129         specify as optional.
54130         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54131         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54132         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54133         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54134         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54135         [XPG3] (NL_LANGMAX): Likewise.
54136         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54137         [POSIX || XPG3] (NL_NMAX): Likewise.
54138         [POSIX || XPG3] (NL_SETMAX): Likewise.
54139         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54140         [XPG3] (NZERO): Likewise.
54141         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54142         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54143         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54144         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54145         (REG_ERANGE): Expect.
54146         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54147         optional-constant.
54148         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54149         Use (void) in prototype.
54150         [POSIX] (*_t): Allow.
54151         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54152         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54153         (WRDE_BADVAL): Expect.
54154
54155         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54156         expect.
54157         [XPG3 || XPG4] (O_RSYNC): Likewise.
54158         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54159         Likewise.
54160         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54161         [XPG3 || XPG4] (sigqueue): Likewise.
54162         [XPG3 || XPG4] (sigtimedwait): Likewise.
54163         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54164         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54165         [XPG3 || XPG4] (vsnprintf): Likewise.
54166         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54167         Likewise.
54168         [XPG3 || XPG4] (blksize_t): Likewise.
54169         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54170         Likewise.
54171         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54172         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54173         [XPG3 || XPG4] (struct itimerspec): Likewise.
54174         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54175         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54176         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54177         [XPG3 || XPG4] (clockid_t): Likewise.
54178         [XPG3 || XPG4] (timer_t): Likewise.
54179         [XPG3 || XPG4] (clock_getres): Likewise.
54180         [XPG3 || XPG4] (clock_gettime): Likewise.
54181         [XPG3 || XPG4] (clock_settime): Likewise.
54182         [XPG3 || XPG4] (nanosleep): Likewise.
54183         [XPG3 || XPG4] (timer_create): Likewise.
54184         [XPG3 || XPG4] (timer_delete): Likewise.
54185         [XPG3 || XPG4] (timer_gettime): Likewise.
54186         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54187         [XPG3 || XPG4] (timer_settime): Likewise.
54188         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54189         [XPG3 || XPG4] (getlogin_r): Likewise.
54190         [XPG3 || XPG4] (pread): Likewise.
54191         [XPG3 || XPG4] (pthread_atfork): Likewise.
54192         [XPG3 || XPG4] (pwrite): Likewise.
54193
54194         [BZ #14835]
54195         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54196         <bits/siginfo.h>.
54197
54198 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54199
54200         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54201         finalizing MALLSTREAM.
54202
54203         * sysdeps/mach/hurd/syncfs.c: New file.
54204
54205 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54206
54207         [BZ #14719]
54208         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54209         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54210         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54211         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54212         (_nss_dns_gethostbyname4_r): Likewise.
54213         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54214         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54215
54216 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54217
54218         [BZ #13763]
54219         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54220
54221 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54222
54223         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54224         * elf/cache.c (print_entry): Print ",AArch64" for
54225         FLAG_AARCH64_LIB64
54226
54227         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54228         * elf/cache.c (print_entry): Print ",hard-float" for
54229         FLAG_ARM_LIBHF.
54230
54231 2012-11-18  David S. Miller  <davem@davemloft.net>
54232
54233         With help from Joseph Myers.
54234         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54235         cutoff to 2**-13.
54236         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54237         cutoff to 2**-25.
54238         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54239         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54240         small.
54241         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54242         * math/libm-test.inc (y0_test): New tests.
54243         (y1_test): New tests.
54244         * sysdeps/i386/fpu/libm-test-ulps: Update.
54245         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54246         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54247
54248 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54249
54250         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54251         64-bit targets.
54252         * configure: Regenerated.
54253
54254 2012-11-17  David S. Miller  <davem@davemloft.net>
54255
54256         [BZ #14811]
54257         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54258         nonzero exponents with absolute value below 0x1p-128 to +/-
54259         0x1p-128.
54260
54261 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54262
54263         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54264
54265         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54266
54267         * posix/getconf-speclist.c: New file.
54268         * posix/posix-envs.def: Likewise.
54269         * posix/confstr.c (START_ENV_GROUP): New macro.
54270         (END_ENV_GROUP): Likewise.
54271         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54272         (KNOWN_PRESENT_ENV_STRING): Likewise.
54273         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54274         (UNKNOWN_ENVIRONMENT): Likewise.
54275         (confstr): Include posix-envs.def instead of handling
54276         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54277         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54278         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54279         (END_ENV_GROUP): Likewise.
54280         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54281         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54282         (UNKNOWN_ENVIRONMENT): Likewise.
54283         (__sysconf): Include posix-envs.def instead of handling associated
54284         cases directly here.
54285         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54286         preprocessing getconf-speclist.c rather than running getconf or
54287         generating empty file.
54288
54289 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54290
54291         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54292
54293 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54294
54295         [BZ #14672]
54296         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54297
54298 2012-11-16  David S. Miller  <davem@davemloft.net>
54299
54300         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54301         smaller than LDBL_EPSILON/2.0L, just return xm1.
54302
54303 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54304
54305         * elf/tst-array1.c (init): Set constructor priority to 1000.
54306         (fini): Set destructor priority to 1000.
54307         * elf/tst-array2dep.c: Likewise.
54308
54309 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54310
54311         [BZ #11741]
54312         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54313         (_IO_new_file_xsputn): Also return EOF if none of the input
54314         data was written when overflow failed.
54315         * libio/iopadn.c (_IO_padn): Likewise.
54316         * libio/iowpadn.c (_IO_wpadn): Likewise.
54317         * stdio-common/tst-put-error.c: Add copyright notice.
54318         (do_test): Add case for printing padded string.
54319         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54320         _IO_padn returned error.
54321         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54322         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54323         return EOF.
54324
54325 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54326
54327         * libio/libioP.h: Add comment note that the references to C++
54328         bits are now obsolete.
54329
54330 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54331
54332         * math/libm-test.inc (check_complex): Use asprintf.
54333
54334 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54335
54336         * debug/pcprofiledump.c (print_version): Update copyright year.
54337         * malloc/memusagestat.c (print_version): Likewise.
54338
54339 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54340
54341         [BZ #14831]
54342         * elf/Makefile (tests): Add tst-audit8.
54343         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54344         ($(objpfx)tst-audit8.out): New target.
54345         (tst-audit8-ENV): New variable.
54346         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54347         audit if l_reloc_result is NULL.
54348         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54349         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54350         * elf/tst-audit8.c: New file.
54351
54352 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54353
54354         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54355         * misc/Makefile (CFLAGS-select.c): Define.
54356         * posix/Makefile (CFLAGS-pause.c): Define.
54357
54358 2012-11-13  David S. Miller  <davem@davemloft.net>
54359
54360         * crypt/Makefile: Move test targets after toplevel Rules
54361         inclusion.  Grab any necessary sysdep routines when linking.
54362         * crypt/md5.c (md5_process_block): Remove define, we will always
54363         name it __md5_process_block.
54364         (md5_finish_ctx): Update md5_process_block call.
54365         (md5_stream): Likewise.
54366         (md5_process_bytes): Likewise.
54367         (md5_process_block): Rename to __md5_process_block and move to ...
54368         * crypt/md5-block.c: ... here.
54369         * crypt/sha256.c (sha256_process_block): Move to ...
54370         * crypt/sha256-block.c: ... here.
54371         * crypt/sha512.c (sha512_process_block): Move to ...
54372         * crypt/sha512-block.c: ... here.
54373         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54374         path.
54375         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54376         * sysdeps/sparc/sparc64/multiarch/Makefile
54377         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54378         crypt subdir.
54379         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54380         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54381         multiarch changes.
54382         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54383         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54384         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54385         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54386         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54387         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54388         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54389         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54390         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54391         file.
54392         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54393         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54394         file.
54395         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54396
54397 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54398
54399         * timezone/tzselect.ksh: Update from tzcode git revision
54400         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54401         * timezone/zdump.c: Likewise.
54402         * timezone/zic.c: Likewise.
54403         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54404         in TZVERSION setting, not $(PKGVERSION).
54405         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54406         REPORT_BUGS_TO settings.
54407
54408         [BZ #14838]
54409         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54410         macro.
54411
54412 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54413
54414         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54415         detection to immediately after _FP_ROUND().
54416         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54417         bits are 0.
54418
54419 2012-11-11  David S. Miller  <davem@davemloft.net>
54420
54421         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54422         inttypes.h
54423         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54424         __close rather than their public counterparts.
54425
54426 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54427
54428         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54429         file.
54430         [UNIX98] (sem_timedwait): Do not expect.
54431         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54432         [XPG4 || UNIX98] (sockatmark): Do not expect.
54433         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54434         (clock_getcpuclockid): Do not expect.
54435         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54436         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54437         Do not expect.
54438         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54439         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54440         [UNIX98] (vwscanf): Likewise.
54441         [UNIX98] (vswscanf): Likewise.
54442
54443 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54444
54445         * timezone/version.h: Remove file.
54446         * timezone/README: Do not refer to version.h.
54447         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54448         $(objpfx)version.h.
54449         ($(objpfx)zdump.o): Likewise.
54450         ($(objpfx)version.h): New target.
54451
54452         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54453         2012i.
54454         * timezone/README: Don't mention modification to tzselect.ksh.
54455         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54456         work on unmodified tzselect.ksh.  Substitute version numbers in
54457         tzselect.ksh.
54458
54459         * Makefile (format-me): Remove.
54460         (INSTALL): Adjust indentation.  Use commands directly instead of
54461         using $(format-me).
54462
54463         * aclocal.m4 (ACX_PKGVERSION): New macro.
54464         (ACX_BUGURL): Likewise.
54465         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54466         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54467         (REPORT_BUGS_TO): Likewise.
54468         * configure: Regenerated.
54469         * config.h.in (PKGVERSION): New macro.
54470         (REPORT_BUGS_TO): Likewise.
54471         * config.make.in (PKGVERSION): New variable.
54472         (PKGVERSION_TEXI): Likewise.
54473         (REPORT_BUGS_TO): Likewise.
54474         (REPORT_BUGS_TEXI): Likewise.
54475         * Makefile (format-me): Use -I$(common-objpfx)manual.
54476         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54477         ($(common-objpfx)manual/%): New target.
54478         (manual/%): Remove target.
54479         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54480         (print_version): Use PKGVERSION.
54481         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54482         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54483         and REPORT_BUGS_TO.
54484         ($(objpfx)xtrace): Likewise.
54485         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54486         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54487         (print_version): Use PKGVERSION.
54488         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54489         (do_version): Use PKGVERSION.
54490         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54491         REPORT_BUGS_TO.
54492         (common-ldd-rewrite): Likewise.
54493         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54494         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54495         (print_version): Use PKGVERSION.
54496         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54497         * elf/pldd.c (argp_program_bug_address): Remove variable.
54498         (more_help): New function.
54499         (argp): Use more_help.
54500         (print_version): Use PKGVERSION.
54501         * elf/sln.c (main): Use PKGVERSION.
54502         (usage): Use REPORT_BUGS_TO.
54503         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54504         (top level): Use PKGVERSION.
54505         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54506         (print_version): Use PKGVERSION.
54507         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54508         (print_version): Use PKGVERSION.
54509         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54510         (print_version): Use PKGVERSION.
54511         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54512         (print_version): Use PKGVERSION.
54513         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54514         (print_version): Use PKGVERSION.
54515         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54516         (print_version): Use PKGVERSION.
54517         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54518         and BUGURL.
54519         ($(objpfx)memusage): Likewise.
54520         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54521         (do_version): Use PKGVERSION.
54522         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54523         (print_version): Use PKGVERSION.
54524         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54525         ($PKGVERSION): New variable.
54526         ($REPORT_BUGS_TO): Likewise.
54527         (usage): Use $REPORT_BUGS_TO.
54528         (top level): Use $PKGVERSION.
54529         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54530         ($(objpfx)pkgvers.texi): New rule.
54531         ($(objpfx)stamp-pkgvers): Likewise.
54532         * manual/install.texi: Include pkgvers.texi.
54533         (--with-pkgversion): Document new configure option.
54534         (--with-bugurl): Likewise.
54535         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54536         than necessarily for this particular distribution.  Use
54537         REPORT_BUGS_TO for where to report bugs.
54538         * INSTALL: Regenerated.
54539         * manual/libc.texinfo: Include pkgvers.texi.
54540         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54541         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54542         (print_version): Use PKGVERSION.
54543         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54544         (print_version): Use PKGVERSION.
54545         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54546         (print_version): Use PKGVERSION.
54547         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54548         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54549         macro.
54550         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54551         (print_version): Use PKGVERSION.
54552         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54553         (print_version): Use PKGVERSION.
54554         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54555         and PKGVERSION.
54556
54557         * timezone/checktab.awk: Update from tzcode 2012i.
54558         * timezone/ialloc.c: Likewise.
54559         * timezone/private.h: Likewise.
54560         * timezone/scheck.c: Likewise.
54561         * timezone/tzfile.h: Likewise.
54562         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54563         (TZVERSION): Hardcode tzcode version number.
54564         * timezone/zdump.c: Update from tzcode 2012i.
54565         * timezone/zic.c: Likewise.
54566         * timezone/version.h: New file.
54567         * timezone/README: Describe version.h.  Update upstream location.
54568
54569         [BZ #14824]
54570         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54571         (mktemp): Enable declaration.
54572         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54573         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54574         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54575         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54576         Likewise.
54577         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54578         Likewise.
54579         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54580         Likewise.
54581         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54582         Likewise.
54583         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54584         Likewise.
54585         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54586         Likewise.
54587
54588         [BZ #14821]
54589         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54590         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54591         for copies of such integer values.
54592         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54593         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54594
54595 2012-11-09  Andreas Jaeger  <aj@suse.de>
54596
54597         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54598         definitions and declarations that are provided by
54599         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54600
54601 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54602
54603         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54604         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54605         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54606         definition.
54607
54608 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54609
54610         * elf/elf.h: Update comment before AArch64 relocations.
54611
54612 2012-11-07  David S. Miller  <davem@davemloft.net>
54613
54614         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54615         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54616         (__start_context): Declare.
54617         (__makecontext_ret): Delete.
54618         (__makecontext): Hook up __start_context instead of
54619         __makecontext_ret.
54620         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54621         (sysdep_routines): Add __start_context when in stdlib.
54622
54623 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54624
54625         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54626         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54627         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54628         hardcoded "nm".
54629         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54630         (READELF): New variable.  Use it instead of hardcoded "readelf".
54631
54632 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54633
54634         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54635         * sysdeps/x86/Makefile: Here.
54636         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54637         * sysdeps/x86/tst-xmmymm.sh: This.
54638
54639 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54640
54641         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54642         expectations.
54643         [UNIX98] (pthread_barrier_t): Do not expect.
54644         [UNIX98] (pthread_barrierattr_t): Likewise.
54645         [UNIX98] (pthread_spinlock_t): Likewise.
54646         [UNIX98] (pthread_barrier_destroy): Likewise.
54647         [UNIX98] (pthread_barrier_init): Likewise.
54648         [UNIX98] (pthread_barrier_wait): Likewise.
54649         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54650         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54651         [UNIX98] (pthread_barrierattr_init): Likewise.
54652         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54653         [UNIX98] (pthread_getcpuclockid): Likewise.
54654         [UNIX98] (pthread_mutex_timedlock): Likewise.
54655         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54656         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54657         [UNIX98] (pthread_sigmask): Likewise.
54658         [UNIX98] (pthread_spin_destroy): Likewise.
54659         [UNIX98] (pthread_spin_init): Likewise.
54660         [UNIX98] (pthread_spin_lock): Likewise.
54661         [UNIX98] (pthread_spin_trylock): Likewise.
54662         [UNIX98] (pthread_spin_unlock): Likewise.
54663         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54664         Do not expect.
54665         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54666         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54667         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54668         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54669         [XPG3 || XPG4] (pthread_key_t): Likewise.
54670         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54671         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54672         [XPG3 || XPG4] (pthread_once_t): Likewise.
54673         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54674         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54675         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54676         [XPG3 || XPG4] (pthread_t): Likewise.
54677
54678         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54679         not expect.
54680         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54681
54682         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54683         Change function return type to int.
54684
54685         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54686         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54687         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54688         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54689         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54690         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54691         [!POSIX] (posix_madvise): Likewise.
54692         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54693         && !UNIX98].
54694         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54695         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54696         (mode_t): Likewise.
54697         (posix_mem_offset): Likewise.
54698         (posix_typed_mem_get_info): Likewise.
54699         (posix_typed_mem_open): Likewise.
54700
54701         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54702         Change condition to [XOPEN2K8].
54703
54704         * conform/conformtest.pl: Preprocess allow-header data with -x c
54705         instead of from stdin.
54706         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54707         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54708         [C99-based standards] (cerfc): Likewise.
54709         [C99-based standards] (cexp2): Likewise.
54710         [C99-based standards] (cexpm1): Likewise.
54711         [C99-based standards] (clog10): Likewise.
54712         [C99-based standards] (clog1p): Likewise.
54713         [C99-based standards] (clog2): Likewise.
54714         [C99-based standards] (clgamma): Likewise.
54715         [C99-based standards] (ctgamma): Likewise.
54716         [C99-based standards] (cerff): Likewise.
54717         [C99-based standards] (cerfcf): Likewise.
54718         [C99-based standards] (cexp2f): Likewise.
54719         [C99-based standards] (cexpm1f): Likewise.
54720         [C99-based standards] (clog10f): Likewise.
54721         [C99-based standards] (clog1pf): Likewise.
54722         [C99-based standards] (clog2f): Likewise.
54723         [C99-based standards] (clgammaf): Likewise.
54724         [C99-based standards] (ctgammaf): Likewise.
54725         [C99-based standards] (cerfl): Likewise.
54726         [C99-based standards] (cerfcl): Likewise.
54727         [C99-based standards] (cexp2l): Likewise.
54728         [C99-based standards] (cexpm1l): Likewise.
54729         [C99-based standards] (clog10l): Likewise.
54730         [C99-based standards] (clog1pl): Likewise.
54731         [C99-based standards] (clog2l): Likewise.
54732         [C99-based standards] (clgammal): Likewise.
54733         [C99-based standards] (ctgammal): Likewise.
54734         * conform/data/inttypes.h-data [C99-based standards]: Include
54735         stdint.h-data.  Remove all expectations for stdint.h contents.
54736         [C99-based standards] (PRI*): Do not allow.
54737         [C99-based standards] (SCN*): Likewise.
54738         [C99-based standards] (*_t): Likewise.
54739         [C99-based-standards] (PRId8): Expect macro.
54740         [C99-based-standards] (PRIi8): Likewise.
54741         [C99-based-standards] (PRIo8): Likewise.
54742         [C99-based-standards] (PRIu8): Likewise.
54743         [C99-based-standards] (PRIx8): Likewise.
54744         [C99-based-standards] (PRIX8): Likewise.
54745         [C99-based-standards] (SCNd8): Likewise.
54746         [C99-based-standards] (SCNi8): Likewise.
54747         [C99-based-standards] (SCNo8): Likewise.
54748         [C99-based-standards] (SCNu8): Likewise.
54749         [C99-based-standards] (SCNx8): Likewise.
54750         [C99-based-standards] (PRIdLEAST8): Likewise.
54751         [C99-based-standards] (PRIiLEAST8): Likewise.
54752         [C99-based-standards] (PRIoLEAST8): Likewise.
54753         [C99-based-standards] (PRIuLEAST8): Likewise.
54754         [C99-based-standards] (PRIxLEAST8): Likewise.
54755         [C99-based-standards] (PRIXLEAST8): Likewise.
54756         [C99-based-standards] (SCNdLEAST8): Likewise.
54757         [C99-based-standards] (SCNiLEAST8): Likewise.
54758         [C99-based-standards] (SCNoLEAST8): Likewise.
54759         [C99-based-standards] (SCNuLEAST8): Likewise.
54760         [C99-based-standards] (SCNxLEAST8): Likewise.
54761         [C99-based-standards] (PRIdFAST8): Likewise.
54762         [C99-based-standards] (PRIiFAST8): Likewise.
54763         [C99-based-standards] (PRIoFAST8): Likewise.
54764         [C99-based-standards] (PRIuFAST8): Likewise.
54765         [C99-based-standards] (PRIxFAST8): Likewise.
54766         [C99-based-standards] (PRIXFAST8): Likewise.
54767         [C99-based-standards] (SCNdFAST8): Likewise.
54768         [C99-based-standards] (SCNiFAST8): Likewise.
54769         [C99-based-standards] (SCNoFAST8): Likewise.
54770         [C99-based-standards] (SCNuFAST8): Likewise.
54771         [C99-based-standards] (SCNxFAST8): Likewise.
54772         [C99-based-standards] (PRId16): Likewise.
54773         [C99-based-standards] (PRIi16): Likewise.
54774         [C99-based-standards] (PRIo16): Likewise.
54775         [C99-based-standards] (PRIu16): Likewise.
54776         [C99-based-standards] (PRIx16): Likewise.
54777         [C99-based-standards] (PRIX16): Likewise.
54778         [C99-based-standards] (SCNd16): Likewise.
54779         [C99-based-standards] (SCNi16): Likewise.
54780         [C99-based-standards] (SCNo16): Likewise.
54781         [C99-based-standards] (SCNu16): Likewise.
54782         [C99-based-standards] (SCNx16): Likewise.
54783         [C99-based-standards] (PRIdLEAST16): Likewise.
54784         [C99-based-standards] (PRIiLEAST16): Likewise.
54785         [C99-based-standards] (PRIoLEAST16): Likewise.
54786         [C99-based-standards] (PRIuLEAST16): Likewise.
54787         [C99-based-standards] (PRIxLEAST16): Likewise.
54788         [C99-based-standards] (PRIXLEAST16): Likewise.
54789         [C99-based-standards] (SCNdLEAST16): Likewise.
54790         [C99-based-standards] (SCNiLEAST16): Likewise.
54791         [C99-based-standards] (SCNoLEAST16): Likewise.
54792         [C99-based-standards] (SCNuLEAST16): Likewise.
54793         [C99-based-standards] (SCNxLEAST16): Likewise.
54794         [C99-based-standards] (PRIdFAST16): Likewise.
54795         [C99-based-standards] (PRIiFAST16): Likewise.
54796         [C99-based-standards] (PRIoFAST16): Likewise.
54797         [C99-based-standards] (PRIuFAST16): Likewise.
54798         [C99-based-standards] (PRIxFAST16): Likewise.
54799         [C99-based-standards] (PRIXFAST16): Likewise.
54800         [C99-based-standards] (SCNdFAST16): Likewise.
54801         [C99-based-standards] (SCNiFAST16): Likewise.
54802         [C99-based-standards] (SCNoFAST16): Likewise.
54803         [C99-based-standards] (SCNuFAST16): Likewise.
54804         [C99-based-standards] (SCNxFAST16): Likewise.
54805         [C99-based-standards] (PRId32): Likewise.
54806         [C99-based-standards] (PRIi32): Likewise.
54807         [C99-based-standards] (PRIo32): Likewise.
54808         [C99-based-standards] (PRIu32): Likewise.
54809         [C99-based-standards] (PRIx32): Likewise.
54810         [C99-based-standards] (PRIX32): Likewise.
54811         [C99-based-standards] (SCNd32): Likewise.
54812         [C99-based-standards] (SCNi32): Likewise.
54813         [C99-based-standards] (SCNo32): Likewise.
54814         [C99-based-standards] (SCNu32): Likewise.
54815         [C99-based-standards] (SCNx32): Likewise.
54816         [C99-based-standards] (PRIdLEAST32): Likewise.
54817         [C99-based-standards] (PRIiLEAST32): Likewise.
54818         [C99-based-standards] (PRIoLEAST32): Likewise.
54819         [C99-based-standards] (PRIuLEAST32): Likewise.
54820         [C99-based-standards] (PRIxLEAST32): Likewise.
54821         [C99-based-standards] (PRIXLEAST32): Likewise.
54822         [C99-based-standards] (SCNdLEAST32): Likewise.
54823         [C99-based-standards] (SCNiLEAST32): Likewise.
54824         [C99-based-standards] (SCNoLEAST32): Likewise.
54825         [C99-based-standards] (SCNuLEAST32): Likewise.
54826         [C99-based-standards] (SCNxLEAST32): Likewise.
54827         [C99-based-standards] (PRIdFAST32): Likewise.
54828         [C99-based-standards] (PRIiFAST32): Likewise.
54829         [C99-based-standards] (PRIoFAST32): Likewise.
54830         [C99-based-standards] (PRIuFAST32): Likewise.
54831         [C99-based-standards] (PRIxFAST32): Likewise.
54832         [C99-based-standards] (PRIXFAST32): Likewise.
54833         [C99-based-standards] (SCNdFAST32): Likewise.
54834         [C99-based-standards] (SCNiFAST32): Likewise.
54835         [C99-based-standards] (SCNoFAST32): Likewise.
54836         [C99-based-standards] (SCNuFAST32): Likewise.
54837         [C99-based-standards] (SCNxFAST32): Likewise.
54838         [C99-based-standards] (PRId64): Likewise.
54839         [C99-based-standards] (PRIi64): Likewise.
54840         [C99-based-standards] (PRIo64): Likewise.
54841         [C99-based-standards] (PRIu64): Likewise.
54842         [C99-based-standards] (PRIx64): Likewise.
54843         [C99-based-standards] (PRIX64): Likewise.
54844         [C99-based-standards] (SCNd64): Likewise.
54845         [C99-based-standards] (SCNi64): Likewise.
54846         [C99-based-standards] (SCNo64): Likewise.
54847         [C99-based-standards] (SCNu64): Likewise.
54848         [C99-based-standards] (SCNx64): Likewise.
54849         [C99-based-standards] (PRIdLEAST64): Likewise.
54850         [C99-based-standards] (PRIiLEAST64): Likewise.
54851         [C99-based-standards] (PRIoLEAST64): Likewise.
54852         [C99-based-standards] (PRIuLEAST64): Likewise.
54853         [C99-based-standards] (PRIxLEAST64): Likewise.
54854         [C99-based-standards] (PRIXLEAST64): Likewise.
54855         [C99-based-standards] (SCNdLEAST64): Likewise.
54856         [C99-based-standards] (SCNiLEAST64): Likewise.
54857         [C99-based-standards] (SCNoLEAST64): Likewise.
54858         [C99-based-standards] (SCNuLEAST64): Likewise.
54859         [C99-based-standards] (SCNxLEAST64): Likewise.
54860         [C99-based-standards] (PRIdFAST64): Likewise.
54861         [C99-based-standards] (PRIiFAST64): Likewise.
54862         [C99-based-standards] (PRIoFAST64): Likewise.
54863         [C99-based-standards] (PRIuFAST64): Likewise.
54864         [C99-based-standards] (PRIxFAST64): Likewise.
54865         [C99-based-standards] (PRIXFAST64): Likewise.
54866         [C99-based-standards] (SCNdFAST64): Likewise.
54867         [C99-based-standards] (SCNiFAST64): Likewise.
54868         [C99-based-standards] (SCNoFAST64): Likewise.
54869         [C99-based-standards] (SCNuFAST64): Likewise.
54870         [C99-based-standards] (SCNxFAST64): Likewise.
54871         [C99-based-standards] (PRIdMAX): Likewise.
54872         [C99-based-standards] (PRIiMAX): Likewise.
54873         [C99-based-standards] (PRIoMAX): Likewise.
54874         [C99-based-standards] (PRIuMAX): Likewise.
54875         [C99-based-standards] (PRIxMAX): Likewise.
54876         [C99-based-standards] (PRIXMAX): Likewise.
54877         [C99-based-standards] (SCNdMAX): Likewise.
54878         [C99-based-standards] (SCNiMAX): Likewise.
54879         [C99-based-standards] (SCNoMAX): Likewise.
54880         [C99-based-standards] (SCNuMAX): Likewise.
54881         [C99-based-standards] (SCNxMAX): Likewise.
54882         [C99-based-standards] (PRIdPTR): Likewise.
54883         [C99-based-standards] (PRIiPTR): Likewise.
54884         [C99-based-standards] (PRIoPTR): Likewise.
54885         [C99-based-standards] (PRIuPTR): Likewise.
54886         [C99-based-standards] (PRIxPTR): Likewise.
54887         [C99-based-standards] (PRIXPTR): Likewise.
54888         [C99-based-standards] (SCNdPTR): Likewise.
54889         [C99-based-standards] (SCNiPTR): Likewise.
54890         [C99-based-standards] (SCNoPTR): Likewise.
54891         [C99-based-standards] (SCNuPTR): Likewise.
54892         [C99-based-standards] (SCNxPTR): Likewise.
54893         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
54894         allow.
54895         * conform/data/stdint.h-data: Update comments to clarify
54896         requirements.
54897         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
54898         type.
54899         [C99-based standards] (INT8_MAX): Likewise.
54900         [C99-based standards] (INT16_MIN): Likewise.
54901         [C99-based standards] (INT16_MAX): Likewise.
54902         [C99-based standards] (INT32_MIN): Likewise.
54903         [C99-based standards] (INT32_MAX): Likewise.
54904         [C99-based standards] (INT64_MIN): Likewise.
54905         [C99-based standards] (INT64_MAX): Likewise.
54906         [C99-based standards] (UINT8_MAX): Likewise.
54907         [C99-based standards] (UINT16_MAX): Likewise.
54908         [C99-based standards] (UINT32_MAX): Likewise.
54909         [C99-based standards] (UINT64_MAX): Likewise.
54910         [C99-based standards] (INT_LEAST8_MIN): Likewise.
54911         [C99-based standards] (INT_LEAST8_MAX): Likewise.
54912         [C99-based standards] (INT_LEAST16_MIN): Likewise.
54913         [C99-based standards] (INT_LEAST16_MAX): Likewise.
54914         [C99-based standards] (INT_LEAST32_MIN): Likewise.
54915         [C99-based standards] (INT_LEAST32_MAX): Likewise.
54916         [C99-based standards] (INT_LEAST64_MIN): Likewise.
54917         [C99-based standards] (INT_LEAST64_MAX): Likewise.
54918         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
54919         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
54920         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
54921         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
54922         [C99-based standards] (INT_FAST8_MIN): Likewise.
54923         [C99-based standards] (INT_FAST8_MAX): Likewise.
54924         [C99-based standards] (INT_FAST16_MIN): Likewise.
54925         [C99-based standards] (INT_FAST16_MAX): Likewise.
54926         [C99-based standards] (INT_FAST32_MIN): Likewise.
54927         [C99-based standards] (INT_FAST32_MAX): Likewise.
54928         [C99-based standards] (INT_FAST64_MIN): Likewise.
54929         [C99-based standards] (INT_FAST64_MAX): Likewise.
54930         [C99-based standards] (UINT_FAST8_MAX): Likewise.
54931         [C99-based standards] (UINT_FAST16_MAX): Likewise.
54932         [C99-based standards] (UINT_FAST32_MAX): Likewise.
54933         [C99-based standards] (UINT_FAST64_MAX): Likewise.
54934         [C99-based standards] (INTPTR_MIN): Likewise.
54935         [C99-based standards] (INTPTR_MAX): Likewise.
54936         [C99-based standards] (UINTPTR_MAX): Likewise.
54937         [C99-based standards] (INTMAX_MIN): Likewise.
54938         [C99-based standards] (INTMAX_MAX): Likewise.
54939         [C99-based standards] (UINTMAX_MAX): Likewise.
54940         [C99-based standards] (PTRDIFF_MIN): Likewise.
54941         [C99-based standards] (PTRDIFF_MAX): Likewise.
54942         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
54943         [C99-based standards] (SIZE_MAX): Likewise.
54944         [C99-based standards] (WCHAR_MAX): Likewise.
54945         [C99-based standards] (WINT_MAX): Likewise.
54946         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
54947         constraint on value.
54948         [C99-based standards] (WCHAR_MIN): Likewise.
54949         [C99-based standards] (WINT_MIN): Likewise.
54950         [C99-based standards] (*_t): Allow.
54951         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
54952         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
54953         Include math.h-data and complex.h-data.  Remove all expectations
54954         of math.h and complex.h contents.
54955         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
54956         at end of line.
54957         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
54958         (struct tm): Expect tag.
54959         [C99-based-standards] (wcstof): Expect function.
54960         [C99-based-standards] (wcstold): Likewise.
54961         [C99-based-standards] (wcstoll): Likewise.
54962         [C99-based-standards] (wcstoull): Likewise.
54963         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
54964         macro-int-constant.  Specify type.
54965         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
54966         constraint on value.
54967         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54968         Specify type.
54969         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
54970         Specify value.
54971         [ISO C standards]: Do not allow headers.
54972         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
54973         wcs[abcdefghijklmnopqrstuvwxyz]*.
54974         [ISO C standards] (*_t): Do not allow.
54975         * conform/data/wctype.h-data [C99-based standards] (iswblank):
54976         Expect function.
54977         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
54978         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54979         Specify type.
54980         [ISO C standards]: Do not allow headers.
54981         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
54982         is[abcdefghijklmnopqrstuvwxyz]*.
54983         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
54984         to[abcdefghijklmnopqrstuvwxyz]*.
54985         [ISO C standards] (*_t): Do not allow.
54986         * conform/data/stdalign.h-data: New file.
54987         * conform/data/stdbool.h-data: Likewise.
54988         * conform/data/stdnoreturn.h-data: Likewise.
54989
54990 2012-11-07  Roland McGrath  <roland@hack.frob.com>
54991
54992         [BZ #14815]
54993         * manual/filesys.texi (Directory Entries): Typo fix.
54994         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
54995
54996 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54997
54998         * elf/elf.h (EM_AARCH64): New macro.
54999         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55000         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55001         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55002         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55003         (R_AARCH64_TLSDESC): Likewise.
55004         (NT_ARM_TLS): Likewise.
55005         (NT_ARM_HW_BREAK): Likewise.
55006         (NT_ARM_HW_WATCH): Likewise.
55007
55008 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55009
55010         [BZ #14811]
55011         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55012         (__ieee754_powl): Saturate nonzero exponents with absolute value
55013         below 0x1p-79 to +/- 0x1p-79.
55014         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55015         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55016         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55017         nonzero exponents with absolute value below 0x1p-32 to +/-
55018         0x1p-32.
55019         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55020         (__ieee754_powl): Saturate nonzero exponents with absolute value
55021         below 0x1p-79 to +/- 0x1p-79.
55022         * math/libm-test.inc (pow_test): Add more tests.
55023
55024 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55025
55026         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55027         _dl_s390_cap_flags with kernel. Increase string length.
55028         (_dl_s390_platforms): Add z196 and zEC12.
55029
55030 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55031
55032         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55033         Change XOPEN21K to XOPEN2K.
55034
55035 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55036
55037         * string/memmove.c: Use memcpy when possible.
55038
55039 2012-11-06  Andreas Jaeger  <aj@suse.de>
55040
55041         * po/eo.po: Update from translation team.
55042
55043 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55044
55045         [BZ #14793]
55046         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55047         exponent and small x and y exponents, scale x or y up.  Increase
55048         by 2 the exponent used in scaling up.
55049         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55050         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55051         * math/libm-test.inc (fma_test): Add more tests.
55052         (fma_test_towardzero): Likewise.
55053         (fma_test_downward): Likewise.
55054         (fma_test_upward): Likewise.
55055
55056 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55057
55058         [BZ #14805]
55059         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55060         fenv_t *.
55061
55062         [BZ #14801]
55063         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55064         namespace for names of struct fields.
55065         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55066         fenv_t fields.
55067         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55068         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55069
55070 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55071
55072         [BZ #3665]
55073         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55074
55075 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55076
55077         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55078         PTR_DEMANGLE.
55079
55080         [BZ #5246]
55081         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55082         PTR_DEMANGLE.
55083
55084 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55085
55086         [BZ #14797]
55087         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55088         definitely overflow as x * y not x * y + z.
55089         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55090         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55091         * math/libm-test.inc (fma_test): Add more tests.
55092         (fma_test_towardzero): Likewise.
55093         (fma_test_downward): Likewise.
55094         (fma_test_upward): Likewise.
55095
55096 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55097
55098         [BZ #157]
55099
55100         * include/stub-tag.h: Remove file.
55101         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55102         '#include' of it.
55103         * manual/maint.texi (Porting): Don't reference it.
55104         * Makerules ($(objpfx)stubs): Likewise.
55105         * dirent/closedir.c: Don't include <stub-tag.h>.
55106         * dirent/dirfd.c: Likewise.
55107         * dirent/fdopendir.c: Likewise.
55108         * dirent/getdents.c: Likewise.
55109         * dirent/getdents64.c: Likewise.
55110         * dirent/opendir.c: Likewise.
55111         * dirent/readdir.c: Likewise.
55112         * dirent/readdir64.c: Likewise.
55113         * dirent/readdir64_r.c: Likewise.
55114         * dirent/readdir_r.c: Likewise.
55115         * dirent/rewinddir.c: Likewise.
55116         * dirent/seekdir.c: Likewise.
55117         * dirent/telldir.c: Likewise.
55118         * gmon/profil.c: Likewise.
55119         * grp/setgroups.c: Likewise.
55120         * inet/if_index.c: Likewise.
55121         * io/access.c: Likewise.
55122         * io/chdir.c: Likewise.
55123         * io/chmod.c: Likewise.
55124         * io/chown.c: Likewise.
55125         * io/close.c: Likewise.
55126         * io/dup.c: Likewise.
55127         * io/dup2.c: Likewise.
55128         * io/dup3.c: Likewise.
55129         * io/euidaccess.c: Likewise.
55130         * io/faccessat.c: Likewise.
55131         * io/fchdir.c: Likewise.
55132         * io/fchmod.c: Likewise.
55133         * io/fchmodat.c: Likewise.
55134         * io/fchown.c: Likewise.
55135         * io/fchownat.c: Likewise.
55136         * io/fcntl.c: Likewise.
55137         * io/flock.c: Likewise.
55138         * io/fstatfs.c: Likewise.
55139         * io/fstatfs64.c: Likewise.
55140         * io/fstatvfs.c: Likewise.
55141         * io/fstatvfs64.c: Likewise.
55142         * io/futimens.c: Likewise.
55143         * io/fxstat.c: Likewise.
55144         * io/fxstat64.c: Likewise.
55145         * io/fxstatat.c: Likewise.
55146         * io/fxstatat64.c: Likewise.
55147         * io/getcwd.c: Likewise.
55148         * io/isatty.c: Likewise.
55149         * io/lchmod.c: Likewise.
55150         * io/lchown.c: Likewise.
55151         * io/link.c: Likewise.
55152         * io/linkat.c: Likewise.
55153         * io/lseek.c: Likewise.
55154         * io/lseek64.c: Likewise.
55155         * io/lxstat64.c: Likewise.
55156         * io/mkdir.c: Likewise.
55157         * io/mkdirat.c: Likewise.
55158         * io/mkfifo.c: Likewise.
55159         * io/mkfifoat.c: Likewise.
55160         * io/open.c: Likewise.
55161         * io/open64.c: Likewise.
55162         * io/openat.c: Likewise.
55163         * io/openat64.c: Likewise.
55164         * io/pipe.c: Likewise.
55165         * io/pipe2.c: Likewise.
55166         * io/poll.c: Likewise.
55167         * io/posix_fadvise.c: Likewise.
55168         * io/posix_fadvise64.c: Likewise.
55169         * io/posix_fallocate.c: Likewise.
55170         * io/posix_fallocate64.c: Likewise.
55171         * io/read.c: Likewise.
55172         * io/readlink.c: Likewise.
55173         * io/readlinkat.c: Likewise.
55174         * io/rmdir.c: Likewise.
55175         * io/sendfile.c: Likewise.
55176         * io/sendfile64.c: Likewise.
55177         * io/statfs.c: Likewise.
55178         * io/statfs64.c: Likewise.
55179         * io/statvfs.c: Likewise.
55180         * io/statvfs64.c: Likewise.
55181         * io/symlink.c: Likewise.
55182         * io/symlinkat.c: Likewise.
55183         * io/ttyname.c: Likewise.
55184         * io/ttyname_r.c: Likewise.
55185         * io/umask.c: Likewise.
55186         * io/unlink.c: Likewise.
55187         * io/unlinkat.c: Likewise.
55188         * io/utime.c: Likewise.
55189         * io/utimensat.c: Likewise.
55190         * io/write.c: Likewise.
55191         * io/xmknod.c: Likewise.
55192         * io/xmknodat.c: Likewise.
55193         * io/xstat.c: Likewise.
55194         * io/xstat64.c: Likewise.
55195         * login/getpt.c: Likewise.
55196         * login/grantpt.c: Likewise.
55197         * login/unlockpt.c: Likewise.
55198         * math/e_acoshl.c: Likewise.
55199         * math/e_acosl.c: Likewise.
55200         * math/e_asinl.c: Likewise.
55201         * math/e_atan2l.c: Likewise.
55202         * math/e_atanhl.c: Likewise.
55203         * math/e_coshl.c: Likewise.
55204         * math/e_expl.c: Likewise.
55205         * math/e_fmodl.c: Likewise.
55206         * math/e_gammal_r.c: Likewise.
55207         * math/e_hypotl.c: Likewise.
55208         * math/e_j0l.c: Likewise.
55209         * math/e_j1l.c: Likewise.
55210         * math/e_jnl.c: Likewise.
55211         * math/e_lgammal_r.c: Likewise.
55212         * math/e_log10l.c: Likewise.
55213         * math/e_log2l.c: Likewise.
55214         * math/e_logl.c: Likewise.
55215         * math/e_powl.c: Likewise.
55216         * math/e_rem_pio2l.c: Likewise.
55217         * math/e_sinhl.c: Likewise.
55218         * math/e_sqrtl.c: Likewise.
55219         * math/fclrexcpt.c: Likewise.
55220         * math/fedisblxcpt.c: Likewise.
55221         * math/feenablxcpt.c: Likewise.
55222         * math/fegetenv.c: Likewise.
55223         * math/fegetexcept.c: Likewise.
55224         * math/fegetround.c: Likewise.
55225         * math/feholdexcpt.c: Likewise.
55226         * math/fesetenv.c: Likewise.
55227         * math/fesetround.c: Likewise.
55228         * math/feupdateenv.c: Likewise.
55229         * math/fgetexcptflg.c: Likewise.
55230         * math/fraiseexcpt.c: Likewise.
55231         * math/fsetexcptflg.c: Likewise.
55232         * math/ftestexcept.c: Likewise.
55233         * math/k_cosl.c: Likewise.
55234         * math/k_rem_pio2l.c: Likewise.
55235         * math/k_sinl.c: Likewise.
55236         * math/k_tanl.c: Likewise.
55237         * math/s_asinhl.c: Likewise.
55238         * math/s_atanl.c: Likewise.
55239         * math/s_cbrtl.c: Likewise.
55240         * math/s_erfl.c: Likewise.
55241         * math/s_expm1l.c: Likewise.
55242         * math/s_log1pl.c: Likewise.
55243         * math/s_tanhl.c: Likewise.
55244         * misc/acct.c: Likewise.
55245         * misc/brk.c: Likewise.
55246         * misc/chflags.c: Likewise.
55247         * misc/chroot.c: Likewise.
55248         * misc/fchflags.c: Likewise.
55249         * misc/fgetxattr.c: Likewise.
55250         * misc/flistxattr.c: Likewise.
55251         * misc/fremovexattr.c: Likewise.
55252         * misc/fsetxattr.c: Likewise.
55253         * misc/fsync.c: Likewise.
55254         * misc/ftruncate.c: Likewise.
55255         * misc/futimes.c: Likewise.
55256         * misc/futimesat.c: Likewise.
55257         * misc/getdomain.c: Likewise.
55258         * misc/getdtsz.c: Likewise.
55259         * misc/gethostid.c: Likewise.
55260         * misc/gethostname.c: Likewise.
55261         * misc/getloadavg.c: Likewise.
55262         * misc/getpagesize.c: Likewise.
55263         * misc/getsysstats.c: Likewise.
55264         * misc/getxattr.c: Likewise.
55265         * misc/gtty.c: Likewise.
55266         * misc/ioctl.c: Likewise.
55267         * misc/lgetxattr.c: Likewise.
55268         * misc/listxattr.c: Likewise.
55269         * misc/llistxattr.c: Likewise.
55270         * misc/lremovexattr.c: Likewise.
55271         * misc/lsetxattr.c: Likewise.
55272         * misc/lutimes.c: Likewise.
55273         * misc/madvise.c: Likewise.
55274         * misc/mincore.c: Likewise.
55275         * misc/mlock.c: Likewise.
55276         * misc/mlockall.c: Likewise.
55277         * misc/mmap.c: Likewise.
55278         * misc/mprotect.c: Likewise.
55279         * misc/msync.c: Likewise.
55280         * misc/munlock.c: Likewise.
55281         * misc/munlockall.c: Likewise.
55282         * misc/munmap.c: Likewise.
55283         * misc/preadv.c: Likewise.
55284         * misc/preadv64.c: Likewise.
55285         * misc/ptrace.c: Likewise.
55286         * misc/pwritev.c: Likewise.
55287         * misc/pwritev64.c: Likewise.
55288         * misc/readv.c: Likewise.
55289         * misc/reboot.c: Likewise.
55290         * misc/remap_file_pages.c: Likewise.
55291         * misc/removexattr.c: Likewise.
55292         * misc/revoke.c: Likewise.
55293         * misc/select.c: Likewise.
55294         * misc/setdomain.c: Likewise.
55295         * misc/setegid.c: Likewise.
55296         * misc/seteuid.c: Likewise.
55297         * misc/sethostid.c: Likewise.
55298         * misc/sethostname.c: Likewise.
55299         * misc/setregid.c: Likewise.
55300         * misc/setreuid.c: Likewise.
55301         * misc/setxattr.c: Likewise.
55302         * misc/sstk.c: Likewise.
55303         * misc/stty.c: Likewise.
55304         * misc/swapoff.c: Likewise.
55305         * misc/swapon.c: Likewise.
55306         * misc/sync.c: Likewise.
55307         * misc/syncfs.c: Likewise.
55308         * misc/syscall.c: Likewise.
55309         * misc/truncate.c: Likewise.
55310         * misc/ualarm.c: Likewise.
55311         * misc/usleep.c: Likewise.
55312         * misc/ustat.c: Likewise.
55313         * misc/utimes.c: Likewise.
55314         * misc/vhangup.c: Likewise.
55315         * misc/writev.c: Likewise.
55316         * posix/_exit.c: Likewise.
55317         * posix/alarm.c: Likewise.
55318         * posix/execve.c: Likewise.
55319         * posix/fexecve.c: Likewise.
55320         * posix/fork.c: Likewise.
55321         * posix/fpathconf.c: Likewise.
55322         * posix/getaddrinfo.c: Likewise.
55323         * posix/getegid.c: Likewise.
55324         * posix/geteuid.c: Likewise.
55325         * posix/getgid.c: Likewise.
55326         * posix/getgroups.c: Likewise.
55327         * posix/getlogin.c: Likewise.
55328         * posix/getlogin_r.c: Likewise.
55329         * posix/getpgid.c: Likewise.
55330         * posix/getpid.c: Likewise.
55331         * posix/getppid.c: Likewise.
55332         * posix/getresgid.c: Likewise.
55333         * posix/getresuid.c: Likewise.
55334         * posix/getsid.c: Likewise.
55335         * posix/getuid.c: Likewise.
55336         * posix/glob64.c: Likewise.
55337         * posix/nanosleep.c: Likewise.
55338         * posix/pathconf.c: Likewise.
55339         * posix/pause.c: Likewise.
55340         * posix/posix_madvise.c: Likewise.
55341         * posix/pread.c: Likewise.
55342         * posix/pread64.c: Likewise.
55343         * posix/pwrite.c: Likewise.
55344         * posix/pwrite64.c: Likewise.
55345         * posix/sched_getaffinity.c: Likewise.
55346         * posix/sched_getp.c: Likewise.
55347         * posix/sched_gets.c: Likewise.
55348         * posix/sched_primax.c: Likewise.
55349         * posix/sched_primin.c: Likewise.
55350         * posix/sched_rr_gi.c: Likewise.
55351         * posix/sched_setaffinity.c: Likewise.
55352         * posix/sched_setp.c: Likewise.
55353         * posix/sched_sets.c: Likewise.
55354         * posix/sched_yield.c: Likewise.
55355         * posix/setgid.c: Likewise.
55356         * posix/setlogin.c: Likewise.
55357         * posix/setpgid.c: Likewise.
55358         * posix/setresgid.c: Likewise.
55359         * posix/setresuid.c: Likewise.
55360         * posix/setsid.c: Likewise.
55361         * posix/setuid.c: Likewise.
55362         * posix/sleep.c: Likewise.
55363         * posix/spawni.c: Likewise.
55364         * posix/sysconf.c: Likewise.
55365         * posix/times.c: Likewise.
55366         * posix/wait.c: Likewise.
55367         * posix/wait3.c: Likewise.
55368         * posix/wait4.c: Likewise.
55369         * posix/waitpid.c: Likewise.
55370         * resolv/gai_sigqueue.c: Likewise.
55371         * resource/getpriority.c: Likewise.
55372         * resource/getrlimit.c: Likewise.
55373         * resource/getrusage.c: Likewise.
55374         * resource/nice.c: Likewise.
55375         * resource/setpriority.c: Likewise.
55376         * resource/setrlimit.c: Likewise.
55377         * resource/ulimit.c: Likewise.
55378         * rt/aio_cancel.c: Likewise.
55379         * rt/aio_fsync.c: Likewise.
55380         * rt/aio_read.c: Likewise.
55381         * rt/aio_sigqueue.c: Likewise.
55382         * rt/aio_suspend.c: Likewise.
55383         * rt/aio_write.c: Likewise.
55384         * rt/clock_getres.c: Likewise.
55385         * rt/clock_gettime.c: Likewise.
55386         * rt/clock_nanosleep.c: Likewise.
55387         * rt/clock_settime.c: Likewise.
55388         * rt/lio_listio.c: Likewise.
55389         * rt/mq_close.c: Likewise.
55390         * rt/mq_getattr.c: Likewise.
55391         * rt/mq_notify.c: Likewise.
55392         * rt/mq_open.c: Likewise.
55393         * rt/mq_receive.c: Likewise.
55394         * rt/mq_send.c: Likewise.
55395         * rt/mq_setattr.c: Likewise.
55396         * rt/mq_timedreceive.c: Likewise.
55397         * rt/mq_timedsend.c: Likewise.
55398         * rt/mq_unlink.c: Likewise.
55399         * rt/shm_open.c: Likewise.
55400         * rt/shm_unlink.c: Likewise.
55401         * rt/timer_create.c: Likewise.
55402         * rt/timer_delete.c: Likewise.
55403         * rt/timer_getoverr.c: Likewise.
55404         * rt/timer_gettime.c: Likewise.
55405         * rt/timer_settime.c: Likewise.
55406         * setjmp/__longjmp.c: Likewise.
55407         * setjmp/setjmp.c: Likewise.
55408         * signal/kill.c: Likewise.
55409         * signal/killpg.c: Likewise.
55410         * signal/raise.c: Likewise.
55411         * signal/sigaction.c: Likewise.
55412         * signal/sigaltstack.c: Likewise.
55413         * signal/sigblock.c: Likewise.
55414         * signal/sigignore.c: Likewise.
55415         * signal/sigintr.c: Likewise.
55416         * signal/signal.c: Likewise.
55417         * signal/sigpause.c: Likewise.
55418         * signal/sigpending.c: Likewise.
55419         * signal/sigqueue.c: Likewise.
55420         * signal/sigreturn.c: Likewise.
55421         * signal/sigset.c: Likewise.
55422         * signal/sigsetmask.c: Likewise.
55423         * signal/sigstack.c: Likewise.
55424         * signal/sigsuspend.c: Likewise.
55425         * signal/sigtimedwait.c: Likewise.
55426         * signal/sigvec.c: Likewise.
55427         * signal/sigwait.c: Likewise.
55428         * signal/sigwaitinfo.c: Likewise.
55429         * signal/sysv_signal.c: Likewise.
55430         * socket/accept.c: Likewise.
55431         * socket/accept4.c: Likewise.
55432         * socket/bind.c: Likewise.
55433         * socket/connect.c: Likewise.
55434         * socket/getpeername.c: Likewise.
55435         * socket/getsockname.c: Likewise.
55436         * socket/getsockopt.c: Likewise.
55437         * socket/isfdtype.c: Likewise.
55438         * socket/listen.c: Likewise.
55439         * socket/recv.c: Likewise.
55440         * socket/recvfrom.c: Likewise.
55441         * socket/recvmsg.c: Likewise.
55442         * socket/send.c: Likewise.
55443         * socket/sendmsg.c: Likewise.
55444         * socket/sendto.c: Likewise.
55445         * socket/setsockopt.c: Likewise.
55446         * socket/shutdown.c: Likewise.
55447         * socket/sockatmark.c: Likewise.
55448         * socket/socket.c: Likewise.
55449         * socket/socketpair.c: Likewise.
55450         * stdio-common/ctermid.c: Likewise.
55451         * stdio-common/cuserid.c: Likewise.
55452         * stdio-common/remove.c: Likewise.
55453         * stdio-common/rename.c: Likewise.
55454         * stdio-common/renameat.c: Likewise.
55455         * stdio-common/tempname.c: Likewise.
55456         * stdlib/getcontext.c: Likewise.
55457         * stdlib/makecontext.c: Likewise.
55458         * stdlib/setcontext.c: Likewise.
55459         * stdlib/swapcontext.c: Likewise.
55460         * stdlib/system.c: Likewise.
55461         * streams/fattach.c: Likewise.
55462         * streams/fdetach.c: Likewise.
55463         * streams/getmsg.c: Likewise.
55464         * streams/getpmsg.c: Likewise.
55465         * streams/putmsg.c: Likewise.
55466         * streams/putpmsg.c: Likewise.
55467         * sysdeps/unix/bsd/getpt.c: Likewise.
55468         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55469         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55470         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55472         Likewise.
55473         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55474         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55475         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55476         * sysvipc/msgctl.c: Likewise.
55477         * sysvipc/msgget.c: Likewise.
55478         * sysvipc/msgrcv.c: Likewise.
55479         * sysvipc/msgsnd.c: Likewise.
55480         * sysvipc/semctl.c: Likewise.
55481         * sysvipc/semget.c: Likewise.
55482         * sysvipc/semop.c: Likewise.
55483         * sysvipc/semtimedop.c: Likewise.
55484         * sysvipc/shmat.c: Likewise.
55485         * sysvipc/shmctl.c: Likewise.
55486         * sysvipc/shmdt.c: Likewise.
55487         * sysvipc/shmget.c: Likewise.
55488         * termios/tcdrain.c: Likewise.
55489         * termios/tcflow.c: Likewise.
55490         * termios/tcflush.c: Likewise.
55491         * termios/tcgetattr.c: Likewise.
55492         * termios/tcgetpgrp.c: Likewise.
55493         * termios/tcsendbrk.c: Likewise.
55494         * termios/tcsetattr.c: Likewise.
55495         * termios/tcsetpgrp.c: Likewise.
55496         * time/adjtime.c: Likewise.
55497         * time/clock.c: Likewise.
55498         * time/getitimer.c: Likewise.
55499         * time/gettimeofday.c: Likewise.
55500         * time/setitimer.c: Likewise.
55501         * time/settimeofday.c: Likewise.
55502         * time/stime.c: Likewise.
55503         * time/time.c: Likewise.
55504
55505 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55506
55507         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55508         /usr/old/bin.
55509
55510         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55511         instead of spaces.
55512         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55513
55514 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55515
55516         [BZ #14796]
55517         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55518         FE_TONEAREST before applying Dekker multiplication and Knuth
55519         addition.  Clear inexact exceptions and check for exact zero
55520         results afterwards.
55521         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55522         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55523         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55524         * math/libm-test.inc (fma_test): Add more tests.
55525         (fma_test_towardzero): Likewise.
55526         (fma_test_downward): Likewise.
55527         (fma_test_upward): Likewise.
55528         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55529         function.
55530         (libc_fesetround): New macro.
55531         (libc_fesetroundf): Likewise.
55532         (libc_fesetroundl): Likewise.
55533         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55534         function.
55535         (libc_fesetround_387): Likewise.
55536         (libc_fesetroundf): New macro.
55537         (libc_fesetround): Likewise.
55538         (libc_fesetroundl): Likewise.
55539         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55540         function.
55541         (libc_fesetroundf): New macro.
55542         (libc_fesetround): Likewise.
55543         (libc_fesetroundl): Likewise.
55544         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55545         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55546         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55547         libm_hidden_ver.
55548         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55549         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55550         libm_hidden_def.
55551         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55552         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55553         libm_hidden_ver.
55554         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55555         libm_hidden_def.
55556
55557         [BZ #3439]
55558         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55559         integer constant usable in #if and use that to give value to enum
55560         constant.
55561         (FE_DIVBYZERO): Likewise.
55562         (FE_UNDERFLOW): Likewise.
55563         (FE_OVERFLOW): Likewise.
55564         (FE_INVALID): Likewise.
55565         (FE_INVALID_SNAN): Likewise.
55566         (FE_INVALID_ISI): Likewise.
55567         (FE_INVALID_IDI): Likewise.
55568         (FE_INVALID_ZDZ): Likewise.
55569         (FE_INVALID_IMZ): Likewise.
55570         (FE_INVALID_COMPARE): Likewise.
55571         (FE_INVALID_SOFTWARE): Likewise.
55572         (FE_INVALID_SQRT): Likewise.
55573         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55574         (FE_TONEAREST): Likewise.
55575         (FE_TOWARDZERO): Likewise.
55576         (FE_UPWARD): Likewise.
55577         (FE_DOWNWARD): Likewise.
55578         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55579         (FE_DIVBYZERO): Likewise.
55580         (FE_OVERFLOW): Likewise.
55581         (FE_UNDERFLOW): Likewise.
55582         (FE_INEXACT): Likewise.
55583         (FE_TONEAREST): Likewise.
55584         (FE_DOWNWARD): Likewise.
55585         (FE_UPWARD): Likewise.
55586         (FE_TOWARDZERO): Likewise.
55587         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55588         (FE_UNDERFLOW): Likewise.
55589         (FE_OVERFLOW): Likewise.
55590         (FE_DIVBYZERO): Likewise.
55591         (FE_INVALID): Likewise.
55592         (FE_TONEAREST): Likewise.
55593         (FE_TOWARDZERO): Likewise.
55594         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55595         (FE_OVERFLOW): Likewise.
55596         (FE_UNDERFLOW): Likewise.
55597         (FE_DIVBYZERO): Likewise.
55598         (FE_INEXACT): Likewise.
55599         (FE_TONEAREST): Likewise.
55600         (FE_TOWARDZERO): Likewise.
55601         (FE_UPWARD): Likewise.
55602         (FE_DOWNWARD): Likewise.
55603         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55604         (FE_DIVBYZERO): Likewise.
55605         (FE_OVERFLOW): Likewise.
55606         (FE_UNDERFLOW): Likewise.
55607         (FE_INEXACT): Likewise.
55608         (FE_TONEAREST): Likewise.
55609         (FE_DOWNWARD): Likewise.
55610         (FE_UPWARD): Likewise.
55611         (FE_TOWARDZERO): Likewise.
55612
55613 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55614
55615         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55616
55617 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55618
55619         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55620         commands.  Quote $PWD.
55621         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55622         -x" by "export".
55623         (remove_newlines): Remove.
55624
55625 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55626
55627         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55628         * stdlib/stdlib.h (atof): Moved to ...
55629         * include/bits/stdlib-float.h: Here.  New file.
55630         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55631         * stdlib/bits/stdlib-float.h: New file.
55632         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55633         -mno-sse -mno-mmx.
55634         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55635         <xmmintrin.h>.
55636
55637 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55638
55639         * conform/conformtest.pl (@headers): Add fenv.h.
55640         * conform/data/fenv.h-data: New file.
55641         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55642         include of <math/fenv.h>.
55643
55644         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55645         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55646         && !UNIX98].  Enables tests for XOPEN2K8.
55647         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55648         POSIX2008]: Likewise.
55649
55650         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55651         (struct rusage): Do not expect type or its members.
55652
55653         [BZ #3439]
55654         * math/math.h (FP_NAN): Define macro to integer constant usable in
55655         #if and use that to give value to enum constant.
55656         (FP_INFINITE): Likewise.
55657         (FP_ZERO): Likewise.
55658         (FP_SUBNORMAL): Likewise.
55659         (FP_NORMAL): Likewise.
55660
55661 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55662
55663         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55664         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55665         arguments.
55666
55667 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55668
55669         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55670         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55671         autoconf-time if not.
55672         * configure.in: Remove AC_PREREQ.
55673
55674 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55675
55676         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55677         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55678         of the internal implementation.
55679
55680 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55681
55682         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55683         except include of <misc/sys/syslog.h>.
55684
55685 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55686
55687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55688         function returns with a NULL context exit with zero.
55689
55690 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55691
55692         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55693
55694 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55695
55696         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55697         (run_program_cmd): This.
55698         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55699         (tst_langinfo): New variable.  Use it.
55700
55701 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55702
55703         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55704         floating point opcodes.
55705
55706 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55707
55708         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55709         variable.
55710
55711         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55712
55713         * sysdeps/mach/hurd/powerpc: Remove directory.
55714         * sysdeps/mach/powerpc: Likewise.
55715
55716 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55717
55718         * scripts/check-local-headers.sh: Ignore c++ headers.
55719
55720 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55721
55722         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55723         __libc_cleanup_region_start argument.
55724
55725 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55726
55727         [BZ #14784]
55728         [BZ #14785]
55729         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55730         x * y using scaling, not as x * y + z.
55731         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55732         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55733         * math/libm-test.inc (fma_test): Add more tests.
55734         (fma_test_towardzero): Likewise.
55735         (fma_test_downward): Likewise.
55736         (fma_test_upward): Likewise.
55737
55738 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55739
55740         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55741
55742 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55743
55744         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55745         New variable.
55746
55747 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55748
55749         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55750
55751 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55752
55753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55754         Fix sort order.
55755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55756         Likewise.
55757
55758 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55759
55760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55761         Fix the order of the list for glibc 2.17.
55762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55763         Likewise.
55764
55765 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55766
55767         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55768
55769 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55770
55771         [BZ #14610]
55772         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
55773         for low part of x being zero before using __atanl (y).
55774         * math/libm-test.inc (atan2_test): Add another test.
55775
55776         * manual/install.texi (Configuring and compiling): Document
55777         general use of test-wrapper and test-wrapper-env.
55778         * INSTALL: Regenerated.
55779
55780         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
55781         (__fma): Do not extract and scale down low bits on after-rounding
55782         systems when result rounded to normal precision would have normal
55783         exponent.
55784         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
55785         (__fmal): Do not extract and scale down low bits on after-rounding
55786         systems when result rounded to normal precision would have normal
55787         exponent.
55788         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
55789         (__fmal): Do not extract and scale down low bits on after-rounding
55790         systems when result rounded to normal precision would have normal
55791         exponent.
55792         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
55793         macro.
55794         (fma_test): Add more tests.
55795         (fma_test_towardzero): Likewise.
55796         (fma_test_downward): Likewise.
55797         (fma_test_upward): Likewise.
55798
55799 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
55800
55801         * sysdeps/i386/tininess.h: Renamed to ...
55802         * sysdeps/x86/tininess.h: This.
55803         * sysdeps/x86_64/tininess.h: Removed.
55804
55805 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55806
55807         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
55808         input.  Use $(build-program-cmd).
55809         ($(objpfx)tst-array1-static.out): Likewise.
55810         ($(objpfx)tst-array2.out): Likewise.
55811         ($(objpfx)tst-array3.out): Likewise.
55812         ($(objpfx)tst-array4.out): Likewise.
55813         ($(objpfx)tst-array5.out): Likewise.
55814         ($(objpfx)tst-array5-static.out): Likewise.
55815
55816 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
55817
55818         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55819         if defined.
55820
55821         * nss/nsswitch.h (nss_interface_function): Provide new
55822         macro for use with NSS functions.
55823         * grp/initgroups.c: Use new macro.
55824         * nss/getXXbyYY.c: Likewise.
55825         * nss/getXXbyYY_r.c: Likewise.
55826         * nss/getXXent.c: Likewise.
55827         * nss/getXXent_r.c: Likewise.
55828         * sysdeps/posix/getaddrinfo.c: Likewise.
55829
55830 2012-10-30  Andreas Jaeger  <aj@suse.de>
55831
55832         * po/ru.po: Update Russion translation from translation project.
55833
55834 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55835
55836         [BZ #14152]
55837         [BZ #14783]
55838         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
55839         result and shift together with sticky bit instead of replicating
55840         round-to-nearest rounding.
55841         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55842         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55843         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
55844         missing underflow exceptions.
55845         (fma_test_towardzero): Add more tests.
55846         (fma_test_downward): Likewise.
55847         (fma_test_upward): Likewise.
55848
55849         [BZ #14047]
55850         * sysdeps/generic/tininess.h: New file.
55851         * sysdeps/i386/tininess.h: Likewise.
55852         * sysdeps/sh/tininess.h: Likewise.
55853         * sysdeps/x86_64/tininess.h: Likewise.
55854         * stdlib/tst-strtod-underflow.c: Likewise.
55855         * stdlib/tst-tininess.c: Likewise.
55856         * stdlib/strtod_l.c: Include <tininess.h>.
55857         (round_and_return): Do not set errno for exact underflow cases.
55858         Force an underflow exception when setting errno for underflow.
55859         Determine underflow based on rounding to normal precision if
55860         TININESS_AFTER_ROUNDING.
55861         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
55862         ERANGE for exact underflow cases.
55863         * stdlib/Makefile (tests): Add tst-tininess and
55864         tst-strtod-underflow.
55865         ($(objpfx)tst-tininess): Use $(link-libm).
55866         ($(objpfx)tst-strtod-underflow): Likewise.
55867
55868 2012-10-30  Andreas Jaeger  <aj@suse.de>
55869
55870         [BZ#14767]
55871         * elf/Makefile (tests): Remove conditional for have-initfini-array
55872         since this is now always required and the variable does not exist
55873         anymore.
55874         (tests-static): Likewise.
55875         (modules-names): Likewise.
55876
55877         * po/eo.po: Add Esperanto translation from translation project.
55878
55879         * elf/tst-array1.c (fini_array): Make writeable so that it can be
55880         merged with constructor/destructor.
55881         (init_array): Likewise.
55882         * elf/tst-array2dep.c (fini_array): Likewise.
55883         (init_array): Likewise.
55884
55885 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
55886
55887         * manual/message.texi: Delete @cartouche tags.
55888
55889 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
55890
55891         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
55892         EOPNOTSUPP.
55893         * sysdeps/mach/hurd/fsync.c: Likewise.
55894
55895         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
55896         [_POSIX_REALTIME_SIGNALS]: Change condition to
55897         [_POSIX_REALTIME_SIGNALS > 0].
55898
55899 2012-10-27  Andreas Jaeger  <aj@suse.de>
55900
55901         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
55902         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
55903         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
55904         [__WORDSIZE != 64]: Likewise.
55905
55906 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
55907
55908         *  iconvdata/tst-table.sh: Remove ${SHELL}.
55909         *  iconvdata/tst-tables.sh: Likewise.
55910
55911 2012-10-25  David S. Miller  <davem@davemloft.net>
55912
55913         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55914         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
55915         of strtoull.
55916
55917         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
55918         ifunc-impl-list.c
55919         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
55920         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
55921         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
55922         file.
55923
55924 2012-10-25  Roland McGrath  <roland@hack.frob.com>
55925
55926         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55927         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
55928         __getdirentries.
55929
55930 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55931             Jim Blandy  <jimb@codesourcery.com>
55932
55933         * scripts/cross-test-ssh.sh: New file.
55934         * manual/install.texi (Configuring and compiling): Document use of
55935         cross-test-ssh.sh.
55936         * INSTALL: Regenerated.
55937
55938 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
55939
55940         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
55941         EOPNOTSUPP.
55942
55943 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55944
55945         * Makeconfig (run-program-prefix): Fix comment.
55946
55947 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55948             Jim Blandy  <jimb@codesourcery.com>
55949
55950         * Makeconfig (test-wrapper): New variable,
55951         (test-wrapper-env): Likewise.
55952         [$(cross-compiling) = yes && $(test-wrapper) != ""]
55953         (run-built-tests): Define to yes.
55954         (run-program-prefix): Use $(test-wrapper).
55955         (built-program-cmd): Likewise.
55956         * Rules (make-test-out): Use $(test-wrapper-env) and
55957         $(host-built-program-cmd).
55958         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
55959         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
55960         tst-pathopt.sh.
55961         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
55962         $(test-wrapper-env) to tst-rtld-load-self.sh.
55963         ($(objpfx)order2.out): Use $(test-wrapper).
55964         ($(objpfx)tst-initorder.out): Likewise.
55965         ($(objpfx)tst-initorder2.out): Likewise.
55966         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
55967         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
55968         (test_wrapper_env): New variable.  Use it to run ld.so.
55969         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
55970         Use it to run ld.so.
55971         (test_wrapper_env): Likewise.
55972         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
55973         $(test-wrapper) to run-iconv-test.sh.
55974         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
55975         (ICONV): Use $test_wrapper.
55976         * posix/Makefile ($(objpfx)globtest.out): Pass
55977         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
55978         globtest.sh, not $(run-program-prefix).
55979         * posix/globtest.sh (run_via_rtld_prefix): New variable.
55980         (test_wrapper): Likewise.
55981         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
55982         set together with run_via_rtld_prefix.
55983         (run_program_prefix): Define in terms of test_wrapper and
55984         run_via_rtld_prefix.
55985
55986 2012-10-24  Roland McGrath  <roland@hack.frob.com>
55987
55988         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
55989         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
55990         Targets removed.
55991
55992         [BZ #14743]
55993         * include/time.h: Remove librt_hidden_proto (clock_gettime).
55994         Declare __clock_getres, __clock_gettime, __clock_settime,
55995         __clock_nanosleep, and __clock_getcpuclockid.
55996         * rt/clock_gettime.c: Define __clock_gettime as an alias.
55997         Remove librt_hidden_def (clock_gettime).
55998         * sysdeps/unix/clock_gettime.c: Likewise.
55999         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56000         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56001         * rt/clock_getres.c: Define __clock_getres as an alias.
56002         * sysdeps/posix/clock_getres.c: Likewise.
56003         * rt/clock_settime.c: Define __clock_settime as an alias.
56004         * sysdeps/unix/clock_settime.c: Likewise.
56005         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56006         * sysdeps/unix/clock_nanosleep.c: Likewise.
56007         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56008         * rt/clock-compat.c: New file.
56009         * rt/Makefile (librt-routines): Add clock-compat and move
56010         $(clock-routines) to ...
56011         (routines): ... here, new variable.
56012         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56013         Don't add get_clockfreq here.
56014         * rt/Versions (libc: GLIBC_2.17): New version set.
56015         Add clock_* symbols here.
56016         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56017         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56018         (GLIBC_2.17): Add clock_* symbols.
56019         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56020         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56021         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56023         Likewise.
56024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56025         Likewise.
56026         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56027         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56029         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56030         * NEWS: Mention the move.
56031
56032         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56033         Use __open, __read, __close rather than their public counterparts.
56034         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56035         (__get_clockfreq_via_cpuinfo): Likewise.
56036         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56037         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56038
56039         * config.h.in (HAVE_IFUNC): New #undef.
56040         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56041         was successful.
56042         * configure: Regenerated.
56043
56044 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56045
56046         * configure.in: Move READELF check to start of file.
56047         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56048         libc_cv_asm_gnu_indirect_function in the process.
56049         * configure: Regenerated.
56050
56051 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56052
56053         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56054         send the output to /dev/null.
56055         (libc_cv_cc_with_libunwind): Likewise.
56056         (libc_cv_as_noexecstack): Likewise.
56057         * configure: Regenerate.
56058
56059 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56060
56061         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56062
56063         * posix/globtest.sh (TMPDIR): Do not set.
56064         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56065         (testout): Likewise.
56066
56067 2012-10-24  Andreas Jaeger  <aj@suse.de>
56068
56069         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56070         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56071         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56072         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56073         posix_fadvise64, posix_fallocate64.
56074
56075         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56076         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56077         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56078         Likewise.
56079         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56080         Likewise.
56081         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56082
56083         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56084         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56085         <bits/fcntl-linux.h>.
56086         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56087
56088         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56089         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56090         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56091         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56092         [__WORDSIZE != 64]: Likewise.
56093
56094 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56095
56096         * Makeconfig (run-built-tests): New variable.
56097         * Rules [$(cross-compiling) = yes]: Change condition to
56098         [$(run-built-tests) = no].
56099         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56100         to [$(run-built-tests) = yes].
56101         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56102         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56103         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56104         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56105         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56106         * io/Makefile [$(cross-compiling) = no]: Likewise.
56107         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56108         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56109         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56110         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56111         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56112         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56113         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56114         * string/Makefile [$(cross-compiling) = no]: Likewise.
56115
56116         * posix/Makefile ($(objpfx)globtest.out): Pass
56117         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56118         $(rtld-installed-name).
56119         * posix/globtest.sh (elf_objpfx): Remove variable.
56120         (rtld_installed_name): Likewise.
56121         (library_path): Likewise.
56122         (run_program_prefix): New variable.  Use for running globtest
56123         binary.
56124
56125 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56126             Joseph Myers  <joseph@codesourcery.com>
56127
56128         * Makeconfig (host-built-program-cmd): New variable.
56129         * elf/Makefile (tst-stackguard1-ARGS): Use
56130         $(host-built-program-cmd).
56131         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56132         (tst-spawn-ARGS): Likewise.
56133         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56134
56135 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56136             Jim Blandy  <jimb@codesourcery.com>
56137
56138         * Makeconfig (run-via-rtld-prefix): New variable.
56139         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56140         (built-program-cmd): Likewise.
56141
56142 2012-10-22  Andreas Jaeger  <aj@suse.de>
56143
56144         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56145         __O_RSYNC if it exists, otherwise to O_SYNC.
56146
56147 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56148             Joseph Myers  <joseph@codesourcery.com>
56149
56150         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56151         /dev/null.
56152         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56153         from /dev/null
56154         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56155         /dev/null.
56156
56157 2012-10-22  Andreas Jaeger  <aj@suse.de>
56158
56159         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56160         Define always.
56161         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56162
56163         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56164         bits/fcntl-linux.h.
56165
56166         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56167         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56168
56169         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56170         to __O_LARGEFILE.
56171         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56172         to __O_LARGEFILE.
56173
56174 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56175             Joseph Myers  <joseph@codesourcery.com>
56176
56177         * config.make.in (NM): New variable.
56178
56179 2012-10-21  Andreas Jaeger  <aj@suse.de>
56180
56181         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56182         definitions and declarations that are provided by
56183         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56184
56185 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56186
56187         [BZ #14683]
56188         * elf/Makefile (tests-static): Add tst-leaks1-static.
56189         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56190         ($(objpfx)tst-leaks1-static): New rule.
56191         ($(objpfx)tst-leaks1-static-mem): Likewise.
56192         (tst-leaks1-static-ENV): New macro.
56193         * elf/dl-open.c (dl_open_worker): Check the main application
56194         only if SHARED is defined.
56195         * elf/tst-leaks1-static.c: New file.
56196
56197 2012-10-20  Andreas Jaeger  <aj@suse.de>
56198
56199         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56200         generic values for Linux.
56201         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56202         and declarations that are provided by <bits/fcntl-linux.h> and
56203         include <bits/fcntl-linux.h>.
56204         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56205         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56206
56207 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56208
56209         * io/fcntl.h: Move include of <bits/types.h> to the top and
56210         include it unconditionally.
56211
56212 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56213
56214         * wcsmbs/Makefile (tests-ifunc): New variable.
56215         (tests): Add $(tests-ifunc).
56216         * wcsmbs/test-wcschr-ifunc.c: New file.
56217         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56218         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56219         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56220         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56221         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56222
56223         * string/Makefile (tests-ifunc): New variable.
56224         (tests): Add $(tests-ifunc).
56225         * string/test-memccpy.c (TEST_NAME): New macro.
56226         * string/test-memchr.c (TEST_NAME): Likewise.
56227         * string/test-memcmp.c (TEST_NAME): Likewise.
56228         * string/test-memcpy.c (TEST_NAME): Likewise.
56229         * string/test-memmem.c (TEST_NAME): Likewise.
56230         * string/test-memmove.c (TEST_NAME): Likewise.
56231         * string/test-memset.c (TEST_NAME): Likewise.
56232         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56233         * string/test-stpcpy.c (TEST_NAME): Likewise.
56234         * string/test-stpncpy.c (TEST_NAME): Likewise.
56235         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56236         * string/test-strcasestr.c (TEST_NAME): Likewise.
56237         * string/test-strcat.c (TEST_NAME): Likewise.
56238         * string/test-strchr.c (TEST_NAME): Likewise.
56239         * string/test-strcmp.c(TEST_NAME): Likewise.
56240         * string/test-strcpy.c (TEST_NAME): Likewise.
56241         * string/test-strcspn.c (TEST_NAME): Likewise.
56242         * string/test-strlen.c (TEST_NAME): Likewise.
56243         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56244         * string/test-strncmp.c (TEST_NAME): Likewise.
56245         * string/test-strncpy.c (TEST_NAME): Likewise.
56246         * string/test-strnlen.c (TEST_NAME): Likewise.
56247         * string/test-strpbrk.c (TEST_NAME): Likewise.
56248         * string/test-strrchr.c (TEST_NAME): Likewise.
56249         * string/test-strspn.c (TEST_NAME): Likewise.
56250         * string/test-strstr.c (TEST_NAME): Likewise.
56251         * string/test-bcopy-ifunc.c: New file.
56252         * string/test-bzero-ifunc.c: Likewise.
56253         * string/test-memccpy-ifunc.c: Likewise.
56254         * string/test-memchr-ifunc.c: Likewise.
56255         * string/test-memcmp-ifunc.c: Likewise.
56256         * string/test-memcpy-ifunc.c: Likewise.
56257         * string/test-memmem-ifunc.c: Likewise.
56258         * string/test-memmove-ifunc.c: Likewise.
56259         * string/test-mempcpy-ifunc.c: Likewise.
56260         * string/test-memset-ifunc.c: Likewise.
56261         * string/test-rawmemchr-ifunc.c: Likewise.
56262         * string/test-stpcpy-ifunc.c: Likewise.
56263         * string/test-stpncpy-ifunc.c: Likewise.
56264         * string/test-strcasecmp-ifunc.c: Likewise.
56265         * string/test-strcasestr-ifunc.c: Likewise.
56266         * string/test-strcat-ifunc.c: Likewise.
56267         * string/test-strchr-ifunc.c: Likewise.
56268         * string/test-strchrnul-ifunc.c: Likewise.
56269         * string/test-strcmp-ifunc.c: Likewise.
56270         * string/test-strcpy-ifunc.c: Likewise.
56271         * string/test-strcspn-ifunc.c: Likewise.
56272         * string/test-strlen-ifunc.c: Likewise.
56273         * string/test-strncasecmp-ifunc.c: Likewise.
56274         * string/test-strncat-ifunc.c: Likewise.
56275         * string/test-strncmp-ifunc.c: Likewise.
56276         * string/test-strncpy-ifunc.c: Likewise.
56277         * string/test-strnlen-ifunc.c: Likewise.
56278         * string/test-strpbrk-ifunc.c: Likewise.
56279         * string/test-strrchr-ifunc.c: Likewise.
56280         * string/test-strspn-ifunc.c: Likewise.
56281         * string/test-strstr-ifunc.c: Likewise.
56282
56283         * debug/Makefile (tests-ifunc): New variable.
56284         (tests): Add $(tests-ifunc).
56285         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56286         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56287         * debug/test-stpcpy_chk-ifunc.c: New file.
56288         * debug/test-strcpy_chk-ifunc.c: Likewise.
56289
56290 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56291
56292         [BZ #13601]
56293         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56294         header is not read in.
56295
56296 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56297
56298         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56299         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56300         directly.  Pass built executable to script as
56301         $(built-program-cmd).
56302         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56303         $testprogram without using LD_LIBRARY_PATH and $ldso.
56304
56305         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56306         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56307         $(rtld-installed-name).
56308         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56309         (rtld_installed_name): Likewise.
56310         (library_path): Likewise.
56311         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56312         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56313         $(run-program-prefix) to tst-tables.sh.
56314         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56315         it to run tst-table-from and tst-table-to.
56316         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56317         Pass it to tst-table.sh.
56318         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56319         $(run-program-prefix) to tst-gettext.sh.
56320         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56321         tst-translit.sh.
56322         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56323         tst-gettext2.sh.
56324         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56325         to run tst-gettext.
56326         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56327         to run tst-gettext2.
56328         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56329         to run tst-translit.
56330         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56331         $(run-program-prefix) to tst-mtrace.sh.
56332         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56333         to run tst-mtrace.
56334         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56335         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56336         $(rtld-installed-name).
56337         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56338         (rtld_installed_name): Likewise.
56339         (run_program_prefix): New variable.  Use it to run wordexp-test.
56340
56341         * Makeconfig (ARCH): Remove all definitions.
56342         (machine): Likewise.
56343         [ARCH]: Remove conditional code.
56344         [!objdir]: Give error.
56345         [!objdir] (objpfx): Remove.
56346         [!objdir] (common-objpfx): Likewise.
56347         [!objdir] (common-objdir): Likewise.
56348         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56349         AC_CONFIG_FILES call.
56350         * configure: Regenerated.
56351
56352         [BZ #13888]
56353         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56354         or TMPDIR.
56355         (testout): Likewise.
56356
56357         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56358         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56359         $(rtld-installed-name).
56360         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56361         (rtld_installed_name): Likwise.
56362         (runit): Remove function.
56363         (run_getconf): New variable,  Use it for running getconf binary.
56364
56365 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56366
56367         [BZ #14716]
56368         * string/test-memmem.c (check_result): New function.
56369         (do_one_test): Use it.
56370         (check1): New function.
56371         (test_main): Use it.
56372
56373 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56374
56375         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56376
56377 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56378
56379         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56380         (_G_LSEEK64): Likewise.
56381         (_G_MMAP64): Likewise.
56382         (_G_FSTAT64): Likewise.
56383         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56384         (_G_LSEEK64): Likewise.
56385         (_G_MMAP64): Likewise.
56386         (_G_FSTAT64): Likewise.
56387         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56388         unconditional.  Call __mmap64 directly.
56389         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56390         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56391         __lseek64 directly.
56392         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56393         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56394         __mmap64 directly.
56395         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56396         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56397         __lseek64 directly.
56398         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56399         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56400         __lseek64 directly.
56401         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56402         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56403         __lseek64 directly.
56404         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56405         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56406         __fxstat64 directly.
56407         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56408         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56409         unconditional.
56410         (freopen64) [!_G_OPEN64]: Remove conditional code.
56411         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56412         unconditional.
56413         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56414         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56415         unconditional.
56416         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56417         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56418         unconditional.
56419         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56420         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56421         unconditional.
56422         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56423         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56424         unconditional.
56425         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56426         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56427         unconditional.
56428         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56429         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56430         unconditional.
56431         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56432
56433 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56434
56435         [BZ #12140]
56436         * manual/memory.texi (Malloc Tunable Parameters): Add note
56437         about free list pointers overwriting some perturb bytes.
56438         Wording suggested by Roland McGrath.
56439
56440 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56441
56442         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56443         (lgamma_test): Likewise.
56444         (tgamma_test): Likewise.
56445
56446 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56447
56448         [BZ #14700]
56449         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56450         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56451
56452 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56453
56454         * NEWS: Mention BZ #14716.
56455         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56456         when removing AVAILABLE1_USES_J macro.
56457
56458 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56459
56460         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56461         (__bswap_64): __uint64_t for unsigned 64-bit int.
56462
56463 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56464
56465         * include/string.h (memmem): Declare libc hidden alias.
56466         * string/memmem.c (memmem): Define libc hidden alias.
56467         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56468         __read, __close instead of open, read, close.
56469
56470 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56471
56472         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56473         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56474         global and hidden.
56475         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56476         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56477         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56478         Likewise.
56479         (__rawmemchr_sse2): Likewise.
56480         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56481         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56482         (__strchr_sse2): Likewise.
56483         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56484         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56485         (__strcasecmp_sse2): Likewise.
56486         (__strncasecmp_sse2): Likewise.
56487         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56488         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56489         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56490         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56491         (__strrchr_sse2): Likewise.
56492         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56493         ifunc-impl-list.c.
56494         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56495         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56496         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56497         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56498         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56499         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56500         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56501         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56502         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56503         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56504         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56505         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56506         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56507         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56508         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56509         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56510         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56511         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56512         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56513         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56514         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56515         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56516         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56517         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56518         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56519         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56520         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56521         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56522         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56523         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56524
56525         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56526         global and hidden.
56527         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56528         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56529         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56530         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56531         Likewise.
56532         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56533         Likewise.
56534         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56535         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56536         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56537         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56538         ifunc-impl-list.c.
56539         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56540         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56541         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56542         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56543         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56544         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56545         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56546         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56547         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56548         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56549         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56550         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56551         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56552         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56553         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56554         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56555         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56556         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56557         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56558         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56559         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56560         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56561         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56562         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56563         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56564         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56565         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56566         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56567         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56568         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56569         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56570         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56571         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56572         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56573         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56574         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56575         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56576         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56577         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56578         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56579         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56580
56581         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56582         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56583         * include/ifunc-impl-list.h: New file.
56584         * misc/ifunc-impl-list.c: Likewise.
56585         * misc/Makefile (routines): Add ifunc-impl-list.
56586         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56587         * string/test-string.h: Include <ifunc-impl-list.h>.
56588         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56589         TEST_NAME]: New variables.
56590         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56591         are defined.
56592         (test_init): Call __libc_ifunc_impl_list to initialize
56593         func_list if TEST_IFUNC and TEST_NAME are defined.
56594
56595         * string/Makefile (strop-tests): Add bcopy and bzero.
56596         * string/test-bcopy.c: New file.
56597         * string/test-bzero.c: Likewise.
56598         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56599         defined.
56600         * string/test-memset.c: Support bzero test if TEST_BZERO is
56601         defined.
56602         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56603         __libc_memmove.
56604         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56605         __libc_memset.
56606         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56607         of memset.
56608
56609 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56610
56611         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56612         * configure: Regenerated.
56613
56614         * Makeconfig (+link-static-before-libc): Don't include
56615         $(link-static-libc).
56616
56617         * libio/libio.h (_IO_pos_t): Remove.
56618
56619 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56620
56621         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56622         McGrath.
56623
56624 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56625
56626         * crypt/crypt-entry.c: Include fips-private.h.
56627         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56628         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56629         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56630         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56631
56632 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56633
56634         * crypt/crypt-private.h: Include stdbool.h.
56635         (_ufc_setup_salt_r): Return bool.
56636         * crypt/crypt-entry.c: Include errno.h.
56637         (__crypt_r): Return NULL with EINVAL for bad salt.
56638         * crypt/crypt_util.c (bad_for_salt): New.
56639         (_ufc_setup_salt_r): Check that salt is long enough and within
56640         the specified alphabet.
56641         * crypt/badsalttest.c: New file.
56642         * crypt/Makefile (tests): Add it.
56643         ($(objpfx)badsalttest): New.
56644
56645 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56646
56647         * NEWS: Add entry for BZ #14602.
56648
56649 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56650
56651         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56652         type-generic.
56653         * math/libm-test.inc: Update comment listing what functions and
56654         macros are tested.
56655         (isgreater_test): New function.
56656         (isgreaterequal_test): Likewise.
56657         (isless_test): Likewise.
56658         (islessequal_test): Likewise.
56659         (islessgreater_test): Likewise.
56660         (isunordered_test): Likewise.
56661         (main): Call the new functions.
56662
56663 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56664
56665         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56666         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56667         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56668         * sysdeps/i386/configure: Regenerated.
56669         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56670         * sysdeps/mach/configure: Regenerated.
56671         * sysdeps/mach/hurd/configure: Regenerated.
56672         * sysdeps/powerpc/configure: Regenerated.
56673         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56674         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56675         * sysdeps/s390/s390-32/configure: Regenerated.
56676         * sysdeps/s390/s390-64/configure: Regenerated.
56677         * sysdeps/sh/configure: Regenerated.
56678         * sysdeps/sparc/configure: Regenerated.
56679         * sysdeps/unix/sysv/linux/configure: Regenerated.
56680         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56681         * sysdeps/x86_64/configure: Regenerated.
56682
56683         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56684         defined.  Don't check if MAP is NULL.
56685
56686 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56687
56688         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56689         (_G_stat64): Likewise.
56690         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56691         (_G_stat64): Likewise.
56692         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56693         instead of struct _G_stat64.
56694         * libio/fileops.c (mmap_remap_check): Likewise.
56695         (decide_maybe_mmap): Likewise.
56696         (_IO_new_file_seekoff): Likewise.
56697         (_IO_file_stat): Likewise.
56698         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56699         _G_off64_t.
56700         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56701         instead of struct _G_stat64.
56702         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56703
56704 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56705
56706         [BZ #14602]
56707         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56708         Replace with ...
56709         (CHECK_EOL): New macro.
56710         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56711         CHECK_EOL.
56712         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56713         Replace with CHECK_EOL.
56714         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56715         Replace with CHECK_EOL.
56716
56717 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56718
56719         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56720         type-generic.
56721         * math/libm-test.inc: Update comment listing what functions and
56722         macros are tested.
56723         (finite_test): New function.
56724         (isinf_test): Likewise.
56725         (isnan_test): Likewise.
56726         (fpclassify_test): Test subnormal input.
56727         (isfinite_test): Likewise.
56728         (isnormal_test): Likewise.
56729         (main): Call the new functions.
56730
56731 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56732
56733         [BZ #14660]
56734         * Makerules (%.dynsym): Force C locale when running
56735         $(OBJDUMP) --dynamic-syms.
56736
56737 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56738
56739         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56740         <stdint.h>.
56741
56742 2012-10-06  David S. Miller  <davem@davemloft.net>
56743
56744         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56745         upper 32-bits of the length value in %o2 since we use branch-on-register
56746         tests which consider the entire 64-bit register.
56747
56748 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56749
56750         * string/test-strstr.c (check2): Add a test for page boundary.
56751
56752 2012-10-05  David S. Miller  <davem@davemloft.net>
56753
56754         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56755         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56756         file.
56757         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56758         sysdep_routines.
56759         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56760         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56761         and bzero when HWCAP_SPARC_CRYPTO is present.
56762
56763 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
56764
56765         [BZ #14602]
56766         * string/test-strstr.c (check2): New function.
56767         (test_main): Call check2.
56768
56769         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
56770         and bug-strchr1.
56771         * string/bug-strcasestr1.c (do_test): Moved to ...
56772         * string/test-strcasestr.c (check1): Here.  New function.
56773         (do_one_test): Break out result checking code into ...
56774         (check_result): This.  New function.
56775         (do_one_test): Call check_result.
56776         (test_main): Call check1.
56777         * string/bug-strchr1.c (do_test): Moved to ...
56778         * string/test-strchr.c (check1): Here.  New function.
56779         (do_one_test): Break out result checking code into ...
56780         (check_result): This.  New function.
56781         (do_one_test): Call check_result.
56782         (test_main): Call check1.
56783         * string/bug-strstr1.c (main): Moved to ...
56784         * string/test-strstr.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-strcasestr1.c: Removed.
56790         * string/bug-strchr1.c: Likewise.
56791         * string/bug-strstr1.c: Likewise.
56792
56793         * elf/Makefile (dl-routines): Add hwcaps.
56794         * elf/dl-support.c (_dl_important_hwcaps): Removed.
56795         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
56796         (_dl_important_hwcaps): Moved to ...
56797         * elf/dl-hwcaps.c: Here.  New file.
56798         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
56799
56800         [BZ #14557]
56801         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
56802         if IS_IN_rtld isn't defined.
56803
56804         * elf/dl-support.c (_dl_sysinfo_map): New.
56805         Include "get-dynamic-info.h" and "setup-vdso.h".
56806         (_dl_non_dynamic_init): Call setup_vdso.
56807         * elf/dynamic-link.h: Don't include <assert.h>.
56808         (elf_get_dynamic_info): Moved to ...
56809         * elf/get-dynamic-info.h: Here.  New file.
56810         * elf/dynamic-link.h: Include "get-dynamic-info.h".
56811         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
56812         * elf/setup-vdso.h: Here.  New file.
56813         * elf/rtld.c: Include "setup-vdso.h".
56814         (dl_main): Call setup_vdso.
56815
56816 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
56817
56818         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
56819         creal in comment listing functions tested.  List finite, isinf,
56820         isnan, isless, islessequal, isgreater, isgreaterequal,
56821         islessgreater, isunordered, lgamma_r and pow10 as functions and
56822         macros not tested.  Mention which functions not tested are aliases
56823         for other functions.  Fix typo.  Note that signs of NaNs are not
56824         tested.
56825
56826         * scripts/config.guess: Update from config.git.
56827         * scripts/config.sub: Likewise.
56828
56829 2012-10-04  Roland McGrath  <roland@hack.frob.com>
56830
56831         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
56832         * misc/madvise.c (madvise): Renamed to __madvise.
56833         Make madvise a weak alias.
56834         * include/sys/mman.h: Declare __madvise.
56835         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
56836         * sysdeps/unix/syscalls.list
56837         (madvise): Make __madvise the strong name, and madvise a weak alias.
56838         * sysdeps/unix/sysv/linux/syscalls.list
56839         (madvise, mmap): Remove redundant entries.
56840         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
56841         * malloc/malloc.c (mtrim): Likewise.
56842         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
56843
56844 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56845
56846         * sysdeps/mach/hurd/dl-cache.c: File removed.
56847         * config.h.in (USE_LDCONFIG): New #undef.
56848         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
56849         * configure: Regenerated.
56850         * elf/Makefile (dl-routines): Add dl-cache only under
56851         [$(use-ldconfig) = yes].
56852         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
56853         cache on [USE_LDCONFIG].
56854         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
56855         [USE_LDCONFIG].
56856         * elf/rtld.c (dl_main): Likewise.
56857
56858 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
56859
56860         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
56861         _SC_LEVEL4_CACHE_LINESIZE.
56862
56863 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56864
56865         * sysdeps/unix/bsd/confstr.h: File removed.
56866
56867 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
56868
56869         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
56870         sys/sdt-config.h.
56871
56872 2012-10-02  Roland McGrath  <roland@hack.frob.com>
56873
56874         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
56875         Make 'mapoff' field ElfW(Off) rather than off_t.
56876
56877 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56878
56879         * nscd/Makefile: Remove nscd-cflags and all its users.
56880         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
56881         (CFLAGS-nonlib): Add compiler flags for nscd modules.
56882
56883         [BZ #10631]
56884         * malloc.c (malloc_printerr): Clarify error message.
56885
56886 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
56887
56888         [BZ #14648]
56889         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56890         Set bit_FMA_Usable if FMA is supported.
56891         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
56892         macro.
56893         (bit_FMA4_Usable): Updated.
56894         (index_FMA_Usable): New macro.
56895         (CPUID_FMA): Likewise.
56896         (HAS_FMA): Defined with bit_FMA_Usable.
56897
56898 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56899
56900         * bits/types.h (__swblk_t): Type removed.
56901         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
56902         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
56903         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
56904         (__SWBLK_T_TYPE): Likewise.
56905         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
56906         (__SWBLK_T_TYPE): Likewise.
56907         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
56908         (__SWBLK_T_TYPE): Likewise.
56909         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
56910         (__SWBLK_T_TYPE): Likewise.
56911
56912 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
56913             Honza Horak <hhorak@redhat.com>
56914
56915         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
56916         (xdr_mapname): Use YPMAXMAP as maxsize.
56917         (xdr_peername): Use YPMAXPEER as maxsize.
56918         (xdr_keydat): Use YPAXRECORD as maxsize.
56919         (xdr_valdat): Use YPMAXRECORD as maxsize.
56920
56921 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56922
56923         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
56924
56925         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
56926         * csu/init-first.c: ... here.
56927         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
56928         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
56929         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
56930         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
56931         * sysdeps/i386/init-first.c: File removed.
56932         * sysdeps/sh/init-first.c: File removed.
56933
56934 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
56935
56936         [BZ #14645]
56937         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
56938         if x * y might underflow to zero and z is zero.
56939         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56940         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56941         * math/libm-test.inc (min_subnorm_value): New variable.
56942         (fma_test): Add more tests.
56943         (fma_test_towardzero): Likewise.
56944         (fma_test_downward): Likewise.
56945         (fma_test_upward): Likewise.
56946         (initialize): Set min_subnorm_value.
56947
56948 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
56949
56950         [BZ #14638]
56951         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
56952         0 + 0.
56953         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
56954         mode for addition resulting in exact zero.
56955         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
56956         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
56957         exact 0 + 0.
56958         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56959         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56960         * math/libm-test.inc (fma_test): Add more tests.
56961         (fma_test_towardzero): New function.
56962         (fma_test_downward): Likewise.
56963         (fma_test_upward): Likewise.
56964         (main): Call the new functions.
56965
56966 2012-09-28  David S. Miller  <davem@davemloft.net>
56967
56968         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
56969
56970 2012-09-28  Roland McGrath  <roland@hack.frob.com>
56971
56972         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
56973         instead of SIGALRM.
56974
56975         * sysdeps/gnu/_G_config.h: Moved to ...
56976         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
56977         * sysdeps/mach/hurd/_G_config.h: Moved to ...
56978         * sysdeps/generic/_G_config.h: ... here.
56979
56980         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
56981
56982         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
56983
56984         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
56985         Conditionalize target on [libnss_test1.so-version].
56986
56987         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
56988
56989         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
56990         (elfobjdir): Move out of conditionals.
56991
56992         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
56993         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
56994         (__nss_lookup_function): Conditionalize label remove_from_tree on
56995         [!DO_STATIC_NSS || SHARED], matching its only use.
56996
56997 2012-09-28  David S. Miller  <davem@davemloft.net>
56998
56999         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57000         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57001         file.
57002         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57003         sysdep_routines.
57004         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57005         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57006         when HWCAP_SPARC_CRYPTO is present.
57007
57008 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57009
57010         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57011
57012 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57013
57014         [BZ #6530]
57015         * stdio-common/vfprintf.c (process_string_arg): Revert
57016         2000-07-22 change.
57017
57018 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57019
57020         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57021         for testcase.
57022         * stdio-common/tst-sprintf.c: Include <locale.h>
57023         (main): Test sprintf's handling of incomplete multibyte
57024         characters.
57025
57026 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57027
57028         * elf/dl-runtime.c (VERSYMIDX): Removed.
57029         * elf/dl-version.c (VERSYMIDX): Likewise.
57030         * elf/do-rel.h (VERSYMIDX): Likewise.
57031         (VALIDX): Likewise.
57032         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57033         * elf/rtld.c (VALIDX): Likewise.
57034         (ADDRIDX): Likewise.
57035         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57036         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57037         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57038         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57039         (VALIDX): Likewise.
57040         (ADDRIDX): Likewise.
57041
57042 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57043
57044         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57045
57046 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57047
57048         [BZ #11438]
57049         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57050         to global scope.
57051         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57052         addresses are in the same scope as 192.0.2/24.
57053         * posix/gai.conf: Document new scope table defaults.
57054
57055 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57056
57057         [BZ #5298]
57058         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57059         for ftell.  Compute offsets from write pointers instead.
57060         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57061
57062 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57063
57064         [BZ #14543]
57065         * libio/Makefile (tests): New test case tst-fseek.
57066         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57067         combination works in wide mode.
57068         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57069         state when the external buffer state changes.
57070
57071 2012-09-27  David S. Miller  <davem@davemloft.net>
57072
57073         [BZ #14376]
57074         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57075         pass reloc->r_addend in as the 'high' argument to
57076         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57077
57078         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57079
57080 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57081
57082         * rt/tst-aio2.c: Include <pthread.h>.
57083         * rt/tst-aio3.c: Likewise.
57084
57085 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57086
57087         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57088
57089 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57090
57091         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57092         contents on [SHARED].
57093
57094 2012-09-26  Marek Polacek  <polacek@redhat.com>
57095
57096         [BZ #14530]
57097         [BZ #13741]
57098         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57099         for C++ and GCC <4.3 as well as for non GCC compilers.
57100
57101 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57102
57103         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57104
57105 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57106
57107         * Makefile.in (all, install): Declare with .PHONY.
57108         Reported by Michael Hope <michael.hope@linaro.org>.
57109
57110 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57111
57112         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57113         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57114         system header.
57115         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57116         Likewise.
57117         (sydep_routines): Add the new and the internal functions.
57118         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57119         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57121         (GLIBC_2.17): Add the new function.
57122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57123         (GLIBC_2.17): Likewise.
57124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57125         (GLIBC_2.17): Likewise.
57126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57127         (GLIBC_2.17): Likewise.
57128         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57129
57130 2012-09-25  Alan Modra  <amodra@gmail.com>
57131
57132         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57133         Add release barrier before setting once_control to say
57134         initialisation is done.  Add hints on lwarx.  Use macro in
57135         place of isync.
57136         (clear_once_control): Add release barrier.
57137
57138 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57139
57140         [BZ #13629]
57141         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57142         specially.
57143         * math/s_clog10.c (__clog10): Likewise.
57144         * math/s_clog10f.c (__clog10f): Likewise.
57145         * math/s_clog10l.c (__clog10l): Likewise.
57146         * math/s_clogf.c (__clogf): Likewise.
57147         * math/s_clogl.c (__clogl): Likewise.
57148         * math/Makefile (libm-calls): Add x2y2m1.
57149         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57150         (__x2y2m1): Likewise.
57151         (__x2y2m1l): Likewise.
57152         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57153         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57154         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57155         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57156         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57157         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57158         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57159         * sysdeps/i386/fpu/libm-test-ulps: Update.
57160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57161
57162         [BZ #14621]
57163         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57164         int as type of variable DEPTH.
57165         (glob): Use size_t instead of int as type of variables NEWCOUNT
57166         and OLD_PATHC.
57167
57168 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57169
57170         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57171         Add s_sincosf-sse2.
57172         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57173         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57174         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57175         macros for using routine as __sincosf_ia32.
57176         Use macro for function declaration and weak_alias.
57177         * sysdeps/i386/fpu/libm-test-ulps: Update.
57178
57179         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57180         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57181
57182         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57183         subnormal argument.
57184         * math/s_cexpf.c (__cexpf): Likewise.
57185         * math/s_csinf.c (__csinf): Likewise.
57186         * math/s_csinhf.c (__csinhf): Likewise.
57187         * math/s_ctanf.c (__ctanf): Likewise.
57188         * math/s_ctanhf.c (__ctanhf): Likewise.
57189         * math/s_ccosh.c (__ccoshf): Likewise.
57190         * math/s_cexp.c (__cexpl): Likewise.
57191         * math/s_csin.c (__csin): Likewise.
57192         * math/s_csinh.c (__csinh): Likewise.
57193         * math/s_ctan.c (__ctan): Likewise.
57194         * math/s_ctanh.c (ctanh): Likewise.
57195         * math/s_ccoshl.c (__ccoshl): Likewise.
57196         * math/s_cexpl.c (__cexpl): Likewise.
57197         * math/s_csinl.c (__csinl): Likewise.
57198         * math/s_csinhl.c (__csinhl): Likewise.
57199         * math/s_ctanl.c (__ctanl): Likewise.
57200         * math/s_ctanhl.c (__ctanhl): Likewise.
57201
57202 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57203
57204         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57205         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57206         (_IO_off_t): Define to __off_t, not _G_off_t.
57207         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57208         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57209         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57210         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57211         type of __dummy and __dummy2 fields.
57212         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57213         (_G_ssize_t): Likewise.
57214         (_G_off_t): Likewise.
57215         (_G_pid_t): Likewise.
57216         (_G_uid_t): Likewise.
57217         (_G_wchar_t): Likewise.
57218         (_G_wint_t): Likewise.
57219         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57220         (_G_ssize_t): Likewise.
57221         (_G_off_t): Likewise.
57222         (_G_pid_t): Likewise.
57223         (_G_uid_t): Likewise.
57224         (_G_wchar_t): Likewise.
57225         (_G_wint_t): Likewise.
57226         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57227         (_G_ssize_t): Likewise.
57228         (_G_off_t): Likewise.
57229         (_G_pid_t): Likewise.
57230         (_G_uid_t): Likewise.
57231         (_G_wchar_t): Likewise.
57232         (_G_wint_t): Likewise.
57233
57234 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57235
57236         * malloc/arena.c: Include malloc-sysdep.h.
57237         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57238         is sufficient to shrink the heap or an unmap is needed.
57239         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57240         new function check_may_shrink_heap.
57241         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57242         new function check_may_shrink_heap.
57243
57244 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57245
57246         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57247         comments.
57248
57249 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57250
57251         * catgets/test-gencat.sh: Add "set -e".
57252         * elf/tst-pathopt.sh: Likewise.
57253         * grp/tst_fgetgrent.sh: Likewise.
57254         * iconvdata/run-iconv-test.sh: Likewise.
57255         * intl/tst-gettext.sh: Likewise.
57256         * intl/tst-gettext2.sh: Likewise.
57257         * intl/tst-gettext4.sh: Likewise.
57258         * intl/tst-gettext6.sh: Likewise.
57259         * intl/tst-translit.sh: Likewise.
57260         * io/ftwtest-sh: Likewise.
57261         * libio/test-freopen.sh: Likewise.
57262         * malloc/tst-mtrace.sh: Likewise.
57263         * posix/globtest.sh: Likewise.
57264         * posix/tst-getconf.sh: Likewise.
57265         * posix/wordexp-tst.sh: Likewise.
57266         * stdio-common/tst-printf.sh: Likewise.
57267         * stdio-common/tst-unbputc.sh: Likewise.
57268         * stdlib/tst-fmtmsg.sh: Likewise.
57269         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57270         * catgets/Makefile: Do not specify -e option when running
57271         testsuite shell scripts.
57272         * elf/Makefile: Likewise.
57273         * grp/Makefile: Likewise.
57274         * iconvdata/Makefile: Likewise.
57275         * intl/Makefile: Likewise.
57276         * io/Makefile: Likewise.
57277         * libio/Makefile: Likewise.
57278         * malloc/Makefile: Likewise.
57279         * posix/Makefile: Likewise.
57280         * stdio-common/Makefile: Likewise.
57281         * stdlib/Makefile: Likewise.
57282         * sysdeps/x86_64/Makefile: Likewise.
57283
57284         * io/ftwtest-sh: Add copyright header.
57285         * posix/globtest.sh: Likewise.
57286         * posix/tst-getconf.sh: Likewise.
57287         * posix/wordexp-tst.sh: Likewise.
57288         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57289
57290 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57291
57292         [BZ #13679]
57293         * Makeconfig (+link): Defined as $(+link-static) if
57294         $(build-shared) isn't yes.
57295         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57296         isn't yes.
57297         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57298
57299         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57300
57301         [BZ #14562]
57302         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57303         new chunk size with MALLOC_ALIGN_MASK.
57304
57305 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57306
57307         [BZ #5044]
57308         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57309         <rounding-mode.h>.
57310         (__printf_fphex): Determine rounding using get_rounding_mode and
57311         round_away.
57312         * stdio-common/tst-printf-round.c (struct hex_test): New
57313         structure.
57314         (hex_tests): New variable.
57315         (test_hex_in_one_mode): New function.
57316         (do_test): Also run tests for hex float output.
57317
57318 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57319
57320         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57321         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57322         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57323         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57324         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57325         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57326         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57327         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57328
57329 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57330
57331         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57332         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57333         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57334         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57335
57336 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57337
57338         [BZ #14579]
57339         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57340         mode only.
57341         * elf/tst-rtld-load-self.sh: New test.
57342         * elf/Makefile: Run it.
57343
57344 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57345
57346         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57347         (tst-writev-ENV): Remove.
57348         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57349
57350 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57351
57352         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57353
57354 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57355
57356         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57357         unconditional.
57358         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57359         Likewise.
57360         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57361         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57362         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57363         Likewise.
57364
57365 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57366
57367         [BZ #14587]
57368         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57369         * config.make.in (have-cpp-asm-debuginfo): Removed.
57370         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57371         * configure: Regenerated.
57372
57373 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57374
57375         [BZ #5044]
57376         * stdio-common/printf_fp.c: Include <stdbool.h> and
57377         <rounding-mode.h>.
57378         (___printf_fp): Determine rounding using get_rounding_mode and
57379         round_away.
57380         * stdio-common/tst-printf-round.c: New file.
57381         * stdio-common/Makefile (tests): Add tst-printf-round.
57382         (link-libm): New variable.
57383         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57384
57385 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57386
57387         [BZ #14576]
57388         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57389         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57390         Likewise.
57391         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57392         Likewise.
57393
57394 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57395
57396         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57397         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57398         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57399         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57400
57401 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57402
57403         [BZ #14518]
57404         * include/rounding-mode.h: New file.
57405         * sysdeps/generic/get-rounding-mode.h: Likewise.
57406         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57407         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57408         (MAX_VALUE): New macro.
57409         (MIN_VALUE): Likewise.
57410         (overflow_value): New function.
57411         (underflow_value): Likewise.
57412         (round_and_return): Use overflow_value and underflow_value to
57413         determine return values in overflow and underflow cases.  Use
57414         round_away to determine rounding depending on rounding mode.
57415         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57416         determine return values in overflow and underflow cases.
57417         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57418         (struct test_results): New structure.
57419         (struct test): Use struct test_results to store expected results
57420         for all rounding modes.
57421         (TEST): Include expected results for all rounding modes.
57422         (test_in_one_mode): New function.
57423         (do_test): Use test_in_one_mode to compute and check results.
57424         Check results for all rounding modes.
57425         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57426         $(link-libm).
57427
57428 2012-12-09  Allan McRae  <allan@archlinux.org>
57429
57430         * sysdeps/i386/fpu/libm-test-ulps: Update
57431
57432 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57433
57434         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57435         (_G_int32_t): Likewise.
57436         (_G_uint16_t): Likewise.
57437         (_G_uint32_t): Likewise.
57438         (_G_HAVE_BOOL): Likewise.
57439         (_G_HAVE_ATEXIT): Likewise.
57440         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57441         (_G_HAVE_IO_FILE_OPEN): Likewise.
57442         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57443         (_G_int32_t): Likewise.
57444         (_G_uint16_t): Likewise.
57445         (_G_uint32_t): Likewise.
57446         (_G_HAVE_BOOL): Likewise.
57447         (_G_HAVE_ATEXIT): Likewise.
57448         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57449         (_G_HAVE_IO_FILE_OPEN): Likewise.
57450         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57451         (_G_int32_t): Likewise.
57452         (_G_uint16_t): Likewise.
57453         (_G_uint32_t): Likewise.
57454         (_G_HAVE_BOOL): Likewise.
57455         (_G_HAVE_ATEXIT): Likewise.
57456         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57457         (_G_HAVE_IO_FILE_OPEN): Likewise.
57458
57459 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57460
57461         * csu/libc-tls.c: Update copyright years.
57462
57463 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57464
57465         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57466         [!_G_USING_THUNKS]: Remove conditional code.
57467         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57468         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57469
57470         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57471         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57472         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57473         (_G_VTABLE_LABEL_PREFIX): Likewise.
57474         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57475         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57476         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57477         (_G_VTABLE_LABEL_PREFIX): Likewise.
57478         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57479         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57480         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57481         (_G_VTABLE_LABEL_PREFIX): Likewise.
57482         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57483
57484 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57485
57486         * libio/Makefile: Include ../Makeconfig before tests.
57487         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57488         only if $(build-shared) is yes.
57489
57490         * iconv/gconv_db.c: Update copyright years.
57491
57492 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57493
57494         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57495         unwind info if defined PIC. Fix special cases description.
57496         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57497
57498         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57499         DP_HI_MASK entry.
57500         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57501
57502 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57503
57504         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57505
57506         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57507         is NULL.
57508
57509         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57510         (LDLIBS-tst-chk4): This.
57511         (LDFLAGS-tst-chk5): Renamed to ...
57512         (LDLIBS-tst-chk5): This.
57513         (LDFLAGS-tst-chk6): Renamed to ...
57514         (LDLIBS-tst-chk6): This.
57515         (LDFLAGS-tst-lfschk4): Renamed to ...
57516         (LDLIBS-tst-lfschk4): This.
57517         (LDFLAGS-tst-lfschk5): Renamed to ...
57518         (LDLIBS-tst-lfschk5): This.
57519         (LDFLAGS-tst-lfschk6): Renamed to ...
57520         (LDLIBS-tst-lfschk6): This.
57521
57522         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57523         on $(common-objpfx)soversions.mk.
57524
57525 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57526
57527         [BZ #10014]
57528         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57529         example host name.
57530
57531 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57532
57533         * malloc/arena.c (arena_get_retry): New function that gets
57534         another arena for the caller to try its request on.
57535         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57536         current arena cannot fulfill the request.
57537         (__libc_memalign): Likewise.
57538         (__libc_memalign): Likewise.
57539         (__libc_pvalloc): Likewise.
57540         (__libc_calloc): Likewise.
57541
57542 2012-09-05  John Tobey  <john.tobey@gmail.com>
57543
57544         [BZ #13542]
57545         * manual/arith.texi (Operations on Complex): Fix description
57546         of carg branch cut.
57547
57548 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57549
57550         [BZ #10014]
57551         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57552         host name.
57553
57554         [BZ #10038]
57555         * manual/memory.texi (Memory): Make order of menu items match
57556         order of sections.
57557
57558 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57559
57560         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57561         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57562         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57563
57564 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57565
57566         * csu/libc-tls.c (static_dtv): Renamed to ...
57567         (_dl_static_dtv): This.  Make it global.
57568         (_dl_initial_dtv): Removed.
57569         (__libc_setup_tls): Updated.
57570         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57571         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57572         DL_INITIAL_DTV.
57573
57574 2012-09-06  Petr Machata  <pmachata@redhat.com>
57575
57576         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57577         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57578         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57579         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57580
57581 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57582
57583         [BZ #14545]
57584         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57585         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57586         freeing dtv[-1].
57587
57588 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57589
57590         [BZ #14544]
57591         * Makeconfig (link-static-before-libc): Replace $(+prector)
57592         with $(+prectorT).
57593         (link-static-after-libc): Replace $(+postctor) with
57594         $(+postctorT).
57595         (link-bounded): Replace $(+prector)/$(+postctor) with
57596         $(+prectorT)/$(+postctorT).
57597         (+prectorT): New macro.
57598         (+postctorT): Likewise.
57599
57600 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57601
57602         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57603         (round_str): Handle values above the maximum for IBM long double
57604         as inexact.
57605         * stdlib/tst-strtod-round.c (tests): Regenerated.
57606
57607 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57608
57609         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57610         assembler flag.
57611         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57612         zarch_nohighgprs around the zarch optimized routines.
57613         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57614         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57615         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57616         for zarch.
57617
57618 2012-09-05  David S. Miller  <davem@davemloft.net>
57619
57620         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57621
57622         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57623         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57624         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57625         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57626         entries.
57627
57628 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57629
57630         * malloc/arena.c: Fold copyright years.
57631         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57632
57633 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57634
57635         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57636
57637 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57638
57639         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57640
57641 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57642
57643         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57644         change internal state upon failure.
57645
57646 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57647
57648         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57649         * malloc/memusage.c (mmap): Likewise.
57650         (mmap64, mremap): Likewise.  Adjust name in comment.
57651
57652 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57653
57654         * libio/fileops.c: Fix typos in comments.
57655         * libio/oldfileops.c: Likewise.
57656         * libio/wfileops.c: Likewise.
57657
57658 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57659
57660         [BZ #1349]
57661         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57662         (tst-malloc-usable-ENV): Set environment for test case.
57663         * malloc/hooks.c (malloc_check_get_size): New function to get
57664         requested size.
57665         * malloc/malloc.c (musable): Use malloc_check_get_size.
57666         * malloc/tst-malloc-usable.c: New test case.
57667
57668 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57669
57670         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57671
57672 2012-09-05  Allan McRae  <allan@archlinux.org>
57673
57674         [BZ #13966]
57675         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57676         determine header location.
57677         * configure: Regenerated.
57678
57679 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57680
57681         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57682         float format.
57683         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57684         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57685         format.
57686         (test): Regenerate.
57687
57688 2012-09-04  David S. Miller  <davem@davemloft.net>
57689
57690         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57691         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57692         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57693
57694 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57695
57696         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57697         failures.
57698
57699         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57700
57701 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57702
57703         [BZ #9914]
57704         * libio/iogetdelim.c: Include <limits.h>.
57705         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57706         + len + 1 would overflow.
57707
57708 2012-09-03  Andreas Jaeger  <aj@suse.de>
57709
57710         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57711         * sysdeps/i386/fpu/libm-test-ulps: Update.
57712
57713 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57714
57715         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57716         Add s_sinf-sse2, s_conf-sse2.
57717
57718         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57719         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57720         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57721         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57722
57723         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57724         for using routine as __sinf_ia32.
57725         Use macro for function declaration and weak_alias.
57726         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57727         for using routine as __cosf_ia32.
57728         Use macro for function declaration and weak_alias.
57729
57730         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57731         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57732
57733         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57734         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57735         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57736
57737         * math/libm-test.inc (cos_test): Add more test cases.
57738         (sin_test): Likewise.
57739         (sincos_test): Likewise.
57740
57741 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57742
57743         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57744         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57745         hidden.
57746         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57747
57748 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57749
57750         [BZ #14538]
57751         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57752         first element of the GOT.
57753         (elf_machine_load_address): Return the difference between
57754         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57755
57756 2012-09-01  Allan McRae  <allan@archlinux.org>
57757
57758         [BZ #13412]
57759         * configure.in (AWK): Require gawk version 3.0 or later.
57760         * configure: Regenerated.
57761
57762 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57763
57764         * sysdeps/unix/sysv/linux/kernel-features.h
57765         (__ASSUME_POSIX_CPU_TIMERS): Remove.
57766         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
57767         [__NR_clock_getres]: Make code unconditional.
57768         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
57769         (clock_getcpuclockid): Remove code left unreachable by removal of
57770         conditionals.
57771         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
57772         code unconditional.
57773         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57774         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57775         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
57776         Make code unconditional.
57777         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57778         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57779         * sysdeps/unix/sysv/linux/clock_settime.c
57780         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
57781         conditional code.
57782         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
57783         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57784
57785 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
57786
57787         [BZ #14476]
57788         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
57789         scripts/test-installation.pl.
57790
57791         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
57792         and $ld_so_version if it is set.
57793
57794 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57795
57796         [BZ #14516]
57797         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
57798         failure if reading from procfs failed.
57799         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
57800
57801 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57802
57803         * sysdeps/unix/sysv/linux/kernel-features.h
57804         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
57805         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57806         Remove conditional code.
57807         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57808         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
57809         Remove conditional code.
57810         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57811         * sysdeps/unix/sysv/linux/i386/fxstat.c
57812         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57813         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57814         * sysdeps/unix/sysv/linux/i386/fxstatat.c
57815         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57816         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57817         * sysdeps/unix/sysv/linux/i386/lxstat.c
57818         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57819         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57820         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
57821         Remove conditional code.
57822         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57823         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57824         Remove conditional code.
57825         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57826         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
57827         <kernel-features.h>.
57828         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
57829         Remove.
57830         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
57831         Remove conditional code.
57832         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57833         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
57834         Remove conditional.
57835
57836 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
57837
57838         [BZ #5400]
57839         * NEWS: Add fixed bug number.
57840
57841 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57842
57843         [BZ #14519]
57844         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
57845         underflowing exponent in case of negative sign.
57846         * stdlib/tst-strtod-round-data: Add more tests.
57847         * stdlib/tst-strtod-round.c (tests): Regenerated.
57848
57849         [BZ #3479]
57850         * stdlib/strtod_l.c (NDIG): Remove.
57851         (HEXNDIG): Likewise.
57852         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
57853         smallest representable value.
57854         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
57855         lie within an exact representation of 1/2 ulp of the result.
57856         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
57857         unconditionally.
57858         (TENS_P9_IDX): Define unconditionally.
57859         (TENS_P9_SIZE): Likewise.
57860         (TENS_P10_IDX): Likewise.
57861         (TENS_P10_SIZE): Likewise.
57862         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
57863         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
57864         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
57865         entries for 10^2^13 and 10^2^14.
57866         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
57867         (TENS_P13_IDX): Define.
57868         (TENS_P13_SIZE): Likewise.
57869         (TENS_P14_IDX): Likewise.
57870         (TENS_P14_SIZE): Likewise.
57871         (_fpioconst_pow10): Change array size to
57872         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
57873         unconditional.
57874         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
57875         1024]: Add entries for 10^2^13 and 10^2^14.
57876         [LAST_POW10 > _LAST_POW10]: Remove #error.
57877         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
57878         (_fpioconst_pow10): Change array size to
57879         FPIOCONST_POW10_ARRAY_SIZE.
57880         * stdlib/gen-fpioconst.c: New file.
57881         * stdlib/gen-tst-strtod-round.c: Likewise.
57882         * stdlib/tst-strtod-round-data: Likewise.
57883         * stdlib/tst-strtod-round.c: Likewise.
57884         * stdlib/Makefile (tests): Add tst-strtod-round.
57885
57886         [BZ #14459]
57887         * stdlib/strtod_l.c: Include <stdint.h>.
57888         (NDEBUG): Do not define.
57889         (round_and_return): Change EXPONENT parameter to type intmax_t.
57890         Rearrange calculations to avoid internal overflow possibilities.
57891         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
57892         Rearrange calculations to avoid internal overflow possibilities.
57893         Assert that number fits inside MPNSIZE limbs.
57894         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
57895         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
57896         calculations and add assertions to avoid internal overflow
57897         possibilities.  Add casts to avoid signed/unsigned operations.
57898         * stdlib/tst-strtod-overflow.c: New file.
57899         * stdlib/Makefile (tests): Add tst-strtod-overflow.
57900
57901 2012-08-25  Marek Polacek  <polacek@redhat.com>
57902
57903         * time/time.h: Fix some typos in comments.
57904
57905 2012-08-23  Roland McGrath  <roland@hack.frob.com>
57906
57907         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
57908         * posix/tst-rfc3484-2.c: Likewise.
57909         * posix/tst-rfc3484-3.c: Likewise.
57910
57911 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
57912
57913         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
57914         (EF_ARM_ABI_FLOAT_HARD): Likewise.
57915
57916 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
57917
57918         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
57919         #include of fxstatat64.c.
57920
57921 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57922
57923         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
57924         * shadow/getspent_r.c: Likewise.
57925         * shadow/getspnam.c: Likewise.
57926         * shadow/getspnam_r.c: Likewise.
57927         * gshadow/getsgent.c: Likewise.
57928         * gshadow/getsgent_r.c: Likewise.
57929         * gshadow/getsgnam.c: Likewise.
57930         * gshadow/getsgnam_r.c: Likewise.
57931         * inet/getnetbyad.c: Likewise.
57932         * inet/getnetbyad_r.c: Likewise.
57933         * inet/getnetbynm.c: Likewise.
57934         * inet/getnetbynm_r.c: Likewise.
57935         * inet/getnetent.c: Likewise.
57936         * inet/getnetent_r.c: Likewise.
57937         * inet/getproto.c: Likewise.
57938         * inet/getproto_r.c: Likewise.
57939         * inet/getprtent.c: Likewise.
57940         * inet/getprtent_r.c: Likewise.
57941         * inet/getprtname.c: Likewise.
57942         * inet/getprtname_r.c: Likewise.
57943         * inet/getrpcbyname.c: Likewise.
57944         * inet/getrpcbyname_r.c: Likewise.
57945         * inet/getrpcbynumber.c: Likewise.
57946         * inet/getrpcbynumber_r.c: Likewise.
57947         * inet/getrpcent.c: Likewise.
57948         * inet/getrpcent_r.c: Likewise.
57949         * inet/getaliasent.c: Likewise.
57950         * inet/getaliasent_r.c: Likewise.
57951         * inet/getaliasname.c: Likewise.
57952         * inet/getaliasname_r.c: Likewise.
57953         * nscd/getgrgid_r.c: Likewise.
57954         * nscd/getgrnam_r.c: Likewise.
57955         * nscd/gethstbyad_r.c: Likewise.
57956         * nscd/gethstbynm3_r.c: Likewise.
57957         * nscd/getpwnam_r.c: Likewise.
57958         * nscd/getpwuid_r.c: Likewise.
57959         * nscd/getsrvbynm_r.c: Likewise.
57960         * nscd/getsrvbypt_r.c: Likewise.
57961         * nscd/gai.c: Likewise.
57962
57963         * configure.in (build_nscd): New substituted variable, set
57964         by --disable-build-nscd and defaults to $use_nscd.
57965         * configure: Regenerated.
57966         * config.make.in (build-nscd): New substituted variable.
57967         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
57968         Change conditional to require [$(build-nscd) = yes] as well.
57969         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
57970
57971         [BZ# 13696]
57972         * configure.in (use_nscd): New substituted variable, set by
57973         --disable-nscd.  If enabled, define USE_NSCD.
57974         * configure: Regenerated.
57975         * config.h.in: Add USE_NSCD.
57976         * config.make.in (use-nscd): New substituted variable.
57977         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
57978         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
57979         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
57980         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
57981         (CFLAGS-getgrnam_r.c): Likewise.
57982         (CFLAGS-initgroups.c): Likewise.
57983         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
57984         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
57985         Variables removed.
57986         * inet/getnetgrent_r.c
57987         (nscd_setnetgrent): New function, broken out of ...
57988         (setnetgrent): ... here.  Call it.
57989         (innetgr): Conditionalize nscd bits on [USE_NSCD].
57990         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
57991         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
57992         * nscd/Makefile (routines, aux): Move definitions after include of
57993         Makeconfig.  Conditionalize on [$(use-nscd) != no].
57994         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
57995         Conditionalize on [USE_NSCD].
57996         (is_nscd, nscd_init_cb): Likewise.
57997         (nss_load_library): Conditionalize init callback on [USE_NSCD].
57998         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
57999         * nss/nss_db/db-init.c: Likewise.
58000         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58001         [USE_NSCD].
58002         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58003         (make_request): Use it.
58004         (cache_valid_p): New function.
58005         (__check_pf): Use it.
58006         * NEWS: Add item for --disable-nscd.
58007
58008 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58009
58010         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58011         to support sed >= 4.2.1-20-ga9bf076.
58012         * configure: Regenerated.
58013
58014 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58015
58016         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58017         Conditionalize whole body on [IREL].
58018
58019 2012-08-22  Jeff Law <law@redhat.com>
58020
58021         [BZ #14505]
58022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58023         if the family is PF_UNSPEC.
58024
58025 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58026
58027         * Makerules (lib-version): Rename from V.
58028         (install-lib-nosubdir): Change V to lib-version.
58029
58030 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58031
58032         [BZ #14252]
58033         * powerpc32/power6/wcschr.c: New file.
58034         * powerpc32/power6/wcscpy.c: New file.
58035         * powerpc32/power6/wcsrchr.c: New file.
58036         * powerpc64/power6/wcschr.c: New file.
58037         * powerpc64/power6/wcscpy.c: New file.
58038         * powerpc64/power6/wcsrchr.c: New file.
58039
58040 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58041
58042         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58043         (two_way_short_needle): Use it.
58044         * string/strstr.c (AVAILABLE1_USES_J): Define.
58045         * string/strcasestr.c: Likewise.
58046
58047         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58048         array references.
58049         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58050
58051         [BZ #11607]
58052         * NEWS: Add an entry.
58053         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58054         define their defaults.
58055         (two_way_short_needle): Detect end-of-string on-the-fly.
58056         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58057         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58058         * string/bug-strcasestr1.c: New test.
58059         * string/Makefile: Run it.
58060
58061 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58062
58063         [BZ #11607]
58064         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58065         the first character.
58066
58067 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58068
58069         * csu/elf-init.c (__libc_csu_irel): Function removed.
58070         * csu/libc-start.c (apply_irel): New function.
58071         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58072
58073 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58074
58075         * sysdeps/unix/sysv/linux/kernel-features.h
58076         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58077         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58078         <kernel-features.h>.
58079         [__NR_fadvise64_64]: Make code unconditional.
58080         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58081         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58082         !__NR_fadvise64_64)]: Likewise.
58083         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58084         !__NR_fadvise64_64))]: Likewise.
58085         [__NR_fadvise64]: Make code unconditional.
58086         [!__NR_fadvise64]: Remove conditional code.
58087         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58088         <kernel-features.h>.
58089         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58090         unconditional.
58091         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58092         conditional code.
58093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58094         not include <kernel-features.h>.
58095         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58096         unconditional.
58097         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58098         conditional code.
58099         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58100         include <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
58106 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58107
58108         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58109         slight instruction rearrangements per scrollpipe analysis.
58110         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58111
58112 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58113
58114         * manual/syslog.texi (syslog; vsyslog, closelog):
58115         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58116         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58117
58118         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58119         DSOCAPS to match condition on defining it.
58120
58121 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58122
58123         * sysdeps/unix/sysv/linux/kernel-features.h
58124         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58126         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58127         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58129         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58130         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58132         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58133         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58134
58135         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58136         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58137
58138         * sysdeps/unix/sysv/linux/kernel-features.h
58139         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58140         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58141         unconditional.
58142         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58143         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58144         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58145         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58146         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58147         Make code unconditional.
58148         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58149         (__mmap64) [!__NR_mmap2]: Likewise.
58150         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58151         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58152         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58153         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58154         [__NR_mmap2]: Make code unconditional.
58155         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58156         (__mmap64) [!__NR_mmap2]: Likewise.
58157
58158 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58159
58160         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58161
58162 2012-08-18  Andreas Jaeger  <aj@suse.de>
58163
58164         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58165
58166 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58167
58168         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58169         * include/unistd.h (__have_sock_cloexec): Likewise.
58170         (__have_pipe2): Likewise.
58171         (__have_dup3): Likewise.
58172
58173 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58174
58175         [BZ #9685]
58176         * include/unistd.h (__have_pipe2): Change define into an extern int.
58177         (__have_dup3): Likewise.
58178         * socket/have_sock_cloexec.c: Include fcntl.h.
58179         (__have_pipe2): New variable.
58180         (__have_dup3): Likewise.
58181
58182 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58183
58184         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58185
58186 2012-08-17  Marek Polacek  <polacek@redhat.com>
58187
58188         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58189         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58190
58191 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58192
58193         * configure.in: Add AC_SUBST for sysheaders.
58194         * configure: Regenerated.
58195         * config.make.in (sysheaders): New substituted variable.
58196
58197         * sysdeps/unix/mkfifo.c: Moved ...
58198         * sysdeps/posix/mkfifo.c: ... here.
58199         * sysdeps/unix/mkfifoat.c: Moved ...
58200         * sysdeps/posix/mkfifoat.c: ... here.
58201
58202         * sysdeps/unix/utime.c: Moved ...
58203         * sysdeps/posix/utime.c: ... here.
58204
58205         * sysdeps/unix/time.c: Moved ...
58206         * sysdeps/posix/time.c: ... here.
58207         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58208         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58209
58210         * sysdeps/unix/nice.c: Moved ...
58211         * sysdeps/posix/nice.c: ... here.
58212
58213         * sysdeps/unix/alarm.c: Moved ...
58214         * sysdeps/posix/alarm.c: ... here.
58215
58216         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58217
58218 2012-08-17  Jeff Law <law@redhat.com>
58219
58220         * intl/Makefile (codeset_mo): New variable.
58221         ($(codeset_mo)): New target.
58222         (tst-codeset.out): Depend on that.  Remove explicit rule.
58223         (tst-gettext3.out, tst-gettext5.out): Likewise.
58224         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58225         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58226         * intl/tst-codeset.sh: Remove.
58227         * intl/tst-gettext3.sh: Likewise.
58228         * intl/tst-gettext5.sh: Likewise.
58229
58230 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58231
58232         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58233         * sysdeps/unix/syscalls.list: ... here.
58234
58235         * sysdeps/posix/getaddrinfo.c
58236         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58237         (gaiconf_init, gaiconf_reload): Use them.
58238         [!_STATBUF_ST_NSEC]
58239         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58240         Define using time_t rather than struct timespec.
58241
58242         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58243         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58244         Macros removed.
58245         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58246         [!NO_THREADS].
58247         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58248         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58249         Likewise.
58250
58251         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58252         __libc_cleanup_push argument.
58253
58254         * bits/param.h: New file.
58255         * misc/sys/param.h: New file.
58256         * include/sys/param.h: New file.
58257         * misc/Makefile (headers): Add bits/param.h.
58258         * sysdeps/generic/sys/param.h: File removed.
58259         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58260         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58261         * sysdeps/mach/hurd/bits/param.h: New file.
58262         * sysdeps/mach/hurd/sys/param.h: File removed.
58263
58264         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58265         last change.
58266
58267         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58268         [_IO_MTSAFE_IO].
58269         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58270         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58271         New macros.
58272
58273         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58274         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58275         rather than -D_IO_MTSAFE_IO conditionally.
58276         * stdio-common/Makefile (CPPFLAGS): Likewise.
58277         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58278         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58279         Use $(libio-mtsafe).
58280         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58281         of -D_IO_MTSAFE_IO.
58282         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58283         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58284         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58285         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58286         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58287         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58288         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58289         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58290         (CFLAGS-fread_u_chk.c): Likewise.
58291         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58292         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58293         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58294         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58295         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58296         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58297         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58298         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58299         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58300
58301         * libio/Makefile: Test [$(libc-reentrant) = yes]
58302         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58303
58304         * Makeconfig
58305         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58306         * sysdeps/pthread/configure: File removed.
58307         * sysdeps/pthread/Makeconfig: New file.
58308         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58309         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58310
58311 2012-08-16  Gary Benson  <gbenson@redhat.com>
58312
58313         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58314         unmapping the first object in a namespace.
58315
58316 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58317
58318         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58319         (__internal_setnetgrent): ... this.  Add internal_function to
58320         definition.  Add libc_hidden_def.
58321         (setnetgrent): Update caller.
58322         (internal_endnetgrent): Renamed to ...
58323         (__internal_endnetgrent): ... this.  Add internal_function to
58324         definition.  Add libc_hidden_def.
58325         (endnetgrent): Update caller.
58326         (internal_getnetgrent_r): Renamed to ...
58327         (__internal_getnetgrent_r): ... this.  Add internal_function to
58328         definition.  Add libc_hidden_def.
58329         (__getnetgrent_r): Update caller.
58330         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58331
58332 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58333
58334         * stdlib/longlong.h: Update from GCC.
58335
58336 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58337
58338         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58339         on _QL, which is set by umul_ppmm but never used.
58340         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58341         variables, which are set by GMP macros but never used.
58342         * stdio-common/_itowa.c (_itowa): Likewise.
58343         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58344         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58345
58346 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58347
58348         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58349         struct La_sh_regs is not constant.
58350         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58351         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58352         and struct La_sparc64_regs are not constant.
58353
58354 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58355
58356         * sysdeps/unix/sysv/linux/kernel-features.h
58357         (__ASSUME_POSIX_TIMERS): Remove.
58358         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58359         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58360         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58361         Make code unconditional.
58362         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58363         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58364         Make code unconditional.
58365         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58366         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58367         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58368         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58369         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58370         Make code unconditional.
58371         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58372         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58373         (__libc_missing_posix_timers): Remove.
58374
58375 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58376
58377         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58378         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58379
58380         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58381
58382         * elf/dl-sym.c: Include <stdlib.h>.
58383
58384         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58385         constants, which avoids warnings in 32-bit builds.
58386
58387         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58388         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58389
58390         * misc/lseek.c: File moved to ...
58391         * io/lseek.c: ... here.
58392
58393         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58394
58395         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58396         shifting LEN more than 31 bits at once.
58397
58398 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58399
58400         [BZ #14195]
58401         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58402         segmentation fault for a case of two empty input strings.
58403         * string/test-strncasecmp.c (check1): Renamed to...
58404         (bz12205): ...this.
58405         (bz14195): Add new testcase for two empty input strings and N > 0.
58406         (test_main): Call new testcase, adapt for renamed function.
58407
58408 2012-08-15  Andreas Jaeger  <aj@suse.de>
58409
58410         [BZ #14090]
58411         * crypt/md5test2.c: New test, based on test supplied by Serge
58412         Belyshev <belyshev@depni.sinp.msu.ru>.
58413         * crypt/Makefile (xtests): Add md5test-giant..
58414         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58415
58416 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58417
58418         [BZ #14090]
58419         * crypt/md5.c (md5_process_block): Don't assume the buffer
58420         length is less than 2**32.
58421         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58422         length is less than 2**64.
58423
58424 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58425
58426         * string/str-two-way.h: Include <sys/param.h>.
58427         (MAX): Macro removed.
58428
58429         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58430         Move #define and #undef of memmove to just before and after
58431         including <string.h>.
58432
58433         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58434         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58435         and after including <string.h>.  Move declarations of
58436         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58437         to before #include "string/memmove.c".
58438
58439         * include/dirent.h: Declare __getdirentries.
58440
58441         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58442         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58443
58444 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58445
58446         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58447         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58448         * sysdeps/i386/configure: Regenerated.
58449         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58450         STABS_CURRENT_FILE, and STABS_FUN.
58451         (END): Remove call to STABS_FUN_END.
58452         (STABS_CURRENT_FILE1): Delete.
58453         (STABS_CURRENT_FILE): Likewise.
58454         (STABS_FUN): Likewise.
58455         (STABS_FUN_END): Likewise.
58456         (STABS_FUN2): Likewise.
58457         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58458         * sysdeps/x86_64/configure: Regenerated.
58459
58460 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58461
58462         * elf/dl-open.c: Include <atomic.h>.
58463         * elf/dl-lookup.c: Likewise.
58464
58465 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58466
58467         * sysdeps/unix/sysv/linux/kernel-features.h
58468         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58469         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58470         unconditionally.
58471         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58472         unconditionally.
58473         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58474         condition on __ASSUME_CLONE_THREAD_FLAGS.
58475
58476 2012-08-14  Andreas Jaeger  <aj@suse.de>
58477
58478         * sysdeps/i386/fpu/libm-test-ulps: Update.
58479
58480 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58481
58482         * include/atomic.h (atomic_exchange_and_add): Split into ...
58483         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58484         New atomic macros.
58485
58486 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58487
58488         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58489
58490 2012-08-13  Jeff Law <law@redhat.com>
58491
58492         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58493         null byte in the output string.
58494
58495 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58496
58497         * sysdeps/unix/sysv/linux/kernel-features.h
58498         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58499         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58500         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58501         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58502         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58503         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58504         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58505
58506 2012-08-09  Jeff Law <law@redhat.com>
58507
58508         [BZ #13939]
58509         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58510         When avoid_arena is set, don't retry in the that arena.  Pick the
58511         next one, whatever it might be.
58512         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58513         (arena_lock): Pass in new parameter to arena_get2.
58514         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58515         arena_get2.
58516         (__libc_malloc): Unify retrying after main arena failure with
58517         __libc_memalign version.
58518         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58519
58520 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58521
58522         [BZ #14166]
58523         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58524         to __redirect_strstr.
58525         (__strstr_sse42): Use typeof __redirect_strstr.
58526         (__strstr_ia32): Likewise.
58527         (__libc_strstr): New prototype.
58528         (strstr): Renamed to ...
58529         (__libc_strstr): This.
58530         (strstr): New strong alias of __libc_strstr.
58531         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58532         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58533         __redirect_time.
58534         Include <time.h>.
58535         (__libc_time): New prototype.
58536         (time_ifunc): Replace time with __libc_time.
58537         (time): New strong alias and hidden definition of __libc_time.
58538         (__GI_time): Remove strong alias.
58539         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58540         Include <stddef.h>.
58541         (memmove): Redefined to __redirect_memmove.
58542         (__memmove_sse2): Use typeof __redirect_memmove.
58543         (__memmove_ssse3): Likewise.
58544         (__memmove_ssse3_back): Likewise.
58545         (__libc_memmove): New prototype.
58546         (memmove): Renamed to ...
58547         (__libc_memmove): This.
58548         (memmove): New strong alias of __libc_memmove.
58549
58550 2012-08-08  Mark Salter  <msalter@redhat.com>
58551
58552         * elf/elf.h
58553         (R_MN10300_TLS_GD): Define.
58554         (R_MN10300_TLS_LD): Likewise.
58555         (R_MN10300_TLS_LDO): Likewise.
58556         (R_MN10300_TLS_GOTIE): Likewise.
58557         (R_MN10300_TLS_IE): Likewise.
58558         (R_MN10300_TLS_LE): Likewise.
58559         (R_MN10300_TLS_DTPMOD): Likewise.
58560         (R_MN10300_TLS_DTPOFF): Likewise.
58561         (R_MN10300_TLS_TPOFF): Likewise.
58562         (R_MN10300_SYM_DIFF): Likewise.
58563         (R_MN10300_ALIGN): Likewise.
58564         (R_MN10300_NUM): Update.
58565
58566 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58567
58568         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58569         Remove.
58570
58571 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58572
58573         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58574
58575         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58576         sysdeps/unix -> sysdeps/posix move.
58577         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58578
58579 2012-08-07      Allan McRae     <allan@archlinux.org>
58580
58581         [BZ #14303]
58582         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58583         (SUNOS_CPP): Likewise.
58584         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58585         not found.
58586         (open_input): Call CPP using execvp.
58587
58588 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58589
58590         * sysdeps/unix/sysv/linux/kernel-features.h
58591         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58592         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58593         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58594         (__ASSUME_WAITID_SYSCALL): Likewise.
58595         * sysdeps/unix/sysv/linux/dl-execstack.c
58596         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58597         code unconditional.
58598         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58599         conditional code.
58600         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58601         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58602         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58603         code.
58604         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58605         unconditional.
58606         [__ASSUME_WAITID_SYSCALL]: Likewise.
58607         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58608
58609 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58610
58611         * sysdeps/unix/closedir.c: Renamed to ...
58612         * sysdeps/posix/closedir.c: ... here.
58613         * sysdeps/unix/dirfd.c: Renamed to ...
58614         * sysdeps/posix/dirfd.c: ... here.
58615         * sysdeps/unix/dirstream.h: Renamed to ...
58616         * sysdeps/posix/dirstream.h: ... here.
58617         * sysdeps/unix/fdopendir.c: Renamed to ...
58618         * sysdeps/posix/fdopendir.c: ... here.
58619         * sysdeps/unix/opendir.c: Renamed to ...
58620         * sysdeps/posix/opendir.c: ... here.
58621         * sysdeps/unix/readdir.c: Renamed to ...
58622         * sysdeps/posix/readdir.c: ... here.
58623         * sysdeps/unix/readdir_r.c: Renamed to ...
58624         * sysdeps/posix/readdir_r.c: ... here.
58625         * sysdeps/unix/rewinddir.c: Renamed to ...
58626         * sysdeps/posix/rewinddir.c: ... here.
58627         * sysdeps/unix/seekdir.c: Renamed to ...
58628         * sysdeps/posix/seekdir.c: ... here.
58629         * sysdeps/unix/telldir.c: Renamed to ...
58630         * sysdeps/posix/telldir.c: ... here.
58631         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58632         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58633         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58634         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58635
58636         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58637         * bits/fcntl.h: ... here.
58638
58639         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58640         not 0.
58641         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58642         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58643         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58644         (struct flock): Move l_start, l_len to the beginning.
58645         Use __pid_t for l_pid.
58646         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58647         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58648         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58649         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58650         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58651         [__USE_LARGEFILE64] (struct flock64): New type.
58652         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58653
58654         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58655         * bits/dirent.h: ... here.
58656
58657         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58658         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58659
58660 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58661
58662         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58663         Change from 2.6.0 to 2.6.16.
58664         * sysdeps/unix/sysv/linux/configure: Regenerated.
58665         * sysdeps/unix/sysv/linux/kernel-features.h
58666         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58667         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58668         version.
58669         (__ASSUME_UTIMES): Likewise.
58670         (__ASSUME_CLONE_STOPPED): Remove.
58671         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58672         architectures, not kernel version.
58673         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58674         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58675         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58676         (__ASSUME_WAITID_SYSCALL): Likewise.
58677         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58678         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58679         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58680         refer to older versions.
58681
58682 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58683
58684         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58685         Define alphasort64 as an alias.
58686         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58687         Define versionsort64 as an alias.
58688         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58689         Define scandir64 as an alias.
58690         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58691         Define scandirat64 as an alias.
58692         * dirent/alphasort64.c (alphasort64):
58693         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58694         * dirent/versionsort64.c: Likewise.
58695         * dirent/scandir64.c: Likewise.
58696         * dirent/scandirat64.c: Likewise.
58697         * sysdeps/wordsize-64/alphasort.c: File removed.
58698         * sysdeps/wordsize-64/alphasort64.c: File removed.
58699         * sysdeps/wordsize-64/scandir.c: File removed.
58700         * sysdeps/wordsize-64/scandir64.c: File removed.
58701         * sysdeps/wordsize-64/scandirat.c: File removed.
58702         * sysdeps/wordsize-64/scandirat64.c: File removed.
58703         * sysdeps/wordsize-64/versionsort.c: File removed.
58704         * sysdeps/wordsize-64/versionsort64.c: File removed.
58705         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58706         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58707         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58708         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58709         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58710         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58711         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58712         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58713
58714         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58715         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58716         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58717         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58718         [defined __arch64__ || defined __sparcv9]
58719         (__INO_T_MATCHES_INO64_T): New macro.
58720         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58721         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58722         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58723         * sysdeps/unix/sysv/linux/bits/dirent.h
58724         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58725         (_DIRENT_MATCHES_DIRENT64): New macro.
58726
58727         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58728         Define lockf64 as an alias.
58729         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58730         Define fseeko64 as an alias.
58731         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58732         Define ftello64 as an alias.
58733         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58734         Define _IO_fgetpos64 and fgetpos64 as aliases.
58735         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58736         Define _IO_fsetpos64 and fsetpos64 as aliases.
58737         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58738         Conditionalize body on this.
58739         * libio/fseeko64.c: Likewise.
58740         * libio/ftello64.c: Likewise.
58741         * libio/iofgetpos64.c: Likewise.
58742         * libio/iofsetpos64.c: Likewise.
58743         * sysdeps/wordsize-64/lockf.c: File removed.
58744         * sysdeps/wordsize-64/lockf64.c: File removed.
58745         * sysdeps/wordsize-64/fseeko.c: File removed.
58746         * sysdeps/wordsize-64/fseeko64.c: File removed.
58747         * sysdeps/wordsize-64/ftello.c: File removed.
58748         * sysdeps/wordsize-64/ftello64.c: File removed.
58749         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58750         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58751         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58752         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58753         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58754         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58755         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58756         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58757         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58758         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58759         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58760         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58761         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58762         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58763
58764         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58765         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58766         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
58767         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58768         [defined __arch64__ || defined __sparcv9]
58769         (__OFF_T_MATCHES_OFF64_T): New macro.
58770         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58771         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58772         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
58773         (__OFF_T_MATCHES_OFF64_T): New macro.
58774
58775 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58776
58777         * stdlib/secure-getenv.c (__secure_getenv): Replace
58778         GLIBC_2_16 with GLIBC_2_17.
58779
58780 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58781
58782         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
58783         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
58784
58785 2012-08-03  David S. Miller  <davem@davemloft.net>
58786
58787         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58788
58789 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58790
58791         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
58792         Remove.
58793         (__ASSUME_CORRECT_SI_PID): Likewise.
58794         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
58795         (__ASSUME_TMPFS_NAME): Likewise.
58796         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
58797         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
58798         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
58799         (HAVE_AUX_SECURE): Make definition unconditional.
58800         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
58801         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
58802
58803 2012-08-03  Roland McGrath  <roland@hack.frob.com>
58804
58805         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
58806         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
58807         * sysdeps/mach/hurd/eloop-threshold.h: New file.
58808         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
58809         __eloop_threshold instead of SYMLOOP_MAX.
58810
58811         * sysdeps/generic/eloop-threshold.h: New file.
58812         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
58813         of MAXSYMLINKS.
58814         * elf/chroot_canon.c (chroot_canon): Likewise.
58815
58816 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58817
58818         [BZ #13717]
58819         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58820         Change to 2.6.0 everywhere.
58821         * sysdeps/unix/sysv/linux/configure: Regenerated.
58822         * sysdeps/unix/sysv/linux/kernel-features.h
58823         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
58824         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
58825         kernel versions.
58826         (__ASSUME_POSIX_TIMERS): Define unconditionally.
58827         (__ASSUME_FUTEX_REQUEUE): Remove.
58828         (__ASSUME_STATFS64): Define unconditionally.
58829         (__ASSUME_AT_SECURE): Likewise.
58830         (__ASSUME_CORRECT_SI_PID): Likewise.
58831         (__ASSUME_TGKILL): Define without depending on kernel version for
58832         i386.
58833         (__ASSUME_UTIMES): Likewise.
58834         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
58835         kernel version.
58836         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
58837         (__ASSUME_TMPFS_NAME): Likewise.
58838         * README: Update reference to Linux kernel versions.
58839
58840 2012-08-02  Marek Polacek  <polacek@redhat.com>
58841
58842         [BZ# 14150]
58843         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
58844         libc_cv_asm_type_prefix with %.
58845         * configure: Regenerated.
58846         * include/libc-symbols.h: Remove comment about
58847         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58848         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
58849         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
58850         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
58851         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
58852         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58853         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
58854         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
58855         * elf/tst-unique2mod1.c: Likewise.
58856         * elf/tst-unique1mod2.c: Likewise.
58857         * elf/tst-unique1mod1.c: Likewise.
58858         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
58859         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58860         Replace ASM_TYPE_DIRECTIVE with .type.
58861         * sysdeps/s390/s390-64/sysdep.h: Likewise.
58862         * sysdeps/i386/sysdep.h: Likewise.
58863         * sysdeps/x86_64/sysdep.h: Likewise.
58864         * sysdeps/sh/sysdep.h: Likewise.
58865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
58866         Do not define ASM_TYPE_DIRECTIVE.
58867         * sysdeps/powerpc/sysdep.h: Likewise.
58868         * sysdeps/powerpc/powerpc32/sysdep.h:
58869         Replace ASM_TYPE_DIRECTIVE with .type.
58870         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
58871         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
58872         * sysdeps/i386/fpu/e_powf.S: Likewise.
58873         * sysdeps/i386/fpu/e_expl.S: Likewise.
58874         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
58875         * sysdeps/i386/fpu/e_acosh.S: Likewise.
58876         * sysdeps/i386/fpu/e_pow.S: Likewise.
58877         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
58878         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
58879         * sysdeps/i386/fpu/s_expm1.S: Likewise.
58880         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
58881         * sysdeps/i386/fpu/e_log2.S: Likewise.
58882         * sysdeps/i386/fpu/e_log2l.S: Likewise.
58883         * sysdeps/i386/fpu/e_scalb.S: Likewise.
58884         * sysdeps/i386/fpu/e_powl.S: Likewise.
58885         * sysdeps/i386/fpu/e_log10f.S: Likewise.
58886         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
58887         * sysdeps/i386/fpu/e_logl.S: Likewise.
58888         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
58889         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
58890         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
58891         * sysdeps/i386/fpu/e_log2f.S: Likewise.
58892         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
58893         * sysdeps/i386/fpu/e_log.S: Likewise.
58894         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
58895         * sysdeps/i386/fpu/e_logf.S: Likewise.
58896         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58897         * sysdeps/i386/fpu/e_atanh.S: Likewise.
58898         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
58899         * sysdeps/i386/fpu/e_log10.S: Likewise.
58900         * sysdeps/i386/fpu/s_frexp.S: Likewise.
58901         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
58902         * sysdeps/i386/fpu/s_asinh.S: Likewise.
58903         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
58904         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
58905         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
58906         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
58907         * sysdeps/i386/i686/strtok.S: Likewise.
58908         * sysdeps/i386/i386-mcount.S: Likewise.
58909         * sysdeps/i386/strtok.S: Likewise.
58910         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
58911         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
58912         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
58913         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
58914         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
58915         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
58916         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
58917         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
58918         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
58919         * sysdeps/x86_64/_mcount.S: Likewise.
58920         * sysdeps/x86_64/strtok.S: Likewise.
58921         * sysdeps/sh/_mcount.S: Likewise.
58922
58923 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58924
58925         * libio/iofopen.c: Include <fcntl.h>.
58926         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
58927         (_IO_fopen64, fopen64): Define as aliases.
58928         * libio/iofopen64.c: Include <fcntl.h>.
58929         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
58930         Conditionalize body on this.
58931         * sysdeps/wordsize-64/iofopen.c: File removed.
58932         * sysdeps/wordsize-64/iofopen64.c: File removed.
58933
58934 2012-08-01  Marek Polacek  <polacek@redhat.com>
58935
58936         * libc/Makeconfig: Use elf in place of binfmt-subdir.
58937         Use dlfcn directly instead of a variable.
58938         (binfmt-subdir): Do not define.
58939         (dlfcn): Likewise.
58940
58941 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
58942
58943         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
58944         Remove all definitions.
58945         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
58946         <kernel-features.h>.
58947         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58948         (miss_F_GETOWN_EX): Remove all definitions.
58949         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
58950         macro definition.
58951         [!__ASSUME_FCNTL64]: Remove conditional code.
58952         [__ASSUME_FCNTL64]: Make code unconditional.
58953         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
58954         <kernel-features.h>.
58955         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58956         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
58957         (lockf64) [__NR_fcntl64]: Make code unconditional.
58958         (lockf64) [__ASSUME_FCNTL64]: Likewise.
58959
58960         * sysdeps/unix/sysv/linux/kernel-features.h
58961         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
58962         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
58963         Make code unconditional.
58964         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58965         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
58967         [__NR_vfork]: Make code unconditional.
58968         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58969         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
58971         [__NR_vfork]: Make code unconditional.
58972         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58973         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58974
58975 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58976
58977         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
58978         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
58979
58980         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58981         Define mkstemp64 as an alias.
58982         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58983         Define mkstemps64 as an alias.
58984         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58985         Define mkostemp64 as an alias.
58986         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58987         Define mkostemps64 as an alias.
58988         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
58989         Conditionalize body on this.
58990         * misc/mkostemp64.c: Likewise.
58991         * misc/mkostemps64.c: Likewise.
58992         * misc/mkstemps64.c: Likewise.
58993         * sysdeps/wordsize-64/mkstemp64.c: File removed.
58994         * sysdeps/wordsize-64/mkostemp64.c: File removed.
58995         * sysdeps/wordsize-64/mkostemp.c: File removed.
58996         * sysdeps/wordsize-64/mkstemp.c: File removed.
58997         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
58998         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
58999         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59000         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59001
59002         [BZ #14138]
59003         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59004         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59005         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59006         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59007
59008         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59009         compat_symbol macros from <shlib-compat.h> rather than the underlying
59010         default_symbol_version and symbol_version macros, so that DEFAULT
59011         lines in shlib-versions are respected.
59012         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59013
59014 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59015
59016         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59017         Declare with warn_unused_result.
59018         (setgid, setregid, setegid, setresgid): Likewise.
59019         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59020         Likewise.
59021         * WUR-REPORT: Remove set*id functions.
59022
59023 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59024
59025         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59026
59027 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59028
59029         [BZ #10191]
59030         * include/sys/socket.h (__libc_accept, __libc_accept4):
59031         Add attribute_hidden.
59032         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59033
59034         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59035         use of PTR_MANGLE.
59036         * inet/getnetgrent_r.c (setup): Likewise.
59037
59038         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59039
59040 2012-07-31  David S. Miller  <davem@davemloft.net>
59041
59042         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59043
59044 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59045
59046         [BZ #13629]
59047         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59048         value between 1.0 and 2.0 and smaller part has absolute value less
59049         than 1.0.
59050         * math/s_clog10.c (__clog10): Likewise.
59051         * math/s_clog10f.c (__clog10f): Likewise.
59052         * math/s_clog10l.c (__clog10l): Likewise.
59053         * math/s_clogf.c (__clogf): Likewise.
59054         * math/s_clogl.c (__clogl): Likewise.
59055         * math/libm-test.inc (clog_test): Add more tests.
59056         (clog10_test): Likewise.
59057         * sysdeps/i386/fpu/libm-test-ulps: Update.
59058         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59059
59060 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59061
59062         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59063         Exit with zero in case no suitable GID is found, and write a
59064         message to standard error.
59065
59066 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59067
59068         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59069         rather than to 1.
59070         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59071         (MAXPATHLEN): Removed.
59072         (NOGROUP, NODEV): New macros.
59073         (setbit, clrbit, isset, isclr): New macros.
59074         (howmany, roundup, powerof2): New macros.
59075         (DEV_BSIZE): New macro.
59076
59077         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59078         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59079
59080         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59081         definition on [!__NO_LONG_DOUBLE_MATH].
59082
59083         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59084         PTR_MANGLE and PTR_DEMANGLE.
59085
59086         * socket/accept4.c (accept4): Rename to __libc_accept4.
59087         Define accept4 as a weak alias.
59088
59089         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59090         on [_DIRENT_HAVE_D_TYPE].
59091         * io/ftw.c (ftw_dir): Likewise.
59092
59093         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59094
59095         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59096
59097         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59098         Use the BSD numbers rather than the arbitrary ones we had.
59099         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59100         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59101         (SIGXCPU, SIGXFSZ): New macros.
59102         (_NSIG): Now 32.
59103
59104         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59105         initializer on [_LIBC_REENTRANT].
59106
59107         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59108         definitions inside [_POSIX_MAPPED_FILES].
59109
59110         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59111
59112         * dirent/opendir.c: Include <fcntl.h>.
59113
59114         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59115         (__libc_getspecific): Likewise.
59116         (__libc_key_create): Likewise.
59117
59118         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59119         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59120         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59121         (tmpfile64): Define as alias.
59122         * sysdeps/wordsize-64/tmpfile.c: File removed.
59123         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59124         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59125         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59126
59127         * stdio-common/vfscanf.c: Include <stdbool.h>.
59128         * nss/makedb.c: Likewise.
59129         * stdio-common/_i18n_number.h: Likewise.
59130         * argp/argp-help.c: Likewise.
59131         * posix/wordexp.c: Likewise.
59132         * sysdeps/posix/spawni.c: Likewise.
59133         * nss/nss_files/files-initgroups.c: Likewise.
59134         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59135         * nss/nss_files/files-initgroups.c: Likewise.
59136         * nss/nss_db/db-netgrp.c: Likewise.
59137         * nss/nss_db/db-initgroups.c: Likewise.
59138         * io/fchmodat.c: Include <sys/stat.h>.
59139
59140         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59141         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59142
59143         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59144         [HAVE_MMAP].
59145
59146         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59147         Add multiple inclusion protection.
59148
59149 2012-07-27  David S. Miller  <davem@davemloft.net>
59150
59151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59152
59153 2012-07-27  Gary Benson  <gbenson@redhat.com>
59154
59155         [BZ #14298]
59156         * elf/rtld.c: Include <stap-probe.h>.
59157         (dl_main): Added static probes "init_start" and "init_complete".
59158         * elf/dl-load.c: Include <stap-probe.h>.
59159         (lose): Take new parameter "nsid".
59160         Added static probe "map_failed".
59161         (_dl_map_object_from_fd): Pass namespace id to lose.
59162         Added static probe "map_start".
59163         (open_verify): Pass namespace id to lose.
59164         * elf/dl-open.c: Include <stap-probe.h>.
59165         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59166         and "reloc_complete".
59167         * elf/dl-close.c: Include <stap-probe.h>.
59168         (_dl_close_worker): Added static probes "unmap_start" and
59169         "unmap_complete".
59170         * elf/rtld-debugger-interface.txt: New file documenting the above.
59171
59172 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59173
59174         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59175         rather than a string variable.
59176         * sunrpc/rpc_main.c (h_output): Likewise.
59177         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59178
59179 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59180
59181         * inet/check_native.c: New file.
59182
59183 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59184
59185         [BZ #13629]
59186         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59187         if larger part has absolute value 1.0.
59188         * math/s_clog10.c (__clog10): Likewise.
59189         * math/s_clog10f.c (__clog10f): Likewise.
59190         * math/s_clog10l.c (__clog10l): Likewise.
59191         * math/s_clogf.c (__clogf): Likewise.
59192         * math/s_clogl.c (__clogl): Likewise.
59193         * math/libm-test.inc (clog_test): Add more tests.
59194         (clog10_test): Likewise.
59195         * sysdeps/i386/fpu/libm-test-ulps: Update.
59196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59197
59198         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59199         (pltexit): Likewise.
59200         (La_regs): Likewise.
59201         (La_retval): Likewise.
59202         (int_retval): Likewise.
59203         Update #error for removed macros to refer only to definitions in
59204         tst-audit.h.
59205         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59206         macro.
59207         (pltexit): Likewise.
59208         (La_regs): Likewise.
59209         (La_retval): Likewise.
59210         (int_retval): Likewise.
59211         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59212         macro.
59213         (pltexit): Likewise.
59214         (La_regs): Likewise.
59215         (La_retval): Likewise.
59216         (int_retval): Likewise.
59217         * elf/tst-auditmod5b.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-auditmod6b.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-auditmod6c.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-auditmod7b.c (pltenter): Remove all definitions of
59236         macro.
59237         (pltexit): Likewise.
59238         (La_regs): Likewise.
59239         (La_retval): Likewise.
59240         (int_retval): Likewise.
59241         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59242         macro definitions in tst-audit.h.
59243         * sysdeps/i386/tst-audit.h: New file.
59244         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59245         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59246         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59247         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59248         * sysdeps/sh/tst-audit.h: Likewise.
59249         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59250         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59251         * sysdeps/x86_64/tst-audit.h: Likewise.
59252
59253 2012-07-26  Andreas Jaeger  <aj@suse.de>
59254
59255         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59256         ptrace.
59257
59258         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59259         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59260         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59261         PTRACE_O_MASK.
59262         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59263         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59264         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59265
59266         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59267         value.
59268
59269         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59270         _sigsys.
59271         (si_call_addr, si_syscall, si_arch): Define new macro.
59272         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59273         _sigsys.
59274         (si_call_addr, si_syscall, si_arch): Define new marcro.
59275         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59276         _sigsys.
59277         (si_call_addr, si_syscall, si_arch): Define new macro.
59278         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59279         _sigsys.
59280         (si_call_addr, si_syscall, si_arch): Define new macro.
59281
59282 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59283
59284         [BZ #13717]
59285         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59286         Change to 2.4.21 where previously 2.4.1.
59287         * sysdeps/unix/sysv/linux/configure: Regenerated.
59288         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59289         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59290         Linux kernel version.
59291         (__ASSUME_STD_AUXV): Remove.
59292         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59293         kernel version.
59294         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59295         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59296         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59297         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59298         (__ASSUME_NETLINK_SUPPORT): Likewise.
59299         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59300         (__no_netlink_support): Remove conditional definition.
59301         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59302         Remove.
59303         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59304         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59305         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59306         (if_nameindex_ioctl): Remove.
59307         (if_nameindex_netlink): Do not handle __no_netlink_support.
59308         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59309         code.
59310         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59311         Remove conditional code.
59312         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59313         code.
59314         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59315         unconditional.
59316         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59317         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59318         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59319         Remove.
59320         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59321         [!__ASSUME_STD_AUXV]: Remove conditional code.
59322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59323         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59324         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59326         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59327         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59328         code.
59329         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59331         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59332         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59333         conditional code.
59334         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59336         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59337         code.
59338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59339         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59340         conditional code.
59341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59342         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59343         code unconditional.
59344         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59345         conditional code.
59346         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59347         unconditional.
59348         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59349         conditional code.
59350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59351         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59352         unconditional.
59353         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59354         conditional code.
59355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59356         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59357         code unconditional.
59358         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59359         conditional code.
59360         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59361         unconditional.
59362         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59363         conditional code.
59364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59365         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59366         code unconditional.
59367         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59368         conditional code.
59369         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59370         unconditional.
59371         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59372         conditional code.
59373
59374 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59375
59376         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59377         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59378         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59379         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59380         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59381         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59382         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59383         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59384         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59385         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59386         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59387         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59388         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59389         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59390         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59391         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59392         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59393         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59394         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59395         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59396         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59397         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59398         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59399
59400 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59401
59402         * Versions.def: Add GLIBC_2.17.
59403         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59404         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59405         Introduce __libc_secure_getenv.
59406         * stdlib/Versions (2.17): Add secure_getenv
59407         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59408         * stdlib/secure-getenv.c: Rename __secure_getenv to
59409         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59410         symbol __secure_getenv for GLIBC_2.0.
59411         * stdlib/tst-secure-getenv.c: New.
59412         * stdlib/Makefile (tests): Add testcase.
59413         * manual/startup.texi (Environment Access): Document
59414         secure_getenv.
59415         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59416         __libc_secure_getenv.
59417         * inet/ruserpass.c (ruserpass): Likewise.
59418         * malloc/mtrace.c (mtrace): Likewise.
59419         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59420         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59421         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59422         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59423         HAVE_SECURE_GETENV.
59424         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59425         __secure_getenv to __libc_secure_getenv.
59426         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59428         Likewise.
59429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59430         Likewise.
59431         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59432         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59433         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59434         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59435         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59436         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59437         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59438
59439 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59440
59441         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59442         (struct La_i86_retval): Likewise.
59443         (struct La_x86_64_regs): Likewise.
59444         (struct La_x86_64_retval): Likewise.
59445         (struct La_x32_regs): Likewise.
59446         (struct La_x32_retval): Likewise.
59447         (struct La_ppc32_regs): Likewise.
59448         (struct La_ppc32_retval): Likewise.
59449         (struct La_ppc64_regs): Likewise.
59450         (struct La_ppc64_retval): Likewise.
59451         (struct La_sh_regs): Likewise.
59452         (struct La_sh_retval): Likewise.
59453         (struct La_s390_32_regs): Likewise.
59454         (struct La_s390_32_retval): Likewise.
59455         (struct La_s390_64_regs): Likewise.
59456         (struct La_s390_64_retval): Likewise.
59457         (struct La_sparc32_regs): Likewise.
59458         (struct La_sparc32_retval): Likewise.
59459         (struct La_sparc64_regs): Likewise.
59460         (struct La_sparc64_retval): Likewise.
59461         (struct audit_ifaces): Remove architecture-specific pltenter and
59462         pltexit members.
59463         * sysdeps/i386/ldsodefs.h: New file.
59464         * sysdeps/powerpc/ldsodefs.h: Likewise.
59465         * sysdeps/s390/ldsodefs.h: Likewise.
59466         * sysdeps/sh/ldsodefs.h: Likewise.
59467         * sysdeps/sparc/ldsodefs.h: Likewise.
59468         * sysdeps/x86_64/ldsodefs.h: Likewise.
59469
59470 2012-07-25  Marek Polacek  <polacek@redhat.com>
59471
59472         [BZ #6808]
59473         * math/libm-test.inc (yn_test): Add another test.
59474         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59475         to ERANGE when the result is +-Inf.
59476         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59477         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59478         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59479         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59480
59481 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59482
59483         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59484         equal to 0.
59485         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59486         clock_t.
59487         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59488
59489 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59490
59491         * configure.in <sysdeps resolving>: Correct printing
59492         Implies_before.
59493         * configure: Regenerate.
59494
59495 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59496
59497         * math/w_ilogb.c: Include <limits.h>.
59498         * math/w_ilogbl.c: Likewise.
59499
59500 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59501
59502         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59503         va_copy.  Document allowing for unavailable va_copy only as
59504         pre-C99 compatibility.
59505         * manual/string.texi (Copying and Concatenation): Use va_copy
59506         instead of __va_copy in concat example.
59507
59508 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59509
59510         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59511         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59512         it if not null.
59513
59514         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59515         with O_NOLINK passed to __file_name_lookup.
59516
59517         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59518         with O_NOLINK passed to __file_name_lookup.
59519
59520         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59521         negative N or less than NGIDS.
59522
59523         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59524         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59525         enough.  Use memcpy instead of strncpy.
59526
59527 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59528
59529         * elf/Makefile (check-data): Remove.
59530         (localplt.data): New vpath directive.
59531         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59532         instead of $(check-data).
59533         * scripts/data/localplt-generic.data: Move to ...
59534         * sysdeps/generic/localplt.data: ... here.
59535         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59536         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59537         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59539         ... here.
59540         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59542         ... here.
59543         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59545         ... here.
59546         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59547         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59548         ... here.
59549         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59550         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59551         ... here.
59552         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59553         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59554         ... here.
59555
59556 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59557
59558         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59559         PPC32 and PPC64 files.
59560         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59561         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59562
59563 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59564
59565         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59566         __makecontext_ret to ...
59567         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59568         ... here and call exit if uc_link is NULL.  New file.
59569         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59570         __makecontext_ret.S.
59571         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59572         __makecontext_ret to ...
59573         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59574         ... here and call exit if uc_link is NULL.  New file.
59575         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59576         __makecontext_ret.S.
59577
59578 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59579
59580         * elf/elf.h (R_390_IRELATIVE): New definition.
59581         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59582         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59583         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59584         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59585         (elf_machine_lazy_rel): Likewise.
59586         * sysdeps/s390/dl-irel.h: New file.
59587         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59588         * sysdeps/s390/s390-64/memset.S: New asm code.
59589         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59590         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59591         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59592         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59593         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59594         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59595         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59596         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59597         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59598         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59599         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59600         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59601         * sysdeps/s390/s390-32/memset.S: New asm code.
59602         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59603
59604 2012-07-17  Marek Polacek  <polacek@redhat.com>
59605
59606         [BZ #14349]
59607         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59608         * sysdeps/s390/s390-64/configure.in: Likewise.
59609         * sysdeps/sparc/configure.in: Likewise.
59610         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59611         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59612         * sysdeps/i386/configure.in: Likewise.
59613         * sysdeps/x86_64/configure.in: Likewise.
59614         * sysdeps/sh/configure.in: Likewise.
59615         * sysdeps/s390/s390-32/configure: Regenerated.
59616         * sysdeps/s390/s390-64/configure: Likewise.
59617         * sysdeps/x86_64/configure: Likewise.
59618         * sysdeps/sh/configure: Likewise.
59619         * sysdeps/powerpc/powerpc64/configure: Likewise.
59620         * sysdeps/powerpc/powerpc32/configure: Likewise.
59621         * sysdeps/sparc/configure: Likwise.
59622         * sysdeps/i386/configure: Likewise.
59623
59624         * elf/dl-open.c: Comment fixes.
59625
59626 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59627
59628         * Makefile [CXX] (check-data): Remove.
59629         [CXX] (c++-types.data): New vpath directive.
59630         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59631         vpath.  Do not allow for C++ type data being missing.
59632         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59633         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59634         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59635         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59636         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59637         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59638         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59640         ... here.
59641         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59643         ... here.
59644         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59645         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59646         ... here.
59647         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59648         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59649         ... here.
59650         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59651         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59652         ... here.
59653         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59654         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59655         ... here.
59656         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59657         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59658         ... here.
59659         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59660         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59661
59662         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59663         definitions to architecture-specific files.
59664         (TLS_IE): Likewise.
59665         (TLS_LD): Likewise.
59666         (TLS_GD): Likewise.
59667         * sysdeps/i386/tls-macros.h: New file.
59668         * sysdeps/powerpc/tls-macros.h: Likewise.
59669         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59670         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59671         * sysdeps/sh/tls-macros.h: Likewise.
59672         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59673         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59674         * sysdeps/x86_64/tls-macros.h: Likewise.
59675
59676 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59677
59678         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59679         zero value for regular exit case.
59680
59681         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59682         (__start_context): Preserve zero value for regular exit case.
59683
59684 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59685             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59686
59687         * manual/setjmp.texi (setcontext): Clarify normal process
59688         termination when uc_link is the null pointer.
59689         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59690         exit call.
59691
59692 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59693
59694         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59695         preprocessor.  Test for each exception mask separately.
59696
59697 2012-07-16  Andreas Jaeger  <aj@suse.de>
59698
59699         * po/ru.po: Update from translation team.
59700
59701 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59702
59703         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59704         equal to 0.
59705         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59706         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59707         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59708         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59709         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59710
59711 2012-07-13  Andreas Jaeger  <aj@suse.de>
59712
59713         * po/fr.po: Update from translation team.
59714
59715 2012-07-12  Marek Polacek  <polacek@redhat.com>
59716
59717         [BZ #14173]
59718         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59719         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59720         loop condition.
59721
59722 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59723
59724         [BZ #13717]
59725         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59726         Change to 2.4.1 where previously 2.4.0.
59727         * sysdeps/unix/sysv/linux/configure: Regenerated.
59728         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59729         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59730         version.
59731         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59732         (__ASSUME_AT_CLKTCK): Remove.
59733         (__ASSUME_AT_PAGESIZE): Likewise.
59734         (__ASSUME_AT_XID): Likewise.
59735         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59736         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59737         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59738         unconditionally.
59739         (HAVE_AUX_PAGESIZE): Likewise.
59740         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59741         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59742         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59743
59744 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59745
59746         [BZ #14307]
59747         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59748         the temporary buffer used to invoke __gethostbyname2_r,
59749         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59750         host_data / struct gaih_addrtuple.
59751         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59752         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59753         header file nss/nsswitch.h.
59754         * nss/nsswitch.h (global scope): Add definition of implementation
59755         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59756         resolv/nss_dns/dns-host.c).
59757
59758 2012-07-11  Andreas Jaeger  <aj@suse.de>
59759
59760         * po/fr.po: Update from translation team.
59761
59762         * po/sv.po: Update from translation team
59763         * po/fr.po: Another update from translation team.
59764
59765 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59766
59767         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
59768         for subnormals or multiply small sinh result by itself.
59769         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
59770         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59771
59772 2012-07-11  David S. Miller  <davem@davemloft.net>
59773
59774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59775
59776 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
59777
59778         [BZ #14347]
59779         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59780         (INTERNAL_MARK): Shift it here.
59781
59782 2012-07-10  Marek Polacek  <polacek@redhat.com>
59783
59784         [BZ #14151]
59785         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
59786         libc_cv_asm_global_directive with .globl.
59787         * configure: Regenerated.
59788         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
59789         with .globl.
59790         * sysdeps/i386/configure: Regenerated.
59791         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
59792         with .globl.
59793         * sysdeps/x86_64/configure: Regenerated.
59794         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
59795         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
59796         * elf/tst-unique2mod2.c: Likewise.
59797         * elf/tst-unique2mod1.c: Likewise.
59798         * elf/tst-unique1mod2.c: Likewise.
59799         * elf/tst-unique1mod1.c: Likewise.
59800         * sysdeps/s390/s390-32/sysdep.h: Likewise.
59801         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59802         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59803         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59804         * sysdeps/mach/sysdep.h: Likewise.
59805         * sysdeps/i386/sysdep.h: Likewise.
59806         * sysdeps/i386/i386-mcount.S: Likewise.
59807         * sysdeps/x86_64/_mcount.S: Likewise.
59808         * sysdeps/x86_64/sysdep.h: Likewise.
59809         * sysdeps/sh/_mcount.S: Likewise.
59810         * sysdeps/sh/sysdep.h: Likewise.
59811         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
59812         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
59813         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
59814         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59815         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
59816         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
59817         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
59818         * locale/localeinfo.h: Likewise.
59819         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
59820         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
59821
59822 2012-07-09  Roland McGrath  <roland@hack.frob.com>
59823
59824         [BZ #14336]
59825         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
59826         system".
59827         * manual/message.texi (The Uniforum approach): Likewise.
59828         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
59829         (glibc iconv Implementation): Likewise.
59830
59831 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
59832
59833         [BZ #14337]
59834         * math/s_clog.c (__clog): Avoid scaling a value down where that
59835         could result in underflow.
59836         * math/s_clog10.c (__clog10): Likewise.
59837         * math/s_clog10f.c (__clog10f): Likewise.
59838         * math/s_clog10l.c (__clog10l): Likewise.
59839         * math/s_clogf.c (__clogf): Likewise.
59840         * math/s_clogl.c (__clogl): Likewise.
59841         * math/libm-test.inc (clog_test): Add more tests.
59842         (clog10_test): Likewise.
59843         * sysdeps/i386/fpu/libm-test-ulps: Update.
59844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59845
59846 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
59847
59848         [BZ #14283]
59849         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
59850         by 7 not 8 to examine high bit of fractional part.
59851
59852         [BZ #14042]
59853         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
59854         for call to __mcount_internal.
59855         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
59856         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
59857         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
59858
59859 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
59860
59861         [BZ #14154]
59862         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
59863         approximation for values within 0x1p-13f of an odd multiple of
59864         pi/4.
59865         * math/libm-test.inc (tan_test): Do not allow spurious underflow
59866         exception.  Add more tests.
59867         * sysdeps/i386/fpu/libm-test-ulps: Update.
59868
59869         [BZ #6778]
59870         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
59871         inputs and return -1 for them.  Do not check for +Inf in case not
59872         reachable for +Inf.
59873         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
59874         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
59875         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59876         and return -1 for them.  Do not check for +Inf in case not
59877         reachable for +Inf.
59878         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
59879         define.
59880         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59881         and return -1 for them.  Do not check for +Inf in case not
59882         reachable for +Inf.
59883         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
59884         spurious underflow.
59885         * sysdeps/i386/fpu/libm-test-ulps: Update.
59886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59887
59888 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
59889
59890         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
59891
59892 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
59893
59894         [BZ #14157]
59895         [BZ #14331]
59896         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
59897         could result in spurious underflow.  Scale down values above
59898         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
59899         * math/s_csqrtf.c (__csqrtf): Likewise.
59900         * math/s_csqrtl.c (__csqrtl): Likewise.
59901         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
59902         spurious underflow.
59903         * sysdeps/i386/fpu/libm-test-ulps: Update.
59904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59905
59906 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
59907
59908         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
59909         xopen-msg.sed.
59910         * catgets/xopen-msg.awk: New file.
59911         * catgets/xopen-msg.sed: Removed.
59912
59913         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
59914         po2text.sed.
59915         * intl/po2test.awk: New file.
59916         * intl/po2test.sed: Removed.
59917
59918 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
59919
59920         [BZ #14328]
59921         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
59922         or multiply small sinh result by itself.
59923         * math/s_ctanf.c (__ctanf): Likewise.
59924         * math/s_ctanh.c (__ctanh): Likewise.
59925         * math/s_ctanhf.c (__ctanhf): Likewise.
59926         * math/s_ctanhl.c (__ctanhl): Likewise.
59927         * math/s_ctanl.c (__ctanl): Likewise.
59928         * math/libm-test.inc (ctan_test_tonearest): New function.
59929         (ctan_test_towardzero): Likewise.
59930         (ctan_test_downward): Likewise.
59931         (ctan_test_upward): Likewise.
59932         (ctanh_test_tonearest): Likewise.
59933         (ctanh_test_towardzero): Likewise.
59934         (ctanh_test_downward): Likewise.
59935         (ctanh_test_upward): Likewise.
59936         (main): Call these new functions.
59937         * sysdeps/i386/fpu/libm-test-ulps: Update.
59938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59939
59940 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
59941
59942         * .gitignore: Delete /ports entry.
59943
59944 2012-07-03  Andreas Jaeger  <aj@suse.de>
59945
59946         * po/bg.po: Update from translation team.
59947         * po/cs.po: Likewise.
59948         * po/de.po: Likewise.
59949         * po/hr.po: Likewise.
59950         * po/nl.pl: Likewise.
59951         * po/pl.po: Likewise.
59952         * po/vi.po: Likewise.
59953
59954 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
59955
59956         * Makeconfig [!+link] (+link-before-libc): New variable.
59957         [!+link] (+link-after-libc): Likewise.
59958         [!+link] (+link-tests): Likewise.
59959         [!+link] (+link): Define in terms of $(+link-before-libc) and
59960         $(+link-after-libc).
59961         [!+link-static] (+link-static-before-libc): New variable.
59962         [!+link-static] (+link-static-after-libc): Likewise.
59963         [!+link-static] (+link-static-tests): Likewise.
59964         [!+link-static] (+link-static): Define in terms of
59965         $(+link-static-before-libc) and $(+link-static-after-libc).
59966         [build-shared] (link-libc-before-gnulib): New variable.
59967         [build-shared] (link-libc-tests): Likewise.
59968         [build-shared] (link-libc): Define in terms of
59969         $(link-libc-before-gnulib).
59970         [!build-shared] (link-libc-tests): New variable.
59971         (link-libc-static-tests): New variable.
59972         [!gnulib] (gnulib-arch): New variable.
59973         [!gnulib] (gnulib-tests): Likewise.
59974         [!gnulib] (static-gnulib-arch): Likewise.
59975         [!gnulib] (static-gnulib-tests): Likewise.
59976         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
59977         Define with "=" instead of ":=".
59978         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
59979         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
59980         * Rules (binaries-all-notests): New variable.
59981         (binaries-all-tests): Likewise.
59982         (binaries-static-notests): Likewise.
59983         (binaries-static-tests): Likewise.
59984         (binaries-all): Define using $(binaries-all-notests) and
59985         $(binaries-all-tests).
59986         (binaries-static): Define using $(binaries-static-notests) and
59987         $(binaries-static-tests).
59988         (binaries-shared-tests): New variable.
59989         (binaries-shared-notests): Likewise.
59990         (binaries-shared): Remove variable.
59991         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
59992         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
59993         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
59994         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
59995         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
59996         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
59997         * elf/Makefile (sln-modules): New variable.
59998         (extra-objs): Add $(sln-modules:=.o).
59999         (ldconfig-modules): Add static-stubs.
60000         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60001         * elf/static-stubs.c: New file.
60002
60003         [BZ #14283]
60004         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60005         by 7 not 8 to examine high bit of fractional part.  Use volatile
60006         variables when splitting into final array of floats if
60007         __FLT_EVAL_METHOD__ != 0.
60008         * math/libm-test.inc (cos_test): Add another test.
60009         (sin_test): Likewise.
60010         * sysdeps/i386/fpu/libm-test-ulps: Update.
60011
60012         [BZ #14273]
60013         * math/libm-test.inc (cosh_test): Add more tests.
60014
60015         * version.h (RELEASE): Set to "development".
60016         (VERSION): Set to "2.16.90".
60017
60018 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60019
60020         * NEWS: Update copyright. Remove last-updated date.
60021         Mention math library bug fixes and timezone data changes.
60022         * README: Mention GNU/Hurd, x32, and HPPA support status.
60023
60024 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60025
60026         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60027
60028 2012-06-27  Andreas Jaeger  <aj@suse.de>
60029
60030         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60031
60032 2012-06-25  Andreas Jaeger  <aj@suse.de>
60033
60034         * sysdeps/s390/fpu/libm-test-ulps: Update.
60035
60036 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60037             Thomas Schwinge  <thomas@codesourcery.com>
60038
60039         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60040         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60041         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60042         fanotify_mark.
60043
60044 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60045
60046         * sysdeps/mach/start.c: Remove file.
60047         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60048         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60049         * sysdeps/sh/init-first.c: Likewise.
60050
60051         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60052         registers for frame unwinding purposes, add CFI directives.
60053         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60054         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60055         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60056         Likewise.
60057
60058         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60059         __fortify_fail returning.
60060         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60061
60062         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60063         sysdeps/sh/____longjmp_chk.S.
60064         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60065         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60066         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60067         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60068
60069         * sysdeps/sh/abort-instr.h: New file.
60070         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60071         process in case exit returns.
60072
60073         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60074         initialize the GOT register before use.
60075
60076         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60077         calculation of ARGC > 4.
60078
60079         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60080         meaningful names to some local labels.
60081
60082 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60083             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60084
60085         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60086         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60087         (__arch_compare_and_exchange_val_16_acq): Likewise.
60088         (__arch_compare_and_exchange_val_32_acq): Likewise.
60089         (atomic_exchange_and_add): Fix gUSA sequence.
60090         (atomic_add): Likewise.
60091         (atomic_add_negative): Likewise.
60092         (atomic_add_zero): Likewise.
60093         (atomic_bit_test_set): Likewise.
60094
60095 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60096
60097         [BZ #13579]
60098         * include/link.h (struct link_map): Add l_free_initfini.
60099         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60100         l_initfini.
60101         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60102         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60103         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60104         set.
60105
60106 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60107
60108         * configure.in: Use AC_LANG_SOURCE.
60109         * configure: Regenerate.
60110
60111 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60112
60113         * configure.in (libc_cv_localstatedir): New substituted variable.
60114         * configure: Regenerated.
60115         * config.make.in (localstatedir): New variable, substituted from
60116         libc_cv_localstatedir.
60117         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60118         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60119         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60120         * sysdeps/gnu/configure: Regenerated.
60121
60122 2012-06-21  Jeff Law  <law@redhat.com>
60123
60124         [BZ #14277]
60125         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60126         free.  Simplify list management for _LIBC case.
60127
60128 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60129
60130         [BZ #14273]
60131         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60132         Clear sign bit of 64-bit integer value before comparing against
60133         overflow value.
60134
60135         * sysdeps/mach/configure: Regenerated.
60136
60137 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60138
60139         [BZ #14278]
60140         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60141
60142 2012-06-21  Jeff Law  <law@redhat.com>
60143
60144         [BZ #13882]
60145         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60146         uint16_t for elements in the "seen" array to avoid char overflows.
60147         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60148         * elf/dl-open.c (dl_open_worker): Likewise.
60149
60150 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60151
60152         * scripts/list-sources.sh: Scan PORTS for translations.
60153         * po/libc.pot: Regenerated.
60154
60155 2012-06-21  Andreas Jaeger  <aj@suse.de>
60156
60157         [BZ #12194]
60158         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60159         warning.
60160         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60161         * bits/byteswap-16.h (__bswap_16): Likewise.
60162         * bits/byteswap.h (__bswap_constant_16): Likewise.
60163
60164 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60165
60166         [BZ #14117]
60167         * sysdeps/i386/fpu_control.h: Removed.
60168         * sysdeps/x86_64/fpu_control.h: Moved to ...
60169         * sysdeps/x86/fpu_control.h: Here.
60170
60171         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60172         (_FPU_SETCW): Likewise.
60173
60174 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60175
60176         [BZ #14117]
60177         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60178         * sysdeps/x86/fpu/bits/mathinline.h: This.
60179         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60180
60181         [BZ #14050]
60182         [BZ #14117]
60183         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60184         functions if __x86_64__ is defined.
60185
60186 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60187
60188         * string/endian.h: Add !__ASSEMBLER__ condition for including
60189         conversion interfaces.
60190
60191 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60192
60193         [BZ #14241]
60194         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60195         of ABS(x) in calculating zero to negative powers other than odd
60196         integers.
60197         * math/libm-test.inc (pow_test): Add more tests.
60198
60199 2012-06-15  Andreas Jaeger  <aj@suse.de>
60200
60201         * manual/contrib.texi (Contributors): Update entry of Liubov
60202         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60203         Machado Filho.
60204
60205 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60206
60207         * string/string.h: Add __wur to GNU version of strerror_r.
60208
60209 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60210
60211         [BZ #14229]
60212         * string/Makefile (tests): Add tst-strtok_r.
60213         * string/tst-strtok_r.c: New file.
60214         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60215         RAX_LP/RDX_LP on SAVE_PTR.
60216
60217 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60218
60219         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60220
60221 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60222
60223         * libm_test.inc (csqrt_test): Allow more spurious underflow
60224         exceptions.
60225         (j0_test): Likewise.
60226         (j1_test): Likewise.
60227         (y0_test): Likewise.
60228         (y1_test): Likewise.
60229
60230 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60231
60232         * po/Makefile (libc.pot): Use UTF-8 charset.
60233
60234 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60235
60236         [BZ #14210]
60237         Suppress sign-conversion warning from FD_SET.
60238         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60239         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60240         not unsigned long int.
60241         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60242
60243 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60244
60245         [BZ #14050]
60246         [BZ #14117]
60247         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60248         __extern_always_inline instead of __extern_inline.
60249         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60250         (__signbit): Likewise.
60251         (__signbitl): Support C++ namespace.
60252         (lrintf): New inline function.
60253         (lrint): Likewise.
60254         (llrintf): Likewise.
60255         (llrint): Likewise.
60256         (fmaxf): Likewise.
60257         (fmax): Likewise.
60258         (fminf): Likewise.
60259         (fmin): Likewise.
60260         (rint): Likewise.
60261         (rintf): Likewise.
60262         (ceil): Likewise.
60263         (ceilf): Likewise.
60264         (floor): Likewise.
60265         (floorf): Likewise.
60266         (nearbyint): Likewise.
60267         (nearbyintf): Likewise.
60268
60269 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60270
60271         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60272         non-default versions.
60273
60274 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60275
60276         [BZ #14218]
60277         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60278
60279 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60280
60281         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60282         (FE_UPWARD, FE_DOWNWARD): Don't define.
60283         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60284         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60285
60286         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60287         reading it.
60288         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60289         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60290
60291 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60292
60293         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60294         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60295         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60296         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60297
60298 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60299
60300         [BZ #14117]
60301         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60302         * sysdeps/i386/fpu/Implies: New file.
60303         * sysdeps/x86_64/fpu/Implies: Likewise.
60304         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60305         * sysdeps/x86/fpu/bits/fenv.h: This.
60306
60307         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60308         __SSE_MATH__.
60309
60310 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60311
60312         [BZ #14134]
60313         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60314         character 0xffff that matches the last element of the
60315         conversion table.
60316
60317 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60318
60319         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60320         fmodl commit.
60321
60322 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60323
60324         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60325         values higher than 25.6283.
60326
60327 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60328
60329         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60330         subnormal exponent extraction and add some __builtin_expect.
60331         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60332         Fix for subnormal mantissa calculation.
60333
60334 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60335
60336         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60337         cpu2 is -1 and errno is not ENOSYS.
60338
60339 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60340
60341         [BZ #14117]
60342         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60343         * sysdeps/x86/bits/string.h: This.
60344         * sysdeps/x86_64/bits/string.h: Removed.
60345
60346         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60347         if not compiling for x86-64, but compiling for >= i486.
60348
60349         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60350         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60351
60352         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60353         New macro from Linux kernel 3.4.0.
60354         (FP_XSTATE_MAGIC2): Likewise.
60355         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60356         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60357         (struct _fpx_sw_bytes): New struct.
60358         (struct _xsave_hdr): Likewise.
60359         (struct _ymmh_state): Likewise.
60360         (struct _xstate): Likewise.
60361
60362         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60363         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60364         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60365         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60366         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60367         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60368
60369         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60370         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60371         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60372         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60373         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60374         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60375
60376 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60377
60378         [BZ #13743]
60379         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60380         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60381         (sysdep_headers): Include sys/platform/ppc.h.
60382         * sysdeps/powerpc/test-gettimebase.c: Test for
60383         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60384         * manual/Makefile (appendices): Include platform.texi.
60385         * manual/contrib.texi (Contributors): Update @node pointers.
60386         * manual/maint.texi (Maintenance): Likewise.
60387         (Platform): New node.
60388         * manual/platform.texi: New file.  Document the new features.
60389
60390 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60391             Jakub Jelinek  <jakub@redhat.com>
60392
60393         [BZ #14188]
60394         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60395         where __builtin_expect is unavailable.
60396
60397 2012-06-03  David S. Miller  <davem@davemloft.net>
60398
60399         * stdlib/longlong.h: Updated from GCC.
60400
60401 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60402
60403         [BZ #14042]
60404         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60405         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60406         __mcount_internal.
60407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60408         (GLIBC_2.16): Likewise.
60409
60410 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60411
60412         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60413
60414 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60415
60416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60417         (default-abi): New variable.
60418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60419         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60420         variable.
60421         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60422         Likewise.
60423         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60424         Likewise.
60425         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60426         Likewise.
60427
60428         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60429         definition.  Document in comment.
60430
60431 2012-06-01  David S. Miller  <davem@davemloft.net>
60432
60433         * stdlib/longlong.h: Updated from GCC.
60434
60435 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60436
60437         [BZ #14117]
60438         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60439         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60440         sys/debugreg.h sys/io.h here.
60441         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60442         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60443         sys/io.h.
60444         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60445         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60446         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60447         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60448         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60449         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60450
60451         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60452         Define only if __x86_64__ is defined.
60453
60454 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60455
60456         [BZ #14048]
60457         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60458         Use int64_t for variable i.
60459         * math/libm-test.inc (fmod_test): Add more tests.
60460
60461         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60462         z computation is not scheduled after fetestexcept.
60463         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60464         Use math_force_eval instead of asm to ensure calculation scheduled
60465         before exception test.
60466         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60467         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60468
60469 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60470
60471         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60472         computation is not scheduled after fetestexcept.
60473
60474 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60475
60476         [BZ #14117]
60477         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60478         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60479
60480 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60481
60482         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60483         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60484
60485 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60486
60487         [BZ #14117]
60488         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60489         <bits/wordsize.h>.
60490         (__WCHAR_MIN): Support __WORDSIZE == 64.
60491         (__WCHAR_MAX): Likewise.
60492
60493         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60494         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60495
60496         [BZ #14183]
60497         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60498         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60499
60500         [BZ #14117]
60501         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60502         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60503
60504         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60505         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60506
60507         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60508         Defined to 1 if __x86_64__ isn't defined.
60509         (_STAT_VER_LINUX_OLD): New.
60510         (st_atime): Remove duplicate.
60511         (st_mtime): Likewise.
60512         (st_ctime): Likewise.
60513
60514 2012-05-31  David S. Miller  <davem@davemloft.net>
60515
60516         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60517         entries.
60518
60519 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60520
60521         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60522         gen-libm-test.pl.
60523
60524         [BZ #14132]
60525         * elf/dl-reloc.c: Include <_itoa.h>.
60526         (_dl_reloc_bad_type): Remove use of INTUSE.
60527         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60528         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60529         * stdio-common/psiginfo.c (psiginfo): Likewise.
60530         * stdio-common/psignal.c (psignal): Likewise.
60531         * string/strsignal.c (strsignal): Likewise.
60532         * include/signal.h (_sys_siglist): Declare hidden proto.
60533         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60534         INTVARDEF with libc_hidden_data_def.
60535         * stdio-common/itoa-udigits.c: Likewise.
60536         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60537         (_itoa_lower_digits_internal): Remove declaration.
60538         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60539         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60540         (_sys_sigabbrev_internal): Remove aliases.
60541         (_sys_siglist): Define hidden alias.
60542
60543 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60544
60545         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60546         bits/sysctl.h.
60547
60548 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60549
60550         [BZ #14117]
60551         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60552         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60553
60554         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60555         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60556         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60557         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60558         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60559         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60560
60561         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60562         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60563         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60564
60565         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60566         with __addr.
60567         (insw): Likewise.
60568         (insl): Likewise.
60569         (outsb): Likewise.
60570         (outsw): Likewise.
60571         (outsl): Likewise.
60572
60573         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60574         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60575         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60576
60577         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60578         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60579         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60580         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60581         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60582         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60583
60584         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60585         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60586
60587         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60588         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60589
60590         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60591         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60592         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60593
60594         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60595         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60596         to ...
60597         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60598
60599         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60600         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60601         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60602
60603         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60604         for x86-64.
60605         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60606
60607 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60608
60609         * math/math.h (M_El): Use two more decimal places.
60610         (M_LOG2El): Likewise.
60611         (M_LOG10El): Likewise.
60612         (M_LN2l): Likewise.
60613         (M_LN10l): Likewise.
60614         (M_PIl): Likewise.
60615         (M_PI_2l): Likewise.
60616         (M_PI_4l): Likewise.
60617         (M_1_PIl): Likewise.
60618         (M_2_PIl): Likewise.
60619         (M_2_SQRTPIl): Likewise.
60620         (M_SQRT2l): Likewise.
60621         (M_SQRT1_2l): Likewise.
60622
60623 2012-05-31  David S. Miller  <davem@davemloft.net>
60624
60625         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60626         values between float registers.
60627         * sysdeps/sparc/sparc64/memset.S: Likewise.
60628         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60629
60630 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60631
60632         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60633         -D_FORTIFY_SOURCE=1.
60634         (CPPFLAGS-tst-longjmp_chk.c): Define.
60635         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60636         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60637         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60638         CFLAGS-tst-wchar-h.c.
60639
60640 2012-05-31  Marek Polacek  <polacek@redhat.com>
60641
60642         [BZ #14132]
60643         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60644         __endmntent_internal): Remove declaration.
60645         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60646         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60647         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60648
60649 2012-05-30  David S. Miller  <davem@davemloft.net>
60650
60651         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60652         (___Q_simulate_exceptions): Use real FP ops rather than writing
60653         into the %fsr.
60654         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60655         Likewise.
60656
60657 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60658
60659         [BZ #14117]
60660         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60661         * sysdeps/x86/bits/xtitypes.h: This.
60662
60663         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60664         * sysdeps/x86/bits/wordsize.h: This.
60665
60666         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60667         * sysdeps/x86/bits/huge_vall.h: This.
60668
60669         * sysdeps/i386/bits/select.h: Removed.
60670         * sysdeps/x86_64/bits/select.h: Renamed to ...
60671         * sysdeps/x86/bits/select.h: This.
60672
60673         * sysdeps/i386/bits/setjmp.h: Removed.
60674         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60675         * sysdeps/x86/bits/setjmp.h: This.
60676
60677         * sysdeps/i386/bits/mathdef.h: Removed.
60678         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60679         * sysdeps/x86/bits/mathdef.h: This.
60680
60681 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60682
60683         [BZ #14132]
60684         * include/sys/socket.h (__connect_internal)
60685         (__libc_sa_len_internal): Remove declaration.
60686         (__connect, __libc_sa_len): Declare hidden_proto.
60687         (SA_LEN): Remove use of INTUSE.
60688         * socket/connect.c: Add libc_hidden_def.
60689         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60690         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60691         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60692         alias.
60693         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60694         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60695         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60696         of adding _internal alias.
60697
60698 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60699
60700         [BZ #14117]
60701         * sysdeps/i386/bits/link.h: Removed.
60702         * sysdeps/i386/bits/linkmap.h: Likewise.
60703         * sysdeps/x86_64/bits/link.h: Renamed to ...
60704         * sysdeps/x86/bits/link.h: This.
60705         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60706         * sysdeps/x86/bits/linkmap.h: This.
60707
60708         * sysdeps/i386/bits/endian.h: Removed.
60709         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60710         * sysdeps/x86/bits/endian.h: This.
60711
60712         * sysdeps/i386/bits/byteswap.h: Removed.
60713         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60714         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60715         * sysdeps/x86/bits/byteswap.h: This.
60716         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60717         * sysdeps/x86/bits/byteswap-16.h: This.
60718         * sysdeps/i386/Implies: Add x86.
60719         * sysdeps/x86_64/Implies: Likewise.
60720
60721 2012-05-30  David S. Miller  <davem@davemloft.net>
60722
60723         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60724         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60725         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60726         (FP_TRAPPING_EXCEPTIONS): Define.
60727         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60728         (FP_TRAPPING_EXCEPTIONS): Define.
60729         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60730         subnormals only when inexact has been signalled or underflow
60731         exceptions are enabled.
60732         (_FP_PACK_CANONICAL): Likewise.
60733
60734 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60735
60736         [BZ #14183]
60737         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60738         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60739
60740 2012-05-30  Richard Henderson  <rth@twiddle.net>
60741
60742         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60743         with #ifndef NOT_IN_libc.
60744
60745         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60746         marked to avoid plt entry.
60747
60748 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60749
60750         [BZ #14112]
60751         * Makeconfig (default-abi): New macro.
60752         (abi-includes): Likewise.
60753         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60754         $(abi-$(default-abi)-lib-soname) for soname if defined.
60755         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60756         abi-variants.
60757         * Makefile (installed-stubs): Likewise.
60758         * include/stubs-biarch.h: Removed.
60759         * scripts/lib-names.awk: Only handle one library at a time.
60760         * scripts/soversions.awk: Remove WORDSIZE support.
60761         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60762         entries.
60763         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
60764         Removed.
60765         (syscall-list-default-condition): Likewise.
60766         (syscall-list-default-condition): Likewise.
60767         (syscall-list-includes): Likewise.
60768         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
60769         syscall-list-* with abi-*.  Handle undefined abi-variants.
60770         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
60771         * sysdeps/unix/sysv/linux/i386/Implies: New file.
60772         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
60773         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
60774         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
60775         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
60776         Removed.
60777         (syscall-list-32-options): Likewise.
60778         (syscall-list-32-condition): Likewise.
60779         (syscall-list-64-options): Likewise.
60780         (syscall-list-64-condition): Likewise.
60781         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
60782         macro.
60783         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
60784         Renamed to ...
60785         (abi-*): This.
60786         (abi-64-ld-soname): New macro.
60787         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
60788         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
60789         Renamed to ...
60790         (abi-*): This.
60791         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
60792         * sysdeps/x86_64/x32/shlib-versions: Likewise.
60793
60794 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
60795
60796         * sysdeps/unix/sysv/linux/kernel-features.h
60797         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
60798         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
60799         include <kernel-features.h>.
60800         [!__NR_ftruncate64]: Remove conditional code.
60801         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60802         [__NR_ftruncate64]: Make code unconditional.
60803         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60804         * sysdeps/unix/sysv/linux/truncate64.c: Do not
60805         include <kernel-features.h>.
60806         [!__NR_ftruncate64]: Remove conditional code.
60807         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60808         [__NR_ftruncate64]: Make code unconditional.
60809         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/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/powerpc/powerpc32/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
60823         * configure.in (libc_cv_fpie): Weaken to a compile test using
60824         LIBC_TRY_CC_OPTION.
60825         * configure: Regenerated.
60826
60827 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60828
60829         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
60830         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
60831         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
60832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
60833         Refreshed.
60834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
60835         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
60836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
60837         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
60838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
60839         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
60840         Refreshed.
60841
60842 2012-05-27  David S. Miller  <davem@davemloft.net>
60843
60844         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
60845         (___Q_zero): New.
60846         (__Q_simulate_exceptions): Return void.  Change to simulate
60847         exceptions by writing into the %fsr.
60848         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
60849         (__Qp_handle_exceptions): Likewise.
60850         (numbers): Delete.
60851         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
60852         __Qp_handle_exceptions.
60853         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
60854         __Qp_handle_exceptions.
60855         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60856         as unused and give dummy FP_RND_NEAREST initializer.
60857         (FP_INHIBIT_RESULTS): Define.
60858         (___Q_simulate_exceptions): Update declaration.
60859         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
60860         formatting.
60861         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60862         as unused and give dummy FP_RND_NEAREST initializer.
60863         (__Qp_handle_exceptions): Update declaration.
60864         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
60865         formatting.
60866
60867 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
60868
60869         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
60870         the temporary FPU control word.
60871         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
60872         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
60873         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
60874         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60875         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
60876         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
60877         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
60878         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60879         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
60880         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
60881         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60882
60883 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60884
60885         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
60886         fields.
60887
60888 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
60889
60890         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
60891         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
60892         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
60893         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
60894         Likewise.
60895         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
60896         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
60897         Likewise.
60898
60899 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
60900
60901         * po/h.po: Update from translation team.
60902
60903 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
60904
60905         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
60906
60907         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
60908         handling of denormals.
60909         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
60910         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
60911         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
60912         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
60913         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60914         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
60915         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
60916         Likewise.
60917
60918 2012-05-26  Marek Polacek  <polacek@redhat.com>
60919
60920         [BZ #14152]
60921         * math/libm-test.inc (fma_test): Don't always expect underflow
60922         exception.
60923
60924 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
60925
60926         [BZ #12416]
60927         * elf/tst-execstack.c: Include stackinfo.h.
60928         (do_test): Adjust test case to ensure that pthread_getattr_np
60929         behaviour remains the same after marking stack executable.
60930
60931 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60932
60933         * sysdeps/unix/sysv/linux/kernel-features.h
60934         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
60935         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
60936         kernel-features.h.
60937         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60938         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60939         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
60940         kernel-features.h.
60941         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60942         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60943
60944 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
60945
60946         * configure.in: Define the default includes to being none.
60947         * configure: Regenerated.
60948
60949 2012-05-25  Roland McGrath  <roland@hack.frob.com>
60950
60951         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
60952         * sysdeps/x86_64/setjmp.S: Likewise.
60953         * sysdeps/i386/bsd-setjmp.S: Likewise.
60954         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60955         * sysdeps/i386/setjmp.S: Likewise.
60956         * sysdeps/i386/__longjmp.S: Likewise.
60957         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
60958         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
60959
60960         * include/stap-probe.h: New file.
60961         * configure.in: Handle --enable-systemtap.
60962         * configure: Regenerated.
60963         * config.h.in (USE_STAP_PROBE): New #undef.
60964         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
60965         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
60966         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
60967
60968 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60969
60970         [BZ #13717]
60971         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
60972         to 2.4.0 where earlier.
60973         * sysdeps/unix/sysv/linux/configure: Regenerated.
60974         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
60975         <kernel-features.h>.
60976         [__ASSUME_32BITUIDS]: Make code unconditional.
60977         [!__ASSUME_32BITUIDS]: Remove conditional code.
60978         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
60979         <kernel-features.h>.
60980         [__ASSUME_32BITUIDS]: Make code unconditional.
60981         [!__ASSUME_32BITUIDS]: Remove conditional code.
60982         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
60983         [__ASSUME_32BITUIDS]: Make code unconditional.
60984         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
60985         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
60986         <kernel-features.h>.
60987         [__ASSUME_32BITUIDS]: Make code unconditional.
60988         [!__ASSUME_32BITUIDS]: Remove conditional code.
60989         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
60990         <kernel-features.h>.
60991         [__ASSUME_32BITUIDS]: Make code unconditional.
60992         [!__ASSUME_32BITUIDS]: Remove conditional code.
60993         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
60994         <kernel-features.h>.
60995         [__ASSUME_32BITUIDS]: Make code unconditional.
60996         [!__ASSUME_32BITUIDS]: Remove conditional code.
60997         * sysdeps/unix/sysv/linux/i386/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
61026         <kernel-features.h>.
61027         [__NR_setresgid] (__setresgid): Do not declare.
61028         [__ASSUME_32BITUIDS]: Make code unconditional.
61029         [!__ASSUME_32BITUIDS]: Remove conditional code.
61030         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61031         <kernel-features.h>.
61032         [__NR_setresuid] (__setresuid): Do not declare.
61033         [__ASSUME_32BITUIDS]: Make code unconditional.
61034         [!__ASSUME_32BITUIDS]: Remove conditional code.
61035         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61036         <kernel-features.h>.
61037         [__ASSUME_32BITUIDS]: Make code unconditional.
61038         [!__ASSUME_32BITUIDS]: Remove conditional code.
61039         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61040         <kernel-features.h>.
61041         [__ASSUME_32BITUIDS]: Make code unconditional.
61042         [!__ASSUME_32BITUIDS]: Remove conditional code.
61043         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61044         <kernel-features.h>.
61045         [__ASSUME_32BITUIDS]: Make code unconditional.
61046         [!__ASSUME_32BITUIDS]: Remove conditional code.
61047         * sysdeps/unix/sysv/linux/i386/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/shmctl.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/kernel-features.h
61076         (__ASSUME_SETRESUID_SYSCALL): Remove.
61077         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61078         (__ASSUME_32BITUIDS): Likewise.
61079         (__ASSUME_LDT_WORKS): Likewise.
61080         (__ASSUME_O_DIRECTORY): Likewise.
61081         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61082         architecture but not kernel version.
61083         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61084         (__ASSUME_MMAP2_SYSCALL): Likewise.
61085         (__ASSUME_STAT64_SYSCALL): Likewise.
61086         (__ASSUME_IPC64): Likewise.
61087         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61088         <kernel-features.h>.
61089         [__ASSUME_32BITUIDS]: Make code unconditional.
61090         [!__ASSUME_32BITUIDS]: Remove conditional code.
61091         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61092         <kernel-features.h>.
61093         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61094         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61095         132096]: Remove conditional code.
61096         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61097         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61098         <kernel-features.h>.
61099         [__ASSUME_32BITUIDS]: Make code unconditional.
61100         [!__ASSUME_32BITUIDS]: Remove conditional code.
61101         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61102         <kernel-features.h>.
61103         [__ASSUME_32BITUIDS]: Make code unconditional.
61104         [!__ASSUME_32BITUIDS]: Remove conditional code.
61105         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61106         <kernel-features.h>.
61107         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61108         unconditional.
61109         (__setresgid): Do not declare.
61110         [__ASSUME_32BITUIDS]: Make code unconditional.
61111         [!__ASSUME_32BITUIDS]: Remove conditional code.
61112         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61113         <kernel-features.h>.
61114         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61115         unconditional.
61116         (__setresuid): Do not declare.
61117         [__ASSUME_32BITUIDS]: Make code unconditional.
61118         [!__ASSUME_32BITUIDS]: Remove conditional code.
61119         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61120         <kernel-features.h>.
61121         [__ASSUME_32BITUIDS]: Make code unconditional.
61122         [!__ASSUME_32BITUIDS]: Remove conditional code.
61123         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61124         <kernel-features.h>.
61125         [__ASSUME_32BITUIDS]: Make code unconditional.
61126         [!__ASSUME_32BITUIDS]: Remove conditional code.
61127
61128 2012-05-25  Richard Henderson  <rth@twiddle.net>
61129
61130         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61131         dl_hwcap to ifunc resolver.
61132         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61133         elf_ifunc_invoke.
61134         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61135         dl_hwcap to ifunc resolver.
61136         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61137
61138 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61139
61140         [BZ #14153]
61141         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61142         for |x| <= 2**-26, not 2**-57.
61143         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61144         exception.
61145
61146 2012-05-24  Jeff Law  <law@redhat.com>
61147
61148         * stdio-common/Makefile (tests): Add bug25.
61149         * stdio-common/bug25.c: New test.
61150
61151 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61152
61153         [BZ #13576]
61154         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61155         multiple of MALLOC_ALIGNMENT in size.
61156         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61157
61158 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61159
61160         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61161         Require >= 256.
61162         (FILENAME_MAX): Use macro-int-constant.
61163         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61164         (_IOFBF): Use macro-int-constant.
61165         (_IOLBF): Likewise.
61166         (_IONBF): Likewise.
61167         (SEEK_CUR): Likewise.
61168         (SEEK_END): Likewise.
61169         (SEEK_SET): Likewise.
61170         (TMP_MAX): Likewise.
61171         (EOF): Use macro-int-constant.  Require < 0.
61172         (NULL): Use macro-constant.  Require == 0.
61173         (stdin): Require type to be FILE *.
61174         (stdout): Likewise.
61175         (stderr): Likewise.
61176         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61177         macro-int-constant.
61178         (EXIT_SUCCESS): Likewise.
61179         (NULL): Use macro-constant.  Require == 0.
61180         (RAND_MAX): Use macro-int-constant.
61181         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61182         [C99-based standards] (strtof): Require function.
61183         [C99-based standards] (strtold): Likewise.
61184         [C99-based standards] (strtoll): Likewise.
61185         [C99-based standards] (strtoull): Likewise.
61186         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61187         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61188         [ISO || ISO99 || ISO11] (math.h): Likewise.
61189         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61190         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61191         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61192
61193 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61194
61195         [BZ #14132]
61196         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61197         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61198         * intl/dgettext.c (DCGETTEXT): Likewise.
61199         * intl/gettext.c (DCGETTEXT): Likewise.
61200         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61201         * posix/regex_internal.h (gettext): Likewise.
61202         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61203         Remove declaration.
61204         * include/argz.h (__argz_count_internal)
61205         (__argz_stringify_internal): Remove declaration.
61206         (__argz_count, __argz_stringify): Declare hidden proto.
61207         * intl/dcgettext.c: Remove use of INTDEF.
61208         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61209         * string/argz-stringify.c: Likewise.
61210         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61211         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61212         Declare hidden proto.
61213         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61214         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61215         Declare hidden proto.
61216         * include/stdio.h (__asprintf_internal): Don't declare.
61217         (__asprintf): Don't define as macro.  Declare hidden proto.
61218         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61219         (__fsetlocking): Declare hidden proto.
61220         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61221         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61222         hidden proto.
61223         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61224         (_IO_setlinebuf): Remove use of INTUSE.
61225         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61226         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61227         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61228         Remove declaration.
61229         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61230         (_IO_do_flush): Remove use of INTUSE.
61231         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61232         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61233         (_IO_adjust_column, _IO_least_wmarker)
61234         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61235         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61236         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61237         (_IO_default_doallocate, _IO_wdefault_doallocate)
61238         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61239         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61240         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61241         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61242         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61243         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61244         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61245         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61246         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61247         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61248         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61249         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61250         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61251         proto.
61252         (_IO_flush_all_internal, _IO_adjust_column_internal)
61253         (_IO_default_uflow_internal, _IO_default_finish_internal)
61254         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61255         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61256         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61257         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61258         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61259         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61260         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61261         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61262         (_IO_file_close_internal, _IO_file_close_it_internal)
61263         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61264         (_IO_file_init_internal, _IO_file_attach_internal)
61265         (_IO_file_fopen_internal, _IO_file_read_internal)
61266         (_IO_file_sync_internal, _IO_file_seek_internal)
61267         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61268         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61269         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61270         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61271         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61272         (_IO_list_all_internal, _IO_link_in_internal)
61273         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61274         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61275         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61276         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61277         (_IO_do_write_internal, _IO_padn_internal)
61278         (_IO_getline_info_internal, _IO_getline_internal)
61279         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61280         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61281         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61282         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61283         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61284         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61285         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61286         with libc_hidden_ver, remove use of INTUSE.
61287         * libio/genops.c: Likewise.
61288         * libio/freopen.c: Likewise.
61289         * libio/freopen64.c: Likewise.
61290         * libio/iofclose.c: Likewise.
61291         * libio/iofdopen.c: Likewise.
61292         * libio/iofflush.c: Likewise.
61293         * libio/iofflush_u.c: Likewise.
61294         * libio/iofgets.c: Likewise.
61295         * libio/iofgets_u.c: Likewise.
61296         * libio/iofopen.c: Likewise.
61297         * libio/iofopncook.c: Likewise.
61298         * libio/iofread.c: Likewise.
61299         * libio/iofread_u.c: Likewise.
61300         * libio/ioftell.c: Likewise.
61301         * libio/iofwrite.c: Likewise.
61302         * libio/iogetline.c: Likewise.
61303         * libio/iogets.c: Likewise.
61304         * libio/iogetwline.c: Likewise.
61305         * libio/iopadn.c: Likewise.
61306         * libio/iopopen.c: Likewise.
61307         * libio/ioseekoff.c: Likewise.
61308         * libio/ioseekpos.c: Likewise.
61309         * libio/iosetbuffer.c: Likewise.
61310         * libio/iosetvbuf.c: Likewise.
61311         * libio/ioungetc.c: Likewise.
61312         * libio/ioungetwc.c: Likewise.
61313         * libio/iovdprintf.c: Likewise.
61314         * libio/iovsprintf.c: Likewise.
61315         * libio/iovsscanf.c: Likewise.
61316         * libio/memstream.c: Likewise.
61317         * libio/obprintf.c: Likewise.
61318         * libio/oldfileops.c: Likewise.
61319         * libio/oldiofclose.c: Likewise.
61320         * libio/oldiofdopen.c: Likewise.
61321         * libio/oldiofopen.c: Likewise.
61322         * libio/oldiopopen.c: Likewise.
61323         * libio/oldstdfiles.c: Likewise.
61324         * libio/putc.c: Likewise.
61325         * libio/setbuf.c: Likewise.
61326         * libio/setlinebuf.c: Likewise.
61327         * libio/stdfiles.c: Likewise.
61328         * libio/strops.c: Likewise.
61329         * libio/vasprintf.c: Likewise.
61330         * libio/vscanf.c: Likewise.
61331         * libio/vsnprintf.c: Likewise.
61332         * libio/vswprintf.c: Likewise.
61333         * libio/wfiledoalloc.c: Likewise.
61334         * libio/wfileops.c: Likewise.
61335         * libio/wgenops.c: Likewise.
61336         * libio/wmemstream.c: Likewise.
61337         * libio/wstrops.c: Likewise.
61338         * libio/__fpurge.c: Likewise.
61339         * libio/__fsetlocking.c: Likewise.
61340         * assert/assert.c: Likewise.
61341         * debug/fgets_chk.c: Likewise.
61342         * debug/fgets_u_chk.c: Likewise.
61343         * debug/fread_chk.c: Likewise.
61344         * debug/fread_u_chk.c: Likewise.
61345         * debug/gets_chk.c: Likewise.
61346         * debug/obprintf_chk.c: Likewise.
61347         * debug/vasprintf_chk.c: Likewise.
61348         * debug/vdprintf_chk.c: Likewise.
61349         * debug/vsnprintf_chk.c: Likewise.
61350         * debug/vsprintf_chk.c: Likewise.
61351         * malloc/mtrace.c: Likewise.
61352         * misc/error.c: Likewise.
61353         * misc/syslog.c: Likewise.
61354         * stdio-common/asprintf.c: Likewise.
61355         * stdio-common/fxprintf.c: Likewise.
61356         * stdio-common/getw.c: Likewise.
61357         * stdio-common/isoc99_fscanf.c: Likewise.
61358         * stdio-common/isoc99_scanf.c: Likewise.
61359         * stdio-common/isoc99_vfscanf.c: Likewise.
61360         * stdio-common/isoc99_vscanf.c: Likewise.
61361         * stdio-common/isoc99_vsscanf.c: Likewise.
61362         * stdio-common/printf-prs.c: Likewise.
61363         * stdio-common/printf_fp.c: Likewise.
61364         * stdio-common/printf_fphex.c: Likewise.
61365         * stdio-common/printf_size.c: Likewise.
61366         * stdio-common/putw.c: Likewise.
61367         * stdio-common/scanf.c: Likewise.
61368         * stdio-common/sprintf.c: Likewise.
61369         * stdio-common/tmpfile.c: Likewise.
61370         * stdio-common/vfprintf.c: Likewise.
61371         * stdio-common/vfscanf.c: Likewise.
61372         * stdlib/strfmon_l.c: Likewise.
61373         * sunrpc/openchild.c: Likewise.
61374         * sunrpc/xdr_stdio.c: Likewise.
61375         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61376         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61377
61378 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61379
61380         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61381
61382         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61383         in the third column, to generate for the shared library an IFUNC
61384         that uses _dl_vdso_vsym.
61385         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61386         * Makeconfig (object-suffixes-noshared): New variable.
61387
61388         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61389         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61390         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61391         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61392
61393         [BZ #14132]
61394         * include/sys/time.h (__gettimeofday): Remove macro.
61395         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61396         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61397         Remove INTDEF.
61398         (__gettimeofday): Add libc_hidden_def.
61399         (gettimeofday): Add libc_hidden_weak.
61400         * sysdeps/mach/gettimeofday.c: Likewise.
61401         * sysdeps/posix/gettimeofday.c: Likewise.
61402         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61403         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61404         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61405         (__gettimeofday_internal): Remove strong_alias.
61406         (__gettimeofday): Add libc_hidden_def.
61407         (gettimeofday): Add libc_hidden_weak.
61408         * sysdeps/unix/syscalls.list (gettimeofday):
61409         Remove __gettimeofday_internal alias.
61410
61411 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61412             H.J. Lu  <hongjiu.lu@intel.com>
61413
61414         [BZ #12495]
61415         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61416         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61417         (largebin_index_32_big): New.
61418         (largebin_index): Use it for 16-byte alignment.
61419         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61420         correction with front_misalign.
61421
61422 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61423
61424         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61425         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61426         Likewise.
61427         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61428         Likewise.
61429         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61430         Likewise.
61431         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61432         Likewise.
61433         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61434         Likewise.
61435         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61436         Likewise.
61437         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61438         Likewise.
61439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61440         Likewise.
61441         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61442         Likewise.
61443         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61444         Likewise.
61445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61446         Likewise.
61447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61448         Likewise.
61449
61450         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61451         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61452
61453 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61454
61455         [BZ #10846]
61456         [BZ #14036]
61457         * math/libm-test.inc (exp_test): Add test from bug 14036.
61458         (pow_test): Add test from bug 10846.
61459
61460         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61461         and other flags.
61462         (special_function): Do not include flags in test name.
61463         (parse_args): Likewise.
61464         * sysdeps/i386/fpu/libm-test-ulps: Update.
61465         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61466         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61467         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61469
61470         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61471         exceptions.
61472         * math/libm-test.inc ("Philosophy"): Update comment about
61473         exception testing.
61474         (UNDERFLOW_EXCEPTION): New macro.
61475         (UNDERFLOW_EXCEPTION_OK): Likewise.
61476         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61477         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61478         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61479         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61480         (INVALID_EXCEPTION_OK): Update value.
61481         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61482         (OVERFLOW_EXCEPTION_OK): Likewise.
61483         (IGNORE_ZERO_INF_SIGN): Likewise.
61484         (test_exceptions): Handle underflow exceptions.
61485         (acos_test): Update for underflow exception expectations.
61486         (cexp_test): Likewise.
61487         (clog_test): Likewise.
61488         (clog10_test): Likewise.
61489         (csqrt_test): Likewise.
61490         (ctan_test): Likewise.
61491         (ctanh_test): Likewise.
61492         (exp_test): Likewise.
61493         (exp10_test): Likewise.
61494         (exp2_test): Likewise.
61495         (expm1_test): Likewise.
61496         (fma_test): Likewise.
61497         (j0_test): Likewise.
61498         (jn_test): Likewise.
61499         (nexttoward_test): Likewise.
61500         (pow_test): Likewise.
61501         (scalbn_test): Likewise.
61502         (scalbln_test): Likewise.
61503         (tan_test): Likewise.
61504         (y1_test): Likewise.
61505         * sysdeps/i386/fpu/libm-test-ulps: Update.
61506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61507
61508 2012-05-23  David S. Miller  <davem@davemloft.net>
61509
61510         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61511         (__libc_sigaction): Remove unused local variables.
61512
61513 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61514
61515         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61516
61517 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         mktime: avoid signed integer overflow
61520         * time/mktime.c (__mktime_internal): Do not mishandle the case
61521         where diff == INT_MIN.
61522
61523         mktime: simplify computation of average
61524         * time/mktime.c (ranged_convert): Use new time_t_avg function
61525         instead of rolling our own (probably-slower) code.
61526
61527         mktime: do not assume signed right shift propagates sign bit
61528         * time/mktime.c (isdst_differ): New static function.
61529         (__mktime_internal): No need to normalize tm_isdst now.
61530         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61531         tm_isdst values.
61532
61533         mktime: merge another wrapv change from gnulib
61534         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61535         from some compilers.
61536
61537         mktime: remove incorrect attempt at unusual arithmetics
61538         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61539         The code didn't really work on such machines anyway.
61540         (TYPE_MINIMUM): Assume two's complement.
61541         (twos_complement_arithmetic): Verify that long_int and time_t
61542         are two's complement (or unsigned, in the latter case).
61543
61544         mktime: check signed shifts on long_int and time_t, too
61545         * time/mktime.c (SHR): Check that shifts work as desired
61546         on the types long_int and time_t too, as SHR is used on
61547         such types.
61548
61549         mktime: do not assume 'long' is wide enough
61550         * time/mktime.c (verify): Move decl up.
61551         (long_int): New type.
61552         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61553         to remove assumption in the code that 'long' is wide enough to
61554         store year values.  This assumption is not true on x32 and on
61555         some non-glibc platforms.
61556
61557         mktime: merge wrapv change from gnulib
61558         * time/mktime.c (WRAPV): New macro.
61559         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61560         (guess_time_tm, __mktime_internal): Do not assume that signed
61561         integer overflow wraps around; modern compilers generate code
61562         where this assumption is no longer valid.
61563
61564 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61565
61566         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61567         Replace "jmp L(pseudo_end)" with "ret".
61568         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61569         Likewise.
61570
61571 2012-05-23  Andreas Jaeger  <aj@suse.de>
61572
61573         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61574         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61575
61576 2012-05-23  Andreas Jaeger  <aj@suse.de>
61577             Maximilian Attems  <max@stro.at>
61578
61579         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61580         New macros.
61581
61582 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61583
61584         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61585         code so that pseudo_end is just ret and the stack pointer is
61586         correct also for static library in error case.
61587
61588 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61589
61590         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61591         move to syscalls.list.
61592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61596
61597         * manual/install.texi (Running make install): Do not mention Linux
61598         kernel version for which pt_chown is not needed.
61599         (Linux): Do not mention problems with nscd with 2.0 kernels.
61600         * INSTALL: Regenerated.
61601
61602 2012-05-23  Andreas Jaeger  <aj@suse.de>
61603
61604         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61605         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61606         macro.
61607         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61608         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61609         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61610         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61611         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61612         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61613         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61614         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61615         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61616         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61617         * sysdeps/unix/sysv/linux/bits/in.h
61618         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61619
61620 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61621
61622         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61623         (PREPARE_VERSION): Just use assert instead, it will be elided
61624         under [NDEBUG] anyway.
61625
61626 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61627
61628         * sysdeps/unix/sysv/linux/Makefile: Include
61629         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61630         (sysdep_routines): Remove sysctl.
61631         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61632         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61633         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61634         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61635         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61636
61637 2012-05-22  Andreas Jaeger  <aj@suse.de>
61638
61639         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61640         that pseudo_end is just ret and the stack pointer is correct also
61641         for static library in error case.
61642
61643 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61644
61645         [BZ #14122]
61646         * nss/nsswitch.c (defconfig_entries): New variable.
61647         (__nss_database_lookup): Don't leak defconfig entries.
61648         (nss_parse_service_list): Don't leak on error paths.
61649         (free_database_entries): New function.
61650         (free_defconfig): New function.
61651         (free_mem): Move common code to free_database_entries.
61652
61653 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61654
61655         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61656         Add arch_prctl.
61657         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61658
61659         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61660         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61661         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61662         New macro.
61663         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61664         (INTERNAL_SYSCALL_TYPES): Likewise.
61665         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61666         (LOAD_REGS_TYPES_[1-6]): Likewise.
61667         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61668         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61669
61670 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61671
61672         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61673         copysignl for GLIBC_2_0.
61674         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61675         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61676         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61677         logbl for GLIBC_2_0.
61678         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61679         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61680
61681 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61682
61683         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61684         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61685
61686         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61687         Use "neg %eax".
61688
61689         * time/mktime.c: Update copyright years.
61690
61691 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         mktime: merge comment-quoting-style change from gnulib
61694         * time/mktime.c: Quote 'like this' in comments.
61695         The GNU coding standards suggest that we no longer quote `like this',
61696         as "`" and "'" are typically rendered asymmetrically nowadays.
61697         The typical gnulib style is to quote 'like this' when quoting
61698         code, and "like this" when quoting English.
61699
61700         * time/mktime.c (compile-command): Add "-I.".
61701
61702         mktime: merge mktime-internal.h change from gnulib
61703         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61704
61705         mktime: merge time_r change from gnulib
61706         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61707
61708         mktime: merge DEBUG change from gnulib
61709         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61710         case system <time.h> has a #define.
61711
61712         mktime: merge <sys/types.h> change from gnulib
61713         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61714         since <time.t> is now guaranteed to define time_t.
61715
61716         mktime: merge HAVE_CONFIG_H change from gnulib
61717         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61718
61719 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61720
61721         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61722         Use "neg %eax".
61723
61724         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61725         __rlim_t cast.
61726         (struct rusage): Use anonymous union to pad each field to
61727         __syscall_slong_t.
61728
61729 2012-05-21  David S. Miller  <davem@davemloft.net>
61730
61731         * Makefules (o-iterator): Remove .s cases.
61732         (compile-command.s): Delete.
61733         (COMPILE.s): Delete.
61734         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61735
61736 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61737
61738         * configure.in (libc_cv_predef_stack_protector): Only consider
61739         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61740         * configure: Regenerated.
61741
61742 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61743
61744         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61745         New macro.  Use R*LP on int and pointer.
61746         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61747         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61748         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61749         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61750
61751         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61752         [__WORDSIZE_TIME64_COMPAT32] instead of
61753         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61754         (struct utmp): Likewise.
61755         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61756         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61757         Renamed to ...
61758         (__WORDSIZE_TIME64_COMPAT32): This.
61759         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61760         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61761         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61762         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61763         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
61764         (__WORDSIZE_TIME64_COMPAT32): New macro.
61765
61766 2012-05-21  Andreas Jaeger  <aj@suse.de>
61767
61768         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
61769         only if [SHARED]. Add prototype for __wcschr_ia32.
61770
61771 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61772
61773         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
61774         of %rbp unmolested in the jmp_buf while mangling the low bits.
61775         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
61776         unmolested high bits of %rbp while demangling the low bits.
61777         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61778
61779 2012-05-21  Andreas Jaeger  <aj@suse.de>
61780
61781         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
61782         * sunrpc/svc_simple.c: Use it for registerrpc.
61783         * sunrpc/xcrypt.c: Use it for passwd2des.
61784
61785         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
61786
61787 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61788
61789         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
61790         Don't define if [__SYSCALL_WORDSIZE != 32].
61791         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
61792         New macro.
61793
61794 2012-05-21  Bruno Haible  <bruno@clisp.org>
61795             Andreas Jaeger  <aj@suse.de>
61796
61797         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
61798         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
61799         inptr and inend for must_buffer_ch.
61800         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
61801         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
61802         * stdio-common/Makefile (tests): Remove bug15.
61803         (bug15-ENV): Remove macro.
61804         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
61805         anymore.
61806
61807 2012-05-19  Andreas Jaeger  <aj@suse.de>
61808             Roland McGrath  <roland@hack.frob.com>
61809
61810         * manual/contrib.texi: Completely rewritten. It contains now an
61811         alphabetical list of contributors and their contributions.
61812
61813 2012-05-21  Richard Henderson  <rth@twiddle.net>
61814
61815         * misc/getauxval.c (__getauxval): Use unsigned long int.
61816         * misc/sys/auxv.h: Include <sys/cdefs.h>.
61817         (getauxval): Use unsigned long int.
61818
61819 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61820
61821         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61822
61823 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61824
61825         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
61826         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
61827         __alignof__ (long double).
61828
61829 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61830
61831         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61832
61833 2012-05-20  Richard Henderson  <rth@twiddle.net>
61834
61835         * misc/getauxval.c: New file.
61836         * misc/sys/auxv.h: New file.
61837         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
61838         (routines): Add getauxval.
61839         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
61840         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
61841         * elf/dl-sysdep.c (_dl_auxv): Remove.
61842         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
61843         * elf/dl-support.c (_dl_auxv): New variable.
61844         (_dl_aux_init): Initialize it.
61845         * manual/startup.texi (Auxiliary Vector): New node.
61846         * sysdeps/generic/bits/hwcap.h: New file.
61847         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
61848         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
61849         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
61850         * sysdeps/sparc/sysdep.h: ... here.  Include it.
61851         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
61852         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
61853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
61854         Update.
61855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
61856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
61857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
61858         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
61859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61860         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61861         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
61862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
61863
61864 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61865
61866         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61867
61868 2012-05-19  David S. Miller  <davem@davemloft.net>
61869
61870         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61871
61872 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61873
61874         [BZ #14123]
61875         * math/s_ccosh.c: Include <float.h>
61876         (__ccosh): Avoid internal overflow calculating sinh and cosh
61877         values before multiplying by sin and cos values.
61878         * math/s_ccoshf.c: Likewise.
61879         * math/s_ccoshl.c: Likewise.
61880         * math/s_csin.c: Likewise.
61881         * math/s_csinf.c: Likewise.
61882         * math/s_csinl.c: Likewise.
61883         * math/s_csinh.c: Likewise.
61884         * math/s_csinhf.c: Likewise.
61885         * math/s_csinhl.c: Likewise.
61886         * math/libm-test.inc (ccos_test): Add more tests.
61887         (ccosh_test): Likewise.
61888         (csin_test): Likewise.
61889         (csinh_test): Likewise.
61890         * sysdeps/i386/fpu/libm-test-ulps: Update.
61891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61892
61893 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
61894
61895         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
61896         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
61897
61898         * sysdeps/x86_64/x32/_itoa.h: Add comment.
61899
61900 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61901
61902         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
61903         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
61904         * sysdeps/powerpc/soft-fp/Versions: Likewise.
61905         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
61906         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
61907         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
61908         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
61909         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
61910         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
61911         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
61912         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
61913         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
61914         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
61915         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
61916         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
61917         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
61918         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
61919         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
61920         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
61921         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
61922         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
61923         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
61924         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
61925         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
61926         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
61927         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
61928         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
61929         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
61930         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
61931         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
61932         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
61933
61934 2012-05-18  Andreas Jaeger  <aj@suse.de>
61935
61936         * csu/.gitignore: Delete.
61937
61938 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61939
61940         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
61941         (timex): Use __syscall_slong_t.
61942
61943 2012-05-18  Andreas Jaeger  <aj@suse.de>
61944             Carlos O'Donell  <carlos_odonell@mentor.com>
61945
61946         * manual/install.texi (Configuring and compiling): Update
61947         description about files modified in the source directory.
61948         * INSTALL: Regenerated.
61949
61950 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61951
61952         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
61953         value.  Use "or" to set return value to -1.
61954         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
61955         negate return value.
61956
61957 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61958
61959         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
61960         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
61961         failure if the compiler has Graphite support disabled.
61962         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
61963         Likewise.
61964         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
61965         (CFLAGS-memmove.c): Likewise.
61966         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
61967         Likewise.
61968
61969 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61970
61971         * sysdeps/x86_64/x32/_itoa.h: New file.
61972
61973         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
61974         getdents system call only if kernel and user dirents have the
61975         same d_ino and d_off.
61976
61977         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
61978         LLONG_MAX != LONG_MAX.
61979         (_itoa_word): Use _ITOA_WORD_TYPE on value.
61980         (_fitoa_word): Likewise.
61981
61982         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
61983         years.
61984         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
61985         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
61986         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
61987
61988         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
61989         include <bits/wordsize.h>.  Check __x86_64__ instead of
61990         __WORDSIZE.
61991         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
61992         if __x86_64__ is defined.  Use anonymous union on fpstate.
61993
61994         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
61995         anonymous union.
61996
61997 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
61998
61999         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62000         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62001         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62002         Refer to _rtld_local_ro instead of _rtld_global_ro.
62003         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62004         Likewise.
62005         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62006         Likewise.
62007         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62008         Likewise.
62009         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62010         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62011         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62012
62013         [BZ #10882]
62014         * sysdeps/powerpc/powerpc32/dl-machine.c
62015         (__elf_machine_runtime_setup) [PROF]: Don't reference
62016         _dl_prof_resolve.
62017
62018 2012-05-18  Andreas Jaeger  <aj@suse.de>
62019
62020         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62021         function only available for GCCs before 3.4 since GCC 3.4
62022         introduced a builtin.
62023         (lrint): Likewise.
62024         (llrintf): Likewise.
62025         (llrint): Likewise.
62026         (fmaxf): Likewise.
62027         (fmax): Likewise.
62028         (fminf): Likewise.
62029         (fmin): Likewise.
62030         (rint): Likewise.
62031         (rintf): Likewise.
62032         (nearbyint): Likewise.
62033         (nearbyintf): Likewise.
62034         (ceil): Likewise.
62035         (ceilf): Likewise.
62036         (floor): Likewise.
62037         (floorf): Likewise.
62038
62039 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62040
62041         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62042         on both fields and cast pointer to __syscall_ulong_t.
62043
62044         * bits/types.h (__fsword_t): New type.
62045         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62046         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62047         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62048         (__FSWORD_T_TYPE): Likewise.
62049         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62050         (__FSWORD_T_TYPE): Likewise.
62051         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62052         (__FSWORD_T_TYPE): Likewise.
62053         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62054         (__FSWORD_T_TYPE): Likewise.
62055         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62056         __SWORD_TYPE with __fsword_t.
62057         (statfs64): Likewise.
62058
62059 2012-05-17  David S. Miller  <davem@davemloft.net>
62060
62061         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62062
62063 2012-05-17  Andreas Jaeger  <aj@suse.de>
62064
62065         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62066         warning.
62067
62068 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62069
62070         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62071
62072 2012-05-17  Andreas Jaeger  <aj@suse.de>
62073
62074         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62075         when it is used.
62076
62077 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62078
62079         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62080
62081 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62082
62083         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62084         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62085
62086 2012-05-17  Andreas Jaeger  <aj@suse.de>
62087             Carlos O'Donell  <carlos_odonell@mentor.com>
62088
62089         [BZ #14059]
62090         * sysdeps/x86_64/multiarch/init-arch.h
62091         (bit_YMM_Usable): Rename to...
62092         (bit_AVX_Usable): ... this.
62093         (bit_FMA4_Usable): New macro.
62094         (bit_XMM_state): New macro.
62095         (bit_YMM_state): New macro.
62096         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62097         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62098         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62099         (CPUID_OSXSAVE): New macro.
62100         (CPUID_AVX): New macro.
62101         (CPUID_FMA4): New macro.
62102         (index_YMM_Usable): Rename to...
62103         (index_AVX_Usable): ... this.
62104         (HAS_AVX): Use HAS_ARCH_FEATURE.
62105         (HAS_FMA4): Likewise.
62106         (HAS_YMM_USABLE): Remove.
62107         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62108         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62109         are present.
62110         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62111         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62112         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62113         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62114         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62115
62116 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62117
62118         * math/libm-test.c: Support platforms without multiple rounding modes.
62119         * math/bug-nextafter.c: Support platforms without FP exceptions.
62120         * math/bug-nexttoward.c: Likewise.
62121         * math/test-fenv.c: Likewise.
62122         * math/test-misc.c: Likewise.
62123         * stdlib/bug-getcontext.c: Likewise.
62124
62125 2012-05-17  Andreas Jaeger  <aj@suse.de>
62126
62127         * manual/examples/search.c (critter_cmp): Change signature to
62128         avoid warnings.
62129         * manual/string.texi (Collation Functions): Likewise.
62130
62131 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62132
62133         * bits/types.h: Fold copyright years.
62134         * bits/typesizes.h: Likewise.
62135         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62136         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62137         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62138         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62139         * time/time.h: Likewise.
62140
62141 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62142
62143         [BZ #208]
62144         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62145         in instead of returning them.  Return void.
62146         (__libc_mallinfo): Accumulate over all arenas.
62147         (__malloc_stats): Adjust for change in int_mallinfo interface.
62148
62149 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62150
62151         [BZ #10375]
62152         * configure.in (NM): Add AC_CHECK_TOOL for it.
62153         (libc_extra_cflags): New substituted variable.
62154         Check for -fstack-protector being used implicitly.
62155         * configure: Regenerated.
62156         * config.make.in (config-extra-cflags): New variable,
62157         gets @libc_extra_cflags@.
62158         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62159
62160         [BZ #10375]
62161         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62162         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62163         * configure: Regenerated.
62164         * config.make.in (CPPUNDEFS): New substituted variable.
62165         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62166         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62167         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62168
62169 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62170
62171         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62172         (mq_attr): Use __syscall_slong_t.
62173
62174 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62175
62176         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62177         Check __x86_64__ instead of __WORDSIZE.
62178         (_STAT_VER_LINUX): Likewise.
62179         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62180         __syscall_ulong_t and __syscall_slong_t.
62181         (stat64): Likewise.
62182
62183 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62184
62185         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62186
62187 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62188
62189         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62190
62191 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62192
62193         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62194         __syscall_ulong_t.
62195
62196         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62197         include <bits/wordsize.h>.  Check __x86_64__ instead of
62198         __WORDSIZE.
62199         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62200         defined.
62201         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62202
62203         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62204         include <bits/wordsize.h>.  Check __x86_64__ instead of
62205         __WORDSIZE.
62206         (user_regs_struct): Use "__extension__ unsigned long long"
62207         instead of "unsigned long" if __x86_64__ is defined.
62208         (user): Likewise.  Pad after pointer field if __ILP32__ is
62209         defined.
62210
62211 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62212
62213         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62214         versions 5 to 9.
62215         * configure: Regenerated.
62216         * manual/install.texi (texinfo): Increase version requirement to
62217         4.5 or later.
62218         * INSTALL: Regenerated.
62219
62220         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62221
62222 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62223
62224         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62225
62226         * sysdeps/x86_64/x32/ffs.c: New file.
62227
62228         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62229         __syscall_ulong_t.
62230         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62231         defined.  Use __syscall_ulong_t.
62232         (shminfo): Use __syscall_ulong_t.
62233         (shm_info): Likewise.
62234
62235         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62236         __syscall_ulong_t.
62237
62238         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62239         <bits/wordsize.h>.
62240         (msgqnum_t): Use __syscall_ulong_t.
62241         (msglen_t): Likewise.
62242         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62243         __syscall_ulong_t.
62244
62245         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62246         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62247
62248         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62249
62250         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62251         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62252
62253         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62254         __syscall_slong_t.
62255
62256         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62257         include <bits/wordsize.h>.  Check __x86_64__ instead of
62258         __WORDSIZE.
62259
62260         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62261         "unsigned long long int" if __x86_64__ is defined.
62262         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62263
62264         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62265         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62266         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62267
62268         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62269         <stdint.h>.
62270         (GET_PC): Cast to uintptr_t first.
62271         (GET_FRAME): Likewise.
62272         (GET_STACK): Likewise.
62273
62274         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62275         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62276         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62277         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62278         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62279         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62280         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62281         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62282         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62283         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62284         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62285         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62286         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62287         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62288         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62289         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62290         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62291         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62292         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62293         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62294         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62295         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62296         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62297         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62298         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62299         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62300         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62301         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62302         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62303
62304 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62305
62306         * Makerules (+depfiles): Also collect depfiles from .oS in
62307         $(extra-objs).
62308         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62309         .oS, $(libnldbl-routines)).
62310
62311         * Makerules (native-compile-mkdep-flags): Define.
62312         * sunrpc/Makefile (extra-objs): Add $(addprefix
62313         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62314         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62315         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62316         calling $(make-target-directory).
62317
62318 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62319
62320         * bits/types.h (__snseconds_t): Removed.
62321         * time/time.h (struct timespec): Replace __snseconds_t with
62322         __syscall_slong_t.
62323         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62324         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62325         Likewise.
62326         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62327         (__SNSECONDS_T_TYPE): Likewise.
62328         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62329         (__SNSECONDS_T_TYPE): Likewise.
62330         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62331         (__SNSECONDS_T_TYPE): Likewise.
62332
62333 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62334
62335         * sysdeps/mach/hurd/bits/typesizes.h
62336         (__SYSCALL_SLONG_TYPE): New macro.
62337         (__SYSCALL_ULONG_TYPE): Likewise.
62338
62339 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62340
62341         * bits/types.h (__syscall_slong_t): New type.
62342         (__syscall_ulong_t): Likewise.
62343
62344         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62345         (__SYSCALL_ULONG_TYPE): Likewise.
62346         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62347         (__SYSCALL_SLONG_TYPE): Likewise.
62348         (__SYSCALL_ULONG_TYPE): Likewise.
62349         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62350         (__SYSCALL_SLONG_TYPE): Likewise.
62351         (__SYSCALL_ULONG_TYPE): Likewise.
62352         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62353         (__SYSCALL_SLONG_TYPE): Likewise.
62354         (__SYSCALL_ULONG_TYPE): Likewise.
62355
62356 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62357
62358         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62359         Add sigaltstack-offsets.sym.
62360         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62361         <sigaltstack-offsets.h>.
62362         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62363         longjmp_msg pointer.
62364         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62365         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62366         signal stack.
62367         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62368
62369 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62370
62371         * elf/stackguard-macros.h: Remove file.
62372         * sysdeps/generic/stackguard-macros.h: New file.
62373         * sysdeps/i386/stackguard-macros.h: Likewise.
62374         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62375         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62376         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62377         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62378         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62379         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62380         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62381         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62382         <elf/stackguard-macros.h>.
62383
62384         [BZ #14109]
62385         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62386         __aligned__ in attribute.
62387         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62388         (gregset_t): Likewise.
62389
62390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62391
62392         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62393         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62394         * sysdeps/x86_64/x32/Implies-after: New file.
62395
62396 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62397
62398         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62399         and access return value for _dl_profile_fixup.  Use R10_LP to
62400         load frame size.
62401
62402 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62403
62404         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62405
62406 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62407
62408         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62409         * sysdeps/x86_64/x32/sysdep.h: New file.
62410
62411 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62412
62413         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62414         * sysdeps/x86_64/setjmp.S: Likewise.
62415
62416 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62417
62418         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62419         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62420         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62421         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62422         remove unused global constant.
62423
62424 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62425
62426         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62427         include of <not-cancel.h>.
62428
62429 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62430
62431         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62432
62433 2012-05-15  Jeff Law  <law@redhat.com>
62434             Andreas Jaeger  <aj@suse.de>
62435
62436         [BZ #13594]
62437         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62438         out from...
62439         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62440         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62441         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62442         code changing __hst_map_handle.map.
62443
62444 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62445
62446         * configure.in (sysnames): Look for Implies-before and Implies-after
62447         files.
62448         * configure: Regenerated.
62449
62450 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62451
62452         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62453         8-byte data alignment with LP_SIZE alignment.
62454
62455 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62456
62457         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62458         into R10_LP.
62459
62460 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62461
62462         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62463
62464 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62465
62466         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62467         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62468         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62469         Likewise.
62470         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62471
62472 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62473
62474         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62475         (stackinfo_sub_sp): Likewise.
62476
62477 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62478
62479         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62480         RAX_LP.
62481
62482 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62483
62484         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62485         into R*_LP.
62486
62487 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62488
62489         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62490         sizes into R*_LP.
62491
62492 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62493
62494         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62495
62496 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62497
62498         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62499         into R11_LP and load __x86_64_shared_cache_size_half into
62500         R8_LP.
62501
62502 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62503
62504         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62505         R8_LP.
62506
62507 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62508
62509         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62510         logb for POWER7.
62511         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62512         logbf for POWER7.
62513         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62514         logbl for POWER7.
62515         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62516         powerpc32/power7/fpu/s_logb.c via #include.
62517         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62518         powerpc32/power7/fpu/s_logbf.c via #include.
62519         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62520         powerpc32/power7/fpu/s_logbl.c via #include.
62521
62522 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62523
62524         * README.libm: Remove file.
62525
62526 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62527
62528         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62529         count for x32.  Use R*_LP and omit operand-size suffix.
62530
62531 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62532
62533         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62534         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62535         * sysdeps/x86_64/x32/shlib-versions: New file.
62536
62537 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62538
62539         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62540         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62541         Use _dl_fatal_printf instead.
62542
62543 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62544
62545         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62546         set if not set by the user.  Do not allow for being unset.
62547         * sysdeps/unix/sysv/linux/configure: Regenerated.
62548
62549 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62550
62551         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62552         the `q' suffix from lea and replace .quad with ASM_ADDR.
62553
62554 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62555
62556         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62557         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62558         instead of $17.
62559         (PTR_DEMANGLE): Likewise.
62560
62561 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62562
62563         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62564         (LP_OP): Likewise.
62565         (ASM_ADDR): Likewise.
62566         (RAX_LP): Likewise.
62567         (RBP_LP): Likewise.
62568         (RBX_LP): Likewise.
62569         (RCX_LP): Likewise.
62570         (RDI_LP): Likewise.
62571         (RSI_LP): Likewise.
62572         (RSP_LP): Likewise.
62573         (R8_LP): Likewise.
62574         (R9_LP): Likewise.
62575         (R10_LP): Likewise.
62576         (R10_LP): Likewise.
62577         (R11_LP): Likewise.
62578         (R12_LP): Likewise.
62579         (R13_LP): Likewise.
62580         (R14_LP): Likewise.
62581         (R15_LP): Likewise.
62582
62583 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62584
62585         * sysdeps/x86_64/x32/dl-machine.h: New file.
62586
62587 2012-05-14  Andreas Jaeger  <aj@suse.de>
62588
62589         * manual/Makefile (subdir): Remove export of subdir.
62590         (all): Remove target.
62591         (.PHONY): Remove all from list.
62592         (mkinstalldirs): Remove.
62593         (.PHONY): Remove installdirs from list.
62594         ($(inst_infodir)/libc.info): Use make-target-directory.
62595         (installdirs): Remove.
62596         (subdir_%): Remove.
62597         (glibc-targets): Remove.
62598         (lib): Remove.
62599         (stubs): Remove.
62600         ($(objpfx)stubs ../po/manual.pot): Remove.
62601         ($(objpfx)stamp%): Remove.
62602         (make-target-directory): Remove.
62603         (subdir_install): Remove.
62604         (routines): Remove.
62605         (aux): Remove.
62606         (sources): Remove.
62607         (objects): Remove.
62608         (headers): Remove.
62609
62610         [BZ #13750]
62611         * manual/.gitignore: Remove, it's not needed anymore.
62612         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62613         all files in it.
62614         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62615         directory.
62616         (texis): Renamed to $(objpfx)texis.
62617         (texis-path): New, contains path to generated files.
62618         (chapters.%): Use texis-path for complete path, add extra argument
62619         libc-texinfo.sh.
62620         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62621         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62622         (summary,texi, stamp-summary): Use complete path of
62623         files. Generate files in build dir.
62624         (dir-add.texi): Build in build dir.
62625         (libm-err.texi,stamp-libm-err): Likewise.
62626         (version.texi, stamp-version): Likewise.
62627         (.%c.texi): Likewise.
62628         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62629         (mostlyclean): Remove target.
62630         (realclean): Remove target.
62631         (generated): Add new variable with contents from mostlyclean and
62632         realclean, remove entries duplicated in common-mostlyclean, add
62633         stamp-libm-err and stamp-version.
62634         (generated-dirs): Add libc directory.
62635         ($(inst_infodir)/libc.info): Install files from build dir.
62636
62637         * manual/install.texi (Configuring and compiling): Adjust since
62638         the info files are not part of the tar ball anymore.
62639
62640 2012-05-14  Andreas Jaeger  <aj@suse.de>
62641
62642         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62643         variable.
62644
62645 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62646
62647         [BZ #13717]
62648         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62649         to 2.2.0 where earlier.
62650         * sysdeps/unix/sysv/linux/configure: Regenerated.
62651         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62652         Remove conditional code.
62653         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62654         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62655         Remove conditional code.
62656         [!__NR_lchown]: Likewise.
62657         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62658         [__NR_lchown]: Likewise.
62659         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62660         comment referencing __ASSUME_LCHOWN_SYSCALL.
62661         * sysdeps/unix/sysv/linux/i386/sigaction.c
62662         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62663         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62664         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62665         Remove conditional code.
62666         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62667         (__protocol_available): Remove #if 0 code.
62668         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62669         conditional code.
62670         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62671         * sysdeps/unix/sysv/linux/kernel-features.h
62672         (__ASSUME_GETCWD_SYSCALL): Don't define.
62673         (__ASSUME_REALTIME_SIGNALS): Likewise.
62674         (__ASSUME_PREAD_SYSCALL): Likewise.
62675         (__ASSUME_PWRITE_SYSCALL): Likewise.
62676         (__ASSUME_POLL_SYSCALL): Likewise.
62677         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62678         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62679         non-SPARC.
62680         (__ASSUME_SIOCGIFNAME): Don't define.
62681         (__ASSUME_MSG_NOSIGNAL): Likewise.
62682         (__ASSUME_SENDFILE): Define unconditionally.
62683         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62684         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62685         conditional code.
62686         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62687         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62688         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62689         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62690         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62691         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62692         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62694         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62695         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62697         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62698         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62700         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62701         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62703         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62704         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62706         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62707         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62709         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62710         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62712         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62713         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62715         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62716         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62717         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62718         Remove conditional code.
62719         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62720         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62721         Remove conditional code.
62722         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62723         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62724         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62725         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62726         Remove conditional code.
62727         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62728         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62729         Remove conditional code.
62730         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62731         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62732         Remove conditional code.
62733         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62734         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62735         Remove conditional code.
62736         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62737         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62738         Remove conditional code.
62739         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62740         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62741         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62742         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62743         * sysdeps/unix/sysv/linux/sigaction.c
62744         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62745         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62746         * sysdeps/unix/sysv/linux/sigpending.c
62747         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62748         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62749         * sysdeps/unix/sysv/linux/sigprocmask.c
62750         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62751         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62752         * sysdeps/unix/sysv/linux/sigsuspend.c
62753         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62754         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62755         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62756         (__libc_missing_rt_sigs): Remove.
62757         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62758         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62759         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62760         Remove conditional code.
62761         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62762         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62763         return 1.
62764         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
62765         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
62766         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
62767         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
62768
62769 2012-05-14  Andreas Jaeger  <aj@suse.de>
62770
62771         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
62772         it's not used in glibc.
62773         (__coshm1): Likewise.
62774         (__acosh1p): Likewise.
62775         (__sgn): Likewise.
62776
62777         * manual/string.texi (Copying and Concatenation): Add missing
62778         variable in concat example.
62779         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
62780
62781 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62782
62783         [BZ #14103]
62784         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
62785         __builtin_clzl with __builtin_clzll.
62786
62787 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62788
62789         [BZ #14104]
62790         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
62791         libc_freeres_ptr.
62792
62793 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62794
62795         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
62796         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
62797         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
62798         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
62799
62800 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
62801
62802         * NEWS: Update ia64 info.
62803
62804 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
62805
62806         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
62807         used as bcopy.
62808
62809 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
62810
62811         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
62812         * sysdeps/unix/syscalls.list (dup3): Likewise.
62813         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
62814         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
62815
62816 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62817
62818         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
62819         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
62820
62821 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62822
62823         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
62824         thread pointer.
62825         (TLS_IE): Use mov/add instead of movq/addq to load thread
62826         pointer.
62827         (TLS_GD_PREFIX): New.
62828         (TLS_GD): Use it.
62829
62830 2012-05-11  David S. Miller  <davem@davemloft.net>
62831
62832         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
62833         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
62834         (_FPU_SETCW): Likewise.
62835
62836 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62837
62838         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
62839         is 32-byte aligned.
62840
62841 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
62842
62843         [BZ #11837]
62844         * iconvdata/gb18030.c: Update tables.
62845         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
62846         characters specially.
62847         (BODY for TO_LOOP): Add encoding of missing ranges.
62848
62849 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
62850
62851         [BZ #13673]
62852         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
62853         * sysdeps/mach/hurd/dup3.c: Likewise.
62854         * sysdeps/mach/hurd/readlinkat.c: Likewise.
62855         * sysdeps/powerpc/memmove.c:: Likewise.
62856
62857 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62858
62859         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
62860         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
62861
62862 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62863
62864         * elf/elf.h (R_X86_64_RELATIVE64): New.
62865         (R_X86_64_NUM): Updated.
62866         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
62867         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
62868         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
62869         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
62870         tst-quad1pie tst-quad2pie
62871         (modules-names): Add tst-quadmod1 tst-quadmod2.
62872         ($(objpfx)tst-quad1): New dependency.
62873         ($(objpfx)tst-quad2): Likewise.
62874         ($(objpfx)tst-quad1pie): Likewise.
62875         ($(objpfx)tst-quad2pie): Likewise.
62876         * sysdeps/x86_64/tst-quad1.c: New file.
62877         * sysdeps/x86_64/tst-quad1pie.c: New file.
62878         * sysdeps/x86_64/tst-quad2.c: Likewise.
62879         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
62880         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
62881         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
62882         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
62883         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
62884
62885 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62886
62887         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
62888         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
62889         * streams/stropts.h (t_scalar_t): Define type.
62890
62891         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
62892         (_PATH_PRESERVE): Set to "/var/lib".
62893         (_PATH_RWHODIR): Set to "/var/spool/rwho".
62894
62895         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
62896         instead of int.
62897
62898         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
62899         if __dir_mkfile succeeded.
62900
62901         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
62902         checking for _hurd_dtablesize.  Unlock it right after having
62903         finished _hurd_dtable allocation.
62904
62905 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62906
62907         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
62908         * sysdeps/mach/hurd/configure: Regenerated.
62909         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
62910         special-casing to...
62911         * sysdeps/gnu/configure.in: ... this new file.
62912         * sysdeps/unix/sysv/linux/configure: Regenerated.
62913         * sysdeps/gnu/configure: New generated file.
62914
62915         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
62916         for Linux: use nsec instead of usec, as well as:
62917         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
62918         members of type struct timespec.
62919         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
62920         New macros.
62921         (struct stat64): Likewise.
62922         (_STATBUF_ST_NSEC): New macro.
62923         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
62924
62925         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62926         __strtoul_internal rather than strtoul.
62927
62928 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62929
62930         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
62931         and reject them.
62932
62933 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62934
62935         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
62936         which preserves existing values.
62937         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
62938
62939 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62940
62941         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
62942         TIMEOUT values.  Return EINVAL for NFDS values either negative or
62943         greater than FD_SETSIZE.
62944
62945 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62946
62947         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
62948         allocated, call __vm_protect to finish enabling the existing space, and
62949         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
62950         allocate the remainder.
62951
62952 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62953
62954         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
62955         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
62956
62957 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62958
62959         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
62960         sysdeps/mach/hurd/readlink.c.
62961
62962         * posix/tst-sysconf.c (posix_options): Only use
62963         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
62964         _POSIX_SYNCHRONIZED_IO when they are defined
62965         * sysdeps/mach/hurd/bits/posix_opt.h:
62966         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
62967         (_XOPEN_REALTIME): Undefine macro.
62968         (_XOPEN_REALTIME_THREADS): Undefine macro.
62969         (_XOPEN_SHM): Undefine macro.
62970         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
62971         macro to -1.
62972         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
62973         macro to -1.
62974         (_POSIX_ASYNC_IO): Undefine macro.
62975         (_POSIX_PRIORITIZED_IO): Undefine macro.
62976         (_POSIX_SPIN_LOCKS): Define macro to -1.
62977
62978         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
62979         SA_NODEFER, SA_RESETHAND.
62980         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
62981         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
62982         F_DUPFD_CLOEXEC.
62983
62984 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62985
62986         * elf/Makefile (pldd-modules): Define unconditionally.
62987
62988 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62989
62990         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
62991
62992 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62993
62994         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
62995         Return ENOENT when name is empty.
62996         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
62997
62998 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62999
63000         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63001
63002         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63003
63004 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63005
63006         Fix mlock in all cases except non-readable pages.
63007         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63008         instead of VM_PROT_ALL as parameter to __vm_wire function.
63009
63010         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63011         (__mkdir): When path is `/', just fail with EEXIST.
63012         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63013
63014 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63015
63016         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63017         <sys/uio.h> (for writev).
63018         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63019         and <sys/param.h> (for MIN).
63020
63021 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63022
63023         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63024         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63025         if interrupted.
63026
63027 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63028
63029         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63030         Depend on against $(link-rpcuserlibs).
63031
63032 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63033
63034         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63035         (__libc_stack_end): Do not use attribute_relro.
63036         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63037         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63038         to libthread-provided value.
63039         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63040         attribute_relro.
63041
63042 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63043
63044         [BZ #3748]
63045         * bits/libc-lock.h (__libc_once_get): New macro.
63046         * sysdeps/mach/bits/libc-lock.h: Likewise.
63047         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63048         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63049         instead of using implementation details.
63050
63051         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63052         * libio/freopen.c: Likewise.
63053         * libio/freopen64.c: Likewise.
63054         * misc/syslog.c: Likewise.
63055         * nscd/connections.c: Likewise.
63056         * nscd/netgroupcache.c: Likewise.
63057         * sysdeps/posix/getcwd.c: Likewise.
63058
63059 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63060
63061         * math/w_ilogbf.c: Add #include <limits.h>.
63062
63063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63064
63065         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63066         path instead of returning without unlocking.
63067
63068         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63069         immediate-write ioctls.
63070         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63071
63072 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63073
63074         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63075         __builtin_frame_address instead of making assumptions about the
63076         location of the return address relative to DATA.  Force early load of
63077         the return address.
63078         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63079         __builtin_frame_address.
63080
63081         dup3 for GNU Hurd.
63082         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63083         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63084         implement dup3 and do some further code clean-ups.
63085         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63086         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63087
63088 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63089
63090         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63091
63092         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63093         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63094         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63095         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63096         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63097         d->port.lock.
63098
63099         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63100         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63101         when handler == SIG_ERR, not when handler != SIG_ERR.
63102
63103 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63104
63105         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63106         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63107         definitions.
63108
63109         accept4 for GNU Hurd.
63110         * include/sys/socket.h (__libc_accept4): New prototype.
63111         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63112         to implement __libc_accept4.
63113         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63114         __libc_accept4.
63115         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63116
63117         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63118         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63119         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63120         signal-defines.sym.
63121
63122 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63123
63124         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63125
63126 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63127
63128         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63129         assertion on O_CLOEXEC flag.
63130         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63131         * hurd/intern-fd.c: Likewise.
63132         * hurd/port2fd.c: Likewise.
63133
63134 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63135
63136         [BZ #3906]
63137         * bits/in.h (IPV6_PKTINFO): Define new macro.
63138         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63139
63140 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63141
63142         [BZ #13954]
63143         [BZ #13955]
63144         [BZ #13956]
63145         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63146         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63147         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63148         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63149         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63150         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63151         * math/libm-test.inc (logb_test) : Additional logb tests.
63152
63153 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63154             Andreas Jaeger  <aj@suse.de>
63155
63156         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63157         * configure: Regenerated.
63158         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63159         * config.make.in (link-obsolete-rpc): New substituted variable.
63160         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63161         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63162         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63163         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63164         so that libc.a contains the symbols.
63165         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63166         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63167         * sunrpc/auth_none.c: Likewise.
63168         * sunrpc/auth_unix.c: Likewise.
63169         * sunrpc/authdes_prot.c: Likewise.
63170         * sunrpc/authuxprot.c: Likewise.
63171         * sunrpc/clnt_gen.c: Likewise.
63172         * sunrpc/clnt_perr.c: Likewise.
63173         * sunrpc/clnt_raw.c: Likewise.
63174         * sunrpc/clnt_simp.c: Likewise.
63175         * sunrpc/clnt_tcp.c: Likewise.
63176         * sunrpc/clnt_udp.c: Likewise.
63177         * sunrpc/clnt_unix.c: Likewise.
63178         * sunrpc/des_crypt.c: Likewise.
63179         * sunrpc/des_soft.c: Likewise.
63180         * sunrpc/get_myaddr.c: Likewise.
63181         * sunrpc/key_call.c: Likewise.
63182         * sunrpc/key_prot.c: Likewise.
63183         * sunrpc/netname.c: Likewise.
63184         * sunrpc/pm_getmaps.c: Likewise.
63185         * sunrpc/pm_getport.c: Likewise.
63186         * sunrpc/pmap_clnt.c: Likewise.
63187         * sunrpc/pmap_prot.c: Likewise.
63188         * sunrpc/pmap_prot2.c: Likewise.
63189         * sunrpc/pmap_rmt.c: Likewise.
63190         * sunrpc/publickey.c: Likewise.
63191         * sunrpc/rpc_cmsg.c: Likewise.
63192         * sunrpc/rpc_common.c: Likewise.
63193         * sunrpc/rpc_dtable.c: Likewise.
63194         * sunrpc/rpc_prot.c: Likewise.
63195         * sunrpc/rpc_thread.c: Likewise.
63196         * sunrpc/rtime.c: Likewise.
63197         * sunrpc/svc.c: Likewise.
63198         * sunrpc/svc_auth.c: Likewise.
63199         * sunrpc/svc_raw.c: Likewise.
63200         * sunrpc/svc_run.c: Likewise.
63201         * sunrpc/svc_tcp.c: Likewise.
63202         * sunrpc/svc_udp.c: Likewise.
63203         * sunrpc/svc_unix.c: Likewise.
63204         * sunrpc/svcauth_des.c: Likewise.
63205         * sunrpc/xcrypt.c: Likewise.
63206         * sunrpc/xdr.c: Likewise.
63207         * sunrpc/xdr_array.c: Likewise.
63208         * sunrpc/xdr_float.c: Likewise.
63209         * sunrpc/xdr_intXX_t.c: Likewise.
63210         * sunrpc/xdr_mem.c: Likewise.
63211         * sunrpc/xdr_rec.c: Likewise.
63212         * sunrpc/xdr_ref.c: Likewise.
63213         * sunrpc/xdr_sizeof.c: Likewise.
63214         * sunrpc/xdr_stdio.c: Likewise.
63215
63216 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63217
63218         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63219         change.  Update copyright years.
63220
63221 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63222
63223         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63224
63225 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63226             Joseph Myers  <joseph@codesourcery.com>
63227             Paul Pluzhnikov  <ppluzhnikov@google.com>
63228
63229         [BZ #14012]
63230         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63231         requiring rpcgen.
63232         [cross-compiling] (extra-libs): Likewise.
63233         [cross-compiling] (extra-libs-others): Likewise.
63234         [cross-compiling] (librpcsvc-routines): Likewise.
63235         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63236         [cross-compiling] (omit-deps): Likewise.
63237         (sunrpc-CPPFLAGS): New variable.
63238         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63239         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63240         (cross-rpcgen-objs): New variable.
63241         (extra-objs): Append $(cross-rpcgen-objs).
63242         ($(cross-rpcgen-objs)): New rule.
63243         ($(objpfx)cross-rpcgen): Likewise.
63244         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63245         comment.
63246         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63247         ($(objpfx)x%.stmp): Likewise.
63248         * sunrpc/proto.h [IS_IN_build] (_): Define.
63249         [IS_IN_build] (_libc_intl_domainname): Likewise.
63250
63251 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63252
63253         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63254         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63255         and R_X86_64_TPOFF64.
63256
63257 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63258
63259         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63260         sysdeps/unix/sysv/syscalls.list.
63261         (stime): Likewise.
63262         (utime): Likewise.
63263         * sysdeps/unix/sysv/syscalls.list: Remove file.
63264
63265 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63266
63267         [BZ #3440]
63268         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63269         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63270         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63271         (__LC_IDENTIFICATION): Make these macros useful in #if
63272         expressions, as required by C99.
63273
63274 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63275
63276         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63277         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63278         after this.
63279
63280 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63281
63282         * stdlib/longlong.h: Updated from GCC.
63283
63284 2012-05-09  Andreas Jaeger  <aj@suse.de>
63285
63286         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63287         default is first entry.
63288         (run_mode): Set type.
63289         (main): Remove informal message about syslog.
63290         (options): Fix typo.
63291
63292         [BZ #14053]
63293         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63294         to asm.
63295         (lrint): Likewise.
63296         (llrintf): Likewise.
63297         (llrint): Likewise.
63298         (rint): Likewise.
63299         (rintf): Likewise.
63300         (nearbyint): Likewise.
63301         (nearbyintf): Likewise.
63302
63303 2012-05-09  Andreas Jaeger  <aj@suse.de>
63304             Pedro Alves  <palves@redhat.com>
63305
63306         * nscd/nscd.c (run_mode): Use enum.
63307         (main): Cleanup coding style issue.
63308
63309 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63310             Andreas Jaeger  <aj@suse.de>
63311
63312         * nscd/nscd.c (go_background): Replaced with...
63313         (run_mode): ... this.
63314         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63315         (options): Add -F --foreground.
63316         (main): Implement it.
63317         (parse_opt): Parse it.
63318
63319 2012-05-09  Andreas Jaeger  <aj@suse.de>
63320
63321         [BZ #14083]
63322         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63323         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63324         -Wconversion warning.
63325         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63326         Likewise.
63327
63328 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63329
63330         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63331         == 0.
63332         (LC_ALL): Use macro-int-constant.
63333         (LC_COLLATE): Likewise.
63334         (LC_CTYPE): Likewise.
63335         (LC_MESSAGES): Likewise.
63336         (LC_MONETARY): Likewise.
63337         (LC_NUMERIC): Likewise.
63338         (LC_TIME): Likewise.
63339         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63340         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63341         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63342         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63343         Specify type.
63344         [C99-based standards] (float_t): Expect type.
63345         [C99-based standards] (double_t): Expect type.
63346         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63347         type.
63348         [C99-based standards] (HUGE_VALL): Likewise.
63349         [C99-based standards] (INFINITY): Likewise.
63350         [C99-based standards] (NAN): Likewise.
63351         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63352         [C99-based standards] (FP_NAN): Likewise.
63353         [C99-based standards] (FP_NORMAL): Likewise.
63354         [C99-based standards] (FP_SUBNORMAL): Likewise.
63355         [C99-based standards] (FP_ZERO): Likewise.
63356         [C99-based standards] (FP_FAST_FMA): Use
63357         optional-macro-int-constant.  Specify type.  Require == 1.
63358         [C99-based standards] (FP_FAST_FMAF): Likewise.
63359         [C99-based standards] (FP_FAST_FMAL): Likewise.
63360         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63361         [C99-based standards] (FP_ILOGBNAN): Likewise.
63362         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63363         Specify type.
63364         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63365         [C99-based standards] (math_errhandling): Specify type.
63366         [ISO99 || ISO11] (signgam): Do not allow.
63367         [non-C99-based standards] (copysignf): Do not allow.
63368         [non-C99-based standards] (exp2f): Likewise.
63369         [non-C99-based standards] (log2f): Likewise.
63370         [non-C99-based standards] (modff): Allow.
63371         [non-C99-based standards] (erff): Do not allow.
63372         [non-C99-based standards] (erfcf): Likewise.
63373         [non-C99-based standards] (gammaf): Likewise.
63374         [non-C99-based standards] (hypotf): Likewise.
63375         [non-C99-based standards] (j0f): Likewise.
63376         [non-C99-based standards] (j1f): Likewise.
63377         [non-C99-based standards] (jnf): Likewise.
63378         [non-C99-based standards] (lgammaf): Likewise.
63379         [non-C99-based standards] (tgammaf): Likewise.
63380         [non-C99-based standards] (y0f): Likewise.
63381         [non-C99-based standards] (y1f): Likewise.
63382         [non-C99-based standards] (ynf): Likewise.
63383         [non-C99-based standards] (isnanf): Likewise.
63384         [non-C99-based standards] (acoshf): Likewise.
63385         [non-C99-based standards] (asinhf): Likewise.
63386         [non-C99-based standards] (atanhf): Likewise.
63387         [non-C99-based standards] (cbrtf): Likewise.
63388         [non-C99-based standards] (expm1f): Likewise.
63389         [non-C99-based standards] (ilogbf): Likewise.
63390         [non-C99-based standards] (log1pf): Likewise.
63391         [non-C99-based standards] (logbf): Likewise.
63392         [non-C99-based standards] (nextafterf): Likewise.
63393         [non-C99-based standards] (remainderf): Likewise.
63394         [non-C99-based standards] (rintf): Likewise.
63395         [non-C99-based standards] (scalbf): Likewise.
63396         [non-C99-based standards] (copysignl): Likewise.
63397         [non-C99-based standards] (exp2l): Likewise.
63398         [non-C99-based standards] (log2l): Likewise.
63399         [non-C99-based standards] (modfl): Allow.
63400         [non-C99-based standards] (erfl): Do not allow.
63401         [non-C99-based standards] (erfcl): Likewise.
63402         [non-C99-based standards] (gammal): Likewise.
63403         [non-C99-based standards] (hypotl): Likewise.
63404         [non-C99-based standards] (j0l): Likewise.
63405         [non-C99-based standards] (j1l): Likewise.
63406         [non-C99-based standards] (jnl): Likewise.
63407         [non-C99-based standards] (lgammal): Likewise.
63408         [non-C99-based standards] (tgammal): Likewise.
63409         [non-C99-based standards] (y0l): Likewise.
63410         [non-C99-based standards] (y1l): Likewise.
63411         [non-C99-based standards] (ynl): Likewise.
63412         [non-C99-based standards] (isnanl): Likewise.
63413         [non-C99-based standards] (acoshl): Likewise.
63414         [non-C99-based standards] (asinhl): Likewise.
63415         [non-C99-based standards] (atanhl): Likewise.
63416         [non-C99-based standards] (cbrtl): Likewise.
63417         [non-C99-based standards] (expm1l): Likewise.
63418         [non-C99-based standards] (ilogbl): Likewise.
63419         [non-C99-based standards] (log1pl): Likewise.
63420         [non-C99-based standards] (logbl): Likewise.
63421         [non-C99-based standards] (nextafterl): Likewise.
63422         [non-C99-based standards] (remainderl): Likewise.
63423         [non-C99-based standards] (rintl): Likewise.
63424         [non-C99-based standards] (scalbl): Likewise.
63425         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63426         [non-C99-based standards] (FP_*): Do not allow.
63427         [C99-based standards] (FP_*): Change to
63428         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63429         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63430         allow.
63431         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63432         (SIG_ERR): Likewise.
63433         [X/Open-based standards] (SIG_HOLD): Likewise.
63434         (SIG_IGN): Likewise.
63435         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63436         positive value.
63437         (SIGFPE): Likewise.
63438         (SIGILL): Likewise.
63439         (SIGINT): Likewise.
63440         (SIGSEGV): Likewise.
63441         (SIGTER): Likewise.
63442         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63443         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63444         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63445         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63446         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63447         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63448         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63449         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63450         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63451         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63452         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63453         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63454         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63455         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63456         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63457         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63458         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63459         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63460         [X/Open-based standards] (SIGTRAP): Likewise.
63461         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63462         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63463         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63464         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63465         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63466         allow.
63467
63468 2012-05-08  Ian Wienand  <ianw@vmware.com>
63469
63470         [BZ #14080]
63471         * time/tzset.c (__tzset_parse_tz): Update default rules for
63472         daylight time changes in the Energy Policy Act of 2005.
63473
63474 2012-05-09  Andreas Jaeger  <aj@suse.de>
63475
63476         [BZ #13983]
63477         * elf/ldconfig.c (parse_conf): Change string to make clear that
63478         ldconfig only issued a warning if ld.so.conf does not exist.
63479
63480 2012-05-08  David S. Miller  <davem@davemloft.net>
63481
63482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63483         movxtod instead of popping the value on the stack.
63484
63485         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63486
63487 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63488
63489         * config.h.in: Add HAVE_ARM_PCS_VFP.
63490
63491 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63492
63493         [BZ #13979]
63494         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63495         checking but the checks are disabled for any reason.
63496
63497 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63498
63499         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63500         and ELF64_R_TYPE with ELFW(R_TYPE).
63501
63502 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63503
63504         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63505         (ulimit): Likewise.
63506
63507         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63508         (settimeofday): Likewise.
63509
63510 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63511
63512         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63513         a struct th_u2 inside the union, and move tu_block/tu_code into
63514         a new th_u3 union of tu_block/tu_code inside of that.  Move
63515         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63516         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63517         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63518         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63519         (th_stuff): Change to th_u1.tu_stuff.
63520         (th_data): Define.
63521         (th_msg): Change to th_u1.th_u2.tu_data.
63522
63523 2012-05-07  David S. Miller  <davem@davemloft.net>
63524
63525         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63526
63527         [BZ #14074]
63528         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63529         (SETUP_PIC_REG): Use it.
63530         (SETUP_PIC_REG_LEAF): Use it.
63531
63532 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63533
63534         [BZ #13885]
63535         [BZ #13923]
63536         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63537         USE_AS_EXPM1L.
63538         (EXPL_FINITE): Likewise.
63539         (FLDLOG): Likewise.
63540         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63541         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63542         e_expl.S.
63543         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63544         USE_AS_EXPM1L.
63545         (EXPL_FINITE): Likewise.
63546         (FLDLOG): Likewise.
63547         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63548         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63549         e_expl.S.
63550         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63551         test of -max_value argument for long double.
63552         * sysdeps/i386/fpu/libm-test-ulps: Update.
63553         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63554
63555 2012-05-06  David S. Miller  <davem@davemloft.net>
63556
63557         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63558         quad soft-float symbols whose references which are compiler
63559         generated.
63560         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63561
63562 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63563
63564         [BZ #13884]
63565         [BZ #13914]
63566         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63567         USE_AS_EXP10L.
63568         (EXPL_FINITE): Likewise.
63569         (FLDLOG): Likewise.
63570         (c0): Likewise.
63571         (c1): Likewise.
63572         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63573         Adjust comments for base varying.
63574         (__expl_finite): Change alias to EXPL_FINITE.
63575         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63576         e_expl.S.
63577         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63578         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63579         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63580         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63581         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63582         USE_AS_EXP10L.
63583         (EXPL_FINITE): Likewise.
63584         (FLDLOG): Likewise.
63585         (c0): Likewise.
63586         (c1): Likewise.
63587         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63588         Adjust comments for base varying.
63589         (__expl_finite): Change alias to EXPL_FINITE.
63590         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63591         tests for bugs.
63592         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63593
63594         [BZ #14064]
63595         * math/libm-test.inc (check_float_internal): Correct ulp
63596         calculation for subnormal expected results.
63597
63598 2012-05-06  Andreas Jaeger  <aj@suse.de>
63599
63600         * Makeconfig (+math-flags): New, set to -frounding-math.
63601         (+cflags): Add +math-flags so that all of glibc gets compiled with
63602         it.
63603
63604         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63605
63606 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63607
63608         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63609         Disable one test.
63610
63611         [BZ #13787]
63612         [BZ #13922]
63613         [BZ #14036]
63614         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63615         (__ieee754_expl): Allow for and saturate large arguments.
63616         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63617         (u_threshold): Likewise.
63618         (__exp): Call __ieee754_exp before checking for overflow and
63619         underflow.
63620         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63621         (u_threshold): Likewise.
63622         (__expf): Call __ieee754_expf before checking for overflow and
63623         underflow.
63624         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63625         (u_threshold): Likewise.
63626         (__expl): Call __ieee754_expl before checking for overflow and
63627         underflow.
63628         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63629         (__ieee754_expl): Allow for and saturate large arguments.
63630         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63631         missing overflow exception on overflow.
63632         (expm1_test): Do not allow missing overflow exception on overflow.
63633
63634         * sysdeps/i386/fpu/e_expl.c: Move to ...
63635         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63636         rather than using inline asm.
63637         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63638         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63639         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63640
63641         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63642         (nice): Likewise.
63643         (poll): Likewise.
63644         (signal): Likewise.
63645         (time): Likewise.
63646         (times): Likewise.
63647
63648 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63649
63650         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63651         sysdeps/unix/common/syscalls.list.
63652         (fchmod): Likewise.
63653         (fchown): Likewise.
63654         (ftruncate): Likewise.
63655         (getrusage): Likewise.
63656         (gettimeofday): Likewise.
63657         (setpgid): Likewise.
63658         (setregid): Likewise.
63659         (setreuid): Likewise.
63660         (sigaction): Likewise.
63661         (truncate): Likewise.
63662         (vhangup): Likewise.
63663         * sysdeps/unix/common/syscalls.list: Remove file.
63664         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63665         * sysdeps/unix/sysv/linux/Implies: Likewise.
63666
63667 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63668
63669         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63670         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63671         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63672         Moved to ...
63673         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63674         Here.
63675         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63676         to ...
63677         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63678         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63679         to ...
63680         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63681         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63682         to ...
63683         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63684         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63685         to ...
63686         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63687         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63688         to ...
63689         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63690         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63691         to ...
63692         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63693         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63694         to ...
63695         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63696         Here.
63697         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63698         to ...
63699         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63700         Here.
63701         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63702         to ...
63703         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63704         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63705         Moved to ...
63706         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63707         Here.
63708         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63709         to ...
63710         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63711
63712 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63713
63714         * sysdeps/unix/common/bits/dirent.h: Remove file.
63715         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63716
63717         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63718         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63719         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63720         * sysdeps/unix/bsd/isatty.c: Likewise.
63721         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63722         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63723         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63724
63725 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63726
63727         [BZ #13563]
63728         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63729         long double comparison inaccuracies.
63730         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63732
63733 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63734
63735         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63736         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63737
63738 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63739
63740         [BZ #14049]
63741         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63742         nonzero digits before rounding a hex value.
63743         * stdlib/tst-strtod.c (tests): Add another test.
63744
63745 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63746
63747         * sysdeps/s390/fpu/libm-test-ulps: Update.
63748
63749 2012-05-03  Andreas Jaeger  <aj@suse.de>
63750
63751         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63752         does not get optimized out.
63753         (malloc_opt_barrier): New.
63754
63755 2012-05-03  Andreas Jaeger  <aj@suse.de>
63756             Roland McGrath  <roland@hack.frob.com>
63757
63758         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63759         intermediate file deletion.
63760         (generated): Add .symlist files.
63761
63762 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63763
63764         [BZ #13775]
63765         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
63766         Redirect under this condition.
63767         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63768         [__USE_GNU] (__dprintf_chk): Not under this condition.
63769         [__USE_GNU] (__vdprintf_chk): Likewise.
63770         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
63771         under this condition.
63772         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63773         [__USE_XOPEN2K8] (dprintf): Define under this condition.
63774         [__USE_XOPEN2K8] (vdprintf): Likewise.
63775         [__USE_GNU] (__dprintf_chk): Not under this condition.
63776         [__USE_GNU] (__vdprintf_chk): Likewise.
63777         [__USE_GNU] (dprintf): Likewise.
63778         [__USE_GNU] (vdprintf): Likewise.
63779
63780 2012-05-03  Roland McGrath  <roland@hack.frob.com>
63781
63782         * elf/Makefile (common-generated): Set this instead of generated for
63783         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
63784         $(all-built-dso)-derived lists.
63785
63786 2012-05-03  Andreas Jaeger  <aj@suse.de>
63787
63788         * sysdeps/i386/fpu/libm-test-ulps: Update.
63789
63790         * FAQ: Removed.
63791         * FAQ.in: Likewise.
63792         * scripts/gen-FAQ.pl: Likewise.
63793         * manual/install.texi (Installation): Point to online location of
63794         FAQ.
63795         * Makefile (files-for-dist): Remove FAQ.
63796         (FAQ): Remove.
63797
63798 2012-05-02  Allan McRae  <allan@archlinux.org>
63799
63800         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
63801         (LDFLAGS-reldepmod5.so): Likewise.
63802         (LDFLAGS-reldep6mod1.so): Likewise.
63803         (LDFLAGS-reldep6mod4.so): Likewise.
63804         (LDFLAGS-reldep8mod3.so): Likewise.
63805         (LDFLAGS-unload4mod1.so): Likewise.
63806         (LDFLAGS-unload4mod2.so): Likewise.
63807         (LDFLAGS-tst-initorder): Likewise.
63808         (LDFLAGS-tst-initordera2.so): Likewise.
63809         (LDFLAGS-tst-initordera3.so): Likewise.
63810         (LDFLAGS-tst-initordera4.so): Likewise.
63811         (LDFLAGS-tst-initorderb2.so): Likewise.
63812         (LDFLAGS-noload): Likewise.
63813         (LDFLAGS-next): Likewise.
63814         (LDFLAGS-order2mod1.so): Likewise.
63815         (LDFLAGS-order2mod2.so): Likewise.
63816         (LDFLAGS-tst-initorder2): Likewise.
63817         (LDFLAGS-tst-initorder2a.so): Likewise.
63818         (LDFLAGS-tst-initorder2b.so): Likewise.
63819         (LDFLAGS-tst-initorder2c.so): Likewise.
63820         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
63821
63822 2012-05-02  David S. Miller  <davem@davemloft.net>
63823
63824         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63825
63826 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
63827
63828         [BZ #14055]
63829         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
63830
63831 2012-05-02  Andreas Jaeger  <aj@suse.de>
63832
63833         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
63834         since we manipulate rounding mode.
63835         (CPPFLAGS-test-idouble.c): Likewise.
63836         (CPPFLAGS-test-ifloat.c): Likewise.
63837         (CFLAGS-test-ldouble.c): Likewise.
63838         (CFLAGS-test-double.c): Likewise.
63839         (CFLAGS-test-float.c): Likewise.
63840         (CFLAGS-test-misc.c): Likewise.
63841         (CFLAGS-test-test-fenv.c): Likewise.
63842
63843 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63844
63845         [BZ #2550]
63846         [BZ #2570]
63847         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
63848         comparisons to determine direction to adjust input.
63849
63850 2012-05-01  Roland McGrath  <roland@hack.frob.com>
63851
63852         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
63853         output to the target.
63854
63855         * scripts/localplt.awk: New file.
63856         * elf/Makefile ($(objpfx)check-localplt): Target removed.
63857         (check-localplt-CFLAGS): Variable removed.
63858         ($(all-built-dso:=.jmprel)): New static pattern rule.
63859         (generated): Add those targets.
63860         (localplt-built-dso): New variable.
63861         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
63862
63863         * elf/check-localplt.c: File removed.
63864
63865         * scripts/check-execstack.awk: New file.
63866         * elf/Makefile ($(objpfx)check-execstack): Target removed.
63867         (check-execstack-CFLAGS): Variable removed.
63868         ($(objpfx)check-execstack.h): Target removed.
63869         ($(objpfx)execstack-default): New target.
63870         (generated): Add that instead of check-execstack.h.
63871         ($(all-built-dso:=.phdr)): New static pattern rule.
63872         (generated): Add those targets.
63873         * elf/check-execstack.c: File removed.
63874
63875         * scripts/check-textrel.awk: New file.
63876         * elf/Makefile ($(objpfx)check-textrel): Target removed.
63877         (check-textrel-CFLAGS): Variable removed.
63878         (all-built-dso): Use := to define.o
63879         ($(all-built-dso:=.dyn)): New static pattern rule.
63880         (generated): Add those targets.
63881         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
63882         * config.make.in (READELF): New substituted variable.
63883         * elf/check-textrel.c: File removed.
63884
63885 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
63886
63887         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63888         allow.
63889         * conform/data/ctype.h-data [C99-based standards] (isblank):
63890         Expect function.
63891         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
63892         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
63893         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63894         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
63895         Specify type.  Require positive value.
63896         (EILSEQ): Likewise.
63897         (ERANGE): Likewise.
63898         [ISO || POSIX] (EILSEQ): Do not expect.
63899         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
63900         Specify type.  Require positive value.
63901         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
63902         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
63903         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
63904         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
63905         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
63906         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
63907         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
63908         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
63909         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
63910         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
63911         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
63912         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
63913         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
63914         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
63915         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
63916         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
63917         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
63918         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
63919         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
63920         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
63921         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
63922         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
63923         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
63924         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
63925         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
63926         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
63927         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
63928         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
63929         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
63930         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
63931         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
63932         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
63933         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
63934         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
63935         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
63936         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
63937         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
63938         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
63939         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
63940         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
63941         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
63942         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
63943         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
63944         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
63945         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
63946         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
63947         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
63948         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
63949         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
63950         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
63951         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
63952         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
63953         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
63954         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
63955         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
63956         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
63957         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
63958         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
63959         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
63960         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
63961         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
63962         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
63963         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
63964         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
63965         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
63966         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
63967         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
63968         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
63969         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
63970         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
63971         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
63972         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
63973         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
63974         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
63975         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
63976         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
63977         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
63978         Require >= 2.
63979         (FLT_ROUNDS): Expect as macro, not constant.
63980         (FLT_MANT_DIG): Use macro-int-constant.
63981         (DBL_MANT_DIG): Likewise.
63982         (LDBL_MANT_DIG): Likewise.
63983         (FLT_DIG): Likewise.
63984         (DBL_DIG): Likewise.
63985         (LDBL_DIG): Likewise.
63986         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
63987         (DBL_MIN_EXP): Likewise.
63988         (LDBL_MIN_EXP): Likewise.
63989         (FLT_MAX_EXP): Use macro-int-constant.
63990         (DBL_MAX_EXP): Likewise.
63991         (LDBL_MAX_EXP): Likewise.
63992         (FLT_MAX_10_EXP): Likewise.
63993         (DBL_MAX_10_EXP): Likewise.
63994         (LDBL_MAX_10_EXP): Likewise.
63995         (FLT_MAX): Use macro-constant.
63996         (DBL_MAX): Likewise.
63997         (LDBL_MAX): Likewise.
63998         (FLT_EPSILON): Use macro-constant.  Give upper bound.
63999         (DBL_EPSILON): Likewise.
64000         (LDBL_EPSILON): Likewise.
64001         (FLT_MIN): Likewise.
64002         (DBL_MIN): Likewise.
64003         (LDBL_MIN): Likewise.
64004         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64005         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64006         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64007         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64008         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64009         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64010         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64011         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64012         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64013         [ISO11] (FLT_TRUE_MIN): Likewise.
64014         [ISO11] (LDBL_TRUE_MIN): Likewise.
64015         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64016         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64017         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64018         (SCHAR_MAX): Likewise.
64019         (UCHAR_MAX): Likewise.
64020         (CHAR_MIN): Likewise.
64021         (CHAR_MAX): Likewise.
64022         (MB_LEN_MAX): Use macro-int-constant.
64023         (SHRT_MIN): Use macro-int-constant.  Specify type.
64024         (SHRT_MAX): Likewise.
64025         (USHRT_MAX): Likewise.
64026         (INT_MAX): Likewise.
64027         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64028         bound negative.
64029         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64030         bound with "U".
64031         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64032         bound with "L".
64033         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64034         bound negative.  Suffix upper bound with "L".
64035         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64036         bound with "UL".
64037         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64038         Specify type.
64039         [C99-based standards] (LLONG_MAX): Likewise.
64040         [C99-based standards] (ULLONG_MAX): Likewise.
64041         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64042         == 0.
64043         [ISO11] (max_align_t): Require type.
64044         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64045
64046         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64047         from $CFLAGS, without defining away __attribute__ calls.
64048         (checknamespace): Use $CFLAGS_namespace.
64049
64050         * conform/conformtest.pl (@keywords): Only include C99 keywords
64051         for standards based on C99 or C11.
64052
64053         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64054         Disable tests.
64055         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64056         UNIX98]: Likewise.
64057
64058         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64059         usability of symbols in #if.
64060
64061         * conform/conformtest.pl: If macro or constant types start
64062         "promoted:", expect the symbol to be of the following type
64063         promoted by the integer promotions.
64064
64065         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64066         in one place.  Also handle "macro-constant".
64067
64068         * conform/conformtest.pl: Only accept expected macro values with
64069         "==".  Parse all "macro" lines in one place.
64070         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64071
64072         * conform/conformtest.pl: Handle braced types on "constant" lines
64073         instead of handling "typed-constant".
64074         * conform/data/signal.h-data: Use "constant" instead of
64075         "typed-constant".
64076
64077         * conform/conformtest.pl: Handle "optional-" at start of lines in
64078         one place rather than duplicating several cases.  Handle each
64079         format of "macro" line with initial "optional-".
64080
64081         * conform/conformtest.pl: Only accept expected constant or
64082         optional-constant values with "==".  Parse all "constant" lines in
64083         one place.  Parse all "optional-constant" lines in one place.
64084         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64085         * conform/data/fmtmsg.h-data: Likewise.
64086         * conform/data/netinet/in.h-data: Likewise.
64087         * conform/data/tar.h-data: Likewise.
64088         * conform/data/limits.h-data: Use "==" form on "constant" and
64089         "optional-constant" lines.
64090
64091         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64092         Use -std=c99 for XOPEN2K.
64093         (@knownproblems): Remove.
64094         (newtoken): Don't check %isknown.
64095
64096         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64097         Do not expect macro.
64098         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64099         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64100         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64101         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64102         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64103         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64104         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64105         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64106         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64107         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64108         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64109         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64110         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64111         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64112         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64113         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64114         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64115         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64116         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64117         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64118         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64119         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64120         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64121         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64122         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64123         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64124         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64125         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64126         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64127         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64128         [XPG3] (acosh): Likewise.
64129         [XPG3] (asinh): Likewise.
64130         [XPG3] (atanh): Likewise.
64131         [XPG3] (cbrt): Likewise.
64132         [XPG3] (expm1): Likewise.
64133         [XPG3] (ilogb): Likewise.
64134         [XPG3] (log1p): Likewise.
64135         [XPG3] (logb): Likewise.
64136         [XPG3] (nextafter): Likewise.
64137         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64138         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64139         [XPG3] (remainder): Likewise.
64140         [XPG3] (rint): Likewise.
64141         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64142         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64143         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64144         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64145         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64146         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64147         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64148         [UNIX98 || XOPEN2K] (scalb): Expect.
64149         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64150         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64151         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64152         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64153         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64154         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64155         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64156         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64157         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64158         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64159         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64160         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64161         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64162         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64163         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64164         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64165         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64166         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64167         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64168         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64169         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64170         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64171         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64172         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64173         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64174         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64175         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64176         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64177         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64178         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64179         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64180         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64181         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64182         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64183         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64184         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64185         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64186         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64187         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64188         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64189         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64190         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64191         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64192         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64193         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64194         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64195         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64196         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64197         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64198         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64199         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64200         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64201         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64202         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64203         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64204         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64205         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64206         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64207         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64208         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64209         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64210         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64211         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64212         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64213         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64214         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64215         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64216         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64217         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64218         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64219         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64220         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64221         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64222         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64223         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64224         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64225         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64226         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64227         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64228         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64229         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64230         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64231         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64232         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64233         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64234         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64235         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64236         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64237         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64238         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64239         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64240         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64241         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64242         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64243         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64244         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64245         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64246         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64247         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64248         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64249         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64250         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64251         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64252         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64253         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64254         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64255         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64256         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64257         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64258         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64259         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64260         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64261         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64262         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64263         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64264         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64265         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64266         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64267         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64268         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64269         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64270         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64271         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64272         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64273         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64274         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64275         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64276         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64277         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64278         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64279         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64280         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64281         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64282         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64283         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64284         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64285         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64286
64287         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64288         _XOPEN_SOURCE_EXTENDED for XPG4.
64289
64290         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64291
64292         * Makeconfig (localtime): Remove variable.
64293         (inst_localtime-file): Likewise.
64294
64295 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64296
64297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64298         Update.
64299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64300         Update.
64301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64302         Update.
64303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64304         Update.
64305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64306         Update.
64307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64308         Update.
64309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64310         Update.
64311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64312         Update.
64313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64314         Update.
64315
64316 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64317
64318         [BZ #2550]
64319         [BZ #2570]
64320         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64321         comparisons to determine direction to adjust input.
64322         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64323         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64324         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64325         Likewise.
64326         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64327         Likewise.
64328         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64329         Likewise.
64330         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64331         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64332         Likewise.
64333         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64334         Likewise.
64335         * math/libm-test.inc (nexttoward_test): Add more tests.
64336
64337 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64338
64339         [BZ #14040]
64340         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64341         in version GLIBC_2.1, not GLIBC_2.0.
64342         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64343         Likewise.
64344
64345 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64346
64347         [BZ #13942]
64348         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64349         (1 - x) * (1 + x).
64350         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64351         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64352         * math/libm-test.inc (acos_test): Add more tests.
64353         (asin_test): Likewise.
64354         * sysdeps/i386/fpu/libm-test-ulps: Update.
64355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64356
64357         [BZ #14034]
64358         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64359         of square root.
64360         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64361         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64362         * math/libm-test.inc (acos_test_tonearest): New function.
64363         (acos_test_towardzero): Likewise.
64364         (acos_test_downward): Likewise.
64365         (acos_test_upward): Likewise.
64366         (asin_test_tonearest): Likewise.
64367         (asin_test_towardzero): Likewise.
64368         (asin_test_downward): Likewise.
64369         (asin_test_upward): Likewise.
64370         (main): Call the new functions.
64371         * sysdeps/i386/fpu/libm-test-ulps: Update.
64372         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64373
64374         [BZ #13884]
64375         [BZ #13924]
64376         * math/e_exp10.c: Include <float.h>.
64377         (__ieee754_exp10): Handle underflow here rather than multiplying
64378         large negative argument by M_LN10.
64379         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64380         of __ieee754_expf.
64381         * math/e_exp10l.c: Include <float.h>.
64382         (__ieee754_exp10l): Handle underflow here rather than multiplying
64383         large negative argument by M_LN10l.
64384         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64385         spurious overflow exception on underflow.
64386
64387 2012-04-29  Marek Polacek  <polacek@redhat.com>
64388
64389         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64390         (__fortify_function): New macro.
64391         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64392         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64393         __extern_always_inline.
64394         * libio/bits/stdio2.h: Likewise.
64395         * libio/bits/stdio.h: Likewise.
64396         * string/string.h: Likewise.
64397         * string/bits/string3.h: Likewise.
64398         * include/stdio.h: Likewise.
64399         * stdlib/bits/stdlib.h: Likewise.
64400         * stdlib/stdlib.h: Likewise.
64401         * rt/bits/mqueue2.h: Likewise.
64402         * rt/mqueue.h: Likewise.
64403         * posix/bits/unistd.h: Likewise.
64404         * posix/unistd.h: Likewise.
64405         * io/bits/poll2.h: Likewise.
64406         * io/bits/fcntl2.h: Likewise.
64407         * io/fcntl.h: Likewise.
64408         * io/sys/poll.h: Likewise.
64409         * misc/bits/syslog.h: Likewise.
64410         * misc/bits/syslog-ldbl.h: Likewise.
64411         * misc/sys/syslog.h: Likewise.
64412         * socket/bits/socket2.h: Likewise.
64413         * socket/sys/socket.h: Likewise.
64414         * debug/tst-chk1.c: Likewise.
64415         * wcsmbs/bits/wchar2.h: Likewise.
64416         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64417         * wcsmbs/wchar.h: Likewise.
64418
64419 2012-04-29  Andreas Jaeger  <aj@suse.de>
64420
64421         * Makerules (tests): Remove enable-check-abi protection.
64422         (check-abi-warn): Remove.
64423         (check-abi-%): Remove check-abi-warn usage.
64424
64425         * configure.in: Remove check-abi configure option.
64426         * configure: Regenerated.
64427         * config.make.in (enable-check-abi): Remove.
64428
64429 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64430
64431         [BZ #14033]
64432         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64433         double functions to double *_finite functions.
64434
64435         [BZ #13941]
64436         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64437         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64438         LDBL_MIN_EXP.
64439         * stdio-common/Makefile (tests): Add tst-sprintf3.
64440         * stdio-common/tst-sprintf3.c: New file.
64441
64442         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64443         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64444
64445 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64446
64447         * conform/conformtest.pl: Remove duplicate typed-constant
64448         handling.
64449
64450 2012-04-28  David S. Miller  <davem@davemloft.net>
64451
64452         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64453         (check-abi-%): Remove AWK script prerequisite and explicit
64454         abilist directory.
64455         (check-abi): Rewrite to just diff the symlist with the abilist.
64456         (config-tls, config-abi-config): Delete, no longer used.
64457         (update-abi-%): Remove AWK script and explicit abilist directory.
64458         (update-abi): Rewrite to simply compare and conditionally copy the
64459         symlist and the sysdep abilist file.  Remove update-abi-config
64460         checks.
64461         * abilist/ld.abilist: Remove.
64462         * abilist/libBrokenLocale.abilist: Remove.
64463         * abilist/libanl.abilist: Remove.
64464         * abilist/libcrypt.abilist: Remove.
64465         * abilist/libdl.abilist: Remove.
64466         * abilist/librt.abilist: Remove.
64467         * abilist/libthread_db.abilist: Remove.
64468         * abilist/libutil.abilist: Remove.
64469         * scripts/extract-abilist.awk: Remove.
64470         * scripts/merge-abilist.awk: Remove.
64471         * sysdeps/generic/libcidn.abilist: New file.
64472         * sysdeps/generic/libnss_compat.abilist: New file.
64473         * sysdeps/generic/libnss_db.abilist: New file.
64474         * sysdeps/generic/libnss_dns.abilist: New file.
64475         * sysdeps/generic/libnss_files.abilist: New file.
64476         * sysdeps/generic/libnss_hesiod.abilist: New file.
64477         * sysdeps/generic/libnss_nis.abilist: New file.
64478         * sysdeps/generic/libnss_nisplus.abilist: New file.
64479         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64480         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64481         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64482         file.
64483         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64484         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64485         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64486         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64487         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64488         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64489         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64490         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64491         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64492         file.
64493         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64494         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64495         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64496         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64497         file.
64498         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64499         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64500         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64501         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64502         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64503         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64504         file.
64505         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64506         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64507         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64508         file.
64509         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64510         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64511         New file.
64512         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64513         New file.
64514         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64515         New file.
64516         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64517         New file.
64518         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64519         New file.
64520         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64521         New file.
64522         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64523         New file.
64524         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64525         New file.
64526         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64527         New file.
64528         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64529         New file.
64530         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64531         New file.
64532         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64533         New file.
64534         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64535         New file.
64536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64537         file.
64538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64539         New file.
64540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64541         New file.
64542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64543         file.
64544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64545         New file.
64546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64547         New file.
64548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64549         file.
64550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64551         New file.
64552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64553         New file.
64554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64555         New file.
64556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64557         New file.
64558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64559         New file.
64560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64561         New file.
64562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64563         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64564         file.
64565         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64566         New file.
64567         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64568         file.
64569         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64570         file.
64571         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64572         file.
64573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64574         file.
64575         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64576         file.
64577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64578         New file.
64579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64580         file.
64581         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64582         file.
64583         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64584         New file.
64585         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64586         file.
64587         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64588         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64589         file.
64590         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64591         New file.
64592         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64593         file.
64594         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64595         file.
64596         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64597         file.
64598         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64599         file.
64600         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64601         file.
64602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64603         New file.
64604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64605         file.
64606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64607         file.
64608         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64609         New file.
64610         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64611         file.
64612         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64613         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64614         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64615         file.
64616         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64617         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64618         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64619         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64620         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64621         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64622         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64623         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64624         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64625         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64626         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64627         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64628         file.
64629         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64630         New file.
64631         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64632         file.
64633         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64634         file.
64635         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64636         file.
64637         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64638         file.
64639         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64640         file.
64641         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64642         New file.
64643         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64644         New file.
64645         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64646         file.
64647         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64648         New file.
64649         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64650         file.
64651         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64653         file.
64654         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64655         New file.
64656         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64657         file.
64658         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64659         file.
64660         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64661         file.
64662         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64663         file.
64664         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64665         file.
64666         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64667         New file.
64668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64669         New file.
64670         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64671         file.
64672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64673         New file.
64674         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64675         file.
64676
64677 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64678
64679         * conform/conformtest.pl: Fix typo in handling typed-constant from
64680         allow-header.
64681
64682 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64683
64684         * README: Cut down references to pre-2.6 Linux kernels and
64685         Linuxthreads.  Update lists of configurations in libc and ports
64686         and sort alphabetically.  Say "or newer" with Linux kernel version
64687         requirements.
64688
64689         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64690
64691 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64692
64693         [BZ #887]
64694         * math/libm-test.inc (logb_test_downward): New test to expose
64695         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64696         rounding mode.
64697
64698 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64699
64700         [BZ #14027]
64701         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64702         to be done.
64703         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64704         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64705
64706 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64707
64708         * sysdeps/unix/i386/brk.S: Remove file.
64709         * sysdeps/unix/i386/dl-brk.S: Likewise.
64710         * sysdeps/unix/i386/pipe.S: Likewise.
64711         * sysdeps/unix/i386/sigreturn.S: Likewise.
64712         * sysdeps/unix/i386/syscall.S: Likewise.
64713         * sysdeps/unix/i386/vfork.S: Likewise.
64714         * sysdeps/unix/i386/wait.S: Likewise.
64715
64716         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64717         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64718
64719         * configure.in (arm*-none*): Do not allow without
64720         --enable-hacker-mode.
64721         (netbsd*): Remove case setting base_os.
64722         (386bsd*): Likewise.
64723         (freebsd*): Likewise.
64724         (bsdi*): Likewise.
64725         (osf*): Likewise.
64726         (sunos*): Likewise.
64727         (ultrix*): Likewise.
64728         (newsos*): Likewise.
64729         (dynix*): Likewise.
64730         (*bsd*): Likewise.
64731         (sysv*): Likewise.
64732         (isc*): Likewise.
64733         (esix*): Likewise.
64734         (sco*): Likewise.
64735         (minix*): Likewise.
64736         (irix4*): Likewise.
64737         (irix6*): Likewise.
64738         (solaris[2-9]*): Likewise.
64739         (none): Likewise.
64740         * configure: Regenerated.
64741
64742 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64743
64744         [BZ #11521]
64745         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64746         overflow or cancellation in calculating denominator.
64747         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64748         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64749         down expression to avoid unexpected rounding in newer GCCs.
64750         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64751
64752 2012-04-26  David S. Miller  <davem@davemloft.net>
64753
64754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64755         long-double compat symbols.
64756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
64764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
64765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
64766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
64767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
64768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
64769
64770 2012-04-25  David S. Miller  <davem@davemloft.net>
64771
64772         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
64773         HWCAP_* values only after the memory barriers have been defined.
64774         (atomic_full_barrier): Define.
64775         (atomic_read_barrier): Define.
64776         (atomic_write_barrier): Define.
64777
64778 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64779
64780         * shlib-versions: Add libgcc_s version information.
64781         * sysdeps/generic/libgcc_s.h: Remove.
64782         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
64783         libgcc_s.h.
64784         * sysdeps/gnu/unwind-resume.c: Likewise.
64785         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
64786
64787 2012-04-25  David S. Miller  <davem@davemloft.net>
64788
64789         * sysdeps/unix/sparc/brk.S: Delete.
64790         * sysdeps/unix/sparc/dl-brk.S: Delete.
64791         * sysdeps/unix/sparc/pipe.S: Delete.
64792         * sysdeps/unix/sparc/sysdep.S: Delete.
64793         * sysdeps/unix/sparc/sysdep.h: Delete.
64794         * sysdeps/unix/sparc/vfork.S: Delete.
64795         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
64796         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
64797         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
64798         (ret_ERRVAL, r0, r1, MOVE): Define.
64799         (JUMPTARGET): Remove.
64800         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
64801         sysdeps/unix/sparc/sysdep.h
64802         (ENTRY, END): Remove.
64803         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
64804
64805 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
64806
64807         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
64808         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
64809         -DIS_IN_build.
64810
64811         * timezone/README: Update upstream location and email address for
64812         tzcode and tzdata.
64813         * timezone/zdump.c: Update from tzcode 2012b.
64814         * timezone/zic.c: Likewise.
64815
64816         * configure.in (libc_cv_as_needed): Remove test.
64817         * configure: Regenerated.
64818         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
64819         conditional definition.
64820         [$(have-as-needed) != yes] (no-as-needed): Likewise.
64821         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
64822         * config.make.in (have-as-needed): Remove variable.
64823
64824 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64825             Paul Pluzhnikov  <ppluzhnikov@google.com>
64826
64827         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
64828         strings correctly.
64829
64830 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
64831
64832         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
64833         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
64834         * sysdeps/sh/strlen.S: Likewise.
64835
64836 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64837
64838         * sysdeps/unix/fork.S: Remove file.
64839         * sysdeps/unix/i386/fork.S: Likewise.
64840         * sysdeps/unix/sparc/fork.S: Likewise.
64841
64842         * sysdeps/unix/system.c: Remove file.
64843         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
64844
64845         * sysdeps/unix/getegid.S: Remove file.
64846         * sysdeps/unix/geteuid.S: Likewise.
64847
64848 2012-04-24  Roland McGrath  <roland@hack.frob.com>
64849
64850         * scripts/check-localplt.awk: New file.
64851         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
64852         of diff.
64853         * scripts/data/localplt-generic.data: Add a comment.
64854
64855         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
64856         NODE when __dir_mkfile failed.
64857         * sysdeps/mach/hurd/symlinkat.c: Likewise.
64858         Reported by Ludovic Courtès <ludo@gnu.org>.
64859
64860 2012-04-24  Andreas Jaeger  <aj@suse.de>
64861
64862         * Makerules (common-clean): Also remove gen-as-const-headers
64863         files.
64864
64865 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64866
64867         * Makerules (native-compile): Do not change working directory for
64868         build.  Use $(OUTPUT_OPTION) in command.
64869         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
64870
64871 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64872
64873         [BZ #13886]
64874         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
64875         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
64876         * math/libm-test.inc (floor_test): Add more tests.
64877         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
64878
64879 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64880
64881         * sysdeps/unix/getdents.c: Remove file.
64882         * sysdeps/unix/sysv/getdents.c: Likewise.
64883         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
64884
64885         * sysdeps/unix/syscalls.list (madvise): Add syscall from
64886         sysdeps/unix/mman/syscalls.list.
64887         (mmap): Likewise.
64888         (mprotect): Likewise.
64889         (msync): Likewise.
64890         (munmap): Likewise.
64891         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
64892         * sysdeps/unix/mman/syscalls.list: Remove.
64893         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
64894
64895         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
64896         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
64897         * configure: Regenerated.
64898         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
64899         $(libgcc_s_suffix).
64900         * config.make.in (libgcc_s_suffix): Remove variable.
64901
64902 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
64903
64904         * sysdeps/unix/sysv/gethostname.c: Move to ...
64905         * sysdeps/posix/gethostname.c: ... here.
64906
64907         * sysdeps/unix/execve.S: Remove file.
64908
64909         * sysdeps/unix/_exit.S: Remove file.
64910
64911 2012-04-23  Andreas Jaeger  <aj@suse.de>
64912
64913         [BZ #13739]
64914         * manual/Makefile: Remove make dist support, there's no
64915         need for a stand-alone documentation tar ball.
64916         (TEXI2DVI): Define always, it's not in Makeconfig.
64917         (dist): Removed.
64918         (tar-it): Removed.
64919         (edition): Removed.
64920         (glibc-doc-$(edition).tar): Removed
64921         (%.Z): Removed.
64922         (%.gz): Removed.
64923         (%.uu): Removed.
64924         (ETAGS): Remove, it's in Makeconfig.
64925         (move-if-change): Remove, it's in Makeconfig.
64926
64927 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         [BZ #13970]
64930         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
64931         (strtod, strtof, strtold, strtol, strtoul, strtoq)
64932         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
64933         (strtod_l, strtof_l, strtold_l): Remove __wur.
64934         It is not necessarily an error to ignore strtol's return value.
64935         One can reliably look at the stored endptr to decide whether
64936         the number had valid syntax.
64937
64938 2012-04-21  Andreas Jaeger  <aj@suse.de>
64939
64940         [BZ #13739]
64941         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
64942
64943 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
64944
64945         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
64946         * sysdeps/unix/sysv/Versions: Remove file.
64947
64948 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
64949
64950         [BZ #13927]
64951         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64952
64953 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
64954
64955         [BZ #7064]
64956         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
64957         version from __vm86.
64958
64959 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
64960
64961         * sysdeps/unix/common/lxstat.c: Remove file.
64962         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
64963
64964         * sysdeps/unix/sysv/Makefile: Remove file.
64965
64966         * sysdeps/unix/sysv/direct.h: Remove file.
64967
64968         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
64969         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
64970         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
64971         * sysdeps/unix/sysv/bits/signum.h: Likewise.
64972         * sysdeps/unix/sysv/bits/stat.h: Likewise.
64973         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
64974         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
64975
64976         * sysdeps/unix/sysv/setrlimit.c: Remove file.
64977
64978         * sysdeps/unix/xmknod.c: Remove file.
64979         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
64980
64981         * sysdeps/unix/sysv/settimeofday.c: Remove file.
64982
64983         * sysdeps/unix/sysv/i386/time.S: Remove file.
64984
64985         * sysdeps/unix/fxstat.c: Remove file.
64986         * sysdeps/unix/xstat.c: Likewise.
64987         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
64988
64989         * sysdeps/unix/sysv/sigaction.c: Remove file.
64990
64991         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
64992         (sysdep_headers): Remove variable.
64993         [termio.h not in sysdep_headers] (generated): Likewise.
64994         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
64995         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
64996         * sysdeps/unix/sysv/tcdrain.c: Likewise.
64997         * sysdeps/unix/sysv/tcflow.c: Likewise.
64998         * sysdeps/unix/sysv/tcflush.c: Likewise.
64999         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65000         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65001         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65002         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65003         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65004
65005         * sysdeps/unix/siglist.c: Remove file.
65006
65007         * sysdeps/unix/getppid.S: Remove file.
65008
65009         * sysdeps/unix/mkdir.c: Remove file.
65010         * sysdeps/unix/rmdir.c: Likewise.
65011
65012 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65013
65014         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65015         ERR_MAX value.
65016         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65017         errlist-compat value.
65018
65019 2012-04-18  David S. Miller  <davem@davemloft.net>
65020
65021         * sysdeps/generic/memcopy.h (reg_char): Delete.
65022         * debug/strcat_chk.c: Use char, not reg_char.
65023         * debug/strcpy_chk.c: Likewise.
65024         * debug/strncat_chk.c: Likewise.
65025         * debug/strncpy_chk.c: Likewise.
65026         * string/memchr.c: Likewise.
65027         * string/memrchr.c: Likewise.
65028         * string/rawmemchr.c: Likewise.
65029         * string/strcat.c: Likewise.
65030         * string/strchr.c: Likewise.
65031         * string/strchrnul.c: Likewise.
65032         * string/strcmp.c: Likewise.
65033         * string/strcpy.c: Likewise.
65034         * string/strncat.c: Likewise.
65035         * string/strncmp.c: Likewise.
65036         * string/strncpy.c: Likewise.
65037
65038 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65039
65040         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65041         __builtin_memcopy is called when src and dest ranges are known to not
65042         overlap.
65043
65044 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65045
65046         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65047         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65048         fwd_align_merge macro call.
65049         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65050         bwd_align_merge macro call.
65051         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65052
65053 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65054
65055         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65056         bwd_align_merge macros.
65057         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65058         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65059         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65060
65061 2012-04-18  David S. Miller  <davem@davemloft.net>
65062
65063         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65064
65065 2012-04-18  Andreas Jaeger  <aj@suse.de>
65066
65067         [BZ# 6794]
65068         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65069         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65070         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65071
65072         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65073         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65074         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65075
65076         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65077         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65078         Adjust for changed ldbl-128 files.
65079
65080         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65081         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65082         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65083
65084 2012-04-17  David S. Miller  <davem@davemloft.net>
65085
65086         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65087
65088 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65089
65090         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65091         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65092         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65093         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65094         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65095         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65096
65097 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65098
65099         [BZ #6794]
65100         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65101         * math/libm-test.inc: Add ilogb errno and exception tests.
65102         * math/w_ilogb.c: New file: ilogb wrapper.
65103         * math/w_ilogbf.c: New file: ilogbf wrapper.
65104         * math/w_ilogbl.c: New file: ilogbl wrapper.
65105         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65106         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65107         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65108         exception being thrown with 0.0 as argument.
65109         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65110         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65111         exception being thrown with 0.0 as argument.
65112         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65113         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65114         exception being thrown with 0.0 as argument.
65115         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65116         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65117         exception being thrown with 0.0 as argument.
65118         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65119         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65120         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65121         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65122         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65123         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65124         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65125         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65126         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65127
65128 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65129
65130         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65131         with altivec.
65132
65133 2012-04-16  Marek Polacek  <polacek@redhat.com>
65134
65135         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65136
65137 2012-04-16  Marek Polacek  <polacek@redhat.com>
65138
65139         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65140         operands of fdivp instruction.
65141
65142 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65143
65144         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65145         * elf/tst-auditmod3b.c: Likewise.
65146         * elf/tst-auditmod4b.c: Likewise.
65147         * elf/tst-auditmod5b.c: Likewise.
65148         * elf/tst-auditmod6b.c: Likewise.
65149         * elf/tst-auditmod6c.c: Likewise.
65150         * elf/tst-auditmod7b.c: Likewise.
65151         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65152         * sysdeps/x86_64/preconfigure.in: Likewise.
65153         * sysdeps/x86_64/preconfigure: Regenerated.
65154
65155 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65156
65157         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65158         __ILP32__.
65159
65160 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65161
65162         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65163         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65164
65165 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65166
65167         [BZ #13973]
65168         * locale/iso-639.def: Fix gl language name. Spotted by
65169         Yaron Shahrabani.
65170
65171 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65172
65173         [BZ #2074]
65174         * libio/libio.h (__io_write_fn): Update comment.
65175
65176 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65177
65178         [BZ #2074]
65179         * stdio.texi (Hook Functions): The user provided writer function
65180         is not allowed to return -1.
65181
65182 2012-04-11  David S. Miller  <davem@davemloft.net>
65183
65184         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65185
65186 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65187
65188         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65189         Add a leading slash to rtkaio.
65190
65191 2012-04-11  Jim Meyering  <meyering@redhat.com>
65192
65193         [BZ #11959]
65194         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65195         It is not necessarily an error to ignore fwrite's return
65196         value.  One can reliably use ferror to test for errors after
65197         the fact.
65198
65199 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65200
65201         * bits/types.h (__snseconds_t): New type.
65202         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65203
65204         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65205         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65206         (__SNSECONDS_T_TYPE): Likewise.
65207         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65208         (__SNSECONDS_T_TYPE): Likewise.
65209         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65210         (__SNSECONDS_T_TYPE): Likewise.
65211
65212 2012-04-10  Andreas Jaeger  <aj@suse.de>
65213
65214         [BZ #2636]
65215         * manual/time.texi (Processor Time): Return type of times is
65216         elapsed real time since an arbitrary point in the past.
65217         (CPU Time): Move CLK_TCK from here...
65218         (Processor Time): ...to here.  Correct description.
65219         * manual/conf.texi (Constants for Sysconf): Correct description of
65220         _SC_CLK_TCK.
65221
65222 2012-04-10  David S. Miller  <davem@davemloft.net>
65223
65224         [BZ #13967]
65225         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65226         where the is a gap between DT_REL(A) and DT_JMPREL.
65227
65228 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65229
65230         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65231         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65232         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65233
65234 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65235
65236         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65237         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65238         (dl_main): Handle --inhibit-cache.
65239         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65240         _dl_inhibit_cache.
65241         * elf/dl-load.c (_dl_map_object): Use it.
65242         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65243
65244 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65245
65246         [BZ #13872]
65247         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65248         (__ieee754_powl): Saturate large exponents rather than testing for
65249         overflow of y*log2(x).
65250         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65251         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65252         exceptions.
65253
65254         [BZ #11521]
65255         * math/s_ctan.c: Include <float.h>.
65256         (__ctan): Avoid internal overflow or cancellation in calculating
65257         denominator.
65258         * math/s_ctanf.c: Likewise.
65259         * math/s_ctanl.c: Likewise.
65260         * math/s_ctanh.c: Likewise.
65261         * math/s_ctanhf.c: Likewise.
65262         * math/s_ctanhl.c: Likewise.
65263         * math/libm-test.inc (ctan_test): Add more tests.
65264         (ctanh_test): Likewise.
65265         * sysdeps/i386/fpu/libm-test-ulps: Update.
65266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65267
65268 2012-04-09  Andreas Jaeger  <aj@suse.de>
65269
65270         [BZ #6894]
65271         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65272         is an optional BSD extension.
65273
65274         [BZ #10254]
65275         * manual/stdio.texi (Opening Streams): Document additional fopen
65276         parameters.
65277
65278 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65279
65280         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65281         %eax without telling the compiler.
65282
65283 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65284
65285         [BZ # 13963]
65286         * manual/install.texi: Use sourceware.org.
65287
65288 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65289
65290         [BZ #13873]
65291         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65292         (__ieee754_pow): Generate overflow and underflow using huge*huge
65293         and tiny*tiny rather than just returning constant infinity or zero
65294         for large exponents.
65295         * math/libm-test.inc (pow_test): Require overflow exceptions for
65296         applicable cases of large exponents.
65297
65298         [BZ #706]
65299         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65300         (__ieee754_pow): Use iterative multiplication algorithm only for
65301         integer exponents with absolute value below 1024.  Check for odd
65302         integer exponents when using algorithm for real exponents.
65303         * math/libm-test.inc (pow_test): Add more tests.
65304         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65305
65306 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65307
65308         [BZ #13705]
65309         * math/libm-test.inc (exp_test): Do not allow overflow exception
65310         on underflow test.
65311
65312 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65313
65314         [BZ #13705]
65315         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65316         instead of __kernel_standard_f.
65317
65318 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65319
65320         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65321         * sysdeps/x86_64/memset_chk.S: Likewise.
65322
65323 2012-04-08  Andreas Jaeger  <aj@suse.de>
65324
65325         [BZ #10153]
65326         * manual/startup.texi (Environment Access): Describe return value
65327         for putenv and setenv.
65328
65329         [BZ #6895]
65330         * manual/filesys.texi (Directory Entries): Add description for
65331         DT_LNK.
65332
65333         [BZ #6890]
65334         * manual/filesys.texi (Directory Entries): Clarify that it's file
65335         system not operating system in the description of DT_UNKNOWN.
65336
65337         [BZ #6578]
65338         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65339
65340 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65341
65342         [BZ #6649]
65343         * manual/llio.texi (Opening and Closing Files): Add cross
65344         reference to explain mode argument.
65345
65346 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65347
65348         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65349         * sysdeps/x86_64/memset_chk.S: Likewise.
65350
65351 2012-04-07  David S. Miller  <davem@davemloft.net>
65352
65353         * elf/elf.h (R_SPARC_WDISP10): Define.
65354         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65355         R_SPARC_SIZE32.
65356         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65357         R_SPARC_SIZE64 and R_SPARC_H34.
65358
65359 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65360
65361         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65362         conditions and remove no longer applicable assertion.
65363
65364 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65365
65366         * bits/byteswap.h: Include <features.h>.
65367         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65368         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65369
65370 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65371
65372         * bits/byteswap.h (__bswap_16): Removed.
65373         Include <bits/byteswap-16.h> to get __bswap_16.
65374         * sysdeps/i386/bits/byteswap.h: Likewise.
65375         * sysdeps/s390/bits/byteswap.h: Likewise.
65376         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65377         * bits/byteswap-16.h: New file.
65378         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65379         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65380         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65381         * string/Makefile (headers): Add bits/byteswap-16.h.
65382
65383 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65384
65385         [BZ #13895]
65386         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65387         extra indirection.
65388         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65389         * nss/tst-nss-static.c: New.
65390
65391 2012-04-06  Robert Millan  <rmh@gnu.org>
65392
65393         [BZ #6486]
65394         * manual/llio.texi (File Position Primitive): lseek
65395         refers to WHENCE when it really means OFFSET.
65396
65397 2012-04-06  Andreas Jaeger  <aj@suse.de>
65398
65399         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65400         strncmp declarations.
65401
65402         * abilist/libc.abilist: Add __poll and __ppoll.
65403
65404 2012-04-05  David S. Miller  <davem@davemloft.net>
65405
65406         * scripts/check-local-headers.sh: Accept a host triplet in the
65407         path matched by the exclude regexp.
65408
65409         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65410         definition.
65411         * sysdeps/powerpc/powerpc32/dl-machine.h
65412         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65413         * sysdeps/s390/s390-32/dl-machine.h
65414         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65415         * sysdeps/sparc/sparc32/dl-machine.h
65416         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65417         * sysdeps/sparc/sparc64/dl-machine.h
65418         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65419
65420         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65421         lazy binding.
65422         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65423         undefined symbol errors.
65424
65425         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65426         DT_NEEDED entries.
65427
65428 2012-04-05  Michael Matz  <matz@suse.de>
65429
65430         [BZ #13592]
65431         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65432
65433 2012-04-05  Andreas Jaeger  <aj@suse.de>
65434
65435         [BZ #13908]
65436         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65437         comment.
65438
65439 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65440
65441         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65442         which ROUND is no valid rounding mode.
65443
65444 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65445
65446         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65447         read again.
65448         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65449
65450 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65451
65452         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65453         an exception using FPU order intentionally.
65454
65455 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65456
65457         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65458         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65459         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65460         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65461
65462 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65463
65464         [BZ #12340]
65465         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65466         EINVAL when BUFLEN is too smal.
65467
65468 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65469
65470         [BZ #13553]
65471         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65472         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65473
65474 2012-04-03  Andreas Jaeger  <aj@suse.de>
65475
65476         [BZ #13938]
65477         * manual/setjmp.texi (System V contexts): Fix sentence.
65478
65479         [BZ #13926]
65480         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65481         New macro for this case.
65482         [!__GNUC__] (__bswap_64): New inline function for this case.
65483         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65484         * bits/byteswap.h: Likewise.
65485         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65486         ull, guard with __GLIBC_HAVE_LONG_LONG.
65487
65488         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65489         __GLIBC_HAVE_LONG_LONG.
65490
65491         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65492         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65493
65494 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65495
65496         [BZ #13691]
65497         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65498         inptr and inend, rather than using last_ch.
65499
65500 2012-04-02  David S. Miller  <davem@davemloft.net>
65501
65502         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65503         * stdio-common/printf-parse.h (read_int): Change return type to
65504         'int', return -1 on INT_MAX overflow.
65505         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65506         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65507         overflows INT_MAX.  Check for overflow of in-format-string precision
65508         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65509         SIZE_MAX not INT_MAX for integer overflow test.
65510         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65511         skip the construct in the format string but do not record anything.
65512         * stdio-common/bug22.c: Adjust to test both width/prevision
65513         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65514         explicitly for proper errno values.
65515
65516 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65517
65518         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65519         CHAR_MAX.
65520         * string/test-strcmp.c [! WIDE]: Likewise.
65521         * time/tst-mktime2.c: Likewise for INT_MAX.
65522         * string/test-string.h: #include <sys/param.h> for MIN.
65523
65524         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65525         * sysdeps/i386/init-first.c (init): Likewise.
65526         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65527         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65528         * sysdeps/sh/init-first.c (init): Likewise.
65529
65530 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65531
65532         * po/ru.po: Update from translation team.
65533         * po/vi.po: Likewise.
65534
65535 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65536
65537         * resolv/nss_dns/dns-host.c: Merge copyright years.
65538
65539 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65540
65541         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65542         Optimize memcpy with prefetch if
65543         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65544         src, dst pointers have unequal 16 byte alignments.
65545
65546 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65547
65548         [BZ #13928]
65549         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65550         from a CNAME entry and return the minimum ttl for the query.
65551         (gaih_getanswer_slice): Likewise.
65552
65553 2012-03-30  Jeff Law  <law@redhat.com>
65554
65555         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65556         due to long keys.
65557         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65558         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65559
65560         * resolv/nss_dns/dns-host.c: Update copyright year.
65561
65562 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65563
65564         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65565         requests to save a system call.  Fix check that all bytes are sent.
65566
65567         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65568         comments for sendmmsg.
65569
65570 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65571
65572         [BZ #13691]
65573         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65574         with only 1 character between 0x0041 and 0x01b0.
65575         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65576         * wcsmbs/tst-mbsnrtowcs.c: New file.
65577
65578 2012-03-29  David S. Miller  <davem@davemloft.net>
65579
65580         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65581         small copies by hand.
65582
65583 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65584
65585         [BZ #13761]
65586         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65587         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65588         group memberships.
65589
65590 2012-03-28  David S. Miller  <davem@davemloft.net>
65591
65592         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65593         that branches into memcpy.
65594         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65595         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65596         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65597         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65598         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65599         bits.
65600         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65601         implementation too.
65602         * sysdeps/sparc/mempcpy.S: New file.
65603
65604         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65605         the IFUNC routine in the libc case.
65606         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65607
65608         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65609         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65610         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65611         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65612         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65613         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65614         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65615         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65616
65617         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65618         loop to 256 bytes instead of 64 bytes and fix test signedness.
65619
65620         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65621         * sysdeps/sparc/sparc32/Makefile: rather than here...
65622         * sysdeps/sparc/sparc64/Makefile: and here.
65623
65624 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65625
65626         * malloc/mallocbug.c: Avoid warnings about unused variables.
65627
65628 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65629
65630         [BZ #13760]
65631         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65632         in the right place. Discard and retry query if response is
65633         larger than input buffer size.
65634
65635 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65636
65637         [BZ #369]
65638         [BZ #2678]
65639         [BZ #3866]
65640         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65641         x for large integer exponent.
65642         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65643         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65644         sign of result as needed afterwards.
65645         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65646         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65647         result for underflowing pow the same as for overflow.
65648         (__kernel_standard_l): Handle powl overflow and underflow here
65649         rather than calling __kernel_standard.
65650         * math/libm-test.inc (pow_test): Add more tests.
65651
65652         [BZ #3868]
65653         [BZ #13879]
65654         [BZ #13910]
65655         [BZ #13911]
65656         [BZ #13912]
65657         [BZ #13913]
65658         [BZ #13915]
65659         [BZ #13916]
65660         [BZ #13917]
65661         [BZ #13918]
65662         [BZ #13919]
65663         [BZ #13920]
65664         [BZ #13921]
65665         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65666         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65667         (__kernel_standard_l): New function.
65668         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65669         __kernel_standard.
65670         * math/w_acosl.c (__acosl): Likewise.
65671         * math/w_asinl.c (__asinl): Likewise.
65672         * math/w_atan2l.c (__atan2l): Likewise.
65673         * math/w_atanhl.c (__atanhl): Likewise.
65674         * math/w_coshl.c (__coshl): Likewise.
65675         * math/w_exp10l.c (__exp10l): Likewise.
65676         * math/w_exp2l.c (__exp2l): Likewise.
65677         * math/w_fmodl.c (__fmodl): Likewise.
65678         * math/w_hypotl.c (__hypotl): Likewise.
65679         * math/w_j0l.c (__j0l, __y0l): Likewise.
65680         * math/w_j1l.c (__j1l, __y1l): Likewise.
65681         * math/w_jnl.c (__jnl, __ynl): Likewise.
65682         * math/w_lgammal.c (__lgammal): Likewise.
65683         * math/w_log10l.c (__log10l): Likewise.
65684         * math/w_log2l.c (__log2l): Likewise.
65685         * math/w_logl.c (__logl): Likewise.
65686         * math/w_powl.c (__powl): Likewise.
65687         * math/w_remainderl.c (__remainderl): Likewise.
65688         * math/w_scalbl.c (sysv_scalbl): Likewise.
65689         * math/w_sinhl.c (__sinhl): Likewise.
65690         * math/w_sqrtl.c (__sqrtl): Likewise.
65691         * math/w_tgammal.c (__tgammal): Likewise.
65692         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65693         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65694         * math/libm-test.inc (acos_test): Add more tests.
65695         (acosh_test): Likewise.
65696         (asin_test): Likewise.
65697         (atanh_test): Likewise.
65698         (exp_test): Likewise.
65699         (exp10_test): Likewise.
65700         (exp2_test): Likewise.
65701         (expm1_test): Likewise.
65702         (lgamma_test): Likewise.
65703         (log_test): Likewise.
65704         (log10_test): Likewise.
65705         (log1p_test): Likewise.
65706         (log2_test): Likewise.
65707         (pow_test): Do not allow some spurious overflow exceptions.
65708         (sqrt_test): Add more tests.
65709         (tgamma_test): Likewise.
65710         (y0_test): Likewise.
65711         (y1_test): Likewise.
65712         (yn_test): Likewise.
65713
65714 2012-03-27  Anton Blanchard  <anton@samba.org>
65715
65716         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65717         MAP_HUGETLB.
65718         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65719         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65720         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65721
65722 2012-03-27  David S. Miller  <davem@davemloft.net>
65723
65724         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65725
65726         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65727         have-as-vis3 check.
65728
65729 2012-03-27  Andreas Jaeger  <aj@suse.de>
65730
65731         * sysdeps/x86_64/elf/configure.in: Moved to ...
65732         * sysdeps/x86_64/configure.in: ... here.
65733         * sysdeps/x86_64/elf/start.S: Moved to ...
65734         * sysdeps/x86_64/start.S: ... here.
65735         * sysdeps/x86_64/elf/configure: Delete.
65736
65737         * sysdeps/x86_64/configure.in: Merge contents from
65738         sysdeps/i386/configure.in (without i686 check).
65739
65740         * sysdeps/i386/elf/Versions: Merge into ...
65741         * sysdeps/i386/Versions: ... this.
65742         * sysdeps/i386/elf/Versions: Delete file.
65743         * sysdeps/i386/elf/start.S: Moved to ...
65744         * sysdeps/i386/start.S: ...here.
65745         * sysdeps/i386/elf/configure.in: Merge into...
65746         * sysdeps/i386/configure.in: ...here.
65747         * sysdeps/i386/elf/configure.in: Delete file.
65748         * sysdeps/i386/elf/configure: Delete file.
65749
65750         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65751         * debug/backtracesyms.c: ... here.
65752         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65753         * debug/backtracesymsfd.c: ... here.
65754         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65755         * sysdeps/generic/ifunc-sel.h: ... here.
65756
65757         * sysdeps/unix/i386/start.c: Delete file.
65758         * sysdeps/unix/sparc/start.c: Delete file.
65759         * sysdeps/unix/start.c: Delete file.
65760
65761         * sysdeps/sh/elf/configure.in: Moved to ...
65762         * sysdeps/sh/configure.in: ... here.
65763         * sysdeps/sh/elf/start.S: Moved to ...
65764         * sysdeps/sh/start.S: ... here.
65765         * sysdeps/sh/elf/configure: Delete file.
65766
65767         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
65768         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
65769         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
65770         * sysdeps/powerpc/powerpc64/entry.h: ... here.
65771         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
65772         * sysdeps/powerpc/powerpc64/start.S: here.
65773         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
65774         * sysdeps/powerpc/powerpc64/Makefile: ... this.
65775         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
65776         * sysdeps/powerpc/powerpc64/configure.in: ... this.
65777         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
65778
65779         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
65780         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
65781         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
65782         * sysdeps/powerpc/powerpc32/start.S: ... here.
65783         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
65784         * sysdeps/powerpc/powerpc32/configure.in: ... this.
65785         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
65786
65787         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
65788         * sysdeps/powerpc/ifunc-sel.h: ... here.
65789         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
65790         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
65791
65792         * sysdeps/sparc/elf/configure.in: Moved to ...
65793         * sysdeps/sparc/configure.in: ... here.
65794         * sysdeps/sparc/elf/configure: Delete file.
65795         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
65796         * sysdeps/sparc/sparc32/start.S: ... here.
65797         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
65798         * sysdeps/sparc/sparc64/start.S: ... here.
65799         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
65800         * sysdeps/sparc/sparc32/Makefile: ... this.
65801         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
65802         * sysdeps/sparc/sparc64/Makefile: ... this.
65803
65804         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
65805         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
65806         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
65807         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
65808         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
65809         * sysdeps/s390/s390-32/setjmp.S: ... here.
65810         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
65811         * sysdeps/s390/s390-32/configure.in: ... here.
65812         * sysdeps/s390/s390-32/elf/configure: Delete file.
65813         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
65814         * sysdeps/s390/s390-32/start.S: ... here.
65815
65816         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
65817         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
65818         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
65819         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
65820         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
65821         * sysdeps/s390/s390-64/setjmp.S: ... here.
65822         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
65823         * sysdeps/s390/s390-64/configure.in: ... here
65824         * sysdeps/s390/s390-64/elf/configure: Delete file.
65825         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
65826         * sysdeps/s390/s390-64/start.S: ... here.
65827         * sysdeps/s390/s390-64/elf/configure: Delete.
65828
65829         * configure.in: Remove support for elf directories in sysdeps.
65830
65831         * configure: Regenerated.
65832         * sysdeps/i386/configure: Regenerated.
65833         * sysdeps/powerpc/powerpc32/configure: Regenerated.
65834         * sysdeps/powerpc/powerpc64/configure: Regenerated.
65835         * sysdeps/s390/s390-32/configure: Regenerated.
65836         * sysdeps/s390/s390-64/configure: Regenerated.
65837         * sysdeps/sh/configure: Regenerated.
65838         * sysdeps/sparc/configure: Regenerated.
65839         * sysdeps/x86_64/configure: Regenerated.
65840
65841 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
65842
65843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65844
65845         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
65846         denormal result into account.
65847
65848 2012-03-25  Roland McGrath  <roland@hack.frob.com>
65849
65850         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
65851         Reported by Allan McRae <allan@archlinux.org>.
65852
65853 2012-03-23  Jeff Law  <law@redhat.com>
65854
65855         * nss/getnssent.c (__nss_getent): Fix typo.
65856
65857 2012-03-23  David S. Miller  <davem@davemloft.net>
65858
65859         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65860
65861 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
65862
65863         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
65864         to pad to uint64_t for each field.
65865         (dl_tls_index): Replace unsigned long with uint64_t.
65866
65867 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
65868         Paul Pluzhnikov  <ppluzhnikov@google.com>
65869
65870         [BZ #6528]
65871         * grp/Makefile (otherlibs): Don't set it.
65872         * inet/Makefile (otherlibs): Likewise.
65873         * login/Makefile (otherlibs): Likewise.
65874         * nscd/Makefile (otherlibs): Likewise.
65875         * posix/Makefile (otherlibs): Likewise.
65876         * pwd/Makefile (otherlibs): Likewise.
65877         * rt/Makefile (otherlibs): Likewise.
65878         * sunrpc/Makefile (otherlibs): Likewise.
65879         * nss/Makefile (otherlibs): Likewise.
65880         Add libnss_files to routines and static-only-routines.
65881         ($(objpfx)getent): Remove rule.
65882         * resolv/Makefile: Add libnss_dns and libresolv to routines and
65883         static-only-routines.
65884
65885 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65886
65887         [BZ #13892]
65888         * math/s_cexp.c: Include <float.h>.
65889         (__cexp): Handle exp result overflowing not necessarily
65890         overflowing both real and imaginary parts of result.
65891         * math/s_cexpf.c: Likewise.
65892         * math/s_cexpl.c: Likewise.
65893         * math/libm-test.inc (cexp_test): Add more tests.
65894         * sysdeps/i386/fpu/libm-test-ulps: Update.
65895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65896
65897 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65898
65899         * include/link.h (ELFW): New macro.
65900         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
65901         Replace ELF64_R_TYPE with ELFW(R_TYPE).
65902
65903 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65904
65905         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
65906         with uint64_t.
65907
65908 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65909
65910         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
65911         declaration.
65912         (struct La_x32_retval): Likewise.
65913
65914 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65915
65916         * sysdeps/x86_64/preconfigure.in: New file.
65917         * sysdeps/x86_64/preconfigure: New generated file.
65918
65919 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65920
65921         [BZ #13824]
65922         * math/e_exp2l.c: Include <float.h>.
65923         (__ieee754_exp2l): Handle overflow and underflow cases
65924         separately.  Only pass fractional part of argument to
65925         __ieee754_expl.
65926         * math/libm-test.inc (exp2_test): Add more tests.
65927
65928         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
65929         negating x to take absolute value.
65930         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
65931         Likewise.
65932         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
65933         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
65934         Likewise.
65935         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
65936         computing low part if x was negated.
65937         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
65938
65939 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65940
65941         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
65942         la_x32_gnu_pltexit.
65943         (pltexit): Cast int_retval to ptrdiff_t.
65944         * elf/tst-auditmod3b.c: Likewise.
65945         * elf/tst-auditmod4b.c: Likewise.
65946         * elf/tst-auditmod5b.c: Likewise.
65947         * elf/tst-auditmod6b.c: Likewise.
65948         * elf/tst-auditmod6c.c: Likewise.
65949         * elf/tst-auditmod7b.c: Likewise.
65950
65951         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
65952         and x32_gnu_pltexit.
65953
65954         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
65955         __ELF_NATIVE_CLASS.
65956         (La_x32_regs): New macro.
65957         (La_x32_retval): Likewise.
65958         (la_x32_gnu_pltenter): New function prototype.
65959         (la_x32_gnu_pltexit): Likewise.
65960
65961 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
65962
65963         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
65964         exponent.
65965
65966         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65967
65968         * configure.in (libc_cv_cc_nofma): Check for option to disable
65969         generation of FMA instructions.
65970         * configure: Regenerate.
65971         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
65972         * sysdeps/ieee754/dbl-64/Makefile: New file.
65973         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
65974         Remove brandred-fma4.
65975         (CFLAGS-brandred-fma4.c): Remove.
65976         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
65977         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
65978         define.
65979         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
65980         define.
65981
65982 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65983
65984         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65985         LLONG_MAX != LONG_MAX.
65986         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65987         (_fitoa_word): Likewise.
65988         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
65989         LLONG_MAX != LONG_MAX.
65990         * stdio-common/_itowa.h: Include <_itoa.h>.
65991         (_itowa_word): Use _ITOA_WORD_TYPE on value.
65992         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
65993         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
65994         only if not defined.
65995         (_ITOA_WORD_TYPE): Likewise.
65996         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65997         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
65998
65999 2012-03-21  David S. Miller  <davem@davemloft.net>
66000
66001         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66002
66003 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66004
66005         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66006         of x86_64 when setting libc_cv_slibdir, libdir and
66007         libc_cv_localedir.
66008         * sysdeps/unix/sysv/linux/configure: Regenerated.
66009
66010 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66011
66012         * manual/lang.texi (Old Varargs): Remove section.
66013         (How Variadic): Update menu.
66014         (va_start): Do not mention varargs.h.
66015
66016 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66017             Joseph Myers  <joseph@codesourcery.com>
66018
66019         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66020         link test.
66021         * configure: Regenerated.
66022
66023 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66024
66025         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66026         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66027         conformtest.pl
66028
66029 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66030
66031         * NOTES: Remove.
66032         * Makefile (files-for-dist): Remove NOTES.
66033         (NOTES): Remove rule.
66034         * README: Don't refer to NOTES.
66035         * manual/creature.texi: Don't include macros.texi.
66036         * manual/intro.texi (creature.texi): Remove comment referring to
66037         NOTES.
66038
66039         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66040         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66041         * configure: Regenerated.
66042         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66043         LIBC_TRY_CC_OPTION.
66044         (libc_cv_as_i686): Likewise.
66045         (libc_cv_cc_avx): Likewise.
66046         (libc_cv_cc_sse2avx): Likewise.
66047         (libc_cv_cc_fma4): Likewise.
66048         (libc_cv_cc_novzeroupper): Likewise.
66049         * sysdeps/i386/configure: Regenerated.
66050
66051         [BZ #13883]
66052         * sysdeps/i386/fpu/s_cexp.S: Remove.
66053         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66054         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66055         * math/libm-test.inc (cexp_test): Add more tests.
66056         * sysdeps/i386/fpu/libm-test-ulps: Update.
66057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66058
66059 2012-03-21  Allan McRae  <allan@archlinux.org>
66060
66061         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66062
66063 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66064
66065         [BZ #13871]
66066         * math/w_exp2.c: Do not include <float.h>.
66067         (o_threshold, u_threshold): Remove.
66068         (__exp2): Calculate result before checking finiteness and calling
66069         __kernel_standard.
66070         * math/w_exp2f.c: Likewise.
66071         * math/w_exp2l.c: Likewise.
66072         * math/libm-test.inc (exp2_test): Require overflow exception for
66073         1e6 input.
66074
66075         [BZ #3866]
66076         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66077         range of signed 64-bit integers before using fistpll.  Remove
66078         checks for whether integers fit in mantissa bits.
66079         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66080         the range of signed 32-bit integers before using fistpl.  Remove
66081         checks for whether integers fit in mantissa bits.
66082         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66083         (__ieee754_powl): Test for y outside the range of signed 64-bit
66084         integers before using fistpll.  Reduce 64-bit values to 63-bit
66085         ones as needed.
66086         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66087         divide-by-zero is raised for zero to large negative powers.
66088         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66089         (__ieee754_powl): Test for y outside the range of signed 64-bit
66090         integers before using fistpll.  Reduce 64-bit values to 63-bit
66091         ones as needed.
66092         * math/libm-test.inc (pow_test): Add more tests.
66093
66094 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66095
66096         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66097         <stdio-common/_itoa.h>.
66098         * debug/segfault.c: Likewise.
66099         * elf/dl-cache.c: Likewise.
66100         * elf/dl-minimal.c: Likewise.
66101         * elf/dl-misc.c: Likewise.
66102         * elf/dl-sysdep.c: Likewise.
66103         * elf/dl-version.c: Likewise.
66104         * elf/rtld.c: Likewise.
66105         * hurd/hurdsock.c: Likewise.
66106         * hurd/lookup-retry.c: Likewise.
66107         * malloc/malloc.c: Likewise.
66108         * malloc/mtrace.c: Likewise.
66109         * nscd/nscd_getgr_r.c: Likewise.
66110         * nscd/nscd_getpw_r.c: Likewise.
66111         * nscd/nscd_getserv_r.c: Likewise.
66112         * posix/getopt_init.c: Likewise.
66113         * posix/wordexp.c: Likewise.
66114         * stdio-common/_itoa.c: Likewise.
66115         * stdio-common/printf_fphex.c: Likewise.
66116         * stdio-common/vfprintf.c: Likewise.
66117         * string/_strerror.c: Likewise.
66118         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66119         * sysdeps/i386/i686/hp-timing.h: Likewise.
66120         * sysdeps/mach/_strerror.c: Likewise.
66121         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66122         * sysdeps/mach/hurd/sethostid.c: Likewise.
66123         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66124         * sysdeps/mach/xpg-strerror.c: Likewise.
66125         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66126         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66127         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66128         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66129         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66130         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66131         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66132         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66133         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66134         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66135         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66136         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66137         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66138         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66139         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66140         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66141         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66142         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66143         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66144         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66145         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66146
66147         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66148
66149         * stdio-common/_itoa.h: Moved to ...
66150         * sysdeps/generic/_itoa.h: Here.
66151
66152         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66153
66154         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66155         instead of "_itoa.h" and "_itowa.h".
66156         * stdio-common/vfprintf.: Likewise.
66157
66158 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66159
66160         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66161         <bits/wordsize.h>.
66162         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66163         (__signbit): Likwise.
66164         (llrintf): Likwise.
66165         (llrint): Likwise.
66166
66167 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66168
66169         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66170         __WORDSIZE != 64.
66171
66172 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66173
66174         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66175         OVERFLOW_EXCEPTION_OK.
66176         * math/libm-test.inc ("Philosophy"): Update comment about
66177         exception testing.
66178         (OVERFLOW_EXCEPTION): Define.
66179         (OVERFLOW_EXCEPTION_OK): Likewise.
66180         (INVALID_EXCEPTION_OK): Renumber.
66181         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66182         (IGNORE_ZERO_INF_SIGN): Likewise.
66183         (test_exceptions): Handle FE_OVERFLOW.
66184         (exp10_test): Expect overflow exceptions.
66185         (exp2_test): Likewise.
66186         (expm1_test): Likewise.
66187         (nextafter_test): Likewise.
66188         (pow_test): Likewise.
66189         (scalbn_test): Likewise.
66190         (scalbln_test): Likewise.
66191
66192 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66193
66194         * sysdeps/x86_64/bits/atomic.h
66195         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66196         64bit integer.
66197         (atomic_exchange_acq): Likewise.
66198         (__arch_exchange_and_add_body): Likewise.
66199         (__arch_add_body): Likewise.
66200         (atomic_add_negative): Likewise.
66201         (atomic_add_zero): Likewise.
66202
66203 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66204
66205         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66206         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66207
66208 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66209
66210         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66211         Check __x86_64__ instead of __WORDSIZE.
66212
66213 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66214
66215         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66216
66217 2012-03-19  David S. Miller  <davem@davemloft.net>
66218
66219         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66220
66221         * sysdeps/sparc/fpu/fenv_private.h: New file.
66222         * sysdeps/sparc/fpu/math_private.h: Use it.
66223         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66224         Remove.
66225         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66226         (libc_feholdexcept_setroundl): Remove.
66227         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66228         Remove.
66229         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66230         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66231
66232 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66233
66234         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66235         int64_t instead of long int.
66236         (INSERT_WORDS64): Likwise.
66237
66238 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66239
66240         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66241         _Unwind_GetCFA return to _Unwind_Ptr first.
66242
66243 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66244
66245         [BZ #13629]
66246         * math/s_clog.c: Include <float.h>.
66247         (__clog): Scale large or subnormal inputs.
66248         * math/s_clogf.c: Likewise.
66249         * math/s_clogl.c: Likewise.
66250         * math/s_clog10.c: Include <float.h>.
66251         (M_LOG10_2): Define.
66252         (__clog10): Scale large or subnormal inputs.
66253         * math/s_clog10f.c: Likewise.
66254         * math/s_clog10l.c: Likewise.
66255         * math/libm-test.inc (clog_test): Add more tests.
66256         (clog10_test): Likewise.
66257         * sysdeps/i386/fpu/libm-test-ulps: Update.
66258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66259
66260         [BZ #11451]
66261         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66262         x and y.
66263         * math/libm-test.inc (atan2_test): Add another test.
66264
66265         * Makerules (common-objdir-compile): Remove.
66266         * sysdeps/unix/Makefile (config-generated): Do not add
66267         $(unix-generated) to variable.
66268         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66269         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66270         Remove rule.
66271         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66272         Likewise.
66273         [generic bits/local_lim.h] (before-compile): Do not append to
66274         variable.
66275         [generic bits/local_lim.h] (common-generated): Likewise.
66276         [generic sys/param.h] (before-compile): Do not append to variable.
66277         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66278         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66279         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66280         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66281         include.
66282         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66283         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66284         [generic sys/param.h] ($(addprefix
66285         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66286         [generic sys/param.h] (common-generated): Do not append to
66287         variable.
66288         [generic sys/param.h] (sysdep_headers): Likewise.
66289         [generic bits/errno.h] (before-compile): Do not append to
66290         variable.
66291         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66292         rule.
66293         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66294         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66295         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66296         [generic bits/errno.h] (common-generated): Do not append to
66297         variable.
66298         [generic bits/ioctls.h] (before-compile): Do not append to
66299         variable.
66300         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66301         rule.
66302         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66303         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66304         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66305         rule.
66306         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66307         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66308         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66309         [generic bits/ioctls.h] (common-generated): Do not append to
66310         variable.
66311         [generic sys/syscall.h] (syscall.h): Remove variable.
66312         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66313         rule.
66314         [generic sys/syscall.h] (before-compile): Do not append to
66315         variable.
66316         [generic sys/syscall.h] (common-generated): Likewise.
66317         * sysdeps/unix/errnos-tmpl.c: Remove file.
66318         * sysdeps/unix/errnos.awk: Likewise.
66319         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66320         * sysdeps/unix/ioctls.awk: Likewise.
66321         * sysdeps/unix/mk-local_lim.c: Likewise.
66322         * sysdeps/unix/snarf-ioctls: Likewise.
66323
66324 2012-03-19  Richard Henderson  <rth@twiddle.net>
66325
66326         * sysdeps/i386/fpu/fenv_private.h: New file.
66327         * sysdeps/i386/fpu/math_private.h: Use it.
66328         (math_opt_barrier, math_force_eval): Remove.
66329         (libc_feholdexcept_setround_53bit): Remove.
66330         (libc_feupdateenv_53bit): Remove.
66331         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66332         (math_opt_barrier, math_force_eval): Remove.
66333         (libc_feholdexcept): Remove.
66334         (libc_feholdexcept_setround): Remove.
66335         (libc_fetestexcept, libc_fesetenv): Remove.
66336         (libc_feupdateenv_test): Remove.
66337         (libc_feupdateenv, libc_feholdsetround): Remove.
66338         (libc_feresetround): Remove.
66339
66340         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66341         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66342
66343         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66344         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66345         (libc_feupdateenv_testl): New.
66346         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66347         (libc_feupdateenv_testf): New.
66348         (libc_feupdateenv): Use libc_feupdateenv_test.
66349         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66350         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66351
66352         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66353         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66354         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66355         (libc_feresetround_noex): New.
66356         (libc_feresetround_noexf): New.
66357         (libc_feresetround_noexl): New.
66358         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66359         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66360         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66361         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66362         SET_RESTORE_ROUND.
66363         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66364         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66365         (__cos): Likewise.
66366         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66367         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66368         SET_RESTORE_ROUND_NOEX.
66369         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66370         SET_RESTORE_ROUND_NOEXF.
66371         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66372         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66373         (libc_feholdsetroundf): New.
66374         (libc_feresetround, libc_feresetroundf): New.
66375
66376         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66377         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66378         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66379
66380         * sysdeps/generic/math_private.h: Include <fenv.h>.
66381         (default_libc_feholdexcept): New.
66382         (default_libc_feholdexcept_setround): New.
66383         (default_libc_fesetenv, default_libc_feupdateenv): New.
66384         (libc_feholdexcept): Only define if undefined.
66385         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66386         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66387         (libc_feholdexcept_setroundl): Likewise.
66388         (libc_feholdexcept_setround_53bit): Likewise.
66389         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66390         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66391         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66392         (libc_feupdateenv_53bit): Likewise.
66393         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66394         (libc_feholdexcept): Convert from macro to inline function.
66395         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66396         (libc_fesetenv, libc_feupdateenv): Likewise.
66397
66398         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66399         not previously defined.
66400         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66401         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66402         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66403         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66404         * sysdeps/ieee754/flt-32/math_private.h: New file.
66405         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66406         math_private.h below SET_FLOAT_WORD.
66407         (__isnan, __isinf_ns, __finite): Remove.
66408         (__isnanf, __isinf_nsf, __finitef): Remove.
66409
66410 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66411
66412         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66413
66414 2012-03-17  David S. Miller  <davem@davemloft.net>
66415
66416         [BZ #6471]
66417         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66418         for 2.16.
66419
66420 2012-03-16  David S. Miller  <davem@davemloft.net>
66421
66422         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66423         warnings.
66424
66425         [BZ #6471]
66426         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66427         properly.
66428         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66429         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66430         sysdep_routines when subdir is sysvipc.
66431         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66432         __getshmlba helper.
66433
66434         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66435
66436 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66437
66438         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66439         [__LP64__].
66440
66441 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66442
66443         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66444         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66445         (__lround): Renamed to ...
66446         (__llround): This.  Replace long int with long long int.
66447         Define lround functions as aliases of llround functions.
66448         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66449
66450 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66451
66452         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66453         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66454         adresses to uintptr_t.  Replace "long int" and "unsigned long
66455         int" with "greg_t" on va_arg.
66456
66457 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66458
66459         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66460         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66461
66462         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66463         Move e_machine check before EI_CLASS check.  Handle x32
66464         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66465         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66466         SKIP_EM_IA_64 and include
66467         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66468
66469         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66470         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66471         (add_system_dir): New macro.
66472
66473         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66474         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66475
66476 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66477
66478         [BZ #2551]
66479         [BZ #2552]
66480         [BZ #2553]
66481         [BZ #2554]
66482         [BZ #2562]
66483         [BZ #2563]
66484         [BZ #2565]
66485         [BZ #2566]
66486         [BZ #2576]
66487         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66488         (y0): Likewise.
66489         * math/w_j0f.c (j0f): Likewise.
66490         (y0f): Likewise.
66491         * math/w_j0l.c (__j0l): Likewise.
66492         (__y0l): Likewise.
66493         * math/w_j1.c (j1): Likewise.
66494         (y1): Likewise.
66495         * math/w_j1f.c (j1f): Likewise.
66496         (y1f): Likewise.
66497         * math/w_j1l.c (__j1l): Likewise.
66498         (__y1l): Likewise.
66499         * math/w_jn.c (jn): Likewise.
66500         (yn): Likewise.
66501         * math/w_jnf.c (jnf): Likewise.
66502         (ynf): Likewise.
66503         * math/w_jnl.c (__jnl): Likewise.
66504         (__ynl): Likewise.
66505         * math/libm-test.inc (j0_test): Add more tests.
66506         (j1_test): Likewise.
66507         (jn_test): Likewise.  Add trailing semicolon to existing test.
66508         (y0_test): Likewise.
66509         (y1_test): Likewise.
66510         * sysdeps/i386/fpu/libm-test-ulps: Update.
66511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66512
66513         [BZ #13851]
66514         [BZ #13854]
66515         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66516         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66517         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66518         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66519         (__tanl): Set errno for infinite argument.
66520         * sysdeps/i386/fpu/mptan.c: Remove.
66521         * sysdeps/i386/fpu/s_tan.S: Likewise.
66522         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66523         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66524         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66525         * math/libm-test.inc (tan_test): Add more tests and enable more
66526         tests for double and long double.
66527         * sysdeps/i386/fpu/libm-test-ulps: Update.
66528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66529
66530 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66531
66532         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66533         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66534
66535 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66536
66537         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66538         * configure.in: Use it for both main tree and add-ons.
66539         * configure: Regenerated.
66540
66541 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66542
66543         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66544
66545 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66546
66547         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66548         in comment.
66549
66550         [BZ #13851]
66551         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66552         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66553         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66554         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66555         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66556         infinite argument.
66557         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66558         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66559         != 0 for prec == 2.
66560         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66561         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66562         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66563         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66564         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66565         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66566         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66567         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66568         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66569         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66570         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66571         * math/libm-test.inc (cos_test): Add more tests and enable more
66572         tests for long double.
66573         (sin_test): Likewise.
66574         (sincos_test): Likewise.
66575         * sysdeps/i386/fpu/libm-test-ulps: Update.
66576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66577
66578 2012-03-16  David S. Miller  <davem@davemloft.net>
66579
66580         * sysdeps/sparc/fpu/math_private.h: New file.
66581
66582 2012-03-15  David S. Miller  <davem@davemloft.net>
66583
66584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66585         file.
66586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66588         file.
66589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66590         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66591         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66592         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66593         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66594         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66595         sysdep routines.
66596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66597
66598         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66599         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66600
66601         * sysdeps/sparc/sparc-ifunc.h: New file.
66602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66603         sparc-ifunc.h
66604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66606         Likewise.
66607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66608         Likewise.
66609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66613         Likewise.
66614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66619         Likewise.
66620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66621         Likewise.
66622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66626         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66627         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66628         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66629         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66630         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66631         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66632         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66633         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66634         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66636         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66637         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66638         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66639         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66640         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66641         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66642         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66643         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66644         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66645         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66646
66647 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66648
66649         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66650         scaling.
66651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66652
66653 2012-03-15  Andreas Jaeger  <aj@suse.de>
66654
66655         [BZ #13852]
66656         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66657         ieee754/flt-32 implementation for sin, cos and sincos.
66658         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66659         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66660         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66661         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66662         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66663         ieee754/flt-32 implementation for tan.
66664
66665         * math/libm-test.inc (cos_test): Enable some large input tests for
66666         float as well
66667         (sin_test): Likewise.
66668         (sincos_test): Likewise.
66669         (tan_test): Add tests for large input.
66670
66671         * sysdeps/i386/fpu/libm-test-ulps: Update.
66672
66673 2012-03-15  Andreas Jaeger  <aj@suse.de>
66674
66675         [BZ #13658]
66676         * math/libm-test.inc (cos_test): Add more test cases.
66677         (sin_test): Likewise.
66678         (sincos_test): Likewise.
66679
66680 2012-03-15  Andreas Jaeger  <aj@suse.de>
66681
66682         [BZ #13837]
66683         * math/libm-test.inc (cos_test): Add a test case for large input
66684         value.
66685         (sin_test): Likewise.
66686         (sincos_test): Likewise.
66687
66688 2012-03-15  Andreas Jaeger  <aj@suse.de>
66689             Joseph Myers  <joseph@codesourcery.com>
66690
66691         [BZ #13658]
66692         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66693         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66694         * sysdeps/i386/fpu/branred.c: Likewise.
66695         * sysdeps/i386/fpu/dosincos.c: Likewise.
66696         * sysdeps/i386/fpu/mpa.c: Likewise.
66697         * sysdeps/i386/fpu/s_cos.S: Likewise.
66698         * sysdeps/i386/fpu/s_sin.S: Likewise.
66699         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66700         * sysdeps/i386/fpu/sincos32.c: Likewise.
66701
66702         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66703         Define.
66704         (libc_feupdateenv_53bit): Define.
66705         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66706         Define.
66707         (libc_feupdateenv_53bit): Define.
66708
66709         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66710         53 bit (without extend i386 double precision).
66711
66712         * math/libm-test.inc (sincos_test): Add tests for large input.
66713         (sin): Likewise.
66714         (cos): Likewise.
66715
66716         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66717
66718 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66719
66720         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66721
66722 2012-03-15  David S. Miller  <davem@davemloft.net>
66723
66724         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66725         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66726         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66727         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66728         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66729         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66732         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66733         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66734         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66735         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66736         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66737         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66738         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66740         file.
66741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66743         file.
66744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66746         file.
66747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66749         file.
66750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66751         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66752         fmin/fmax sysdep routines.
66753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66754
66755 2012-03-14  David S. Miller  <davem@davemloft.net>
66756
66757         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66758         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66759         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66760         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66761         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66762         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66763         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
66764         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
66765         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
66766         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
66767         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
66768         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
66769         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
66770         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
66771         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
66772         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
66773         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
66774         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
66775         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
66776         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
66777         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
66778         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
66779         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
66780         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
66781         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
66782         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
66783         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
66784         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
66785         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
66786         routines.
66787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
66788         file.
66789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
66790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
66791         file.
66792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
66793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
66794         file.
66795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
66796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
66797         file.
66798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
66799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
66800         file.
66801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
66802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
66803         file.
66804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
66805         file.
66806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
66807         file.
66808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
66809         file.
66810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
66811         New file.
66812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
66813         file.
66814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
66815         file.
66816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
66817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
66818         file.
66819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
66820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
66821         file.
66822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
66823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
66824         file.
66825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
66826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
66827         VIS3 routines.
66828
66829         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66830         New file.
66831
66832         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66833
66834         * sysdeps/sparc/configure.in: New file.
66835         * sysdeps/sparc/configure: Generate.
66836         * configure.in (libc_cv_sparc_as_vis3): Substitute.
66837         * configure: Regenerate.
66838         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
66839         * config.make.in (have-as-vis3): New.
66840         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
66841         available use -Av9d instead of -Av9a.
66842         * sysdeps/sparc/sparc64/Makefile: Likewise.
66843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
66844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
66845         New file.
66846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
66847         file.
66848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
66849         New file.
66850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
66851         file.
66852         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
66853         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
66854         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
66855         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
66856         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
66857
66858         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
66859         fzeros/fnegs to load 0x80000000 into a float register instead of
66860         using the stack.
66861         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
66862
66863 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66864
66865         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66866         bits/syscall.h.
66867         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
66868         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
66869         ($(inst_includedir)/bits/syscall.h): Remove rule.
66870         ($(objpfx)bits/syscall.d): Include instead of
66871         $(objpfx)syscall-list.d.
66872         (generated): Change syscall-list.h and syscall-list.d to
66873         bits/syscall.h and bits/syscall.d.
66874
66875 2012-03-14  Roland McGrath  <roland@hack.frob.com>
66876
66877         [BZ #13846]
66878         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
66879
66880 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66881
66882         [BZ #13841]
66883         * math/s_csqrt.c: Include <float.h>.
66884         (__csqrt): Scale large or subnormal inputs.
66885         * math/s_csqrtf.c: Likewise.
66886         * math/s_csqrtl.c: Likewise.
66887         * math/libm-test.inc (csqrt_test): Add more tests.
66888         * sysdeps/i386/fpu/libm-test-ulps: Update.
66889         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66890
66891         [BZ #13840]
66892         * math/libm-test.inc (hypot_test): Add more tests.
66893
66894 2012-03-13  David S. Miller  <davem@davemloft.net>
66895
66896         [BZ #13840]
66897         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
66898         double-precision for the calculation instead of scaling.
66899
66900 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
66901
66902         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
66903         manipulate bits before adding and subtracting TWO52[sx].
66904         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
66905         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
66906         Likewise.
66907         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
66908
66909 2012-03-13  David S. Miller  <davem@davemloft.net>
66910
66911         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
66912         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
66913         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
66914         rtld-global-offsets.h
66915         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
66916
66917         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
66918         large parameters.
66919
66920         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
66921
66922         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
66923         'err' in the ifdef scope in which it is actually used.
66924
66925         * nss/nss_db/db-init.c: Include string.h
66926
66927 2012-03-12  David S. Miller  <davem@davemloft.net>
66928
66929         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
66930         masking out of the most significant byte of random value used.
66931         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66932         Fix coding style in previous change.
66933
66934         * sysdeps/unix/sysv/linux/kernel-features.h
66935         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
66936         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
66937         expression.
66938         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
66939         later.
66940
66941 2012-03-11  David S. Miller  <davem@davemloft.net>
66942
66943         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
66944         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
66945         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
66946         for 'resultvar' otherwise things get truncated on 64-bit.
66947
66948         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66949         Fix masking out of the most significant byte of random value used.
66950
66951         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66952
66953 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
66954
66955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66956
66957 2012-03-09  David S. Miller  <davem@davemloft.net>
66958
66959         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
66960         variables with appropriate CPP guards.
66961         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
66962         from the frame pointer, not the stack pointer.  Correct layout
66963         comments.  Fix test on resulting framesize and the management of
66964         the outregs buffer for pltexit.  Preserve floating point return
66965         values across _dl_call_pltexit call.
66966         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
66967         framesize and the management of the outregs buffer for pltexit.
66968         Preserve floating point return values across _dl_call_pltexit
66969         call.
66970         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
66971         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
66972         (la_sparc64_gnu_pltexit): New functions.
66973         (print_exit): Fix format string for return register value.
66974
66975 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
66976
66977         * sunrpc/Makefile (others): Add rpcgen.
66978         ($(objpfx)rpcgen): Remove special build rule and dependency on
66979         libc.
66980         * sunrpc/rpcgen.c: New file.
66981
66982 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         [BZ #13673]
66985         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
66986         * stdio-common/bug-vfprintf-nargs.c: Likewise.
66987         * sysdeps/i386/crti.S: Likewise.
66988         * sysdeps/i386/crtn.S: Likewise.
66989         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
66990         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
66991         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
66992         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
66993         * sysdeps/sh/crti.S: Likewise.
66994         * sysdeps/sh/crtn.S: Likewise.
66995         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
66996
66997         [BZ #13673]
66998         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
66999         with URL.
67000         * locale/programs/locfile-kw.gperf: Likewise.
67001         * locale/programs/charmap-kw.h: Regenerated.
67002         * locale/programs/locfile-kw.h: Likewise.
67003
67004         [BZ #13673]
67005         * intl/plural.y: Replace FSF snail mail address with URL.
67006         * intl/plural.c: Regenerated.
67007
67008 2012-03-09  Richard Henderson  <rth@twiddle.net>
67009
67010         * include/math_private.h: Remove file.
67011         * math/math_private.h: Move file ...
67012         * sysdeps/generic/math_private.h: ... here.
67013
67014         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67015         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67016         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67017
67018         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67019         and <math_private.h>.
67020         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67021         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67022         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67023         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67024         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67025         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67026         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67027         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67028         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67029         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67030         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67031         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67032         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67033         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67034         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67035         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67036         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67037         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67038         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67039         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67040         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67041         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67042         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67043         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67044         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67045         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67046         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67047         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67048         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67049         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67050         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67051         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67052         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67053         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67054         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67055         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67056         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67057         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67058         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67059         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67060         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67061         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67062         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67063         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67064         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67065         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67066         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67067         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67068         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67069         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67070         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67071         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67072         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67073         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67074         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67075         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67076         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67077         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67078         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67079         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67080         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67081         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67082         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67083         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67084         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67085         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67086         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67087         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67088         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67089         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67090         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67091         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67092         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67093         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67094         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67095         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67096         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67097         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67098         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67099         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67100         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67101         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67102         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67103         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67104         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67105         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67106         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67107         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67108         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67109         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67110         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67111         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67112         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67113         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67114         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67115         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67116         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67117         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67118         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67119         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67120         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67121         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67122         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67123         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67124         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67125         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67126         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67127         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67128         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67129         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67130         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67131         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67132         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67133         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67134         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67135         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67136         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67137         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67138         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67139         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67140         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67141         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67142         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67143         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67144         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67145         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67146         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67147         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67148         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67149         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67150         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67151         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67152         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67153         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67154         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67155         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67156         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67157         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67158         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67159         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67160         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67161         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67162         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67163         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67164         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67165         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67166         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67167         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67168         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67169         * sysdeps/ieee754/k_standard.c: Likewise.
67170         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67171         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67172         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67173         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67174         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67175         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67176         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67177         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67178         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67179         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67180         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67181         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67182         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67183         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67184         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67185         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67186         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67187         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67188         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67189         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67190         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67191         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67192         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67193         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67194         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67195         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67196         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67197         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67198         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67199         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67200         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67201         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67202         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67203         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67204         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67205         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67206         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67207         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67208         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67209         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67210         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67211         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67212         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67213         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67214         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67215         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67216         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67217         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67218         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67219         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67220         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67221         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67222         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67223         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67224         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67225         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67226         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67227         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67228         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67229         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67230         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67231         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67232         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67233         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67234         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67235         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67236         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67237         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67238         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67239         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67240         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67241         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67242         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67243         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67244         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67245         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67246         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67247         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67248         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67249         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67250         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67251         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67252         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67253         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67254         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67255         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67256         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67257         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67258         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67259         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67260         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67261         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67262         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67263         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67264         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67265         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67266         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67267         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67268         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67269         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67270         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67271         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67272         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67273         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67274         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67275         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67276         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67277         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67278         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67279         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67280         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67281         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67282         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67283         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67284         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67285         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67286         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67287         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67288         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67289         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67290         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67291         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67292         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67293         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67294         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67295         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67296         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67297         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67298         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67299         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67300         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67301         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67302         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67303         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67304         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67305         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67306         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67307         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67308         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67309         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67310         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67311         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67312         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67313         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67314         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67315         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67316         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67317         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67318         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67319         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67320         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67321         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67322         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67323         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67324         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67325         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67326         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67327         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67328         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67329         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67330         * sysdeps/ieee754/s_lib_version.c: Likewise.
67331         * sysdeps/ieee754/s_matherr.c: Likewise.
67332         * sysdeps/ieee754/s_signgam.c: Likewise.
67333         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67334         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67335         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67336         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67337         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67338         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67339         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67340         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67341         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67342         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67343         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67344         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67345         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67346         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67347         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67348         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67349         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67350         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67351         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67352         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67353         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67354
67355 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67356
67357         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67358         * sunrpc/rpc_main.c: Likewise.
67359         * sunrpc/rpc_svcout.c: Likewise.
67360
67361 2012-03-09  David S. Miller  <davem@davemloft.net>
67362
67363         * include/math_private.h: New file.
67364
67365 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67366
67367         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67368         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67369         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67370         from <bits/socket_type.h>.
67371         (enum __socket_type): Don't define here.
67372         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67373         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67374         bits/socket_type.h.
67375
67376         [BZ #13566]
67377         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67378         checking __USE_GNU.
67379
67380         * Makerules ($(inst_includedir)/%.h): New rule.
67381         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67382         (install-others): Remove variable setting.
67383         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67384
67385 2012-03-08  Richard Henderson  <rth@twiddle.net>
67386
67387         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67388         from macro to inline function; merge with the
67389         !__LIBC_INTERNAL_MATH_INLINES version.
67390         (__ieee754_sqrtf): Likewise.
67391
67392         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67393         to inline function.
67394         (__rintf, __floor, __floorf): Likewise.
67395
67396         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67397         macro to inline function.
67398         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67399
67400         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67401         not <math/math_private.h>.
67402
67403 2012-03-08  David S. Miller  <davem@davemloft.net>
67404
67405         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67406         copyright year.
67407         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67408
67409 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67410
67411         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67412         normalization.
67413         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67414         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67415
67416 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67417
67418         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67419         be defined individually, they must be defined as a block.  Define
67420         S for printing a string instead of hidint the different by using a
67421         macro for adding the 'l'.
67422         * stdio-common/tst-fphex-wide.c: Adjust.
67423
67424 2012-03-07  Marek Polacek  <polacek@redhat.com>
67425
67426         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67427
67428 2012-03-08  Marek Polacek  <polacek@redhat.com>
67429
67430         [BZ #13806]
67431         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67432         * stdio-common/tst-fphex.c: Define a few macros to make the
67433         test reusable.  Use them.
67434         * stdio-common/tst-fphex-wide.c: New file.
67435
67436 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67437
67438         [BZ #6911]
67439         * manual/macros.texi (gnusystems): New macro.
67440         (nongnusystems): Likewise.
67441         (gnulinuxhurdsystems): Likewise.
67442         (gnuhurdsystems): Likewise..
67443         (gnulinuxsystems): Likewise.
67444         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67445         variants of the GNU system, not "GNU system".
67446         * manual/conf.texi: Likewise.
67447         * manual/errno.texi: Likewise.  Update example of errno macro
67448         expansion.
67449         * manual/filesys.texi: Likewise.
67450         (getumask): Document as specific to GNU/Hurd.
67451         * manual/install.texi: Likewise.  Reword some references to
67452         GNU/Linux.
67453         * manual/intro.texi: Likewise.
67454         * manual/io.texi: Likewise.
67455         (File Name Portability): Detail which constraints are inapplicable
67456         to all GNU systems and which are only inapplicable to GNU/Hurd.
67457         * manual/job.texi: Likewise.
67458         * manual/llio.texi: Likewise.
67459         (O_NOCTTY): Document as present on GNU/Linux.
67460         * manual/maint.texi: Likewise.
67461         * manual/memory.texi: Likewise.
67462         * manual/pattern.texi: Likewise.
67463         * manual/pipe.texi: Likewise.
67464         * manual/process.texi: Likewise.
67465         * manual/resource.texi: Likewise.
67466         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67467         child on GNU/Hurd.
67468         * manual/setjmp.texi: Likewise.
67469         * manual/signal.texi: Likewise.
67470         * manual/startup.texi: Likewise.
67471         * manual/stdio.texi: Likewise.
67472         * manual/terminal.texi: Likewise.
67473         (ONLCR): Document as POSIX.
67474         (OXTABS): Document availability on GNU/Linux as XTABS.
67475         (ONOEOT): Document availability separately from other bits.
67476         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67477         * manual/time.texi: Likewise.
67478         * manual/users.texi: Likewise.
67479         * INSTALL: Regenerated.
67480         * sysdeps/gnu/errlist.c: Regenerated.
67481
67482         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67483         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67484         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67485         puts.
67486         * configure: Regenerated.
67487
67488 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67489
67490         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67491         default includes instead of AC_HEADER_CHECK.
67492         * sysdeps/i386/configure: Regenerated.
67493
67494         [BZ #10716]
67495         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67496         * math/s_cacoshf.c (__cacoshf): Likewise.
67497         * math/s_cacoshl.c (__cacoshl): Likewise.
67498         * math/s_casinh.c (__casinh): Set signs of result from argument.
67499         * math/s_casinhf.c (__casinhf): Likewise.
67500         * math/s_casinhl.c (__casinhl): Likewise.
67501         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67502         (casinh_test): Add more tests.
67503         * sysdeps/i386/fpu/libm-test-ulps: Update.
67504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67505
67506 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67507
67508         * po/zh_TW.po: Update from translation team.
67509
67510         * login/Makefile (distribute): Remove variable.
67511         * catgets/Makefile: Likewise.
67512         * mach/Makefile: Likewise.
67513         * malloc/Makefile: Likewise.
67514         * misc/Makefile: Likewise.
67515         * iconv/Makefile: Likewise.
67516         * nscd/Makefile: Likewise.
67517         * hurd/Makefile: Likewise.
67518         * manual/Makefile: Likewise.
67519         * locale/Makefile: Likewise.
67520         * intl/Makefile: Likewise.
67521         * conform/Makefile: Likewise.
67522         * nss/Makefile: Likewise.
67523         * time/Makefile: Likewise.
67524         * soft-fp/Makefile: Likewise.
67525         * dirent/Makefile: Likewise.
67526         * gmon/Makefile: Likewise.
67527         * po/Makefile: Likewise.
67528         * rt/Makefile: Likewise.
67529         * socket/Makefile: Likewise.
67530         * math/Makefile: Likewise.
67531         * signal/Makefile: Likewise.
67532         * debug/Makefile: Likewise.
67533         * elf/Makefile: Likewise.
67534         * timezone/Makefile: Likewise.
67535         * stdlib/Makefile: Likewise.
67536         * iconvdata/Makefile: Likewise.
67537         * sunrpc/Makefile: Likewise.
67538         * io/Makefile: Likewise.
67539         * argp/Makefile: Likewise.
67540         * inet/Makefile: Likewise.
67541         * hesiod/Makefile: Likewise.
67542         * grp/Makefile: Likewise.
67543         * csu/Makefile: Likewise.
67544         * wctype/Makefile: Likewise.
67545         * crypt/Makefile: Likewise.
67546         * libio/Makefile: Likewise.
67547         * string/Makefile: Likewise.
67548         * nis/Makefile: Likewise.
67549         * resolv/Makefile: Likewise.
67550         * stdio-common/Makefile: Likewise.
67551         * wcsmbs/Makefile: Likewise.
67552         * dlfcn/Makefile: Likewise.
67553         * posix/Makefile: Likewise.
67554
67555         [BZ #6959]
67556         * timezone/Makefile: Don't install timezone files, just the programs
67557         and scripts.
67558
67559 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67560
67561         * nss/databases.def: Add missing gshadow entry.
67562
67563         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67564
67565 2012-03-06  Marek Polacek  <polacek@redhat.com>
67566
67567         [BZ #13726]
67568         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67569         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67570         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67571         * stdio-common/tst-long-dbl-fphex.c: New file.
67572
67573 2012-03-06  David S. Miller  <davem@davemloft.net>
67574
67575         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67576         (set_obp_int): New function.
67577         (get_obp_int): New function.
67578         (__get_clockfreq_via_dev_openprom): Likewise.
67579         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67580         Avoid unused variable warnings on 'val' and use builtin_expect.
67581         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67582         __builtin_expect.
67583         (INLINE_CLONE_SYSCALL): Likewise.
67584
67585 2012-03-05  David S. Miller  <davem@davemloft.net>
67586
67587         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67588
67589 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67590
67591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67592
67593         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67594         only for |x| >= 40.
67595         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67596
67597 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67598
67599         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67600         Replace gettimeofday with __vdso_gettimeofday.
67601
67602         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67603         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67604         __vdso_clock_gettime and __vdso_getcpu.
67605
67606         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67607         time with __vdso_time.
67608
67609 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67610
67611         * manual/lang.texi (size_t): Note types to which size_t may be
67612         equivalent with the GNU C Library, but do not describe when
67613         differences between them are significant.
67614
67615 2012-03-05  Andreas Jaeger  <aj@suse.de>
67616
67617         * sysdeps/i386/fpu/libm-test-ulps: Update.
67618
67619 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67620
67621         [BZ #3976]
67622         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67623         (__ieee754_pow): Save and restore rounding mode and use
67624         round-to-nearest for main computations.
67625         * math/libm-test.inc (pow_test_tonearest): New function.
67626         (pow_test_towardzero): Likewise.
67627         (pow_test_downward): Likewise.
67628         (pow_test_upward): Likewise.
67629         (main): Call the new functions.
67630         * sysdeps/i386/fpu/libm-test-ulps: Update.
67631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67632
67633         [BZ #3976]
67634         * math/libm-test.inc (cosh_test_tonearest): New function.
67635         (cosh_test_towardzero): Likewise.
67636         (cosh_test_downward): Likewise.
67637         (cosh_test_upward): Likewise.
67638         (sinh_test_tonearest): Likewise.
67639         (sinh_test_towardzero): Likewise.
67640         (sinh_test_downward): Likewise.
67641         (sinh_test_upward): Likewise.
67642         (main): Call the new functions.
67643         * sysdeps/i386/fpu/libm-test-ulps: Update.
67644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67645
67646 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67647
67648         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67649         default stack guard is set in last bytes.
67650         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67651
67652 2012-03-05  Kees Cook  <keescook@chromium.org>
67653
67654         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67655
67656         [BZ #13656]
67657         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67658         possibly allocate from heap instead of stack.
67659         * stdio-common/bug-vfprintf-nargs.c: New file.
67660         * stdio-common/Makefile (tests): Add nargs overflow test.
67661
67662 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67663
67664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67665
67666 2012-03-03  Marek Polacek  <polacek@redhat.com>
67667
67668         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67669         * math/math_private.h: Likewise.
67670         * stdlib/tst-strtod.c: Likewise.
67671         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67672         * sysdeps/x86_64/bits/atomic.h: Likewise.
67673
67674 2012-03-02  David S. Miller  <davem@davemloft.net>
67675
67676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67680         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67681         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67682         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67683         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67684
67685 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67686
67687         [BZ #13792]
67688         * manual/examples/README: New file, says the example source files
67689         can be used under GPL>=2.
67690         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67691         line containing just "*/".
67692         * manual/examples/add.c: Add copyright header (GPL>=2).
67693         * manual/examples/argp-ex1.c: Likewise.
67694         * manual/examples/argp-ex2.c: Likewise.
67695         * manual/examples/argp-ex3.c: Likewise.
67696         * manual/examples/argp-ex4.c: Likewise.
67697         * manual/examples/atexit.c: Likewise.
67698         * manual/examples/db.c: Likewise.
67699         * manual/examples/dir.c: Likewise.
67700         * manual/examples/dir2.c: Likewise.
67701         * manual/examples/execinfo.c: Likewise.
67702         * manual/examples/filecli.c: Likewise.
67703         * manual/examples/filesrv.c: Likewise.
67704         * manual/examples/fmtmsgexpl.c: Likewise.
67705         * manual/examples/genpass.c: Likewise.
67706         * manual/examples/inetcli.c: Likewise.
67707         * manual/examples/inetsrv.c: Likewise.
67708         * manual/examples/isockad.c: Likewise.
67709         * manual/examples/longopt.c: Likewise.
67710         * manual/examples/memopen.c: Likewise.
67711         * manual/examples/memstrm.c: Likewise.
67712         * manual/examples/mkfsock.c: Likewise.
67713         * manual/examples/mkisock.c: Likewise.
67714         * manual/examples/mygetpass.c: Likewise.
67715         * manual/examples/pipe.c: Likewise.
67716         * manual/examples/popen.c: Likewise.
67717         * manual/examples/rprintf.c: Likewise.
67718         * manual/examples/search.c: Likewise.
67719         * manual/examples/select.c: Likewise.
67720         * manual/examples/setjmp.c: Likewise.
67721         * manual/examples/sigh1.c: Likewise.
67722         * manual/examples/sigusr.c: Likewise.
67723         * manual/examples/stpcpy.c: Likewise.
67724         * manual/examples/strdupa.c: Likewise.
67725         * manual/examples/strftim.c: Likewise.
67726         * manual/examples/strncat.c: Likewise.
67727         * manual/examples/subopt.c: Likewise.
67728         * manual/examples/swapcontext.c: Likewise.
67729         * manual/examples/termios.c: Likewise.
67730         * manual/examples/testopt.c: Likewise.
67731         * manual/examples/testpass.c: Likewise.
67732         * manual/examples/timeval_subtract.c: Likewise.
67733
67734         [BZ #13792]
67735         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67736         function to ...
67737         * manual/timeval_subtract.c.texi: ... here, new file.
67738
67739 2012-03-02  David S. Miller  <davem@davemloft.net>
67740
67741         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67742
67743 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67744
67745         [BZ #3976]
67746         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67747         (__sin): Save and restore rounding mode and use round-to-nearest
67748         for all computations.
67749         (__cos): Save and restore rounding mode and use round-to-nearest
67750         for all computations.
67751         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67752         <fenv.h>.
67753         (tan): Save and restore rounding mode and use round-to-nearest for
67754         all computations.
67755         * math/libm-test.inc (cos_test_tonearest): New function.
67756         (cos_test_towardzero): Likewise.
67757         (cos_test_downward): Likewise.
67758         (cos_test_upward): Likewise.
67759         (sin_test_tonearest): Likewise.
67760         (sin_test_towardzero): Likewise.
67761         (sin_test_downward): Likewise.
67762         (sin_test_upward): Likewise.
67763         (tan_test_tonearest): Likewise.
67764         (tan_test_towardzero): Likewise.
67765         (tan_test_downward): Likewise.
67766         (tan_test_upward): Likewise.
67767         (main): Call the new functions.
67768         * sysdeps/i386/fpu/libm-test-ulps: Update.
67769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67770
67771         [BZ #10135]
67772         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
67773         small n, then large n, before computing and testing k+n.
67774         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
67775         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
67776         Likewise.
67777         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
67778         Likewise.
67779         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
67780         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
67781         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
67782         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
67783         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
67784         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
67785         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
67786         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
67787         * math/libm-test.inc (scalbn_test): Add more tests.
67788         (scalbln_test): Likewise.
67789
67790         * manual/filesys.texi (mode_t): Describe constraints on size and
67791         signedness, not exact equivalence to a particular type.
67792         (ino_t): Likewise.
67793         (ino64_t): Likewise.
67794         (dev_t): Likewise.
67795         (nlink_t): Likewise.
67796         (blkcnt_t): Likewise.
67797         (blkcnt64_t): Likewise.
67798         * manual/llio.texi (off_t): Likewise.
67799
67800         [BZ #3976]
67801         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
67802         (__ieee754_exp): Save and restore rounding mode and use
67803         round-to-nearest for all computations.
67804         * math/libm-test.inc (exp_test_tonearest): New function.
67805         (exp_test_towardzero): Likewise.
67806         (exp_test_downward): Likewise.
67807         (exp_test_upward): Likewise.
67808         (main): Call the new functions.
67809         * sysdeps/i386/fpu/libm-test-ulps: Update.
67810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67811
67812 2012-03-01  Chris Demetriou  <cgd@google.com>
67813
67814         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
67815         have predictable order.
67816
67817 2012-03-01  David S. Miller  <davem@davemloft.net>
67818
67819         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
67820
67821         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
67822         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
67823         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
67824         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
67825
67826         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
67827         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
67828         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
67829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
67830         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
67831         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
67832         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
67833         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
67834         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
67835
67836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67837
67838         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
67839         * sysdeps/sparc/fpu/libm-test-ulps: to here.
67840         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
67841
67842         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
67843         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
67844         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
67845         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
67846         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
67847         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
67848         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
67849         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
67850         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
67851         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
67852         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
67853         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
67854         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
67855         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
67856         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
67857         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
67858         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
67859         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
67860         * sysdeps/sparc/elf/configure: Regenerated.
67861
67862 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
67863
67864         * configure.in (AS, LD): Require binutils 2.20 or later.
67865         * configure: Regenerated.
67866         * manual/install.texi (Tools for Compilation): Give binutils 2.20
67867         as required minimum version.
67868         * INSTALL: Regenerated.
67869
67870         [BZ #2541]
67871         [BZ #4108]
67872         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
67873         before squaring exponent.
67874         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
67875         bottom long double and 27 bits of top long double before squaring
67876         exponent.
67877         * math/libm-test.inc (erfc_test): Add more tests.
67878         * sysdeps/i386/fpu/libm-test-ulps: Update.
67879         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67881
67882 2012-03-01  Kai Tietz  <ktietz@redhat.com>
67883
67884         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
67885         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
67886         containing bit-fields.
67887         * soft-fp/extended.h (_FP_UNION_E): Likewise.
67888         * soft-fp/single.h (_FP_UNION_S): Likewise.
67889         * soft-fp/double.h (_FP_UNION_D): Likewise.
67890
67891 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67892
67893         [BZ #13786]
67894         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
67895         not include ../strcmp.S.
67896         [USE_AS_STRNCASECMP_L]: Likewise.
67897         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
67898         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
67899         * sysdeps/i386/i686/multiarch/strncase_l-c.c
67900         (__strncasecmp_l_ia32): Define as alias to
67901         __strncasecmp_l_nonascii.
67902
67903         [BZ #5794]
67904         * math/libm-test.inc (expm1_test): Add test for bug 5794.
67905         * sysdeps/i386/fpu/libm-test-ulps: Update.
67906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67907
67908         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
67909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67910
67911 2012-02-29  Jeff Law  <law@redhat.com>
67912
67913         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
67914         out of bounds read.
67915
67916 2012-02-29  Marek Polacek  <polacek@redhat.com>
67917
67918         [BZ #13706]
67919         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
67920         * elf/Makefile: Add rules to run tst-unused-dep.out.
67921
67922 2012-02-28  David S. Miller  <davem@davemloft.net>
67923
67924         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
67925         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
67926         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
67927         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
67928         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
67929         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
67930
67931 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67932
67933         * math/libm-test.inc (llround_test): Move one test from
67934         lround_test.  Use TEST_f_L in moved test.
67935         (lround_test): Move misplaced test to llround_test.  Add testcase
67936         from bug 2561.
67937
67938 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
67939
67940         * sysdeps/x86_64/fpu/e_expf.S: New file.
67941         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
67942
67943 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
67944
67945         [BZ #13637]
67946         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
67947         of remain_len that may cause incomplete multi-byte character and
67948         false match.
67949         * posix/bug-regex33.c: New file.
67950         * posix/Makefile (tests): Add bug-regex33.
67951
67952 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
67953
67954         * manual/macros.texi: New file.
67955         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
67956         * manual/libc.texinfo: Include macros.texi.
67957         * manual/creatute.texi: Likewise.
67958         * manual/install.texi: Likewise.
67959         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
67960         @glibcadj{} in references to the GNU C Library.
67961         * manual/charset.texi: Likewise.
67962         * manual/conf.texi: Likewise.
67963         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
67964         when not using those macros.
67965         * manual/creature.texi: Likewise.
67966         * manual/crypt.texi: Likewise.
67967         * manual/errno.texi: Likewise.
67968         * manual/filesys.texi: Likewise.
67969         * manual/header.texi: Likewise.
67970         * manual/install.texi: Likewise.
67971         * manual/intro.texi: Likewise.
67972         * manual/io.texi: Likewise.
67973         * manual/job.texi: Likewise.
67974         * manual/lang.texi: Likewise.
67975         * manual/libc.texiinfo: Likewise.
67976         * manual/llio.texi: Likewise.
67977         * manual/locale.texi: Likewise.
67978         * manual/maint.texi: Likewise.
67979         * manual/math.texi: Likewise.
67980         * manual/memory.texi: Likewise.
67981         * manual/message.texi: Likewise.
67982         * manual/nss.texi: Likewise.
67983         * manual/pattern.texi: Likewise.
67984         * manual/process.texi: Likewise.
67985         * manual/resource.texi: Likewise.
67986         * manual/search.texi: Likewise.
67987         * manual/setjmp.texi: Likewise.
67988         * manual/signal.texi: Likewise.
67989         * manual/socket.texi: Likewise.
67990         * manual/startup.texi: Likewise.
67991         * manual/stdio.texi: Likewise.
67992         * manual/string.texi: Likewise.
67993         * manual/sysinfo.texi: Likewise.
67994         * manual/syslog.texi: Likewise.
67995         * manual/terminal.texi: Likewise.
67996         * manual/time.texi: Likewise.
67997         * manual/users.texi: Likewise.
67998         * INSTALL: Regenerated.
67999         * NOTES: Regenerated.
68000         * sysdeps/gnu/errlist.c: Regenerated.
68001
68002 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68003
68004         * include/dirent.h: Include <dirstream.h> before
68005         <dirent/dirent.h>.
68006
68007 2012-02-28  David S. Miller  <davem@davemloft.net>
68008
68009         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68010         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68011         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68012         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68013
68014 2012-02-27  David S. Miller  <davem@davemloft.net>
68015
68016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68018         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68019         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68020
68021         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68022         frame pointer instead of stack pointer relative arg slot.
68023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68024         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68025         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68026
68027 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68028
68029         [BZ #3992]
68030         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68031
68032 2012-02-27  David S. Miller  <davem@davemloft.net>
68033
68034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68038         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68039         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68040         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68041         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68042
68043 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68044
68045         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68046         later.  Allow versions 5-9.
68047         * configure: Regenerated.
68048         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68049         required minimum version and 4.6 as recommended version.  Do not
68050         mention bugs in GCC 2.7 and 2.8.
68051         * INSTALL: Regenerated.
68052
68053 2012-02-27  David S. Miller  <davem@davemloft.net>
68054
68055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68059         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68060         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68061         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68062         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68063
68064         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68065         manipulate bits before adding and subtracting TWO112[sx].
68066         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68067
68068 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68069
68070         [BZ #13775]
68071         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68072         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68073         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68074         being in POSIX, because they are in 1003.1-2008.
68075
68076         * rt/tst-aio.c: Include <fcntl.h>.
68077         * rt/tst-aio7.c: Likewise.
68078         * rt/tst-aio64.c: Likewise.
68079
68080         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68081
68082 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68083
68084         * manual/install.texi (--with-headers): Describe headers as
68085         interface headers, not private headers.
68086         (Specific advice for GNU/Linux systems): Describe use of headers
68087         from "make headers_install", not private headers from older
68088         kernels.
68089         * INSTALL: Regenerated.
68090         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68091         Change to 2.6.19.
68092         * sysdeps/unix/sysv/linux/configure: Regenerated.
68093
68094         * manual/llio.texi (fclean): Remove documentation.
68095
68096         * manual/Makefile (libc-texi-generated): New variable.  Include
68097         version.texi.
68098         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68099         $(libc-texi-generated), not duplicated list of files.
68100         (version.texi, stamp-version): New rules.
68101         (realclean): Remove $(libc-texi-generated), not individual files
68102         from that list.  Do not remove dir-add.texinfo.
68103         * manual/libc.texinfo: Comment out uses of edition numbers and
68104         references to printed manual.  Remove last-updated dates.
68105         (EDITION): Comment out.
68106         (ISBN): Likewise.
68107         (VERSION, UPDATED): Remove.
68108         (version.texi): Include.
68109
68110 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68111
68112         * sysdeps/posix/spawni.c: Include <signal.h>.
68113         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68114         * sysdeps/pthread/aio_fsync.c: Likewise.
68115
68116 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68117
68118         * conform/Makefile (tests): Run only when not cross-compiling and
68119         when fast-check is not defined.
68120
68121         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68122         * conform/data/limits.h-data: Fixes for POSIX2008.
68123         * conform/run-conformtest.sh: Run all tests.
68124         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68125         headers.
68126         * include/bits/dlfcn.h: Likewise.
68127         * include/langinfo.h: Likewise.
68128         * include/monetary.h: Likewise.
68129         * include/sys/poll.h: Likewise.
68130
68131         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68132         for __USE_GNU.
68133         * posix/spawn.h: Define __need_sigset_t.
68134         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68135         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68136         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68137         to get sigevent_t only.
68138         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68139         only for __USE_GNU.
68140         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68141         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68142         process_vm_writev only for __USE_GNU.
68143         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68144
68145         * conform/Makefile: For now ignore errors from run-conformtest.
68146         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68147         POSIX to avoid namespace pollution.  Don't prepend headers.
68148         * conform/data/aio.h-data: Fixes for POSIX testing.
68149         * conform/data/fcntl.h-data: Likewise.
68150         * conform/data/glob.h-data: Likewise.
68151         * conform/data/grp.h-data: Likewise.
68152         * conform/data/pthread.h-data: Likewise.
68153         * conform/data/pwd.h-data: Likewise.
68154         * conform/data/signal.h-data: Likewise.
68155         * conform/data/spawn.h-data: Likewise.
68156         * conform/data/stdio.h-data: Likewise.
68157         * conform/data/stdlib.h-data: Likewise.
68158         * conform/data/stropts.h-data: Likewise.
68159         * conform/data/sys/mman.h-data: Likewise.
68160         * conform/data/sys/stat.h-data: Likewise.
68161         * conform/data/sys/types.h-data: Likewise.
68162         * conform/data/sys/wait.h-data: Likewise.
68163         * conform/data/time.h-data: Likewise.
68164         * conform/data/unistd.h-data: Likewise.
68165         * conform/data/utime.h-data: Likewise.
68166
68167         * io/sys/stat.h: fchmod was always in POSIX.
68168         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68169         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68170         * rt/aio.h: Define __need_timespec before including <time.h>.
68171         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68172         struct.  Add forward declaration of pthread_attr_t and use it in
68173         sigevent.
68174         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68175         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68176         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68177         always remove CLK_TCK definition.
68178
68179 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68180
68181         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68182
68183 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68184
68185         * conform/run-conformtest.sh: New file.
68186         * conform/Makefile: Run run-conformtest for tests.
68187         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68188         support.
68189
68190         * conform/data/uchar.h-data: New file.
68191         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68192         * conform/data/arpa/inet.h-data: Likewise.
68193         * conform/data/assert.h-data: Likewise.
68194         * conform/data/complex.h-data: Likewise.
68195         * conform/data/cpio.h-data: Likewise.
68196         * conform/data/ctype.h-data: Likewise.
68197         * conform/data/dirent.h-data: Likewise.
68198         * conform/data/dlfcn.h-data: Likewise.
68199         * conform/data/errno.h-data: Likewise.
68200         * conform/data/fcntl.h-data: Likewise.
68201         * conform/data/float.h-data: Likewise.
68202         * conform/data/fmtmsg.h-data: Likewise.
68203         * conform/data/fnmatch.h-data: Likewise.
68204         * conform/data/ftw.h-data: Likewise.
68205         * conform/data/glob.h-data: Likewise.
68206         * conform/data/grp.h-data: Likewise.
68207         * conform/data/iconv.h-data: Likewise.
68208         * conform/data/inttypes.h-data: Likewise.
68209         * conform/data/langinfo.h-data: Likewise.
68210         * conform/data/libgen.h-data: Likewise.
68211         * conform/data/limits.h-data: Likewise.
68212         * conform/data/locale.h-data: Likewise.
68213         * conform/data/math.h-data: Likewise.
68214         * conform/data/monetary.h-data: Likewise.
68215         * conform/data/mqueue.h-data: Likewise.
68216         * conform/data/ndbm.h-data: Likewise.
68217         * conform/data/net/if.h-data: Likewise.
68218         * conform/data/netdb.h-data: Likewise.
68219         * conform/data/netinet/in.h-data: Likewise.
68220         * conform/data/nl_types.h-data: Likewise.
68221         * conform/data/poll.h-data: Likewise.
68222         * conform/data/pthread.h-data: Likewise.
68223         * conform/data/pwd.h-data: Likewise.
68224         * conform/data/regex.h-data: Likewise.
68225         * conform/data/sched.h-data: Likewise.
68226         * conform/data/search.h-data: Likewise.
68227         * conform/data/semaphore.h-data: Likewise.
68228         * conform/data/setjmp.h-data: Likewise.
68229         * conform/data/signal.h-data: Likewise.
68230         * conform/data/spawn.h-data: Likewise.
68231         * conform/data/stdarg.h-data: Likewise.
68232         * conform/data/stdio.h-data: Likewise.
68233         * conform/data/stdlib.h-data: Likewise.
68234         * conform/data/string.h-data: Likewise.
68235         * conform/data/strings.h-data: Likewise.
68236         * conform/data/stropts.h-data: Likewise.
68237         * conform/data/sys/ipc.h-data: Likewise.
68238         * conform/data/sys/mman.h-data: Likewise.
68239         * conform/data/sys/msg.h-data: Likewise.
68240         * conform/data/sys/resource.h-data: Likewise.
68241         * conform/data/sys/select.h-data: Likewise.
68242         * conform/data/sys/sem.h-data: Likewise.
68243         * conform/data/sys/shm.h-data: Likewise.
68244         * conform/data/sys/socket.h-data: Likewise.
68245         * conform/data/sys/stat.h-data: Likewise.
68246         * conform/data/sys/statvfs.h-data: Likewise.
68247         * conform/data/sys/time.h-data: Likewise.
68248         * conform/data/sys/timeb.h-data: Likewise.
68249         * conform/data/sys/times.h-data: Likewise.
68250         * conform/data/sys/types.h-data: Likewise.
68251         * conform/data/sys/uio.h-data: Likewise.
68252         * conform/data/sys/un.h-data: Likewise.
68253         * conform/data/sys/utsname.h-data: Likewise.
68254         * conform/data/sys/wait.h-data: Likewise.
68255         * conform/data/syslog.h-data: Likewise.
68256         * conform/data/tar.h-data: Likewise.
68257         * conform/data/termios.h-data: Likewise.
68258         * conform/data/utime.h-data: Likewise.
68259         * conform/data/utmpx.h-data: Likewise.
68260         * conform/data/varargs.h-data: Likewise.
68261         * conform/data/wchar.h-data: Likewise.
68262         * conform/data/wctype.h-data: Likewise.
68263         * conform/data/wordexp.h-data: Likewise.
68264
68265         * include/stropts.h: New file.
68266         * include/uchar.h: New file.
68267         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68268         * include/assert.h: Likewise.
68269         * include/ctype.h: Likewise.
68270         * include/dirent.h: Likewise.
68271         * include/dlfcn.h: Likewise.
68272         * include/fcntl.h: Likewise.
68273         * include/fnmatch.h: Likewise.
68274         * include/glob.h: Likewise.
68275         * include/grp.h: Likewise.
68276         * include/libio.h: Likewise.
68277         * include/locale.h: Likewise.
68278         * include/math.h: Likewise.
68279         * include/net/if.h: Likewise.
68280         * include/netdb.h: Likewise.
68281         * include/netinet/in.h: Likewise.
68282         * include/pthread.h: Likewise.
68283         * include/pwd.h: Likewise.
68284         * include/regex.h: Likewise.
68285         * include/sched.h: Likewise.
68286         * include/search.h: Likewise.
68287         * include/setjmp.h: Likewise.
68288         * include/signal.h: Likewise.
68289         * include/stdio.h: Likewise.
68290         * include/stdlib.h: Likewise.
68291         * include/string.h: Likewise.
68292         * include/sys/cdefs.h: Likewise.
68293         * include/sys/mman.h: Likewise.
68294         * include/sys/msg.h: Likewise.
68295         * include/sys/resource.h: Likewise.
68296         * include/sys/select.h: Likewise.
68297         * include/sys/socket.h: Likewise.
68298         * include/sys/stat.h: Likewise.
68299         * include/sys/statvfs.h: Likewise.
68300         * include/sys/time.h: Likewise.
68301         * include/sys/times.h: Likewise.
68302         * include/sys/uio.h: Likewise.
68303         * include/sys/utsname.h: Likewise.
68304         * include/sys/wait.h: Likewise.
68305         * include/termios.h: Likewise.
68306         * include/time.h: Likewise.
68307         * include/ulimit.h: Likewise.
68308         * include/unistd.h: Likewise.
68309         * include/utime.h: Likewise.
68310         * include/wchar.h: Likewise.
68311         * include/wctype.h: Likewise.
68312         * include/wordexp.h: Likewise.
68313
68314         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68315
68316         * time/time.h: TIME_UTC must be a macro.
68317         Make timespec_get available for ISO C11 only as well.
68318
68319 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68320
68321         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68322         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68323
68324 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68325
68326         * configure.in: Use -o not -a in test for unsupported multi-arch.
68327
68328 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68329
68330         * manual/texinfo.tex: Update to version 2012-01-19.16.
68331
68332 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68333
68334         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68335
68336 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68337
68338         [BZ #13738]
68339         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68340         * manual/fdl-1.3.texi: New file.
68341         * manual/fdl-1.1.texi: File removed.
68342
68343         [BZ #13738]
68344         * manual/libc.texinfo (FDL_VERSION): New @set.
68345         Use it for mention of FDL in cover text.
68346         (Documentation License): Use it in @include file name.
68347
68348 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68349             Roland McGrath  <roland@hack.frob.com>
68350
68351         [BZ #5461]
68352         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68353         (not LONG_LONG_MAX and LONG_LONG_MIN.
68354         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68355         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68356         name.
68357         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68358
68359 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68360
68361         [BZ #2547]
68362         [BZ #11365]
68363         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68364         manipulate bits before adding and subtracting TWO23[sx].
68365         * math/libm-test.inc (nearbyint_test): Add more tests.
68366
68367 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68368
68369         [BZ #2548]
68370         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68371         bits before adding and subtracting TWO23[sx].
68372         * math/libm-test.inc (rint_test): Add more tests.
68373         (rint_test_tonearest): Likewise.
68374         (rint_test_towardzero): Likewise.
68375         (rint_test_downward): Likewise.
68376         (rint_test_upward: Likewise.
68377
68378 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68379
68380         [BZ #10110]
68381         * include/stdc-predef.h: New file.  Extracted from features.h.
68382         * include/features.h: Include stdc-predef.h.
68383         * Makefile (headers): Add stdc-predef.h.
68384         * CONFORMANCE (Compiler limitations): Update.
68385
68386 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68387
68388         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68389
68390 2012-02-21  David S. Miller  <davem@davemloft.net>
68391
68392         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68393         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68394
68395 2012-02-20  David S. Miller  <davem@davemloft.net>
68396
68397         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68398         using a normal save/restore sequence, rather than allocating a
68399         dummy stack frame just to store a frame pointer and restore.
68400         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68401
68402 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68403
68404         * manual/install.texi: Fix stray word in line-wrapped comment.
68405
68406 2012-02-20  David S. Miller  <davem@davemloft.net>
68407
68408         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68409         both binutils and gcc support GOTDATA.
68410
68411         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68412         "rd %pc" in the PIC register setup sequences.
68413
68414         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68415         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68416         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68417         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68418         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68419         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68420         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68421         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68422         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68423         (SYSCALL_ERROR_HANDLER): Likewise.
68424         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68425         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68426         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68427         (SYSCALL_ERROR_HANDLER): Likewise.
68428
68429         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68430         (HAVE_GCC_GOTDATA): New.
68431         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68432         relocation support in both binutils and gcc.
68433         * sysdeps/sparc/elf/configure: Regenerate.
68434
68435         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68436         * sysdeps/sparc/sparc32/elf/configure: Delete.
68437         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68438         * sysdeps/sparc/sparc64/elf/configure: Delete.
68439         * sysdeps/sparc/elf/configure.in: New file.
68440         * sysdeps/sparc/elf/configure: Generate.
68441
68442         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68443         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68444         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68445         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68446         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68447
68448 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68449
68450         * manual/install.texi: Do not mention specific glibc version
68451         numbers.
68452         * manual/libc.texinfo (VERSION, UPDATED): Update.
68453         (@copying): Use @copyright{} and range of years.
68454
68455 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68456
68457         [BZ #13695]
68458         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68459         [crti.S not in sysdirs] (generated): Do not append.
68460         [crti.S not in sysdirs] (omit-deps): Likewise.
68461         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68462         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68463         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68464         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68465         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68466         Likewise.
68467         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68468         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68469         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68470         * csu/defs.awk: Remove file.
68471         * sysdeps/generic/initfini.c: Likewise.
68472         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68473         variable.
68474         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68475         Likewise.
68476
68477 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68478
68479         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68480         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68481         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68482         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68483         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68484         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68485         <bits/epoll.h>.
68486         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68487         (__EPOLL_PACKED): Define to empty if not defined by
68488         <bits/epoll.h>.
68489         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68490         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68491         bits/epoll.h.
68492
68493 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68494
68495         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68496         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68497         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68498         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68499         <bits/timerfd.h>.
68500         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68501         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68502         bits/timerfd.h.
68503
68504 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68505
68506         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68507         in C locale.
68508         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68509         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68510         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68512
68513 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68514
68515         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68516         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68517
68518 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68519
68520         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68521         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68522         defined.
68523         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68524         Likewise.
68525         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68526         entry for 2.16.
68527
68528 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68529
68530         * math/w_acos.c: Use non-signaling floating-point comparisons.
68531         * math/w_acosf.c: Likewise.
68532         * math/w_acosh.c: Likewise.
68533         * math/w_acoshf.c: Likewise.
68534         * math/w_acoshl.c: Likewise.
68535         * math/w_acosl.c: Likewise.
68536         * math/w_asin.c: Likewise.
68537         * math/w_asinf.c: Likewise.
68538         * math/w_asinl.c: Likewise.
68539         * math/w_atanh.c: Likewise.
68540         * math/w_atanhf.c: Likewise.
68541         * math/w_atanhl.c: Likewise.
68542         * math/w_exp2.c: Likewise.
68543         * math/w_exp2f.c: Likewise.
68544         * math/w_exp2l.c: Likewise.
68545         * math/w_j0.c: Likewise.
68546         * math/w_j0f.c: Likewise.
68547         * math/w_j0l.c: Likewise.
68548         * math/w_j1.c: Likewise.
68549         * math/w_j1f.c: Likewise.
68550         * math/w_j1l.c: Likewise.
68551         * math/w_jn.c: Likewise.
68552         * math/w_jnf.c: Likewise.
68553         * math/w_log.c: Likewise.
68554         * math/w_log10.c: Likewise.
68555         * math/w_log10f.c: Likewise.
68556         * math/w_log10l.c: Likewise.
68557         * math/w_log2.c: Likewise.
68558         * math/w_log2f.c: Likewise.
68559         * math/w_log2l.c: Likewise.
68560         * math/w_logf.c: Likewise.
68561         * math/w_logl.c: Likewise.
68562         * math/w_sqrt.c: Likewise.
68563         * math/w_sqrtf.c: Likewise.
68564         * math/w_sqrtl.c: Likewise.
68565         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68566         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68567         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68568         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68569         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68570
68571 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68572
68573         [BZ #9739]
68574         * manual/string.texi (strnlen): Use correct parameter name in
68575         equivalent expression.
68576
68577 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68578
68579         [BZ #11174]
68580         * manual/users.texi (seteuid): Consistently use neweuid for
68581         argument name.
68582
68583 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68584
68585         [BZ #13704]
68586         * manual/nss.texi (Services in the NSS configuration): Correct
68587         list of services in example configuration file.
68588
68589 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68590
68591         [BZ #11322]
68592         * manual/arith.texi: Remove statements about negative zero
68593         behaving identically to zero.
68594
68595 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68596
68597         [BZ #5993]
68598         * manual/install.texi: Do not document upgrading from libc5.
68599
68600 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68601
68602         [BZ #4596]
68603         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68604
68605 2012-02-18  David S. Miller  <davem@davemloft.net>
68606
68607         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68608         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68609         %o7 across the call.
68610         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68611         instead.
68612         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68613         SETUP_PIC_REG_LEAF.
68614         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68615         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68616         * sysdeps/sparc/crtn.S: Likewise.
68617
68618 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68619
68620         * aout/Makefile: Remove.
68621
68622 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68623
68624         [BZ #13058]
68625         * manual/examples/argp-ex1.c (main): Format definition in GNU
68626         style.
68627         * manual/examples/argp-ex2.c (main): Likewise.
68628         * manual/examples/argp-ex3.c (main): Likewise.
68629         * manual/examples/argp-ex4.c (main): Likewise.
68630         * manual/examples/longopt.c (main): Use new-style prototype
68631         definition.
68632         * manual/examples/strncat.c (main): Specify return type and use
68633         (void) for arguments.
68634         * manual/examples/subopt.c (main): Use char **argv argument.
68635
68636 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68637
68638         [BZ #5077]
68639         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68640         rounding modes.
68641
68642 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68643
68644         [BZ #6907]
68645         * manual/string.texi (strchr): Change when strchrnul is
68646         recommended.
68647
68648 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68649
68650         [BZ #174]
68651         * manual/locale.texi (setlocale): Document LOCPATH.
68652
68653 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68654
68655         [BZ #10210]
68656         * manual/process.texi (execle): Move @dots{} before last argument.
68657
68658 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68659
68660         [BZ #12047]
68661         * manual/charset.texi (Generic Charset Conversion): Fix typo
68662         (LC_TYPE -> LC_CTYPE).
68663
68664 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68665
68666         [BZ #5805]
68667         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68668         (scalbnf): Likewise.
68669         (scalbnl): Likewise.
68670         (scalbln): Likewise.
68671         (scalblnf): Likewise.
68672         (scalblnl): Likewise.
68673         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68674         (vwarnx): Likewise.
68675         (verr): Likewise.
68676         (verrx): Likewise.
68677         * manual/filesys.texi (telldir): Use braces around return type.
68678         * manual/llio.texi (mmap): Add space after comma.
68679         (mmap64): Likewise.
68680         * manual/math.texi (jn): Use @var{} on parameter names.
68681         (jnf): Likewise.
68682         (jnl): Likewise.
68683         (yn): Likewise.
68684         (ynf): Likewise.
68685         (ynl): Likewise.
68686         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68687         line.
68688         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68689         "...".
68690         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68691         (sched_get_priority_max): Likewise.
68692         * manual/signal.texi (sigvec): Add space after comma.
68693         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68694         names.
68695         (if_indextoname): Likewise.
68696         (if_freenameindex): Likewise.
68697         (sendto): Use ',' instead of '.' in prototype.
68698         * manual/startup.texi (syscall): Use @dots{} instead of literal
68699         "...".
68700         * manual/stdio.texi (__fpending): Separate initial words of
68701         paragraph from @deftypefun line.
68702         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68703         "...".
68704         (vsyslog): Use @var{} on parameter names.
68705         * manual/terminal.texi (stty): Use @var{} on parameter names.
68706         * manual/users.texi (getutmp): Use @var{} on parameter names.
68707         (getutmpx): Likewise.
68708
68709 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68710
68711         [BZ #6884]
68712         * manual/stdio.texi (fopen): Fix typos in description of
68713         ",ccs=STRING".
68714
68715 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68716
68717         [BZ #4026]
68718         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68719         get clock_id definition.
68720
68721 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68722
68723         [BZ #4822]
68724         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68725         (madvise): Cast every argument to void on its own.
68726
68727 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68728
68729         [BZ #9902]
68730         * manual/startup.texi (Exit Status): Fix typo.
68731
68732 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68733
68734         [BZ #10140]
68735         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68736         * manual/examples/argp-ex2.c: Likewise.
68737         * manual/examples/argp-ex3.c: Likewise.
68738
68739 2012-02-16  Richard Henderson  <rth@redhat.com>
68740
68741         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68742         * sysdeps/s390/s390-32/initfini.c: Remove.
68743         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68744         * sysdeps/s390/s390-64/initfini.c: Remove.
68745
68746 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68747
68748         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68749         compiler output for sysdeps/generic/initfini.c.
68750         * sysdeps/sh/elf/initfini.c: Remove file.
68751
68752 2012-02-16  David S. Miller  <davem@davemloft.net>
68753
68754         [BZ #11494]
68755         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68756
68757         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68758         * sysdeps/sparc/crti.S: New file.
68759         * sysdeps/sparc/crtn.S: New file.
68760         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68761         * sysdeps/sparc/sparc64/Makefile: Likewise.
68762
68763 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
68764
68765         [BZ #3335]
68766         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
68767
68768 2012-02-15  Roland McGrath  <roland@hack.frob.com>
68769
68770         [BZ #4822]
68771         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
68772
68773         * mach/devstream.c (cookie_io_functions_t): Macro removed.
68774         (write, read, close): Likewise.
68775         Patch by Aurelien Jarno <aurelien@aurel32.net>.
68776
68777 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
68778
68779         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
68780         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
68781         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
68782         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
68783         <bits/signalfd.h>.
68784         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
68785         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68786         bits/signalfd.h.
68787
68788 2012-02-14  Marek Polacek  <polacek@redhat.com>
68789
68790         * sysdeps/x86_64/crti.S: New file.
68791         * sysdeps/x86_64/crtn.S: New file.
68792         * sysdeps/x86_64/elf/initfini.c: Remove file.
68793
68794 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68795
68796         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
68797         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
68798         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
68799         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
68800         <bits/inotify.h>.
68801         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
68802         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68803         bits/inotify.h.
68804
68805 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68806
68807         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
68808         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
68809         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
68810         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
68811         <bits/eventfd.h>.
68812         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
68813         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68814         bits/eventfd.h.
68815
68816 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
68817
68818         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
68819         __feraiseexcept instead of feraiseexcept.
68820
68821         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
68822         nanosleep invocations.
68823         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
68824         strings, and add error checking for a nanosleep invocations.
68825
68826 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         Replace FSF snail mail address with URLs, as per GNU coding standards.
68829         Most of the snail mail addresses were wrong anyway, and omitting
68830         them makes the source code easier to maintain.  Almost all of the
68831         changes are to license notices and to locale LC_IDENTIFICATION
68832         addresses, except for this one:
68833         * manual/libc.texinfo: In "Published by", give the FSF's URL,
68834         not its snail mail address.
68835
68836 2012-02-09  Richard Henderson  <rth@twiddle.net>
68837
68838         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
68839         of kernel-features.h.
68840
68841         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
68842
68843 2012-02-08  Marek Polacek  <polacek@redhat.com>
68844
68845         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
68846         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
68847         * sysdeps/gnu/_G_config.h: Likewise.
68848         * sysdeps/generic/_G_config.h: Likewise.
68849
68850 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
68851
68852         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
68853         tests.
68854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68855
68856         * sysdeps/powerpc/powerpc32/crti.S: New file.
68857         * sysdeps/powerpc/powerpc32/crtn.S: New file.
68858         * sysdeps/powerpc/powerpc64/crti.S: New file.
68859         * sysdeps/powerpc/powerpc64/crtn.S: New file.
68860
68861         * Makeconfig (have-initfini): Don't set.
68862         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
68863         * configure.in (nopic_initfini): Don't substitute.
68864         * config.h.in (HAVE_INITFINI): Don't #undef.
68865         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
68866         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
68867
68868 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
68869
68870         Support crti.S and crtn.S provided directly by architectures.
68871         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
68872         [crti.S in sysdirs] (omit-deps): Likewise.
68873         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
68874         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
68875         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
68876         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
68877         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
68878         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
68879         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
68880         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
68881         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
68882         compiler output for sysdeps/generic/initfini.c.
68883         * sysdeps/i386/elf/Makefile: Remove file.
68884         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
68885
68886 2012-02-07  Marek Polacek  <polacek@redhat.com>
68887
68888         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
68889         * sysdeps/gnu/_G_config.h: Likewise.
68890         * sysdeps/mach/hurd/_G_config.h: Likewise.
68891
68892 2012-02-07  Marek Polacek  <polacek@redhat.com>
68893
68894         * math/Makefile (tests): Add tst-CMPLX2.
68895         * math/tst-CMPLX2.c: New file.
68896
68897 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
68898
68899         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68900
68901         * math/libm-test.inc (jn_test): Add missing L suffix.
68902
68903 2012-02-06  Marek Polacek  <polacek@redhat.com>
68904
68905         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
68906         * sysdeps/i386/fpu/e_powf.S: Likewise.
68907         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
68908         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
68909         * sysdeps/i386/fpu/e_acosh.S: Likewise.
68910         * sysdeps/i386/fpu/e_pow.S: Likewise.
68911         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
68912         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
68913         * sysdeps/i386/fpu/s_expm1.S: Likewise.
68914         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
68915         * sysdeps/i386/fpu/e_log2.S: Likewise.
68916         * sysdeps/i386/fpu/e_log2l.S: Likewise.
68917         * sysdeps/i386/fpu/e_scalb.S: Likewise.
68918         * sysdeps/i386/fpu/e_powl.S: Likewise.
68919         * sysdeps/i386/fpu/s_log1p.S: Likewise.
68920         * sysdeps/i386/fpu/e_log10f.S: Likewise.
68921         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
68922         * sysdeps/i386/fpu/e_logl.S: Likewise.
68923         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
68924         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
68925         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
68926         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
68927         * sysdeps/i386/fpu/e_log2f.S: Likewise.
68928         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
68929         * sysdeps/i386/fpu/e_log.S: Likewise.
68930         * sysdeps/i386/fpu/s_cexp.S: Likewise.
68931         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
68932         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
68933         * sysdeps/i386/fpu/e_logf.S: Likewise.
68934         * sysdeps/i386/fpu/e_log10l.S: Likewise.
68935         * sysdeps/i386/fpu/e_atanh.S: Likewise.
68936         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
68937         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
68938         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
68939         * sysdeps/i386/fpu/e_log10.S: Likewise.
68940         * sysdeps/i386/fpu/s_frexp.S: Likewise.
68941         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
68942         * sysdeps/i386/fpu/s_asinh.S: Likewise.
68943         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
68944         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
68945         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
68946         * sysdeps/i386/asm-syntax.h: Likewise.
68947         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
68948         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
68949         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
68950         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
68951         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
68952         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
68953         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
68954         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
68955         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
68956         * sysdeps/powerpc/sysdep.h: Likewise.
68957         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
68958         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
68959
68960 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68961
68962         [BZ #411]
68963         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
68964
68965 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68966
68967         * sysdeps/i386/sysdep.h: Include <features.h>.
68968         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
68969         version.
68970
68971 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
68972
68973         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
68974         Define.
68975         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
68976         LOAD_PIC_REG_STR.
68977
68978 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68979
68980         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
68981         (SETUP_PIC_REG): Use GET_PC_THUNK.
68982         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
68983         macro.
68984
68985 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68986
68987         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
68988         for non-PIC compilation.
68989         (SETUP_PIC_REG): Add .p2align directive.
68990         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
68991         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
68992         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
68993         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
68994         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
68995         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
68996         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
68997         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
68998         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
68999         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69000         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69001         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69002         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69003         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69004         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69005         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69006         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69007         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69008         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69009         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69010         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69011         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69012         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69013         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69014         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69015         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69016         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69017         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69018         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69019         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69020         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69021         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69022         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69023         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69024         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69025         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69026         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69027         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69028         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69029         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69030         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69031
69032 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69033
69034         * math/tst-CMPLX.c: Include <stdio.h>.
69035
69036 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69037
69038         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69039         float.
69040         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69041         * sysdeps/sparc/bits/mathdef.h: Likewise.
69042
69043 2012-01-31  Marek Polacek  <polacek@redhat.com>
69044
69045         * libio/libio.h: Don't define _PARAMS.
69046         * locale/programs/config.h: Don't define PARAMS.
69047         * stdlib/strtol_l.c: Likewise.
69048         (__strtol_l): Remove PARAMS from the prototype.
69049
69050 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69051
69052         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69053         names.  Just use the correct names.  Remove unnecessary wrapper
69054         functions.
69055         * malloc/arena.c: Likewise.
69056         * malloc/hooks.c: Likewise.
69057
69058         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69059         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69060         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69061
69062 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69063
69064         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69065         into tail calls.
69066         (update_get_addr): New function.
69067         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69068         GET_ADDR_MODULE parameter.
69069
69070 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69071
69072         * crypt/cert.c: Remove __STDC__ conditionals.
69073         * crypt/crypt-entry.c: Likewise.
69074         * crypt/crypt_util.c: Likewise.
69075         * libio/filedoalloc.c: Likewise.
69076         * libio/fileops.c: Likewise.
69077         * libio/genops.c: Likewise.
69078         * libio/iofclose.c: Likewise.
69079         * libio/iofdopen.c: Likewise.
69080         * libio/iofopen.c: Likewise.
69081         * libio/iofopen64.c: Likewise.
69082         * libio/iogetdelim.c: Likewise.
69083         * libio/iopopen.c: Likewise.
69084         * libio/obprintf.c: Likewise.
69085         * libio/oldfileops.c: Likewise.
69086         * libio/oldiofclose.c: Likewise.
69087         * libio/oldiofdopen.c: Likewise.
69088         * libio/oldiofopen.c: Likewise.
69089         * libio/oldiopopen.c: Likewise.
69090         * libio/wfiledoalloc.c: Likewise.
69091         * libio/wgenops.c: Likewise.
69092         * locale/programs/xmalloc.c: Likewise.
69093         * misc/syslog.c: Likewise.
69094         * stdio-common/xbug.c: Likewise.
69095         * string/memchr.c: Likewise.
69096         * string/memcmp.c: Likewise.
69097         * string/memrchr.c: Likewise.
69098         * string/rawmemchr.c: Likewise.
69099         * sysdeps/posix/getcwd.c: Likewise.
69100         * time/strftime_l.c: Likewise.
69101
69102 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69103
69104         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69105         * config.make.in (config-cflags-sse2avx): Define.
69106         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69107         Fix typo.
69108
69109 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69110
69111         * scripts/config.guess: Update from upstream config git repository.
69112         * scripts/config.sub: Likewise.
69113
69114 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69115
69116         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69117         (EM_NUM): Update.
69118         (R_TILEPRO_*, R_TILEGX_*): New macros.
69119
69120         * scripts/firstversions.awk: Fix bug in version range handling.
69121
69122         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69123
69124         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69125
69126         * include/sys/epoll.h: New file.
69127         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69128         libc_hidden_def.
69129
69130 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69131
69132         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69133         Avoid unnecessary __WORDSIZE == 64 test.
69134         (fmaxf): Use VEX format if possible.
69135         (fmax): Likewise.
69136         (fminf): Likewise.
69137         (fmin): Likewise.
69138
69139         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69140         * math/math_private.h: Remove libc_fegetround* and
69141         libc_fesetround*.
69142         * sysdeps/i386/configure.in: Check for -msse2avx.
69143         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69144         also if SSE2AVX is defined.
69145         Remove libc_fegetround* and libc_fesetround*.
69146         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69147         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69148         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69149         of HAS_YMM_USABLE.
69150         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69151         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69152         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69153         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69154         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69155
69156         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69157
69158 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69159
69160         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69161         size is not set.
69162         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69163
69164 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69165
69166         [BZ #13618]
69167         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69168         relocation.
69169         * Makeconfig (libm): Define.
69170         * elf/Makefile: Add rules to build and run tst-relsort1.
69171         * elf/tst-relsort1.c: New file.
69172         * elf/tst-relsort1mod1.c: New file.
69173         * elf/tst-relsort1mod2.c: New file.
69174
69175 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69176
69177         * math/s_ldexp.c: Remove __STDC__ conditionals.
69178         * math/s_ldexpf.c: Likewise.
69179         * math/s_ldexpl.c: Likewise.
69180         * math/s_nextafter.c: Likewise.
69181         * math/s_nexttowardf.c: Likewise.
69182         * math/s_significand.c: Likewise.
69183         * math/s_significandf.c: Likewise.
69184         * math/s_significandl.c: Likewise.
69185         * math/w_jnl.c: Likewise.
69186         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69187         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69188         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69189         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69190         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69191         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69192         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69193         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69194         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69195         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69196         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69197         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69198         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69199         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69200         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69201         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69202         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69203         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69204         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69205         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69206         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69207         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69208         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69209         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69210         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69211         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69212         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69213         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69214         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69215         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69216         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69217         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69218         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69219         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69220         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69221         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69222         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69223         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69224         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69225         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69226         * sysdeps/ieee754/k_standard.c: Likewise.
69227         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69228         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69229         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69230         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69231         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69232         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69233         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69234         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69235         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69236         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69237         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69238         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69239         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69240         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69241         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69242         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69243         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69244         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69245         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69246         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69247         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69248         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69249         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69250         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69251         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69252         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69253         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69254         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69255         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69256         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69257         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69258         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69259         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69260         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69261         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69262         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69263         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69264         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69265         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69266         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69267         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69268         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69269         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69270         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69271         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69272         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69273         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69274         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69275         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69276         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69277         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69278         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69279         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69280         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69281         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69282         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69283         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69284         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69285         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69286         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69287         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69288         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69289         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69290         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69291         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69292         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69293         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69294         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69295         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69296         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69297         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69298         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69299         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69300         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69301         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69302         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69303         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69304         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69305         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69306         * sysdeps/ieee754/s_matherr.c: Likewise.
69307         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69308         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69309         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69310         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69311
69312 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69313
69314         * crypt/md5.h: Remove __STDC__ conditionals.
69315         * libio/libioP.h: Likewise.
69316         * locale/programs/config.h: Likewise.
69317         * sysdeps/generic/sysdep.h: Likewise.
69318         * sysdeps/i386/asm-syntax.h: Likewise.
69319         * sysdeps/s390/asm-syntax.h: Likewise.
69320         * sysdeps/unix/sysdep.h: Likewise.
69321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69323
69324 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69325
69326         * libio/libio.h: Remove __STDC__ conditionals.
69327         * malloc/obstack.h: Likewise.
69328         * math/complex.h: Likewise.
69329         * math/math.h: Likewise.
69330         * sysdeps/generic/_G_config.h: Likewise.
69331         * sysdeps/gnu/_G_config.h: Likewise.
69332         * sysdeps/mach/hurd/_G_config.h: Likewise.
69333         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69334         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69335         * sysdeps/sparc/bits/mathdef.h: Likewise.
69336
69337 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69338
69339         [BZ #13583]
69340         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69341         Clean up HAS_* macros.
69342         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69343         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69344         possible.
69345         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69346         HAS_AVX.
69347         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69348         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69349         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69350         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69351         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69352
69353 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69354
69355         * elf/tst-unique3.cc (gets): Remove declaration.
69356         * elf/tst-unique3lib.cc (gets): Likewise.
69357         * elf/tst-unique3lib2.cc (gets): Likewise.
69358         * elf/tst-unique4.cc (gets): Likewise.
69359
69360 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69361
69362         * include/stdio.h: Add C++ protection.  Add gets declarations and
69363         definitions.
69364         * debug/tst-chk1.c: Don't declare gets here.
69365         * stdio-common/tst-gets.c: Likewise.
69366
69367 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69368
69369         * posix/glob: Remove directory.
69370
69371 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69372
69373         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69374
69375 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69376
69377         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69378         of the non-standard EPFNOSUPPORT.
69379
69380 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69381
69382         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69383         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69384         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69385
69386 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69387
69388         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69389
69390 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69391
69392         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69393         transient errors.
69394         * nscd/grpcache.c (cache_addgr): Likewise.
69395         * nscd/hstcache.c (cache_addhst): Likewise.
69396         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69397         * nscd/pwdcache.c (cache_addpw): Likewise.
69398         * nscd/servicescache.c (cache_addserv): Likewise.
69399
69400 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69401
69402         * malloc/malloc.c: Various cleanups.
69403         * malloc/hooks.c: Likewise.
69404
69405         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69406         * stdlib/bug-fmtmsg1.c: New file.
69407
69408         * stdlib/fmtmsg.c (init): Add missing unlock.
69409         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69410
69411 2012-01-12  Marek Polacek  <polacek@redhat.com>
69412
69413         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69414         and _GNU_SOURCE.
69415
69416 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69417
69418         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69419         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69420         macro to ensure uniqueness of label name.
69421         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69422         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69423
69424 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69425
69426         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69427
69428         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69429         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69430         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69431         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69432
69433 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69434
69435         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69436
69437         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69438         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69439         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69440
69441         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69442
69443         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69444         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69445         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69446         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69447
69448         * math/bits/math-finite.h: Add ldexp support.
69449
69450 2012-01-10  Marek Polacek  <polacek@redhat.com>
69451
69452         * locale/programs/localedef.h (show_archive_content): Add noreturn
69453         attribute.
69454
69455 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69456
69457         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69458
69459 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69460
69461         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69462
69463         * io/Makefile (headers): Add bits/poll2.h.
69464
69465 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69466
69467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69468         typo #include statement.
69469
69470 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69471
69472         * include/sys/cdefs.h: Define __attribute_alloc_size.
69473         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69474         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69475         * elf/pldd.c: Likewise.
69476         * iconv/iconv_charmap.c: Likewise.
69477         * iconv/iconvconfig.c: Likewise.
69478         * iconv/strtab.c: Likewise.
69479         * locale/programs/locale.c: Likewise.
69480         * locale/programs/localedef.h: Likewise.
69481         * locale/programs/simple-hash.c: Likewise.
69482         * nscd/nscd.h: Likewise.
69483         * nss/makedb.c: Likewise.
69484         * sysdeps/generic/ldconfig.h: Likewise.
69485         * locale/programs/localedef.c: Remove xmalloc prototype.
69486         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69487
69488 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69489
69490         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69491         appropriate.
69492
69493 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69494
69495         * math/Makefile (tests): Add tst-CMPLX.
69496         * math/tst-CMPLX.c: New file.
69497
69498         * math/complex.h (CMPLXL): Fix typo.
69499
69500         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69501         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69502         GLIBC_2.16.
69503         * debug/tst-chk1.c: Add poll and ppoll tests.
69504         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69505         * include/sys/poll.h: Add hidden proto for ppoll.
69506         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69507         * sysdeps/mach/hurd/ppoll.c: Likewise.
69508         * io/ppoll.c: Likewise.
69509         * debug/poll_chk.c: New file.
69510         * debug/ppoll_chk.c: New file.
69511         * include/bits/poll2.h: New file.
69512         * io/bits/poll2.h: New file.
69513
69514         [BZ #1350]
69515         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69516
69517         * configure.in: static is always set to yes.  Remove.
69518         * config.make.in: Don't set build-static.
69519         * Makeconfig: Remove use of build-static.
69520         * dlfcn/Makefile: Likewise.
69521         * elf/Makefile: Likewise.
69522         * math/Makefile: Likewise.
69523         * misc/Makefile: Likewise.
69524         * nptl/Makefile: Likewise.
69525         * sysdeps/mach/hurd/Makefile: Likewise.
69526
69527         * configure.in: PWD_P is not used anymore.
69528         * config.make.in: Remove PWD_P entry.
69529
69530         * configure.in: Remove last remnants of RANLIB.
69531         No need to check for signed size_t anymore.
69532         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69533         and IA-64.
69534         Remove __builtin_expect test because we require at least gcc 3.4.
69535         * aclocal.m4: Likewise.
69536
69537         * wcsmbs/mbrtoc16.c: Implement using towc function.
69538         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69539         * wcsmbs/wcsmbsload.c: Likewise.
69540         * iconv/gconv_simple.c: Likewise.
69541         * iconv/gconv_int.h: Likewise.
69542         * iconv/gconv_builtin.h: Likewise.
69543         * iconv/iconv_prog.c: Remove CHAR16 handling.
69544
69545         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69546
69547         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69548
69549         * configure.in: Remove --with-elf and --enable-bounded options.
69550         Dont set base_machine for ia64.  More non-ELF conditions removed.
69551         Remove testing and setting of leading underscore information.
69552         * config.make.in (build-bounded): Set to no.
69553         * config.h.in: Remove NO_UNDERSCORES entry.
69554         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69555         them.
69556         * csu/start.c: Remove !NO_UNDERSCORE code.
69557         * locale/localeinfo.h: Likewise.
69558         * sysdeps/generic/machine-gmon.h: Likewise.
69559         * sysdeps/generic/sysdep.h: Likewise.
69560         * sysdeps/i386/sysdep.h: Likewise.
69561         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69562         * sysdeps/mach/sysdep.h: Likewise.
69563         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69564         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69565         * sysdeps/sh/sysdep.h: Likewise.
69566         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69567         * sysdeps/unix/i386/sysdep.S: Likewise.
69568         * sysdeps/unix/sparc/start.c: Likewise.
69569         * sysdeps/unix/sparc/sysdep.S: Likewise.
69570         * sysdeps/unix/sparc/sysdep.h: Likewise.
69571         * sysdeps/unix/start.c: Likewise.
69572         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69573         * sysdeps/x86_64/sysdep.h: Likewise.
69574
69575 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69576
69577         [BZ #13553]
69578         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69579         for non-gcc.
69580         * argp/argp-fmtstream.h: Use const instead __const.
69581         * argp/argp.h: Likewise.
69582         * assert/assert.h: Likewise.
69583         * bits/fenv.h: Likewise.
69584         * bits/sched.h: Likewise.
69585         * bits/sigset.h: Likewise.
69586         * bits/sigthread.h: Likewise.
69587         * catgets/nl_types.h: Likewise.
69588         * conform/data/pthread.h-data: Likewise.
69589         * crypt/crypt-private.h: Likewise.
69590         * crypt/crypt.h: Likewise.
69591         * crypt/crypt_util.c: Likewise.
69592         * ctype/ctype.h: Likewise.
69593         * debug/execinfo.h: Likewise.
69594         * debug/mbsnrtowcs_chk.c: Likewise.
69595         * debug/mbsrtowcs_chk.c: Likewise.
69596         * debug/wcsnrtombs_chk.c: Likewise.
69597         * debug/wcsrtombs_chk.c: Likewise.
69598         * debug/wcstombs_chk.c: Likewise.
69599         * dirent/dirent.h: Likewise.
69600         * dlfcn/dlfcn.h: Likewise.
69601         * elf/neededtest4.c: Likewise.
69602         * grp/grp.h: Likewise.
69603         * gshadow/gshadow.h: Likewise.
69604         * iconv/gconv.h: Likewise.
69605         * iconv/gconv_int.h: Likewise.
69606         * iconv/gconv_simple.c: Likewise.
69607         * iconv/iconv.h: Likewise.
69608         * iconv/loop.c: Likewise.
69609         * iconv/skeleton.c: Likewise.
69610         * include/aio.h: Likewise.
69611         * include/aliases.h: Likewise.
69612         * include/argz.h: Likewise.
69613         * include/arpa/inet.h: Likewise.
69614         * include/assert.h: Likewise.
69615         * include/dirent.h: Likewise.
69616         * include/dlfcn.h: Likewise.
69617         * include/execinfo.h: Likewise.
69618         * include/fcntl.h: Likewise.
69619         * include/fenv.h: Likewise.
69620         * include/glob.h: Likewise.
69621         * include/grp.h: Likewise.
69622         * include/libintl.h: Likewise.
69623         * include/mntent.h: Likewise.
69624         * include/netdb.h: Likewise.
69625         * include/pwd.h: Likewise.
69626         * include/rpc/netdb.h: Likewise.
69627         * include/sched.h: Likewise.
69628         * include/search.h: Likewise.
69629         * include/shadow.h: Likewise.
69630         * include/signal.h: Likewise.
69631         * include/stdio.h: Likewise.
69632         * include/stdlib.h: Likewise.
69633         * include/string.h: Likewise.
69634         * include/sys/socket.h: Likewise.
69635         * include/sys/stat.h: Likewise.
69636         * include/sys/statfs.h: Likewise.
69637         * include/sys/statvfs.h: Likewise.
69638         * include/sys/syslog.h: Likewise.
69639         * include/sys/time.h: Likewise.
69640         * include/sys/uio.h: Likewise.
69641         * include/time.h: Likewise.
69642         * include/unistd.h: Likewise.
69643         * include/utmp.h: Likewise.
69644         * include/wchar.h: Likewise.
69645         * include/wctype.h: Likewise.
69646         * inet/aliases.h: Likewise.
69647         * inet/arpa/inet.h: Likewise.
69648         * inet/netinet/ether.h: Likewise.
69649         * inet/netinet/in.h: Likewise.
69650         * intl/libintl.h: Likewise.
69651         * io/bits/fcntl2.h: Likewise.
69652         * io/fcntl.h: Likewise.
69653         * io/ftw.h: Likewise.
69654         * io/sys/poll.h: Likewise.
69655         * io/sys/stat.h: Likewise.
69656         * io/sys/statfs.h: Likewise.
69657         * io/sys/statvfs.h: Likewise.
69658         * io/utime.h: Likewise.
69659         * libio/bits/stdio.h: Likewise.
69660         * libio/bits/stdio2.h: Likewise.
69661         * libio/libio.h: Likewise.
69662         * libio/libioP.h: Likewise.
69663         * libio/stdio.h: Likewise.
69664         * locale/lc-ctype.c: Likewise.
69665         * locale/locale.h: Likewise.
69666         * login/utmp.h: Likewise.
69667         * malloc/arena.c: Likewise.
69668         * malloc/malloc.c: Likewise.
69669         * malloc/malloc.h: Likewise.
69670         * malloc/mcheck.c: Likewise.
69671         * malloc/mtrace.c: Likewise.
69672         * math/bits/mathcalls.h: Likewise.
69673         * math/fenv.h: Likewise.
69674         * math/math_private.h: Likewise.
69675         * misc/bits/error.h: Likewise.
69676         * misc/bits/syslog.h: Likewise.
69677         * misc/err.h: Likewise.
69678         * misc/error.h: Likewise.
69679         * misc/fstab.h: Likewise.
69680         * misc/mntent.h: Likewise.
69681         * misc/regexp.h: Likewise.
69682         * misc/search.h: Likewise.
69683         * misc/sgtty.h: Likewise.
69684         * misc/sys/mman.h: Likewise.
69685         * misc/sys/syslog.h: Likewise.
69686         * misc/sys/uio.h: Likewise.
69687         * misc/sys/xattr.h: Likewise.
69688         * misc/ttyent.h: Likewise.
69689         * nis/rpcsvc/ypclnt.h: Likewise.
69690         * nss/nss.h: Likewise.
69691         * posix/bits/unistd.h: Likewise.
69692         * posix/fnmatch.h: Likewise.
69693         * posix/glob.h: Likewise.
69694         * posix/sched.h: Likewise.
69695         * posix/spawn.h: Likewise.
69696         * posix/sys/wait.h: Likewise.
69697         * posix/unistd.h: Likewise.
69698         * posix/wordexp.h: Likewise.
69699         * pwd/pwd.h: Likewise.
69700         * resolv/netdb.h: Likewise.
69701         * resource/sys/resource.h: Likewise.
69702         * rt/aio.h: Likewise.
69703         * rt/bits/mqueue2.h: Likewise.
69704         * rt/mqueue.h: Likewise.
69705         * shadow/shadow.h: Likewise.
69706         * signal/signal.h: Likewise.
69707         * socket/send.c: Likewise.
69708         * socket/sendto.c: Likewise.
69709         * socket/sys/socket.h: Likewise.
69710         * stdio-common/printf.h: Likewise.
69711         * stdlib/bits/stdlib.h: Likewise.
69712         * stdlib/fmtmsg.h: Likewise.
69713         * stdlib/monetary.h: Likewise.
69714         * stdlib/stdlib.h: Likewise.
69715         * stdlib/ucontext.h: Likewise.
69716         * streams/stropts.h: Likewise.
69717         * string/argz.h: Likewise.
69718         * string/bits/string2.h: Likewise.
69719         * string/string.h: Likewise.
69720         * string/strings.h: Likewise.
69721         * sunrpc/rpc/auth.h: Likewise.
69722         * sunrpc/rpc/auth_des.h: Likewise.
69723         * sunrpc/rpc/clnt.h: Likewise.
69724         * sunrpc/rpc/netdb.h: Likewise.
69725         * sunrpc/rpc/pmap_clnt.h: Likewise.
69726         * sunrpc/rpc/xdr.h: Likewise.
69727         * sysdeps/generic/inttypes.h: Likewise.
69728         * sysdeps/generic/net/if.h: Likewise.
69729         * sysdeps/generic/sys/swap.h: Likewise.
69730         * sysdeps/gnu/net/if.h: Likewise.
69731         * sysdeps/gnu/utmpx.h: Likewise.
69732         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69733         * sysdeps/i386/i486/bits/string.h: Likewise.
69734         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69735         * sysdeps/s390/bits/string.h: Likewise.
69736         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69737         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69738         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69739         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69740         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69741         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69742         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69743         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69744         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69745         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69746         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69747         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69748         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69749         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69750         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69751         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69752         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69753         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69754         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69755         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69756         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69757         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69758         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69759         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69760         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69761         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69762         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69763         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69764         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
69765         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
69766         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
69767         * sysvipc/sys/ipc.h: Likewise.
69768         * sysvipc/sys/msg.h: Likewise.
69769         * sysvipc/sys/sem.h: Likewise.
69770         * sysvipc/sys/shm.h: Likewise.
69771         * termios/termios.h: Likewise.
69772         * time/sys/time.h: Likewise.
69773         * time/time.h: Likewise.
69774         * wcsmbs/bits/wchar2.h: Likewise.
69775         * wcsmbs/uchar.h: Likewise.
69776         * wcsmbs/wchar.h: Likewise.
69777         * wctype/wctype.h: Likewise.
69778
69779         [BZ #13551]
69780         * Makeconfig: Remove all but ELF support including AIX support.
69781         * Makerules: Likewise.
69782         * config.h.in: Likewise.
69783         * config.make.in: Likewise.
69784         * configure: Likewise.
69785         * configure.in: Likewise.
69786         * csu/Makefile: Likewise.
69787         * csu/version.c: Likewise.
69788         * debug/Makefile: Likewise.
69789         * dlfcn/Makefile: Likewise.
69790         * elf/Makefile: Likewise.
69791         * extra-lib.mk: Likewise.
69792         * iconv/Makefile: Likewise.
69793         * include/libc-symbols.h: Likewise.
69794         * include/shlib-compat.h: Likewise.
69795         * resolv/Makefile: Likewise.
69796         * resolv/res_libc.c: Likewise.
69797         * rt/Makefile: Likewise.
69798         * sysdeps/i386/asm-syntax.h: Likewise.
69799         * sysdeps/i386/sysdep.h: Likewise.
69800         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69801         * sysdeps/mach/sysdep.h: Likewise.
69802         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
69803         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
69804         * sysdeps/s390/asm-syntax.h: Likewise.
69805         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69806         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69807         * sysdeps/sh/sysdep.h: Likewise.
69808         * sysdeps/unix/sparc/sysdep.h: Likewise.
69809         * sysdeps/wordsize-32/divdi3.c: Likewise.
69810         * sysdeps/x86_64/sysdep.h: Likewise.
69811
69812         * argp/Versions: Remove _argp_unlock_xxx.
69813
69814         [BZ #13559]
69815         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
69816         * abilist/libBrokenLocale.abilist: Likewise.
69817         * abilist/libanl.abilist: Likewise.
69818         * abilist/libc.abilist: Likewise.
69819         * abilist/libcrypt.abilist: Likewise.
69820         * abilist/libdl.abilist: Likewise.
69821         * abilist/libm.abilist: Likewise.
69822         * abilist/libnsl.abilist: Likewise.
69823         * abilist/libpthread.abilist: Likewise.
69824         * abilist/libresolv.abilist: Likewise.
69825         * abilist/librt.abilist: Likewise.
69826         * abilist/libthread_db.abilist: Likewise.
69827         * abilist/libutil.abilist: Likewise.
69828         * abilist/libnss_db.abilist: New file.
69829
69830         * scripts/abilist.awk: Add support for indirect functions.
69831
69832         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
69833
69834         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
69835
69836         * shlib-versions: Remove entries for ports architectures.
69837
69838         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
69839         files in ports.
69840         * elf/stackguard-macros.h: Remove support for IA-64.
69841         * elf/tst-auditmod1.c: Likewise.
69842         * sysdeps/generic/ldsodefs.h: Likewise.
69843
69844         * sysdeps/unix/sysv/linux/configure.in: Ports should define
69845         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
69846         configure files.
69847
69848         [BZ #13552]
69849         * configure.in: Remove --enable-omitfp support.
69850         * FAQ.in: Adjust.
69851         * config.make.in: Likewise.
69852         * Makeconfig: Likewise.
69853         * manual/install.texi: Likewise.
69854
69855         In case anyone cares, the IA-64 architecture could move to ports.
69856         * sysdeps/ia64/*: Removed.
69857         * sysdeps/unix/sysv/linux/ia64/*: Removed.
69858         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
69859
69860         [BZ #13555]
69861         * configure.in: Remove entries for unsupported architectures.
69862
69863         [BZ #13533]
69864         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
69865         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
69866         routines.
69867         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
69868         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
69869         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
69870         fall back to using wcrtomb.
69871         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
69872         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
69873         renaming.
69874         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
69875         * wcsmbs/tst-c16c32-1.c: New file.
69876
69877         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
69878         local variable.
69879
69880         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
69881
69882         * elf/tst-unique3.cc: Add explicit declaration of gets.
69883         * elf/tst-unique3lib.cc: Likewise.
69884         * elf/tst-unique3lib2.cc: Likewise.
69885         * elf/tst-unique4.cc: Likewise.
69886
69887         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
69888
69889 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
69890
69891         [BZ #13566]
69892         * assert/assert.h (static_assert): Don't define for C++.
69893         * libio/stdio.h (gets): Do declare for C++ <= C++11.
69894         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
69895
69896 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
69897
69898         * iconv/loop.c (single loop): Fix assertion in storing of
69899         remaining bytes.
69900
69901         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
69902
69903 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
69904
69905         * posix/getconf.c: Update copyright year.
69906         * nss/getent.c: Likewise.
69907         * nss/makedb.c: Likewise.
69908         * iconv/iconvconfig.c: Likewise.
69909         * iconv/iconv_prog.c: Likewise.
69910         * elf/ldconfig.c: Likewise.
69911         * elf/pldd.c: Likewise.
69912         * elf/sotruss.ksh: Likewise.
69913         * catgets/gencat.c: Likewise.
69914         * csu/version.c: Likewise.
69915         * elf/ldd.bash.in: Likewise.
69916         * elf/sprof.c (print_version): Likewise.
69917         * locale/programs/locale.c: Likewise.
69918         * locale/programs/localedef.c: Likewise.
69919         * login/programs/pt_chown.c: Likewise.
69920         * nscd/nscd.c (print_version): Likewise.
69921         * debug/xtrace.sh: Likewise.
69922         * malloc/memusage.sh: Likewise.
69923         * malloc/mtrace.pl: Likewise.
69924         * debug/catchsegv.sh: Likewise.
69925
69926 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
69927
69928         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
69929         pure attribute.
69930
69931 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
69932
69933         [BZ #13533]
69934         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
69935         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
69936         transformations.
69937         * iconv/gconv_int.h: Likewise.
69938         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
69939         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
69940         from libc for GLIBC_2.16.
69941         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
69942         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
69943         * wcsmbs/uchar.h: Really define mbstate_t.
69944         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
69945         * wcsmbs/c16rtomb.c: New file.
69946         * wcsmbs/mbrtoc16.c: New file.
69947         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
69948         for C/POSIX locale.
69949         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
69950         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
69951
69952         * wcsmbs/wchar.h: Add missing __restrict.
69953
69954 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69955
69956         [BZ #13532]
69957         * time/Makefile (routines): Add timespec_get.
69958         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
69959         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
69960         timespec for ISO C11.
69961         * time/timespec_get.c: New file.
69962         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
69963         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
69964
69965         [BZ #13531]
69966         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
69967         * stdlib/stdlib.h: Declare aligned_alloc.
69968         * Versions.def: Add GLIBC_2.16 for libc.
69969         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
69970
69971         [BZ 13527]
69972         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
69973         ISO C11.
69974
69975         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
69976         code.
69977
69978         [BZ #13528]
69979         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
69980
69981         [BZ #13529]
69982         * assert/assert.h (static_assert): Define.
69983
69984         * version.h: Update for 2.16 development version.
69985
69986         [BZ #13526]
69987         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
69988         _ISOC11_SOURCE.
69989
69990         * version.h (RELEASE): Bump for 2.15 release.
69991         * include/features.h (__GLIBC_MINOR__): Bump to 15.
69992
69993         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
69994         Patch by Marek Polacek <mpolacek@redhat.com>.
69995
69996         * bits/byteswap.h: Protect long long constants with __extension__.
69997         * sysdeps/i386/bits/byteswap.h: Likewise.
69998         * sysdeps/ia64/bits/byteswap.h: Likewise.
69999         * sysdeps/s390/bits/byteswap.h: Likewise.
70000         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70001
70002 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70003
70004         [BZ #13540]
70005         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70006         destination buffer.
70007         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70008
70009 2011-12-23  Marek Polacek  <polacek@redhat.com>
70010
70011         * elf/dl-addr.c (determine_info): Add inline keyword.
70012         * elf/tst-auditmod4b.c (check_avx): Likewise.
70013         * elf/tst-auditmod6b.c (check_avx): Likewise.
70014         * elf/tst-auditmod6c.c (check_avx): Likewise.
70015         * elf/tst-auditmod7b.c (check_avx): Likewise.
70016
70017 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70018
70019         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70020         !__SSE_MATH__.
70021
70022 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70023
70024         [BZ #13540]
70025         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70026         processing for last bytes.
70027
70028 2011-08-06  Bruno Haible  <bruno@clisp.org>
70029
70030         [BZ #13061]
70031         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70032         U+0385, not to U+1FEE.
70033
70034         [BZ #13062]
70035         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70036         entry for U+00A5 U+0301.
70037
70038 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70039
70040         [BZ #13166]
70041         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70042         buffer for the output is too small.
70043
70044         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70045         optimization.
70046
70047         [BZ #13185]
70048         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70049         SSE flags if possible.
70050
70051 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70052
70053         [BZ #13540]
70054         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70055         processing for last bytes.
70056
70057 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70058
70059         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70060         (syscall-list-default-options, syscall-list-default-condition)
70061         (syscall-list-includes): Define.
70062         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70063         list of ABIs and options and #if conditions for each ABI.  Do not
70064         handle common syscalls between ABIs specially.
70065         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70066         Remove.
70067         (syscall-list-variants, syscall-list-32bit-options)
70068         (syscall-list-32bit-condition, syscall-list-64bit-options)
70069         (syscall-list-64bit-condition): Define.
70070         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70071         (syscall-list-variants, syscall-list-32bit-options)
70072         (syscall-list-32bit-condition, syscall-list-64bit-options)
70073         (syscall-list-64bit-condition): Define.
70074         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70075         Remove.
70076         (syscall-list-variants, syscall-list-32bit-options)
70077         (syscall-list-32bit-condition, syscall-list-64bit-options)
70078         (syscall-list-64bit-condition): Define.
70079         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70080         Remove.
70081         (syscall-list-variants, syscall-list-32bit-options)
70082         (syscall-list-32bit-condition, syscall-list-64bit-options)
70083         (syscall-list-64bit-condition): Define.
70084
70085 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70086
70087         * locale/iso-639.def: Add brx entry.
70088
70089         [BZ #13328]
70090         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70091         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70092
70093         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70094         __feraiseexcept_renamed.
70095
70096 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70097
70098         [BZ #13538]
70099         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70100         EPOLLET with unsigned values.
70101         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70102         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70103
70104         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70105         to large cancellation.
70106         * math/s_cacoshf.c: Likewise.
70107         * math/s_cacoshl.c: Likewise.
70108
70109 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70110
70111         [BZ #13305]
70112         [BZ #12786]
70113         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70114         * math/s_cacoshf.c: Likewise.
70115         * math/s_cacoshl.c: Likewise.
70116
70117 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70118
70119         [BZ #13439]
70120         * iconv/gconv.h: Define __GCONV_SWAP.
70121         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70122         * iconvdata/utf-16.c: Likewise.
70123         * iconvdata/utf-32.c: Likewise.
70124
70125 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70126
70127         [BZ #13524]
70128         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70129         numerator after shifting it by one limb.
70130
70131 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70132
70133         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70134         under [__USE_EXTERN_INLINES].
70135
70136 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70137
70138         [BZ #13446]
70139         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70140
70141 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70142
70143         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70144         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70145         optimized code.
70146         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70147         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70148         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70149         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70150         for strncasecmp/strncasecmp_l compilation.
70151         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70152         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70153
70154 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70155
70156         [BZ #13484]
70157         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70158         of __asm__.
70159
70160 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70161
70162         [BZ #13506]
70163         * time/tzfile.c (__tzfile_read): Check values from file header.
70164
70165 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70166
70167         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70168         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70169         * powerpc/powerpc32/dl-start.S: Likewise.
70170         * powerpc/powerpc32/elf/start.S: Likewise.
70171         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70172         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70173         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70174         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70175         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70176         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70177         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70178         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70179         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70180         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70181         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70182         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70183         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70184         * powerpc/powerpc32/memset.S: Likewise.
70185         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70186         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70187         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70188         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70189         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70190         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70191         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70192         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70193         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70194         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70195         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70196         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70197         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70198
70199 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70200
70201         * math/libm-test.inc: Added more nearbyint tests.
70202         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70203         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70204         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70205         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70206
70207 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70208
70209         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70210         FD_CLOEXEC.
70211
70212 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70213
70214         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70215         Add wcscpy-ssse3 wcscpy-c.
70216         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70217         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70218         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70219         * sysdeps/x86_64/wcschr.S: New file.
70220         * sysdeps/x86_64/wcsrchr.S: New file.
70221         * string/test-strcmp.c: Remove checking of wcscmp function for
70222         wrong alignments.
70223         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70224         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70225         wcsrchr-sse2 wcsrchr-c.
70226         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70227         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70228         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70229         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70230         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70231         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70232         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70233         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70234         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70235         * wcsmbc/wcschr.c (WCSCHR): New macro.
70236
70237 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70238
70239         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70240         * wcsmbs/test-wcsrchr.c: New file.
70241         * string/test-strrchr.c: Add wcsrchr support.
70242         (WIDE): New macro.
70243         * wcsmbs/test-wcscpy.c: New file.
70244         * string/test-strcpy.c: Add wcscpy support.
70245         (WIDE): New macro.
70246
70247 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70248
70249         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70250         the inner loop.
70251
70252 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70253
70254         [BZ #13472]
70255         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70256
70257 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70258
70259         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70260         Minor optimizations.
70261
70262         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70263         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70264         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70265
70266 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70267
70268         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70269         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70270         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70271         for gcc to avoid warnings.
70272         * inet/Makefile (tests): Add tst-checks.
70273         * inet/tst-checks.c: New file.
70274
70275         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70276         warning.
70277
70278         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70279         __wmemcmp_sse2.
70280
70281         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70282         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70283
70284         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70285
70286 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70287
70288         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70289         problem.
70290
70291         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70292
70293 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70294
70295         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70296         conditional on GCC version.
70297         (__arch_compare_and_exchange_val_8_acq)
70298         (__arch_compare_and_exchange_val_16_acq)
70299         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70300         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70301         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70302
70303 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70304
70305         * sysdeps/sh/backtrace.c: New file.
70306
70307 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70308
70309         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70310         parenthesis.
70311
70312 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70313
70314         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70315         falling back to utime.
70316
70317 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70318
70319         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70320         expectations for float.
70321
70322 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70323
70324         * locale/weight.h (findidx): Add parameter len.
70325         * locale/weightwc.h (findidx): Likewise.
70326         * posix/fnmatch_loop.c (FCT): Adjust caller.
70327         * posix/regcomp.c (build_equiv_class): Likewise.
70328         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70329         * posix/regexec.c (check_node_accept_bytes): Likewise.
70330         * string/strcoll_l.c (STRCOLL): Likewise.
70331         * string/strxfrm_l.c (STRXFRM): Likewise.
70332
70333 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70334
70335         * Makefile.in: Remove CVSOPT handling.
70336         * configure.in: Remove use of AC_REVISION.
70337         * iconvdata/Makefile (distribute): No need to filter out CVS.
70338         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70339         handling.
70340
70341 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70342
70343         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70344         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70345         [USE_AS_STRNCASECMP_L]: Likewise.
70346         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70347         NO_TLS_DIRECT_SEG_REFS.
70348         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70349         Fix argument offsets for non-PIC.
70350         [USE_AS_STRNCASECMP_L]: Likewise.
70351         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70352         NO_TLS_DIRECT_SEG_REFS.
70353
70354 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70355
70356         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70357         O_CLOEXEC.
70358         * locale/loadlocale.c (_nl_load_locale): Likewise.
70359
70360 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70361
70362         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70363         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70364         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70365         (SYSCALL_GETTIME): Set errno on error.
70366
70367         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70368         count references to noai6ai_cached.
70369
70370 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70371
70372         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70373
70374         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70375         FD_CLOEXEC for /proc/self/maps.
70376
70377         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70378         FD_CLOEXEC for /proc/meminfo.
70379
70380         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70381         gai.conf.
70382
70383         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70384         FD_CLOEXEC for given file.
70385
70386         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70387
70388         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70389         FD_CLOEXEC for /etc/hosts.
70390         (_gethtent): Likewise.
70391
70392         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70393
70394         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70395         cancellation and set FD_CLOEXEC for /etc/netgroup.
70396
70397         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70398         reading /etc/publickey.
70399
70400         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70401         allow cancellation when reading /etc/group.
70402
70403         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70404         cancellation.
70405         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70406
70407         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70408         when using data file.
70409
70410         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70411
70412         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70413         (write_nis_obj): Use "c" and "e" in fopen.
70414
70415         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70416
70417         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70418
70419         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70420
70421         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70422
70423         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70424         locale.alias.
70425
70426         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70427
70428         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70429
70430         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70431
70432         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70433         file parsing and set FD_CLOEXEC.
70434
70435 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70436
70437         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70438
70439 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70440
70441         * malloc/arena.c (arena_get2): Don't call reused_arena when
70442         _int_new_arena failed.
70443
70444 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70445
70446         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70447         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70448         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70449         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70450         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70451         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70452         to compile strcasecmp and strncasecmp.
70453         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70454         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70455
70456         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70457
70458 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70459
70460         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70461         locale-defines.sym to gen-as-const-headers.
70462         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70463         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70464         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70465         to compile strcasecmp and strncasecmp.
70466         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70467         strcasecmp_l and strncasecmp_l.
70468         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70469         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70470         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70471         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70472         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70473         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70474         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70475         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70476         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70477         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70478         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70479
70480 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70481
70482         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70483         result of SYSDEP_GETTIME_CPU to retval.
70484         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70485         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70486
70487         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70488         variable.
70489
70490         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70491         mantissa words.
70492         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70493
70494         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70495         from unused variable.
70496
70497         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70498         DWARF definitions.
70499         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70500         for assembling.
70501
70502         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70503         over namespaces.
70504
70505         * sunrpc/rpc_prot.c (rejected): Fix case value.
70506
70507         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70508         unsigned long long int to avoid warnings in shift.
70509
70510         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70511         of use of trans.
70512         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70513         variable tmp.
70514
70515         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70516         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70517         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70518
70519         * nis/nis_table.c (nis_list): Use variable of correct type for
70520         result of __follow_path call.
70521
70522 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70523
70524         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70525         of math functions ceil, trunc, floor, round, and sqrt, when
70526         avaliable on the platform.
70527         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70528         name clash.
70529         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70530         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70531         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70532
70533 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70534
70535         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70536         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70537
70538 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70539
70540         * include/unistd.h: Fix __readlink return type.
70541         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70542
70543 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70544
70545         * stdlib/ucontext.h: Undo last change for makecontext.
70546
70547 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70548
70549         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70550
70551         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70552         * setjmp/setjmp.h: Mark functions as non-leaf.
70553         * setjmp/bits/setjmp2.h: Likewise.
70554         * stdlib/ucontext.h: Likewise.
70555
70556 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70557
70558         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70559         (reused_arena): Don't check arena limit.
70560         (arena_get2): Atomically check arena limit.
70561
70562 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70563
70564         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70565         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70566
70567         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70568         instructions.
70569
70570 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70571
70572         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70573         handler when locking.
70574
70575         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70576         Fix size of allocated buffer.
70577
70578 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70579
70580         [BZ #10103]
70581         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70582         declarations for long double functions.
70583         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70584
70585         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70586
70587 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70588
70589         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70590         installed.
70591
70592         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70593         is disabled.
70594
70595 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70596
70597         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70598
70599 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70600
70601         * include/alloca.h (stackinfo_alloca_round): Define.
70602         (extend_alloca): Use it.
70603         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70604         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70605         here.
70606
70607         * scripts/check-local-headers.sh: Ignore libaudit.h.
70608
70609         * nscd/Makefile (extra-objs): Make recursively expanded.
70610
70611 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70612
70613         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70614         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70615
70616         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70617         * posix/tst-rfc3484-2.c: Likewise.
70618         * posix/tst-rfc3484-3.c: Likewise.
70619
70620         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70621         process_vm_writev.
70622         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70623         process_vm_writev.
70624         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70625         process_vm_writev from libc using GLIBC_2.15 version.
70626
70627         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70628
70629 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70630
70631         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70632         stack usage.
70633
70634 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70635
70636         [BZ #13367]
70637         * nss/getent.c (initgroups_keys): Show error message in case no group
70638         names are given.
70639
70640         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70641         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70642         __bump_nl_timestamp.
70643         * nscd/connections (nscd_init): When host database is served open
70644         netlink socket and request notification about configuration changes.
70645         (main_loop_poll): Track netlink file descriptor and bump timestamp
70646         in case data becomes available.
70647         (main_loop_epoll): Likewise.
70648         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70649         (database_pers_head): Add extra_data fileds.
70650         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70651         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70652         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70653         Adjust caller.
70654         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70655         in6ai data, call __free_in6ai.
70656         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70657         Add -DHAVE_NETLINK.
70658         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70659         interface information.  Reuse previous data if netlink timestamp
70660         is not changed.
70661         (__bump_nl_timestamp): New function.
70662         (__free_in6ai): New function.
70663
70664 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70665
70666         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70667         close_not_cancel_no_status here.
70668         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70669
70670 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70671
70672         [BZ #13276]
70673         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70674         return value.
70675
70676         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70677         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70678         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70679
70680 2011-07-03  Andreas Jaeger  <aj@suse.de>
70681
70682         [BZ #10709]
70683         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70684         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70685         * math/libm-test.inc (sin_test): Add test case.
70686
70687 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70688
70689         [BZ #13337]
70690         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70691         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70692
70693         * elf/chroot_canon.c (chroot_canon): Cleanups.
70694
70695         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70696
70697         [BZ #13335]
70698         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70699         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70700
70701         * string/test-strchr.c: Make usable for strchrnul testing.
70702         * string/test-strchrnul.c: New file.
70703         * string/Makefile (strop-tests): Add strchrnul.
70704
70705         * po/it.po: Update from translation team.
70706         * po/es.po: Likewise.
70707
70708 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70709
70710         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70711         the three constants needed as parameters.  Drop the others.
70712         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70713         __m128i_strloadu_tolower.
70714         Create and initialize variable zero and use it in all the places
70715         where _mm_setzero_si128 was used.
70716
70717         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70718         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70719         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70720         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70721         anymore.
70722         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70723         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70724         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70725         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70726         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70727         __mpranred, __mptan.
70728         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70729         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70730         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70731         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70732         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70733         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70734         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70735         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70736         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70737
70738 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70739
70740         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70741         redefine if SHARED.
70742         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70743
70744         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70745         wide char related routines to wcsmbs subdir.
70746
70747 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70748
70749         [BZ #13344]
70750         * misc/sys/cdefs.h (__THROWNL): Define.
70751         * posix/unistd.h: Use __THREADNL instead of __THREAD
70752         for memory synchronization functions.
70753
70754 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70755
70756         [BZ #13349]
70757         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70758         doesn't exist.
70759         * manual/stdio.texi (Obstack Streams): Node removed.
70760
70761 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70762
70763         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
70764         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70765         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70766
70767         * math/math_private.h (math_force_eval): Allow non-addressable
70768         arguments.
70769         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
70770
70771 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70772
70773         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
70774         file is not needed.
70775
70776         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
70777         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
70778         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70779         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70780         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70781         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70782         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70783         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
70784         Add AVX variants.
70785         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
70786         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
70787         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
70788         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
70789         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
70790         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
70791         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
70792         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
70793         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
70794         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
70795         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
70796         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
70797         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
70798         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
70799         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
70800         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
70801         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
70802         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
70803         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
70804
70805         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
70806         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
70807
70808         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
70809         place.  Use VEX encoding when compiling for AVX.
70810
70811 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70812
70813         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
70814         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
70815
70816         * string/test-strchr.c (do_test): Don't generate NUL bytes.
70817
70818 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70819
70820         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
70821         useless if() expression.
70822         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70823         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70824         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70825         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70826         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70827         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70828         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70829         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70830         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70831         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70832         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70833         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70834         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70835         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70836         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70837         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70838         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70839         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70840         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70841
70842         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
70843
70844 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70845
70846         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
70847         condition.
70848         * elf/dl-fini.c (_dl_sort_fini): Likewise.
70849
70850 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70851
70852         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
70853         .text section.  Avoid duplicate constants.
70854         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70855         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70856         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70857         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70858         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70859         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70860         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70861         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70862         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70863         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
70864         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70865         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70866         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70867         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70868         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70869         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70870         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70871         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70872         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70873         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70874         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70875         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70876         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70877         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
70878         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
70879         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
70880         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
70881         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
70882         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
70883         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
70884         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
70885         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
70886         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70887         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
70888         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
70889         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
70890         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
70891         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
70892         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
70893         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
70894         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
70895         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
70896         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
70897         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70898         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
70899
70900 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
70901
70902         * sysdeps/x86_64/dla.h: Move to ...
70903         * sysdeps/x86_64/fpu/dla.h: ...here.
70904         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
70905         situations.  Use __builtin_fma only for gcc 4.6 and up.
70906
70907         * config.make.in: Add have-mfma4 entry.
70908         * configure.in: Substitute libc_cv_cc_fma4.
70909         * math/Makefile (dbl-only-routines): Add sincostab.
70910         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
70911         Use __sincostab not sincos.
70912         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
70913         name is a macro.
70914         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70915         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70916         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70917         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
70918         using __copysign.
70919         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
70920         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
70921         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
70922         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
70923         and __inv.
70924         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
70925         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
70926         __copysign.
70927         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
70928         define aliases when function name is a macro.
70929         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
70930         sysdeps/ieee754/dbl-64/sincos.tbl.
70931         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
70932         fma4-enabled routines.
70933         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
70934         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
70935         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
70936         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
70937         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
70938         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
70939         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
70940         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
70941         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
70942         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
70943         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
70944         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
70945         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
70946         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
70947         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
70948         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
70949         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
70950         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
70951         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
70952         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
70953         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
70954         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
70955         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
70956         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
70957         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
70958         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
70959         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
70960         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
70961         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
70962         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
70963
70964         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
70965         rename.
70966         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70967         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70968         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70969         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70970         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70971         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70972         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70973         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70974
70975 2011-10-24  Andreas Schwab  <schwab@redhat.com>
70976
70977         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
70978
70979 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70980
70981         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
70982
70983         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
70984         prediction.
70985         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
70986
70987         * string/strnlen.c: Don't define STRNLEN, reverse logic.
70988         Remove unused variable magic_bits.
70989         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
70990
70991         * string/strnlen.c: Define and use STRNLEN macro.
70992         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
70993         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
70994         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
70995         * wcsmbs/wcslen.c: Define and use WCSLEN.
70996         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
70997         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
70998         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
70999         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71000         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71001         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71002         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71003
71004 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71005
71006         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71007         strnlen-sse2-no-bsf.
71008         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71009         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71010         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71011         Add strnlen support.
71012         (USE_AS_STRNLEN): New macro.
71013         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71014         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71015         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71016         * sysdeps/x86_64/wcslen.S: New file.
71017
71018 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71019
71020         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71021         XMM-moves are used for copying on small sizes.
71022
71023 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71024
71025         * wcsmbs/Makefile (strop-tests): Add wcschr.
71026         * wcsmbs/test-wcschr.c: New file.
71027         * string/test-strchr.c: Update.
71028         Add wcschr support.
71029         (WIDE): New macro.
71030
71031 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71032
71033         * wcsmbs/Makefile (strop-tests): Add wcslen.
71034         * wcsmbs/test-wcslen.c: New file.
71035         * string/test-strlen.c: Update.
71036         Add wcslen support.
71037         (WIDE): New macro.
71038
71039 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71040
71041         * po/it.po: Update from translation team.
71042
71043 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71044
71045         * sysdeps/x86_64/wcscmp.S: Update.
71046         Fix wrong comparison semantics.
71047         wcscmp shall use signed comparison not unsigned.
71048         Don't use substraction to avoid overflow bug.
71049         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71050         * wcsmbc/wcscmp.c: Likewise.
71051         * string/test-strcmp.c: Likewise.
71052         Add new tests to check cases with negative values.
71053
71054 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71055
71056         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71057         * sysdeps/x86_64/dla.h: ...here.  New file.
71058         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71059         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71060         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71061         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71062         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71063         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71064         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71065         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71066         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71067
71068 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71069
71070         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71071         __ynl_finite aliases.
71072
71073 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71074
71075         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71076
71077         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71078         define DLA_FMA.
71079         [DLA_FMA] (EMULV): Use DLA_FMA.
71080         [DLA_FMA] (MUL12): Use EMULV.
71081         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71082         that are not needed.
71083         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71084         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71085         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71086         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71087         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71088         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71089         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71090
71091 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71092
71093         * math/s_nan.c: Undef __nan.
71094         * math/s_nanf.c: Undef __nanf.
71095         * math/s_nanl.c: Undef __nanl.
71096         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71097         "math_private.h".
71098
71099 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71100
71101         * math/s_catan.c: Add branch predictions.
71102         * math/s_catanf.c: Likewise.
71103         * math/s_catanh.c: Likewise.
71104         * math/s_catanhf.c: Likewise.
71105         * math/s_catanhl.c: Likewise.
71106         * math/s_catanl.c: Likewise.
71107         * math/s_cexp.c: Likewise.
71108         * math/s_cexpf.c: Likewise.
71109         * math/s_cexpl.c: Likewise.
71110         * math/s_clog.c: Likewise.
71111         * math/s_clog10.c: Likewise.
71112         * math/s_clog10f.c: Likewise.
71113         * math/s_clog10l.c: Likewise.
71114         * math/s_clogf.c: Likewise.
71115         * math/s_clogl.c: Likewise.
71116         * math/s_csqrt.c: Likewise.
71117         * math/s_csqrtf.c: Likewise.
71118         * math/s_csqrtl.c: Likewise.
71119         * math/s_ctanf.c: Likewise.
71120         * math/s_ctanh.c: Likewise.
71121         * math/s_ctanhf.c: Likewise.
71122         * math/s_ctanhl.c: Likewise.
71123         * math/s_ctanl.c: Likewise.
71124
71125         * math/math_private.h: Define __nan, __nanf, __nanl.
71126         * math/s_cacosh.c: Include <math_private.h>.
71127         * math/s_cacoshl.c: Likewise.
71128         * math/s_casinh.c: Likewise.
71129         * math/s_casinhf.c: Likewise.
71130         * math/s_casinhl.c: Likewise.
71131         * math/s_ccos.c: Rely entire on ccosh.
71132         * math/s_ccosf.c: Rely entire on ccoshf.
71133         * math/s_ccosl.c: Rely entirely on ccoshl.
71134         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71135         Remove tests for FE_INVALID.
71136         * math/s_ccoshf.c: Likewise.
71137         * math/s_ccoshl.c: Likewise.
71138         * math/s_csin.c: Likewise.
71139         * math/s_csinf.c: Likewise.
71140         * math/s_csinh.c Likewise.
71141         * math/s_csinhf.c: Likewise.
71142         * math/s_csinhl.c: Likewise.
71143         * math/s_csinl.c: Likewise.
71144         * math/s_ctan.c: Likewise.
71145         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71146         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71147         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71148
71149 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71150
71151         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71152         compilation problems.
71153
71154         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71155         __builtin_expect.
71156
71157 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71158
71159         * sysdeps/i386/configure.in: Test for -mfma4 option.
71160         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71161         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71162         COMMON_CPUID_INDEX_80000001.
71163         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71164         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71165         use it if FMA3 is not supported.
71166         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71167
71168         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71169         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71170
71171 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71172
71173         [BZ #12892]
71174         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71175         it would create a cycle with a link time dependency.
71176
71177 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71178
71179         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71180         instruction.
71181         * string/Makefile (strop-tests): Add rawmemchr.
71182         * string/test-rawmemchr.c: New file.
71183
71184         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71185         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71186         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71187         when compiling str{,n}casecmp and when AVX is available.  Hook up
71188         new optimized code in initializers.
71189
71190 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71191
71192         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71193         __feraiseexcept instead of feraiseexcept.
71194
71195 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71196
71197         * math/math_private.h: Define defaults for libc_fetestexcept and
71198         libc_feupdateenv.
71199         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71200         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71201         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71202         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71203         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71204         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71205         libc_fetestexcept and libc_feupdateenv.
71206
71207         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71208         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71209         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71210         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71211         libc_feholdexcept_setround.
71212
71213         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71214         Add s_nearbyint-c and s_nearbyintf-c.
71215         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71216         nearbyintf inlines.
71217         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71218         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71219         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71220         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71221
71222         * math/math_private.h: Define defaults for libc_fegetround,
71223         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71224         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71225         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71226         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71227         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71228         standard functions.
71229         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71230         Remove comments and hacks for old compiler versions.
71231         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71232         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71233         libc_feholdexceptl.
71234
71235 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71236
71237         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71238         (__feraiseexcept_renamed): Add __NTH.
71239         (feraiseexcept): Add __NTH.  Rename local variables to fix
71240         namespace violations.
71241
71242 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71243
71244         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71245
71246         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71247
71248         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71249         recently added interfaces.
71250         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71251
71252         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71253         about macro parameter expansion.
71254
71255         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71256         __NO_MATH_INLINES is defined.  Cleanups.
71257
71258         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71259         and __floorf is target has SSE4.1.
71260         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71261         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71262         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71263         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71264
71265         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71266         name.
71267         (floorf): Likewise.
71268
71269         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71270
71271 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71272
71273         * misc/sys/cdefs.h: Fix last change.
71274
71275         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71276         database lookup.
71277
71278 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71279
71280         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71281
71282         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71283         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71284         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71285         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71286         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71287         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71288         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71289         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71290         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71291         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71292         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71293         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71294         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71295         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71296         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71297         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71298         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71299         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71300         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71301         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71302         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71303         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71304
71305         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71306         ceil, ceilf, floor, floorf.
71307
71308         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71309         Perform IRELATIVE relocations last.
71310
71311         * elf/do-rel.h: Add another parameter nrelative, replacing the
71312         local variable with the same name.  Change name of the function
71313         to end in Rel or Rela (uppercase).
71314         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71315         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71316         elf_dynamic_do_##reloc function.
71317
71318 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71319
71320         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71321         is sufficient, at least on modern CPUs.
71322
71323         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71324
71325         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71326         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71327
71328         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71329         __expl_finite.
71330         * math/bits/math-finite.h: Add entries for exp.
71331         * math/e_expl.c: Add __*_finite alias.
71332         * sysdeps/i386/fpu/e_exp.S: Likewise.
71333         * sysdeps/i386/fpu/e_expf.S: Likewise.
71334         * sysdeps/i386/fpu/e_expl.c: Likewise.
71335         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71336         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71337         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71338         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71339         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71340         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71341         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71342
71343         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71344         is sufficient, at least on modern CPUs.
71345
71346         * ctype/ctype-info.c (__ctype_init): Define.
71347         * include/ctype.h (__ctype_init): Declare.
71348         (__ctype_b_loc): The variable is always initialized.
71349         (__ctype_toupper_loc): Likewise.
71350         (__ctype_tolower_loc): Likewise.
71351         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71352         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71353
71354 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71355
71356         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71357
71358         * configure.in: Also look in $cxxmachine/include for C++ system
71359         headers.
71360
71361 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71362
71363         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71364         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71365         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71366         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71367         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71368         (USE_AS_WMEMCMP): New macro.
71369         Fixing indents.
71370         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71371         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71372         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71373         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71374         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71375         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71376         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71377         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71378         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71379         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71380         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71381         (USE_AS_WMEMCMP): New macro.
71382         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71383         * sysdeps/string/test-memcmp.c: Update.
71384         Fix simple_wmemcmp.
71385         Add new tests.
71386         * wcsmbs/wmemcmp.c: Update.
71387         (WMEMCMP): New macro.
71388         Fix overflow bug.
71389
71390 2011-10-12  Andreas Jaeger  <aj@suse.de>
71391
71392         [BZ #13268]
71393         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71394
71395 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71396
71397         * libio/iofwide.c (do_length): Avoid warning.
71398
71399         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71400
71401 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71402
71403         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71404
71405         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71406         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71407         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71408         * sysdeps/i386/i686/fpu/e_log.S: New file.
71409         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71410         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71411
71412         * ctype/ctype.h: Add support for inlined isXXX functions when
71413         compiling C++ code.
71414
71415 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71416
71417         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71418
71419         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71420
71421 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71422
71423         [BZ #13291]
71424         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71425
71426 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71427
71428         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71429         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71430         feraiseexcept.
71431
71432         * sysdeps/x86_64/memrchr.S: Check for zero size.
71433
71434         * string/stratcliff.c: Add memrchr tests.
71435
71436 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71437
71438         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71439         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71440         rawmemchr-sse2 rawmemchr-sse2-bsf.
71441         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71442         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71443         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71444         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71445         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71446         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71447         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71448         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71449         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71450         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71451         * string/memrchr.c (MEMRCHR): New macro.
71452
71453 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71454
71455         Add integration with gcc's -ffinite-math-only and optimize wrapper
71456         functions in libm.
71457         * Versions.def: Define GLIBC_2.15 version for libm.
71458         * math/Makefile (headers): Add bits/math-finite.h.
71459         * math/bits/math-finite.h: New file.
71460         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71461         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71462         * math/e_acoshl.c: Add __*_finite alias.
71463         * math/e_acosl.c: Likewise.
71464         * math/e_asinl.c: Likewise.
71465         * math/e_atan2l.c: Likewise.
71466         * math/e_atanhl.c: Likewise.
71467         * math/e_coshl.c: Likewise.
71468         * math/e_exp10.c: Likewise.
71469         * math/e_exp10f.c: Likewise.
71470         * math/e_exp10l.c: Likewise.
71471         * math/e_exp2l.c: Likewise.
71472         * math/e_fmodl.c: Likewise.
71473         * math/e_gammal_r.c: Likewise.
71474         * math/e_hypotl.c: Likewise.
71475         * math/e_j0l.c: Likewise.
71476         * math/e_j1l.c: Likewise.
71477         * math/e_jnl.c: Likewise.
71478         * math/e_lgammal_r.c: Likewise.
71479         * math/e_log10l.c: Likewise.
71480         * math/e_log2l.c: Likewise.
71481         * math/e_logl.c: Likewise.
71482         * math/e_powl.c: Likewise.
71483         * math/e_sinhl.c: Likewise.
71484         * math/e_sqrtl.c: Likewise.
71485         * math/e_scalb.c: Completely rewritten and optimized.
71486         * math/e_scalbf.c: Likewise.
71487         * math/e_scalbl.c: Likewise.
71488         * math/w_acos.c: Likewise.
71489         * math/w_acosf.c: Likewise.
71490         * math/w_acosl.c: Likewise.
71491         * math/w_acosh.c: Likewise.
71492         * math/w_acoshf.c: Likewise.
71493         * math/w_acoshl.c: Likewise.
71494         * math/w_asin.c: Likewise.
71495         * math/w_asinf.c: Likewise.
71496         * math/w_asinl.c: Likewise.
71497         * math/w_atan2.c: Likewise.
71498         * math/w_atan2f.c: Likewise.
71499         * math/w_atan2l.c: Likewise.
71500         * math/w_atanh.c: Likewise.
71501         * math/w_atanhf.c: Likewise.
71502         * math/w_atanhl.c: Likewise.
71503         * math/w_exp10.c: Likewise.
71504         * math/w_exp10f.c: Likewise.
71505         * math/w_exp10l.c: Likewise.
71506         * math/w_fmod.c: Likewise.
71507         * math/w_fmodf.c: Likewise.
71508         * math/w_fmodl.c: Likewise.
71509         * math/w_j0.c: Likewise.
71510         * math/w_j0f.c: Likewise.
71511         * math/w_j0l.c: Likewise.
71512         * math/w_j1.c: Likewise.
71513         * math/w_j1f.c: Likewise.
71514         * math/w_j1l.c: Likewise.
71515         * math/w_jn.c: Likewise.
71516         * math/w_jnf.c: Likewise.
71517         * math/w_log.c: Likewise.
71518         * math/w_logf.c: Likewise.
71519         * math/w_logl.c: Likewise.
71520         * math/w_log10.c: Likewise.
71521         * math/w_log10f.c: Likewise.
71522         * math/w_log10l.c: Likewise.
71523         * math/w_log2.c: Likewise.
71524         * math/w_log2f.c: Likewise.
71525         * math/w_log2l.c: Likewise.
71526         * math/w_pow.c: Likewise.
71527         * math/w_powf.c: Likewise.
71528         * math/w_powl.c: Likewise.
71529         * math/w_remainder.c: Likewise.
71530         * math/w_remainderf.c: Likewise.
71531         * math/w_remainderl.c: Likewise.
71532         * math/w_scalb.c: Likewise.
71533         * math/w_scalbf.c: Likewise.
71534         * math/w_scalbl.c: Likewise.
71535         * math/w_sqrt.c: Likewise.
71536         * math/w_sqrtf.c: Likewise.
71537         * math/w_sqrtl.c: Likewise.
71538         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71539         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71540         used.
71541         * math/math_private.h: Declare __kernel_standard_f.
71542         * math/w_cosh.c: Remove cruft and optimize a bit.
71543         * math/w_coshf.c: Likewise.
71544         * math/w_coshl.c: Likewise.
71545         * math/w_exp2.c: Likewise.
71546         * math/w_exp2f.c: Likewise.
71547         * math/w_exp2l.c: Likewise.
71548         * math/w_hypot.c: Likewise.
71549         * math/w_hypotf.c: Likewise.
71550         * math/w_hypotl.c: Likewise.
71551         * math/w_lgamma.c: Likewise.
71552         * math/w_lgamma_r.c: Likewise.
71553         * math/w_lgammaf.c: Likewise.
71554         * math/w_lgammaf_r.c: Likewise.
71555         * math/w_lgammal.c: Likewise.
71556         * math/w_lgammal_r.c: Likewise.
71557         * math/w_sinh.c: Likewise.
71558         * math/w_sinhf.c: Likewise.
71559         * math/w_sinhl.c: Likewise.
71560         * math/w_tgamma.c: Likewise.
71561         * math/w_tgammaf.c: Likewise.
71562         * math/w_tgammal.c: Likewise.
71563         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71564         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71565         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71566         Minor optimizations.  Pretty printing.  Remove cruft.
71567         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71568         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71569         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71570         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71571         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71572         * sysdeps/i386/fpu/e_asin.S: Likewise.
71573         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71574         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71575         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71576         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71577         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71578         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71579         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71580         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71581         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71582         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71583         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71584         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71585         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71586         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71587         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71588         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71589         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71590         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71591         * sysdeps/i386/fpu/e_log.S: Likewise.
71592         * sysdeps/i386/fpu/e_log10.S: Likewise.
71593         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71594         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71595         * sysdeps/i386/fpu/e_log2.S: Likewise.
71596         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71597         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71598         * sysdeps/i386/fpu/e_logf.S: Likewise.
71599         * sysdeps/i386/fpu/e_logl.S: Likewise.
71600         * sysdeps/i386/fpu/e_pow.S: Likewise.
71601         * sysdeps/i386/fpu/e_powf.S: Likewise.
71602         * sysdeps/i386/fpu/e_powl.S: Likewise.
71603         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71604         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71605         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71606         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71607         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71608         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71609         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71610         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71611         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71612         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71613         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71614         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71615         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71616         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71617         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71618         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71619         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71620         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71621         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71622         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71623         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71624         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71625         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71626         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71627         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71628         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71629         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71630         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71631         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71632         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71633         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71634         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71635         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71636         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71637         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71638         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71639         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71640         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71641         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71642         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71643         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71644         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71645         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71646         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71647         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71648         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71649         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71650         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71651         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71652         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71653         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71654         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71655         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71656         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71657         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71658         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71659         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71660         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71661         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71662         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71663         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71664         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71665         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71666         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71667         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71668         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71669         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71670         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71671         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71672         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71673         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71674         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71675         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71676         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71677         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71678         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71679         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71680         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71681         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71682         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71683         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71684         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71685         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71686         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71687         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71688         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71689         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71690         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71691         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71692         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71693         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71694         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71695         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71696         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71697         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71698         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71699         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71700         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71701         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71702         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71703         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71704         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71705         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71706         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71707         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71708         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71709         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71710         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71711         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71712         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71713         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71714         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71715         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71716         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71717         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71718         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71719         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71720         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71721         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71722         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71723         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71724         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71725         (__isnanf): Likewise.
71726         (__isinf_ns): Likewise.
71727         (__isinf_nsf): Likewise.
71728         (__finite): Likewise.
71729         (__finitef): Likewise.
71730         (__ieee754_sqrt): Define as macro.
71731         (__ieee754_sqrtf): Define as macro.
71732         (__ieee754_sqrtl): Define as macro.
71733         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71734         inlined copy.
71735         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71736         __FINITE_MATH_ONLY__ consistent.
71737         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71738
71739 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71740
71741         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71742         of rawmemchr.
71743
71744         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71745
71746 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71747
71748         * po/ja.po: Update from translation team.
71749
71750 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71751
71752         * locale/programs/locarchive.c (prepare_address_space): New function.
71753         (create_archive, enlarge_archive, open_archive): Use it.
71754
71755         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71756         inside [SHARED], where it is used.
71757
71758         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71759
71760         * nss/getent.c (netgroup_keys): Remove unused variable.
71761         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71762
71763 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
71764
71765         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
71766         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
71767         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
71768         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
71769         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
71770         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
71771         * math/Makefile (libm-calls): Add s_isinf_ns.
71772         * math/divtc3.c: Use __isinf_nsl instead of isinf.
71773         * math/multc3.c: Likewise.
71774         * math/s_casin.c: Likewise.
71775         * math/s_casinf.c: Likewise.
71776         * math/s_casinl.c: Likewise.
71777         * math/s_ccos.c: Likewise.
71778         * math/s_ccosf.c: Likewise.
71779         * math/s_ccosl.c: Likewise.
71780         * math/s_ctan.c: Likewise.
71781         * math/s_ctanf.c: Likewise.
71782         * math/s_ctanh.c: Likewise.
71783         * math/s_ctanhf.c: Likewise.
71784         * math/s_ctanhl.c: Likewise.
71785         * math/s_ctanl.c: Likewise.
71786         * math/w_fmod.c: Likewise.
71787         * math/w_fmodf.c: Likewise.
71788         * math/w_fmodl.c: Likewise.
71789         * math/w_remainder.c: Likewise.
71790         * math/w_remainderf.c: Likewise.
71791         * math/w_remainderl.c: Likewise.
71792         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
71793         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
71794         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
71795         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
71796         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
71797         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
71798         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
71799         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
71800
71801         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
71802         of the number.
71803         * stdio-common/printf_fphex.c: Likewise.
71804         * stdio-common/printf_size.c: Likewise.
71805
71806         * math/e_exp10.c: Include math_private.h using <...> not "...".
71807         * math/e_exp10f.c: Likewise.
71808         * math/e_exp10l.c: Likewise.
71809         * math/e_exp2l.c: Likewise.
71810         * math/e_j0l.c: Likewise.
71811         * math/e_j1l.c: Likewise.
71812         * math/e_jnl.c: Likewise.
71813         * math/e_lgammal_r.c: Likewise.
71814         * math/e_rem_pio2l.c: Likewise.
71815         * math/e_scalb.c: Likewise.
71816         * math/e_scalbf.c: Likewise.
71817         * math/e_scalbl.c: Likewise.
71818         * math/k_cosl.c: Likewise.
71819         * math/k_sinl.c: Likewise.
71820         * math/k_tanl.c: Likewise.
71821         * math/s_cacoshf.c: Likewise.
71822         * math/s_catan.c: Likewise.
71823         * math/s_catanf.c: Likewise.
71824         * math/s_catanh.c: Likewise.
71825         * math/s_catanhf.c: Likewise.
71826         * math/s_catanhl.c: Likewise.
71827         * math/s_catanl.c: Likewise.
71828         * math/s_ccosh.c: Likewise.
71829         * math/s_ccoshf.c: Likewise.
71830         * math/s_ccoshl.c: Likewise.
71831         * math/s_cexp.c: Likewise.
71832         * math/s_cexpf.c: Likewise.
71833         * math/s_cexpl.c: Likewise.
71834         * math/s_clog.c: Likewise.
71835         * math/s_clog10.c: Likewise.
71836         * math/s_clog10f.c: Likewise.
71837         * math/s_clog10l.c: Likewise.
71838         * math/s_clogf.c: Likewise.
71839         * math/s_clogl.c: Likewise.
71840         * math/s_csin.c: Likewise.
71841         * math/s_csinf.c: Likewise.
71842         * math/s_csinh.c: Likewise.
71843         * math/s_csinhf.c: Likewise.
71844         * math/s_csinhl.c: Likewise.
71845         * math/s_csinl.c: Likewise.
71846         * math/s_csqrt.c: Likewise.
71847         * math/s_csqrtf.c: Likewise.
71848         * math/s_csqrtl.c: Likewise.
71849         * math/s_ctan.c: Likewise.
71850         * math/s_ctanf.c: Likewise.
71851         * math/s_ctanh.c: Likewise.
71852         * math/s_ctanhf.c: Likewise.
71853         * math/s_ctanhl.c: Likewise.
71854         * math/s_ctanl.c: Likewise.
71855         * math/s_ldexp.c: Likewise.
71856         * math/s_ldexpf.c: Likewise.
71857         * math/s_ldexpl.c: Likewise.
71858         * math/s_significand.c: Likewise.
71859         * math/s_significandf.c: Likewise.
71860         * math/s_significandl.c: Likewise.
71861         * math/w_acos.c: Likewise.
71862         * math/w_acosf.c: Likewise.
71863         * math/w_acosh.c: Likewise.
71864         * math/w_acoshf.c: Likewise.
71865         * math/w_acoshl.c: Likewise.
71866         * math/w_acosl.c: Likewise.
71867         * math/w_asin.c: Likewise.
71868         * math/w_asinf.c: Likewise.
71869         * math/w_asinl.c: Likewise.
71870         * math/w_atan2.c: Likewise.
71871         * math/w_atan2f.c: Likewise.
71872         * math/w_atan2l.c: Likewise.
71873         * math/w_atanh.c: Likewise.
71874         * math/w_atanhf.c: Likewise.
71875         * math/w_atanhl.c: Likewise.
71876         * math/w_cosh.c: Likewise.
71877         * math/w_coshf.c: Likewise.
71878         * math/w_coshl.c: Likewise.
71879         * math/w_dremf.c: Likewise.
71880         * math/w_exp10.c: Likewise.
71881         * math/w_exp10f.c: Likewise.
71882         * math/w_exp10l.c: Likewise.
71883         * math/w_exp2.c: Likewise.
71884         * math/w_exp2f.c: Likewise.
71885         * math/w_fmod.c: Likewise.
71886         * math/w_fmodf.c: Likewise.
71887         * math/w_fmodl.c: Likewise.
71888         * math/w_hypot.c: Likewise.
71889         * math/w_hypotf.c: Likewise.
71890         * math/w_hypotl.c: Likewise.
71891         * math/w_j0.c: Likewise.
71892         * math/w_j0f.c: Likewise.
71893         * math/w_j0l.c: Likewise.
71894         * math/w_j1.c: Likewise.
71895         * math/w_j1f.c: Likewise.
71896         * math/w_j1l.c: Likewise.
71897         * math/w_jn.c: Likewise.
71898         * math/w_jnf.c: Likewise.
71899         * math/w_jnl.c: Likewise.
71900         * math/w_lgamma.c: Likewise.
71901         * math/w_lgamma_r.c: Likewise.
71902         * math/w_lgammaf.c: Likewise.
71903         * math/w_lgammaf_r.c: Likewise.
71904         * math/w_lgammal.c: Likewise.
71905         * math/w_lgammal_r.c: Likewise.
71906         * math/w_log.c: Likewise.
71907         * math/w_log10.c: Likewise.
71908         * math/w_log10f.c: Likewise.
71909         * math/w_log10l.c: Likewise.
71910         * math/w_log2.c: Likewise.
71911         * math/w_log2f.c: Likewise.
71912         * math/w_log2l.c: Likewise.
71913         * math/w_logf.c: Likewise.
71914         * math/w_logl.c: Likewise.
71915         * math/w_pow.c: Likewise.
71916         * math/w_powf.c: Likewise.
71917         * math/w_powl.c: Likewise.
71918         * math/w_remainder.c: Likewise.
71919         * math/w_remainderf.c: Likewise.
71920         * math/w_remainderl.c: Likewise.
71921         * math/w_scalb.c: Likewise.
71922         * math/w_scalbf.c: Likewise.
71923         * math/w_scalbl.c: Likewise.
71924         * math/w_sinh.c: Likewise.
71925         * math/w_sinhf.c: Likewise.
71926         * math/w_sinhl.c: Likewise.
71927         * math/w_sqrt.c: Likewise.
71928         * math/w_sqrtf.c: Likewise.
71929         * math/w_sqrtl.c: Likewise.
71930         * math/w_tgamma.c: Likewise.
71931         * math/w_tgammaf.c: Likewise.
71932         * math/w_tgammal.c: Likewise.
71933
71934         * po/ja.po: Update from translation team.
71935
71936 2011-09-29  Andreas Jaeger  <aj@suse.de>
71937
71938         [BZ #13179]
71939         * sunrpc/netname.c (netname2host): Fix logic.
71940
71941         [BZ #6779]
71942         [BZ #6783]
71943         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
71944         correctly.
71945         * math/w_remainder.c (__remainder): Likewise.
71946         * math/w_remainderf.c (__remainderf): Likewise.
71947         * math/libm-test.inc (remainder_test): Add test cases.
71948
71949 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71950
71951         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
71952         sdiv_qrnnd.
71953
71954 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71955
71956         * string/test-memcmp.c: Avoid unncessary #defines.
71957         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71958
71959 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71960
71961         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
71962         Use new sse2 version for core i3 - i7 as it's faster
71963         than sse42 version.
71964         (bit_Prefer_PMINUB_for_stringop): New.
71965         * sysdeps/x86_64/rawmemchr.S: Update.
71966         Replace with faster SSE2 version.
71967         * sysdeps/x86_64/memrchr.S: New file.
71968         * sysdeps/x86_64/memchr.S: Update.
71969         Replace with faster SSE2 version.
71970
71971 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
71972
71973         * elf/dl-load.c (lose): Add cast to avoid warning.
71974
71975 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71976
71977         * po/ca.po: Update from translation team.
71978
71979         * inet/getnetgrent_r.c: Hook up nscd.
71980         * nscd/Makefile (routines): Add nscd_netgroup.
71981         (nscd-modules): Add netgroupcache.
71982         (CFLAGS-netgroupcache.c): Define.
71983         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
71984         (cache_search): Add const to second parameter.
71985         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
71986         INNETGR.
71987         (dbs): Add netgrdb entry.
71988         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
71989         (verify_persistent_db): Handle netgrdb.
71990         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
71991         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
71992         GETFDNETGR.
71993         (netgroup_response_header): Define.
71994         (innetgroup_response_header): Define.
71995         (datahead): Add netgroup_response_header and innetgroup_response_header
71996         elements.
71997         * nscd/nscd.conf: Add entries for netgroup cache.
71998         * nscd/nscd.h (dbtype): Add netgrdb.
71999         (_PATH_NSCD_NETGROUP_DB): Define.
72000         (netgroup_iov_disabled): Declare.
72001         (xmalloc, xcalloc, xrealloc): Move declarations here.
72002         (cache_search): Adjust prototype.
72003         Add netgroup-related prototypes.
72004         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72005         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72006         (__nscd_innetgr): Declare.
72007         * nscd/selinux.c (perms): Use access_vector_t as element type and
72008         add netgroup-related initializers.
72009         * nscd/netgroupcache.c: New file.
72010         * nscd/nscd_netgroup.c: New file.
72011         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72012         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72013         For four parameters use innetgr.
72014         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72015         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72016         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72017         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72018
72019         * nscd/connections.c (register_traced_file): Don't register file
72020         for disabled databases.
72021
72022 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72023
72024         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72025
72026         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72027         from tree and freeing node.
72028
72029 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72030
72031         * nss/nsswitch.c (__nss_database_lookup): Handle
72032         nss_parse_service_list out of memory case.
72033
72034 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72035
72036         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72037         out of memory case.
72038
72039 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72040
72041         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72042         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72043         pass it down.
72044         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72045         elf_machine_rela, elf_machine_lazy_rel.
72046         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72047         (ELF_DYNAMIC_DO_REL): Likewise.
72048         (ELF_DYNAMIC_DO_RELA): Likewise.
72049         (ELF_DYNAMIC_RELOCATE): Likewise.
72050         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72051         to ELF_DYNAMIC_DO_REL.
72052         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72053         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72054         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72055         elf_machine_rela.
72056         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72057         skip_ifunc, don't call ifunc function if non-zero.
72058         (elf_machine_rela): Likewise.
72059         (elf_machine_lazy_rel): Likewise.
72060         (elf_machine_lazy_rela): Likewise.
72061         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72062         (elf_machine_lazy_rel): Likewise.
72063         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72064         Likewise.
72065         (elf_machine_lazy_rel): Likewise.
72066         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72067         Likewise.
72068         (elf_machine_lazy_rel): Likewise.
72069         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72070         (elf_machine_lazy_rel): Likewise.
72071         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72072         (elf_machine_lazy_rel): Likewise.
72073         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72074         (elf_machine_lazy_rel): Likewise.
72075         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72076         (elf_machine_lazy_rel): Likewise.
72077         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72078         (elf_machine_lazy_rel): Likewise.
72079         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72080         (elf_machine_lazy_rel): Likewise.
72081
72082 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72083
72084         * nss/nss_files/files-init.c (_nss_files_init): Use static
72085         initialization for all the *_traced_file variables.
72086
72087 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72088
72089         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72090
72091 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72092
72093         [BZ #13226]
72094         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72095
72096 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72097
72098         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72099         Reread the line before reparsing it.
72100
72101 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72102
72103         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72104
72105 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72106             Maxim Kuvyrkov  <maxim@codesourcery.com>
72107             Joseph Myers  <joseph@codesourcery.com>
72108
72109         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72110         if needed for __stack_chk_guard.
72111
72112 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72113
72114         * sysdeps/posix/spawni.c (script_execute): Always define it.
72115         It will be optimized away if unused.
72116         (maybe_script_execute): New function.
72117         (__spawni): Call it.
72118
72119         * Makerules: Don't include tls.make.
72120         (config-tls): Always set to thread.
72121         * tls.make.c: File removed.
72122
72123 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72124
72125         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72126         * config.make.in (CPPFLAGS-config): New substituted variable.
72127
72128 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72129
72130         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72131
72132         [BZ #13192]
72133         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72134         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72135
72136 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72137
72138         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72139         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72140         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72141         (CALL_FAIL): Likewise.
72142         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72143         (CALL_FAIL): Macro removed.
72144         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72145
72146 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72147
72148         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72149         for __FINITE_MATH_ONLY__ == 1.
72150
72151 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72152
72153         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72154         __ieee754_sqrt instead of sqrt.
72155         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72156         __ieee754_sqrtf instead of sqrtf.
72157         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72158         __floorf instead of floorf.
72159         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72160         __floorf, __truncf instead of floorf, truncf.
72161
72162 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72163
72164         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72165
72166         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72167         __extern_always_inline.
72168         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72169         32-bit.
72170
72171 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72172
72173         * elf/rtld.c (dl_main): Also relocate in dependency order when
72174         doing symbol dependency testing.
72175
72176 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72177
72178         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72179         Always define `refsym'.
72180
72181 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72182
72183         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72184         (__FD_ELT): Renamed from __FDELT.
72185         * misc/bits/select2.h (__FD_ELT): Likewise.
72186         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72187         __FD_MASK instead of __FDELT, __FDMASK.
72188         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72189         Likewise.
72190         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72191         Likewise.
72192
72193         * elf/Makefile (gen-ldd): Fix pattern.
72194
72195         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72196         (init_tls): Likewise.
72197
72198 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72199
72200         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72201
72202 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72203
72204         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72205         `struct cmsghdr *' instead of `void *'.
72206         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72207         Likewise.
72208
72209 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72210
72211         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72212         if non-absolute.
72213         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72214         ldd_rewrite_script.
72215
72216 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72217
72218         * configure.in: Remove --with-tls option.
72219         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72220         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72221         out in case it is missing.
72222         * sysdeps/ia64/elf/configure.in: Likewise.
72223         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72224         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72225         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72226         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72227         * sysdeps/sh/elf/configure.in: Likewise.
72228         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72229         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72230         * sysdeps/x86_64/elf/configure.in: Likewise.
72231         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72232         * sysdeps/mach/hurd/tls.h: Likewise.
72233
72234         [BZ #13067]
72235         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72236
72237         [BZ #13090]
72238         * configure.in: Fix use of AC_INIT.
72239
72240         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72241
72242 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72243
72244         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72245         __set_errno.
72246         * malloc/hooks.c: Likewise.
72247
72248         [BZ #11929]
72249         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72250         variables statically.
72251         (narenas): Initialize.
72252         (list_lock): Initialize.
72253         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72254         initializtion of main_arena and list_lock.  Small cleanups.
72255         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72256         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72257         Add initializers to main_arena and mp_.
72258         (malloc_state): Remove pagesize member.  Change all users to use
72259         GLRO(dl_pagesize).
72260
72261         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72262         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72263         is always initialized.
72264
72265         * malloc/malloc.c: Removed unused configurations and dead code.
72266         * malloc/arena.c: Likewise.
72267         * malloc/hooks.c: Likewise.
72268         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72269
72270         * include/tls.h: Removed.  USE___THREAD must always be defined.
72271         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72272         * elf/dl-libc.c: Likewise.
72273         * elf/dl-tsd.c: Likewise.
72274         * include/errno.h: Likewise.
72275         * include/netdb.h: Likewise.
72276         * include/resolv.h: Likewise.
72277         * inet/herrno-loc.c: Likewise.
72278         * inet/herrno.c: Likewise.
72279         * malloc/arena.c: Likewise.
72280         * malloc/hooks.c: Likewise.
72281         * malloc/malloc.c: Likewise.
72282         * resolv/res-state.c: Likewise.
72283         * resolv/res_libc.c: Likewise.
72284         * sysdeps/i386/dl-machine.h: Likewise.
72285         * sysdeps/ia64/dl-machine.h: Likewise.
72286         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72287         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72288         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72289         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72290         * sysdeps/sh/dl-machine.h: Likewise.
72291         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72292         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72293         * sysdeps/unix/i386/sysdep.S: Likewise.
72294         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72295         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72296         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72297         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72298         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72299         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72300         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72301         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72302         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72303         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72304         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72305         * sysdeps/x86_64/dl-machine.h: Likewise.
72306         * tls.make.c: Likewise.
72307
72308         * configure.in: Remove --with-__thread option.  Make tests for
72309         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72310         tls_model attribute fail if no support is available.  Remove
72311         USE_IN_LIBIO.
72312         * Makeconfig: Adjust for dropped configure option.  All features are
72313         now mandatory.
72314         * Makerules: Likewise.
72315         * Versions.def: Likewise.
72316         * argp/argp-fmtstream.c: Likewise.
72317         * argp/argp-fmtstream.h: Likewise.
72318         * argp/argp-help.c: Likewise.
72319         * assert/assert.c: Likewise.
72320         * config.h.in: Likewise.
72321         * config.make.in: Likewise.
72322         * configure: Likewise.
72323         * configure.in: Likewise.
72324         * csu/Versions: Likewise.
72325         * csu/init.c: Likewise.
72326         * elf/tst-audit2.c: Likewise.
72327         * elf/tst-tls10.c: Likewise.
72328         * elf/tst-tls10.h: Likewise.
72329         * elf/tst-tls11.c: Likewise.
72330         * elf/tst-tls12.c: Likewise.
72331         * elf/tst-tls14.c: Likewise.
72332         * elf/tst-tlsmod11.c: Likewise.
72333         * elf/tst-tlsmod12.c: Likewise.
72334         * elf/tst-tlsmod13.c: Likewise.
72335         * elf/tst-tlsmod13a.c: Likewise.
72336         * elf/tst-tlsmod14a.c: Likewise.
72337         * elf/tst-tlsmod15b.c: Likewise.
72338         * elf/tst-tlsmod16a.c: Likewise.
72339         * elf/tst-tlsmod16b.c: Likewise.
72340         * elf/tst-tlsmod7.c: Likewise.
72341         * elf/tst-tlsmod8.c: Likewise.
72342         * elf/tst-tlsmod9.c: Likewise.
72343         * gmon/gmon.c: Likewise.
72344         * grp/fgetgrent_r.c: Likewise.
72345         * grp/putgrent.c: Likewise.
72346         * hurd/fopenport.c: Likewise.
72347         * include/libc-symbols.h: Likewise.
72348         * include/tls.h: Likewise.
72349         * intl/gettextP.h: Likewise.
72350         * intl/loadinfo.h: Likewise.
72351         * locale/global-locale.c: Likewise.
72352         * locale/localeinfo.h: Likewise.
72353         * mach/devstream.c: Likewise.
72354         * malloc/arena.c: Likewise.
72355         * malloc/set-freeres.c: Likewise.
72356         * misc/err.c: Likewise.
72357         * misc/getttyent.c: Likewise.
72358         * misc/mntent_r.c: Likewise.
72359         * posix/getopt.c: Likewise.
72360         * posix/wordexp.c: Likewise.
72361         * pwd/fgetpwent_r.c: Likewise.
72362         * resolv/Versions: Likewise.
72363         * resolv/res_hconf.c: Likewise.
72364         * shadow/fgetspent_r.c: Likewise.
72365         * shadow/putspent.c: Likewise.
72366         * stdio-common/printf_fphex.c: Likewise.
72367         * stdio-common/tmpfile.c: Likewise.
72368         * stdlib/abort.c: Likewise.
72369         * stdlib/fmtmsg.c: Likewise.
72370         * sunrpc/auth_unix.c: Likewise.
72371         * sunrpc/clnt_perr.c: Likewise.
72372         * sunrpc/clnt_tcp.c: Likewise.
72373         * sunrpc/clnt_udp.c: Likewise.
72374         * sunrpc/clnt_unix.c: Likewise.
72375         * sunrpc/openchild.c: Likewise.
72376         * sunrpc/svc_simple.c: Likewise.
72377         * sunrpc/svc_tcp.c: Likewise.
72378         * sunrpc/svc_udp.c: Likewise.
72379         * sunrpc/svc_unix.c: Likewise.
72380         * sunrpc/xdr.c: Likewise.
72381         * sunrpc/xdr_array.c: Likewise.
72382         * sunrpc/xdr_rec.c: Likewise.
72383         * sunrpc/xdr_ref.c: Likewise.
72384         * sunrpc/xdr_stdio.c: Likewise.
72385
72386 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72387
72388         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72389
72390 2011-07-03  Andreas Jaeger  <aj@suse.de>
72391
72392         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72393         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72394         regenerate with gen-libm-tests.pl.
72395
72396 2010-05-12  Petr Baudis  <pasky@suse.cz>
72397
72398         [BZ #11589]
72399         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72400         around j0() zero points by switching to j1().
72401         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72402         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72403         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72404         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72405
72406 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72407
72408         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72409         instead of 0.
72410         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72411         instead of 0.
72412         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72413         Patch in part by Pavel Roskin <proski@gnu.org>.
72414
72415         [BZ #13138]
72416         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72417         realloc.
72418         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72419         Free memory block if necessary.
72420
72421         [BZ #12847]
72422         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72423         be NULL.  Don't lock in this case.
72424
72425 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72426
72427         * elf/elf.h (ELFOSABI_GNU): New macro.
72428         (ELFOSABI_LINUX): Define to that.
72429
72430 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72431
72432         * string/strncat.c (strncat): Undef the symbol in case it has been
72433         defined in bits/string.h.
72434
72435 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72436
72437         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72438
72439         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72440         link map.
72441
72442 2011-08-17  Andreas Jaeger  <aj@suse.de>
72443
72444         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72445
72446 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72447             Ian Lance Taylor  <iant@google.com>
72448
72449         * math/libm-test.inc (lround_test): New testcase.
72450         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72451
72452 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72453
72454         * Makefile: Remove support for automatic cvs check-ins.
72455         * Makerules: Likewise.
72456         * config.make.in: Likewise.
72457         * configure.in: Likewise.
72458         * intl/Makefile: Likewise.
72459         * locale/Makefile: Likewise.
72460         * po/Makefile: Likewise.
72461         * posix/Makefile: Likewise.
72462         * sysdeps/gnu/Makefile: Likewise.
72463         * sysdeps/mach/hurd/Makefile: Likewise.
72464         * sysdeps/sparc/sparc32/Makefile: Likewise.
72465
72466         [BZ #13118]
72467         * posix/Makefile (bug-regex32-ENV): Define.
72468         Patch by John Stanley <jpsinthemix@verizon.net>.
72469
72470         * misc/Makefile (headers): Add bits/select2.h.
72471         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72472         * misc/bits/select2.h: New file.
72473         * include/bits/select2.h: New file.
72474         * debug/Makefile (routines): Add fdelt_chk.
72475         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72476         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72477         FD_ISSET.
72478         * debug/fdelt_chk.c: New file.
72479
72480         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72481         * wcsmbs/test-wmemcmp.c: Likewise.
72482         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72483         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72484
72485 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72486
72487         * string/Makefile (strop-tests): Add memcmp.
72488         * string/test-wmemcmp.c: New file.
72489         * string/test-memcmp.c: Add wmemcmp support.
72490
72491 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72492
72493         [BZ #13153]
72494         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72495         2011-07-19 change.
72496
72497         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72498         garbage value in a __mach_port_mod_refs call in the cases of the
72499         task-self and thread-self ports.
72500
72501 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72502
72503         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72504
72505 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72506
72507         * elf/dl-load.c (lose): Check for non-null L.
72508
72509 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72510
72511         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72512
72513         * elf/dl-libc.c (dlerror_run): Pass back error code from
72514         dl_catch_error.
72515
72516         [BZ #13123]
72517         * elf/dl-load.c (lose): Free l_origin if it is valid.
72518
72519         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72520         names.
72521         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72522         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72523         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72524         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72525         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72526         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72527
72528 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72529
72530         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72531         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72532         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72533         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72534         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72535         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72536         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72537         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72538         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72539         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72540
72541 2011-08-15  Alan Modra  <amodra@gmail.com>
72542
72543         [BZ #13092]
72544         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72545         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72546         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72547         ppc_mcount to static-only-routines.
72548         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72549         __mcount_internal.
72550         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72551         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72552
72553 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72554
72555         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72556         for finite and infinity parameters.
72557
72558 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72559
72560         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72561         and add nop instructions for throughput optimization.
72562         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72563
72564 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72565
72566         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72567         aligned copy for power7 with vector-scalar instructions.
72568         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72569
72570 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72571
72572         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72573         AVX check.
72574
72575 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72576
72577         [BZ #13144]
72578         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72579         last change.
72580
72581 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72582
72583         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72584         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72585         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72586         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72587         clock_gettime.
72588
72589 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72590
72591         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72592         Forgot to demangle the pointer.
72593
72594         * sysdeps/i386/sysdep.h: Define atom_text_section.
72595         * sysdeps/x86_64/sysdep.h: Likewise.
72596         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72597         section with atom_text_section.
72598         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72599         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72600         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72601         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72602         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72603
72604         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72605         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72606         already be defined.  Change to take two parameters and don't assign
72607         result to variable.  Adjust all users.
72608         Define INTERNAL_GETTIME if not already defined.
72609         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72610         call.
72611         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72612         HAVE_CLOCK_GETTIME_VSYSCALL.
72613         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72614
72615         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72616         gettimeofday vsyscall, just use time.
72617
72618 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72619
72620         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72621         <errno.h>.
72622
72623 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72624
72625         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72626         syscall on x86-64.
72627         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72628         syscall.
72629         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72630         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72631         syscall if possible.
72632
72633 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72634
72635         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72636         e_ident.  Don't pass to find_mapsXX.
72637         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72638
72639 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72640
72641         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72642         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72643         * sysdeps/x86_64/multiarch/strchr.S: Update.
72644         Check bit_slow_BSF bit.
72645         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72646         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72647         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72648
72649 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72650
72651         [BZ #13134]
72652         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72653         before glibc 2.15.
72654         (tryshell): Define.
72655         (__spawni): Change last parameter to be flag.  Test
72656         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72657         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72658         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72659         * posix/spawni.c: Likewise.
72660         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72661         * posix/spawnp.c: Likewise.  Change normal version to use
72662         SPAWN_XFLAGS_USE_PATH.
72663         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72664         SPAWN_XFLAGS_TRY_SHELL.
72665
72666         [BZ #13150]
72667         * posix/glob.h: Remove gcc 1.x support.
72668
72669         [BZ #13068]
72670         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72671
72672 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72673
72674         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72675         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72676         strrchr-sse2-bsf
72677         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72678         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72679         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72680         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72681         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72682         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72683
72684 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72685
72686         * sysdeps/x86_64/wcscmp.S: New file.
72687
72688         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72689         wcscmp-c wcscmp-sse2
72690         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72691         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72692         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72693         * wcsmbs/wcscmp.c: Allow renaming.
72694
72695 2011-09-05  David S. Miller  <davem@davemloft.net>
72696
72697         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72698         stack slot, rather than the struct return pointer slot.
72699         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72700         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72702         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72703
72704 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72705
72706         * po/ja.po: Update from translation team.
72707
72708         [BZ #13144]
72709         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72710         kernel in 64-bit binaries.
72711
72712 2011-09-01  David S. Miller  <davem@davemloft.net>
72713
72714         * elf/elf.h (HWCAP_SPARC_*): Move to..
72715         * sysdeps/sparc/sysdep.h: this new file and add new values.
72716         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72717         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72718         _DL_HWCAP_COUNT to 24.
72719         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72720         entries.
72721         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72722         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72723         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72724         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72725         instead of magic constants.
72726         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72727
72728 2011-08-31  David S. Miller  <davem@davemloft.net>
72729
72730         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72731         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72732         Reimplement to do errno handling inline.
72733         (SYSCALL_ERROR_HANDLER): New macro.
72734         (__SYSCALL_STRING): Do not do errno handling in asm.
72735         (__CLONE_SYSCALL_STRING): Delete.
72736         (__INTERNAL_SYSCALL_STRING): Delete.
72737         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72738         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72739         (PSEUDO): Reimplement to do errno handling inline.
72740         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72741         (SYSCALL_ERROR_HANDLER): New macro.
72742         (__SYSCALL_STRING): Do not do errno handling in asm.
72743         (__CLONE_SYSCALL_STRING): Delete.
72744         (__INTERNAL_SYSCALL_STRING): Delete.
72745         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72746         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72747         i386.
72748         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72749         (inline_syscall*): Add 'err' argument.
72750         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72751         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72752         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72753         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72754
72755         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72756         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72757
72758 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72759
72760         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72761
72762 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72763
72764         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
72765         directive.
72766
72767 2011-08-24  David S. Miller  <davem@davemloft.net>
72768
72769         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
72770
72771 2011-08-24  Andreas Schwab  <schwab@redhat.com>
72772
72773         * elf/Makefile: Add rules to build and run unload8 test.
72774         * elf/unload8.c: New file.
72775         * elf/unload8mod1.c: New file.
72776         * elf/unload8mod1x.c: New file.
72777         * elf/unload8mod2.c: New file.
72778         * elf/unload8mod3.c: New file.
72779
72780         * elf/dl-close.c (_dl_close_worker): Reset private search list if
72781         it wasn't used.
72782
72783 2011-08-23  David S. Miller  <davem@davemloft.net>
72784
72785         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
72786         subtract stack bias.
72787         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
72788         %sp not %fp in calculations.
72789         (_JMPBUF_UNWINDS_ADJ): Likewise.
72790
72791         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
72792         (aio_suspend): Call it to force an exception region around the
72793         AIO_MISC_WAIT() invocation.
72794
72795 2011-08-23  Andreas Schwab  <schwab@redhat.com>
72796
72797         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
72798         backslash.
72799
72800 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
72801
72802         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
72803         protection macro.
72804         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
72805         and <dl-machine.h>.
72806         (Elf64_FuncDesc): Remove.
72807
72808 2011-08-22  David S. Miller  <davem@davemloft.net>
72809
72810         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
72811         sigaltstack check, add missing cfi directives.
72812         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
72813         missing cfi directives, and sigaltstack handling.
72814
72815 2011-08-16  Andreas Schwab  <schwab@redhat.com>
72816
72817         [BZ #11724]
72818         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
72819         object is seen twice.
72820         * elf/dl-fini.c (_dl_sort_fini): Likewise.
72821
72822         * elf/Makefile (distribute): Add tst-initorder2.c.
72823         (tests): Add tst-initorder2.
72824         (modules-names): Add tst-initorder2a tst-initorder2b
72825         tst-initorder2c tst-initorder2d.  Add rules to build them.
72826         ($(objpfx)tst-initorder2.out): New rule.
72827         * elf/tst-initorder2.c: New file.
72828         * elf/tst-initorder2.exp: New file.
72829
72830 2011-08-22  Andreas Schwab  <schwab@redhat.com>
72831
72832         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
72833
72834         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
72835         dependencies back to end of function.
72836
72837         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
72838         $(elfobjdir)/ld.so.
72839
72840 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
72841
72842         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
72843         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
72844         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
72845         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
72846         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
72847         of __vdso_gettimeofday.
72848         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
72849         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
72850         attribute_hidden.
72851         (_libc_vdso_platform_setup): Remove initialization of
72852         __vdso_gettimeofday and __vdso_time.
72853
72854 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72855
72856         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
72857         and fgetc_unlocked.
72858         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
72859         getc_unlocked.
72860
72861         * elf/dl-open.c (add_to_global): Report additions to the global scope
72862         for LD_DEBUG=scopes.
72863         (dl_open_worker): Also print scope of newly loaded dependencies.
72864         (_dl_show_scope): Indicate if there is no scope.
72865
72866         [BZ #13114]
72867         * stdio-common/Makefile (tests): Add bug24.
72868         * stdio-common/bug24.c: New file.
72869
72870 2011-08-19  Andreas Jaeger  <aj@suse.de>
72871
72872         [BZ #13114]
72873         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
72874         non-existant file when using close-on-exec mode.
72875
72876 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72877
72878         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
72879         the very first instruction.
72880
72881         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
72882         the CFI state in the end.
72883         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
72884         inclusion of dl-trampoline.h.
72885         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
72886
72887 2011-08-19  Andreas Schwab  <schwab@redhat.com>
72888
72889         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
72890         expectations for long double.
72891
72892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
72893         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
72894
72895 2011-08-14  David S. Miller  <davem@davemloft.net>
72896
72897         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
72898         artificual limit depends upon the system page size.
72899
72900 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72901
72902         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
72903         * resolv/Makefile: Define CFLAGS-libresolv.
72904
72905 2011-08-17  Andreas Schwab  <schwab@redhat.com>
72906
72907         * nss/makedb.c (compute_tables): Make variables used in nested
72908         function static.
72909
72910 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72911
72912         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
72913         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
72914         if buffer was too small.
72915
72916         * elf/pldd.c (main): Attach to all threads in the process.
72917         Rewrite /proc handling to use *at functions.
72918
72919 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
72920
72921         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
72922         specifies first scope to show.
72923         (dl_open_worker): Update callers.  Move printing scope of new
72924         object to before the relocation.
72925         * elf/rtld.c (dl_main): Update _dl_show_scope call.
72926         * sysdeps/generic/ldsodefs.h: Update declaration.
72927
72928         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
72929         string for the scope number.
72930
72931 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
72932
72933         * nscd/servicescache.c (cache_addserv): Make sure written is always
72934         initialized.
72935
72936 2011-08-14  Roland McGrath  <roland@hack.frob.com>
72937
72938         * sysdeps/i386/i486/bits/atomic.h
72939         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
72940         statement expression, so as to suppress "set but not used" warning.
72941         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
72942
72943         * string/strncat.c (STRNCAT): Use prototype definition.
72944
72945         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
72946         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
72947         -Iprograms here.
72948         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
72949         (localedef-modules): Add localedef.
72950         (locale-modules): Add locale.
72951
72952         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
72953         * elf/rtld.c (dl_main): Invert order of assignment in last change,
72954         to avoid a warning.
72955
72956 2011-08-14  David S. Miller  <davem@davemloft.net>
72957
72958         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
72959         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
72960
72961 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
72962
72963         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
72964         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
72965         * elf/rtld.c (dl_main): Set l_name of vDSO.
72966         Call _dl_show_scope when DL_DEBUG_SCOPES.
72967         (process_dl_debug): Recognize scopes flag and also set it for all.
72968         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
72969         Declare _dl_show_scope.
72970
72971         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
72972         (do_dlopen): Pass caller_dlopen to dl_open.
72973         (__libc_dlopen_mode): Initialize caller_dlopen.
72974
72975         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
72976         of libc.  Make tolower call locale-independent.  Optimize a bit by
72977         using isdigit instead of isalnum.
72978         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
72979
72980 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
72981
72982         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
72983         was a dependency or dynamically loaded.
72984
72985 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
72986
72987         * intl/l10nflist.c: Allow architecture-specific pop function.
72988         * sysdeps/x86_64/l10nflist.c: New file.
72989
72990         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
72991         classification.
72992
72993 2011-08-10  Andreas Schwab  <schwab@redhat.com>
72994
72995         * include/dirent.h: Add libc_hidden_proto for scandirat and
72996         scandirat64.  Don't declare __scandirat64.
72997         * dirent/scandirat.c: Add libc_hidden_def.
72998         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
72999         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73000
73001 2011-08-10  David S. Miller  <davem@davemloft.net>
73002
73003         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73004         enum.
73005         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73006         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73007         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73008
73009 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73010
73011         * Versions.def [libc]: Add GLIBC_2.15.
73012         * dirent/Makefile (routines): Add scandirat and scandirat64.
73013         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73014         GLIBC_2.15.
73015         * dirent/dirent.h: Declare scandirat and scandirat64.
73016         * dirent/scandirat.c: New file.
73017         * dirent/scandirat64.c: New file.
73018         * sysdeps/wordsize-64/scandirat.c: New file.
73019         * sysdeps/wordsize-64/scandirat64.c: New file.
73020         * dirent/opendir.c: Define opendirat.
73021         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73022         using scandirat.
73023         * dirent/scandir64.c: Adjust for scandir.c change.
73024         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73025         __scandirat64, and __scandir_cancel_handler.
73026         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73027         additional parameter and use openat instead of open (outside of ld.so).
73028         Add new __opendir as wrapper around __opendirat.
73029         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73030         here without requiring old scandirat implementation.
73031
73032 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73033
73034         * dirent/scandir.c (cancel_handler): Renamed to
73035         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73036         defined.  Adjust users.
73037         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73038         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73039
73040 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73041
73042         * string/test-string.h (IMPL): Use __STRING to expand name and then
73043         stringify it.
73044
73045         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73046         of cleanups.
73047
73048 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73049
73050         * string/Makefile: Update.
73051         (strop-tests): Append strncat.
73052         * string/test-wcscmp.c: New file.
73053         New comprehensive test for wcscmp.
73054         * string/test-strcmp.c: Update.
73055         (WIDE): New define.
73056
73057 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73058
73059         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73060         line.
73061
73062 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73063
73064         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73065         encoding to ACE if AI_IDN.
73066
73067 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73068
73069         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73070         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73071
73072 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73073
73074         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73075         Fix overflow bug in strncat.
73076         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73077
73078         * string/test-strncat.c: Update.
73079         Add new tests for checking overflow bugs.
73080
73081 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73082
73083         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73084         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73085         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73086         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73087         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73088         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73089         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73090         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73091         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73092
73093         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73094         (USE_AS_STRCAT): Define.
73095         Add strcat and strncat support.
73096         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73097
73098 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73099
73100         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73101         __n bigger than INT_MAX+1.
73102         (__strncmp_g): Likewise.
73103
73104 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73105
73106         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73107         * libio/stido.h: Likewise.
73108
73109         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73110         (AF_NFC): Define.
73111         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73112         (AF_NFC): Define.
73113
73114         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73115         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73116         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73117         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73118         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73119
73120         [BZ #13021]
73121         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73122         installed.
73123
73124         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73125         typo.
73126         (_dl_x86_64_save_sse): Likewise.
73127
73128 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73129
73130         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73131         OSXSAVE.
73132         (_dl_x86_64_save_sse): Likewise.
73133
73134         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73135
73136         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73137
73138 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73139
73140         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73141         change.
73142         (_dl_x86_64_save_sse): Use correct AVX check.
73143
73144 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73145
73146         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73147         bug in strncpy/strncat.
73148         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73149
73150 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73151
73152         * string/tester.c (test_strcat): Add tests for different alignments
73153         of source and destination.
73154         (test_strncat): Likewise.
73155
73156 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73157
73158         [BZ #12852]
73159         * posix/glob.c (glob): Check passed in values before using them in
73160         expressions to avoid some overflows.
73161         (glob_in_dir): Likewise.
73162
73163         [BZ #13007]
73164         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73165         check for AVX enablement so that we don't crash with old kernels and
73166         new hardware.
73167         * elf/tst-audit4.c: Add same checks here.
73168         * elf/tst-audit6.c: Likewise.
73169
73170         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73171
73172 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73173
73174         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73175
73176 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73177
73178         * po/cs.po: Update from translation team.
73179         * po/bg.po: Likewise.
73180
73181 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73182
73183         * misc/sys/cdefs.h: Add support for const attribute.
73184         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73185         to gnu_dev_{major,minor,makedev} functions.
73186
73187 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73188
73189         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73190
73191 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73192
73193         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73194         strlen results.
73195
73196 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73197
73198         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73199         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73200         register in order to avoid conflicts with the soft frame pointer
73201         being held in r11 when necessary.
73202         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73203         (INTERNAL_VSYSCALL_NCS): Likewise.
73204
73205 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73206
73207         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73208         * elf/dl-fini.c (_dl_fini): Adjust caller.
73209         * elf/dl-close.c (_dl_close_worker): Likewise.
73210         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73211
73212 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73213
73214         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73215         "aux_cache->nlibs < 0".
73216
73217         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73218         in the reload-count case.
73219
73220 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73221
73222         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73223         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73224         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73225         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73226         * sysdeps/x86_64/multiarch/strcat.S: New file.
73227         * sysdeps/x86_64/multiarch/strncat.S: New file.
73228         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73229         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73230         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73231         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73232         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73233         (USE_AS_STRCAT): Define.
73234         Add strcat and strncat support.
73235         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73236         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73237         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73238         * string/strncat.c: Update.
73239         (USE_AS_STRNCAT): Define.
73240         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73241         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73242         and i7.
73243         * sysdeps/x86_64/multiarch/init-arch.h
73244         (bit_Prefer_PMINUB_for_stringop): New.
73245         (index_Prefer_PMINUB_for_stringop): Likewise.
73246         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73247         bit_Prefer_PMINUB_for_stringop.
73248
73249 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73250
73251         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73252         buffer64.
73253         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73254         of casting of buffer.
73255         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73256         buffer32 and buffer64.
73257         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73258         writes instead of casting of buffer.
73259         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73260         buffer32.
73261         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73262         casting of buffer.
73263
73264 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73265
73266         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73267
73268 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73269
73270         * nscd/nscd.c (termination_handler): Don't do anything for a database
73271         if it has not yet been initialized.
73272
73273 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73274
73275         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73276
73277 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73278
73279         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73280
73281 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73282
73283         * po/nl.po: Update from translation team.
73284         * po/sv.po: Likewise.
73285
73286 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73287
73288         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73289         now disallowed by GCC.
73290
73291         * configure.in (use-default-link): Default to yes if a test -shared
73292         link meets our qualifications.
73293         * configure: Regenerated.
73294
73295         * config.make.in (output-format): New variable.
73296         * configure.in: Check for ld --print-output-format support.
73297         * configure: Regenerated.
73298         * Makerules ($(common-objpfx)format.lds)
73299         [$(output-format) != unknown]: Just use $(output-format),
73300         instead of the linker-script munging.
73301
73302 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73303
73304         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73305         of $(common-objpfx)shlib.lds.
73306         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73307
73308         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73309         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73310
73311         * configure.in (-z relro check): Adjust test code to add a large
73312         writable data section after it.
73313         * configure: Regenerated.
73314
73315 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73316
73317         * configure.in (-z relro check): Fix test code to make the variable
73318         truly const.
73319         * configure: Regenerated.
73320
73321 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73322
73323         * nscd/nscd.h (struct traced_file): Define.
73324         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73325         elements.  Add traced_files.
73326         (inotify_fd): Declare.
73327         (register_traced_file): Declare.
73328         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73329         (inotify_fd): Export.
73330         (resolv_conf_descr): Remove.
73331         (nscd_init): Move inotify descriptor creation to main.
73332         Don't register files for notification here.
73333         (register_traced_file): New function.
73334         (invalidate_cache): Don't use reset_res to determine whether to call
73335         res_init, go through the list of registered files.
73336         (main_loop_poll): The inotify descriptors are now stored in the
73337         structures for the traced files.
73338         (main_loop_epoll): Likewise.
73339         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73340         to __nss_disable_nscd.
73341         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73342         for a database anymore.  Check the records for all the registered
73343         files instead.
73344         * nss/Makefile (libnss_files-routines): Add files-init.
73345         (libnss_db-routines): Add db-init.
73346         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73347         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73348         * nss/nss_db/db-init.c: New file.
73349         * nss/nss_files/files-init.c: New file.
73350         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73351         __nss_lookup_function.
73352         (__nss_lookup_function): Call nss_load_library.
73353         (nss_load_all_libraries): New function.
73354         (__nss_disable_nscd): Take parameter with callback function for files
73355         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73356         used for the cached services.
73357         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73358         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73359         options for features to all the files in nscd.
73360
73361         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73362
73363 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73364
73365         * csu/elf-init.c (__libc_csu_init): Comment typo.
73366
73367 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73368
73369         * po/pl.po: Update from translation team.
73370         * po/ja.po: Likewise.
73371         * po/ru.po: Likewise.
73372         * po/ko.po: Likewise.
73373         * po/fr.po: Likewise.
73374
73375 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73376
73377         * configure.in (.ctors/.dtors header and trailer check):
73378         Use an empirical test on a built program.
73379         * configure: Regenerated.
73380
73381         * configure.in (-z relro check): Use an empirical test on a built DSO.
73382         Detect, but do not require, on ia64.
73383         * configure: Regenerated.
73384
73385         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73386         Update tests that use readelf to use $READELF instead.
73387         * configure: Regenerated.
73388
73389 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73390
73391         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73392         if the result is not used.
73393
73394 2011-07-05  Andreas Jaeger  <aj@suse.de>
73395
73396         [BZ#9696]
73397         * stdlib/tst-strtod.c: Add testcase.
73398
73399 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73400
73401         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73402         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73403         The latter has a higher limit.  Take additional parameter to pass to
73404         the new function.
73405         (__pathconf): Pass file to __statfs_link_max.
73406         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73407         __statfs_link_max.
73408         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73409         __statfs_link_max.
73410
73411         [BZ #12868]
73412         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73413         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73414         Handle Lustre.
73415         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73416         (__statfs_filesize_max): Likewise.
73417         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73418
73419 2011-07-05  Andreas Jaeger  <aj@suse.de>
73420
73421         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73422
73423 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73424
73425         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73426         `status' variable.
73427         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73428         Likewise.
73429
73430 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73431
73432         * Makefile (strop-tests): Add strncat.
73433         * string/test-strncat.c: New file.
73434
73435 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73436
73437         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73438
73439 2011-06-21  Andreas Jaeger  <aj@suse.de>
73440
73441         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73442         Copy rule from iconvdata/Makefile.
73443
73444 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73445
73446         [BZ #12922]
73447         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73448         but no long options are defined, just return 'W'.
73449
73450 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73451
73452         [BZ #9696]
73453         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73454
73455 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73456
73457         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73458         netgroups to read.
73459         (innetgr): Likewise.
73460
73461 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73462
73463         * config.make.in (install_root): Default to $(DESTDIR).
73464
73465 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73466
73467         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73468
73469 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73470
73471         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73472
73473         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73474         containing directory rather than embedding absolute directory names.
73475
73476         * scripts/check-local-headers.sh: Rewritten using awk.
73477         Match by word, not by line.  Print error messages for matches.
73478         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73479
73480         * Makerules [shlib-lds-flags empty]:
73481         ($(common-objpfx)libc_pic.opts): New target.
73482         ($(common-objpfx)libc_pic.os.clean): New target.
73483         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73484
73485         * config.make.in (OBJCOPY): New variable.
73486         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73487         * configure: Regenerated.
73488
73489         * config.make.in (use-default-link): New variable.
73490         * configure.in (use_default_link): Grok --with-default-link to set it.
73491         * configure: Regenerated.
73492         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73493         (shlib-lds, shlib-lds-flags): Define to empty.
73494
73495         * Makerules (shlib-lds): New variable.
73496         (shlib-lds-flags): New variable.
73497         (build-shlib, build-moduile, build-module-asneeded): Use it.
73498         ($(common-objpfx)libc.so): Use $(shlib-lds).
73499         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73500         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73501
73502         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73503         DT_FLAGS/DT_FLAGS_1 with zero flags.
73504
73505         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73506         linker script munging.
73507
73508 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73509
73510         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73511         as 128-bit value.
73512         * crypt/sha512.c (sha512_process_block): Perform total addition using
73513         128-bit if possible.
73514         (__sha512_finish_ctx): Likewise.
73515         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73516         as 64-bit value.
73517         * crypt/sha256.c (SWAP64): Define.
73518         (sha256_process_block): Perform total addition using 64-bit if
73519         possible.
73520         (__sha256_finish_ctx): Likewise.
73521
73522 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73523
73524         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73525         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73526         * nscd/hstcache.c (cache_addhst): Likewise.
73527         * nscd/grpcache.c (cache_addgr): Likewise.
73528         * nscd/aicache.c (addhstaiX): Likewise.
73529         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73530
73531 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73532
73533         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73534         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73535         * nscd/hstcache.c (cache_addhst): Likewise.
73536         * nscd/grpcache.c (cache_addgr): Likewise.
73537         * nscd/aicache.c (addhstaiX): Likewise.
73538
73539 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73540
73541         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73542         domain only when needed.
73543
73544 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73545
73546         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73547         is always restored.
73548
73549 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73550
73551         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73552         are re-adding the entry.
73553         * nscd/servicescache.c (cache_addserv): Likewise.
73554
73555 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73556
73557         * sysdeps/generic/dl-irel.h: fix protection against multiple
73558         inclusions.
73559         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73560
73561 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73562
73563         [BZ #12935]
73564         * malloc/memusage.sh: Fix quoting in message.
73565         * debug/xtrace.sh: Likewise.
73566
73567         * configure.in: Remove support for --experimental-malloc option, make
73568         it the default.
73569         * config.make.in: Likewise.
73570         * malloc/Makefile: Likewise.
73571
73572 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73573
73574         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73575         two-byte characters.
73576
73577 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73578
73579         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73580         AC_CACHE_CHECK invocation.
73581         * configure: Regenerated.
73582
73583         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73584
73585 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73586
73587         [BZ #12350]
73588         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73589         bit from old_res_options.
73590
73591         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73592
73593         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73594         value type for setfct.
73595
73596 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73597
73598         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73599         __gettimeofday instead of gettimeofday.
73600
73601 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73602
73603         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73604
73605 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73606
73607         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73608
73609         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73610         info.
73611
73612 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73613
73614         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73615         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73616         strcpy-sse2-unaligned strncpy-sse2-unaligned
73617         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73618         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73619         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73620         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73621         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73622         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73623         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73624         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73625         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73626         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73627         (STRCPY): Support SSE2 and SSSE3 versions.
73628
73629 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73630
73631         [BZ #12874]
73632         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73633         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73634         kernels which artificially limit size of requests.
73635
73636 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73637
73638         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73639         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73640         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73641         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73642         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73643         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73644         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73645         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73646         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73647         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73648         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73649         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73650         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73651         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73652         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73653         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73654         Enable unaligned load optimization for Intel Core i3, i5 and i7
73655         processors.
73656         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73657         Define.
73658         (index_Fast_Unaligned_Load): Define.
73659         (HAS_FAST_UNALIGNED_LOAD): Define.
73660
73661 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73662
73663         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73664
73665 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73666
73667         [BZ #12907]
73668         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73669         until it is clear that the information is realy needed.
73670         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73671
73672 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73673
73674         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73675
73676 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73677
73678         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73679         /sys/devices/system/cpu/online if it is usable.
73680
73681         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73682         reading the information from the /proc filesystem to once a second.
73683
73684 2011-06-21  Andreas Jaeger  <aj@suse.de>
73685
73686         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73687         NULL after inclusion of kernel headers.
73688
73689 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73690
73691         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73692         calls to internal_setent.
73693
73694         [BZ #12885]
73695         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73696         addresses using gethostbyname4_r ignore IPv4 addresses.
73697
73698         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73699         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73700
73701         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73702
73703 2011-06-20  David S. Miller  <davem@davemloft.net>
73704
73705         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73706         inclusions.
73707         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73708
73709         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73710         (elf_irel): Use it.
73711         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73712         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73713         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73714         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73715         * sysdeps/x86_64/dl-irel.h: Likewise.
73716
73717         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73718         * elf/dl-sym.c: Likewise.
73719
73720 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73721
73722         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73723         need to dereference resplen2.
73724
73725 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73726
73727         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73728
73729 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73730
73731         * Makeconfig: Define vardbdir and inst_vardbdir.
73732         * nss/Makefile: Add rules to install db-Makefile.
73733
73734         * nss/nss_db/db-XXX.c: Cleanup.
73735
73736         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73737         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73738         GLIBC_PRIVATE.
73739         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73740         * nss/makedb.c: Implement -g option to specify that value strings
73741         are generated and should not be added to table iterated over for
73742         get*ent calls.
73743         * nss/nss_db/db-initgroups.c: New file.
73744
73745         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73746         interface.
73747
73748         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73749         (internal_getgrouplist): Adjust to name change.
73750         Update use_initgroups_entry if this is not the first call.
73751         * nss/databases.def: Add initgroups entry.
73752
73753         * nss/makedb.c (compute_tables): Check result of multiple hash table
73754         sizes to minimize maximum chain length.
73755
73756 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73757
73758         * Versions.def: Add entry for libnss_db.
73759         * shlib-versions: Likewise.
73760         * nss/Makefile: Add rules to build libnss_db.
73761         * nss/Versions: Add libnss_db information.  Organize libnss_files
73762         entries better.
73763         * nss/db-Makefile: Add gshadow support.  Change rules for the new
73764         makedb progra.  Some minor improvements to generate smaller files.
73765         * nss/nss_db/nss_db.h: Move NSS database header data structures to
73766         here from...
73767         * nss/makedb.c: ...here.
73768         Improve database format to be smaller and require less memory at
73769         runtime.
73770         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
73771         db anymore.
73772         * nss/nss_db/db-netgrp.c: Likewise.
73773         * nss/nss_db/db-open.c: Likewise.
73774         * nss/nss_files/flies-XXX.x: Adjust comments.
73775         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
73776         * nss/nss_files/files-grp.c: Likewise.
73777         * nss/nss_files/files-hosts.c: Likewise.
73778         * nss/nss_files/files-network.c: Likewise.
73779         * nss/nss_files/files-proto.c: Likewise.
73780         * nss/nss_files/files-pwd.c: Likewise.
73781         * nss/nss_files/files-rpc.c: Likewise.
73782         * nss/nss_files/files-service.c: Likewise.
73783         * nss/nss_files/files-sgrp.c: Likewise.
73784         * nss/nss_files/files-spwd.c: Likewise.
73785         * nss/nss_db/db-alias.c: Removed.
73786         * nss/nss_db/dummy-db.h: Removed.
73787
73788 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
73789
73790         * nss/makedb.c: Rewritten to not use database library.
73791         * nss/Makefile: Update to build new makedb program.
73792
73793 2011-06-14  Andreas Jaeger  <aj@suse.de>
73794
73795         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
73796         memset declaration.
73797
73798 2011-06-10  Andreas Schwab  <schwab@redhat.com>
73799
73800         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
73801         tmpbuf.
73802
73803 2011-06-10  Roland McGrath  <roland@hack.frob.com>
73804
73805         * Makerules (shlib.lds): Fail if the linker script comes out empty.
73806         * elf/Makefile ($(objpfx)ld.so): Likewise.
73807
73808         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
73809         Don't list ld.so twice in dependencies.
73810
73811         * posix/bug-regex31.c: Include <stdlib.h>.
73812
73813         * nscd/hstcache.c (cache_addhst): Remove unused variable.
73814
73815         * nis/nss_compat/compat-spwd.c
73816         (getspent_next_nss_netgr): Remove unused variable.
73817         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
73818
73819         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
73820         nonmembers" output to use the right array.
73821
73822         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
73823
73824         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
73825
73826         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
73827         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
73828         * catgets/gencat.c (read_input_file): Likewise.
73829         * locale/programs/locarchive.c (enlarge_archive): Likewise.
73830
73831         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
73832         variable definition inside #if's controlling its use.
73833
73834         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
73835
73836         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
73837
73838         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
73839
73840         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
73841         unreachable code.
73842
73843         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
73844
73845         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
73846         * configure: Regenerated.
73847
73848         * Makerules: Revert last change.
73849         * elf/Makefile: Likewise.
73850
73851 2011-06-09  Roland McGrath  <roland@hack.frob.com>
73852
73853         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
73854         * elf/Makefile ($(objpfx)librtld.os): Likewise.
73855         (reloc-link): Likewise.
73856
73857 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
73858
73859         * elf/Makefile: Add rules to build pldd.
73860         * elf/pldd.c: New file.
73861         * elf/pldd-xx.c: New file.
73862
73863 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
73864
73865         * version.h: Update for 2.15 development version.
73866
73867 2011-06-07  David S. Miller  <davem@davemloft.net>
73868
73869         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
73870         ifuncs.
73871         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
73872         elf_machine_lazy_rel): Likewise.
73873         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
73874         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
73875         elf_machine_lazy_rel): Likewise.
73876         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
73877         dl_hwcap via passed in argument.
73878         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
73879         Likewise.
73880
73881 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73882
73883         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
73884
73885 2011-06-06  Roland McGrath  <roland@hack.frob.com>
73886
73887         [BZ #12849]
73888         * manual/fdl-1.1.texi: New file, verbatim from:
73889         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
73890         * manual/lgpl-2.1.texi: New file, verbatim from:
73891         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
73892         * manual/Makefile (licenses): New variable, list those new file names.
73893         (texis): Use it.
73894         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
73895
73896         * manual/fdl.texi: File removed.
73897         * manual/lesser.texi: File removed.
73898         * manual/libc.texinfo (Copying, Documentation License):
73899         Use new @include file names, put @appendix directive before @include.
73900
73901 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
73902
73903         [BZ #12841]
73904         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
73905         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
73906         (mq_open): Add __NTH.
73907
73908 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
73909
73910         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73911         Assume Intel Core i3/i5/i7 processor if AVX is available.
73912
73913 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73914
73915         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73916         typo.
73917
73918 2011-05-31  Andreas Schwab  <schwab@redhat.com>
73919
73920         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
73921         memory.  Use alloca_account.  Fix memory leak when retrying.
73922
73923 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73924
73925         * version.h (RELEASE): Bump for 2.14 release.
73926         * include/features.h (__GLIBC_MINOR__): Bump to 14.
73927
73928         * config.make.in (RANLIB): Remove entry.
73929
73930 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
73931
73932         * po/Makefile (po-sed-cmd): Add ksh to extensions.
73933         (libc.pot): Work around missing support for .ksh extension in xgettext.
73934
73935         [BZ #12684]
73936         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
73937         if both request failed.
73938         (send_dg): In case of server errors clear resplen or *resplen2.
73939
73940         [BZ #12454]
73941         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
73942         when there are multiple maps.
73943         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
73944         (_dl_fini): Remove test here.
73945
73946         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
73947
73948 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
73949
73950         [BZ #12350]
73951         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
73952         bit from old_res_options.
73953         (gaih_inet): Likewise.
73954
73955         [BZ #11099]
73956         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
73957         as signed.
73958
73959         * resolv/res_init.c (res_setoptions): Make the code more compact.
73960
73961         [BZ #11558]
73962         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
73963         set RES_USEVC.
73964
73965         [BZ #11634]
73966         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
73967
73968         * malloc/malloc.h: Mark malloc hook variables as deprecated.
73969
73970         [BZ #11781]
73971         * malloc/malloc.h: Declare malloc hook variables as volatile.
73972
73973         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
73974         in last patch.
73975
73976         [BZ #11799]
73977         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
73978         raise in the comment.
73979         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
73980         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
73981         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
73982
73983 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
73984
73985         [BZ #12811]
73986         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
73987         grow the buffers more if it already has to be sufficient.
73988         (build_wcs_upper_buffer): Likewise.
73989         * posix/regexec.c (check_matching): Likewise.
73990         (clean_state_log_if_needed): Likewise.
73991         (extend_buffers): Don't enlarge buffers beyond size of the input
73992         buffer.
73993         Patches mostly by Emil Wojak <emil@wojak.eu>.
73994         * posix/bug-regex32.c: New file.
73995         * posix/Makefile (tests): Add bug-regex32.
73996
73997         * locale/findlocale.c (_nl_find_locale): Return right away if
73998         _nl_explode_name failed.
73999         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74000
74001         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74002
74003         * debug/xtrace.sh: Unify messages.
74004         * malloc/memusage.sh: Likewise.
74005
74006         [BZ #12813]
74007         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74008         time symbol from vDSO.  Substitute with vsyscall if not available.
74009         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74010         __vdso_time.
74011
74012         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74013         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74014         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74015         Add sendmmsg and internal_sendmmsg.
74016         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74017         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74018         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74019
74020         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74021         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74022         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74023
74024 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74025
74026         [BZ #12813]
74027         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74028         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74029         available.
74030         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74031         __vdso_getcpu.
74032
74033         [BZ #12814]
74034         * iconvdata/Makefile (tests): Add bug-iconv9.
74035         * iconvdata/bug-iconv9.c: New file.
74036
74037 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74038
74039         [BZ #12814]
74040         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74041
74042 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74043
74044         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74045         (struct user_regs_struct): Change intcs field back to cs.
74046
74047 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74048
74049         * po/ja.po: Update from translation team.
74050
74051 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74052
74053         [BZ #12795]
74054         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74055         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74056
74057 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74058
74059         * stdlib/longlong.h: Update from GCC.
74060
74061 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74062
74063         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74064         parameter name.
74065         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74066         Add parameter name.
74067         (__sysconf): Pass it down.
74068
74069 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74070
74071         [BZ #12671]
74072         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74073         some situations.
74074         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74075         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74076         add in in __libc_use_alloca calls.  Adjust callers.
74077         (glob): Use malloc in some situations.
74078
74079         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74080         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74081         pltexit.
74082
74083 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74084
74085         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74086         and CLOCK_BOOTTIME_ALARM.
74087
74088         [BZ #12782]
74089         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74090         is returned.
74091
74092         * string/_strerror.c (__strerror_r): Print negative errors as signed
74093         numbers.
74094
74095         [BZ #12777]
74096         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74097         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74098         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74099
74100         * configure.in: Fix typo in redirection and correct removal of test
74101         files in two cases.
74102
74103         [BZ #12788]
74104         * locale/setlocale.c (new_composite_name): Fix test to check for
74105         identical name of all categories.
74106
74107         [BZ #12792]
74108         * libio/filedoalloc.c (local_isatty): New function.
74109         (_IO_file_doallocate): Use local_isatty.
74110         * stdio-common/perror.c (perror): In case a new stream is used
74111         forward the stream error.
74112         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74113         error flag.
74114
74115 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74116
74117         [BZ #11884]
74118         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74119         alloca.
74120         * include/alloca.h (extend_alloca_account): Define.
74121
74122         [BZ #11857]
74123         * posix/regex.h: Fix comments with documentation of user-accessible
74124         fields after compilation and describe correct free'ing of pattern
74125         after re_compile_pattern.
74126         Patch by Reuben Thomas <rrt@sc3d.org>.
74127
74128 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74129
74130         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74131         and -mno-altivec to prevent the compiler from using Altivec and/or
74132         VSX instructions when the corresponding registers are not available.
74133
74134 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74135
74136         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74137
74138 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74139
74140         * libio/freopen.c (freopen): Use __dup2, not dup2.
74141         * libio/freopen64.c (freopen64): Likewise.
74142
74143 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74144
74145         [BZ #12775]
74146         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74147         * math/Makefile (tests): Add test-powl.
74148         (CFLAGS-test-powl.c): Define.
74149         * math/test-powl.c: New file.
74150
74151 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74152
74153         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74154
74155 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74156
74157         [BZ #11837]
74158         * iconvdata/gb18030.c: Update to GB18020-2005.
74159
74160 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74161
74162         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74163         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74164         Patch by Aharon Robbins <arnold@skeeve.com>.
74165
74166         [BZ #11892]
74167         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74168         on the stack.
74169
74170         [BZ #11895]
74171         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74172         through underflows.
74173
74174         [BZ #12766]
74175         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74176         point to strings before performing equality test for error_one_per_line
74177         mode.
74178
74179         [BZ #11697]
74180         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74181
74182         [BZ #11820]
74183         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74184         (struct user_fpregs_struct): Avoid __uint*_t types.
74185
74186         [BZ #6420]
74187         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74188         symbol info.  Use it instead of calling _dl_addr locally.
74189         (lock_and_info): New function.
74190         (tr_freehook): Call lock_and_info and pass symbol info as additional
74191         parameter to tr_where.
74192         (tr_mallochook): Likewise.
74193         (tr_reallochook): Likewise.
74194         (tr_memalignhook): Likewise.
74195
74196         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74197         used and couldn't be at all thread-safe.
74198
74199 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74200
74201         * libio/freopen.c (freopen): Don't close old file descriptor
74202         before the new one is opened.  Instead dup the new file descriptor
74203         to the old one after the new stream is created.
74204         * libio/freopen64.c (freopen64): Likewise.
74205         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74206         * libio/fileops.c (_IO_new_file_close_it): Handle new
74207         _IO_FLAGS2_NOCLOSE flag.
74208         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74209         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74210         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74211         _IO_FLAGS2_NOCLOSE flag.
74212         * include/unistd.h: Add hidden_proto for dup3.
74213         Define __have_dup3.
74214         * io/dup3.c: Define hidden symbol.
74215         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74216
74217         [BZ #7101]
74218         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74219         when an incomplete long option is used.
74220         * posix/tst-getopt_long1.c: New file.
74221         * posix/Makefile (tests): Add tst-getopt_long1.
74222
74223         [BZ #10138]
74224         * scripts/config.guess: Update from autoconf-2.68.
74225         * scripts/config.sub: Likewise.
74226
74227         [BZ #10157]
74228         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74229         tests into ...
74230         (has_cpuclock): ...this.  New function.
74231         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74232         macro here based on has_cpuclock code.
74233
74234         [BZ #10149]
74235         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74236         First byte (not low byte) is now always NUL.
74237         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74238
74239         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74240         Use non-cancelable interfaces.
74241
74242         [BZ #9809]
74243         * locale/iso-639.def: Add entry for Sorani.
74244
74245         [BZ #11901]
74246         * include/stdlib.h: Move include protection to the right place.
74247         Define abort_msg_s.  Declare __abort_msg with it.
74248         * stdlib/abort.c (__abort_msg): Adjust type.
74249         * assert/assert.c (__assert_fail_base): New function.  Majority
74250         of code from __assert_fail.  Allocate memory for __abort_msg with
74251         mmap.
74252         (__assert_fail): Now call __assert_fail_base.
74253         * assert/assert-perr.c: Remove bulk of implementation.  Use
74254         __assert_fail_base.
74255         * include/assert.hL Declare __assert_fail_base.
74256         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74257         mmap.
74258         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74259
74260 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74261
74262         [BZ #11952]
74263         [BZ #12453]
74264         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74265         until all modules are registered in the DTV.
74266         * elf/Makefile: Add rules to build and run tst-tls19.
74267         * elf/tst-tls19.c: New file.
74268         * elf/tst-tls19mod1.c: New file.
74269         * elf/tst-tls19mod2.c: New file.
74270         * elf/tst-tls19mod3.c: New file.
74271         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74272
74273         [BZ #12083]
74274         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74275         correctly.
74276
74277         [BZ #12601]
74278         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74279         two-byte sequence errors.
74280         * iconvdata/Makefile (tests): Add bug-iconv8.
74281         * iconvdata/bug-iconv8.c: New file.
74282
74283         [BZ #12626]
74284         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74285         buf2 definition.
74286
74287         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74288
74289         [BZ #12432]
74290         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74291         (dummy_getcfa): New function.
74292         (init): Get _Unwind_GetCFA address, use dummy if not found.
74293         (backtrace_helper): In recursion check, also check whether CFA changes.
74294         (__backtrace): Completely initialize arg.
74295
74296         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74297         storing incomplete byte sequence in state object.  Avoid testing for
74298         guaranteed too small input if we know there is enough data available.
74299
74300 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74301
74302         * Makeconfig (+link-pie): Indent.
74303         * Rules (binaries-pie): Define if $(have-fpie) and
74304         $(build-shared).
74305         (binaries-shared): Also filter out $(binaries-pie).
74306         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74307         * nscd/Makefile (others-pie): Add nscd.
74308         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74309         ($(objpfx)nscd): Remove command override.
74310         * login/Makefile (others-pie): Add pt_chown.
74311         ($(objpfx)pt_chown): Remove command override.
74312         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74313         remove command overrides.
74314
74315 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74316
74317         * libio/tst_putwc.c: Fix error messages.
74318
74319         [BZ #12724]
74320         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74321         currently writing and seek to current position when not.
74322         * libio/Makefile (tests): Add bug-fclose1.
74323         * libio/bug-fclose1.c: New file.
74324
74325 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74326
74327         [BZ #12511]
74328         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74329         don't set DF_1_NODELETE here.
74330         (do_lookup_x): When entering new entry test for copy relocation
74331         and if necessary set DF_1_NODELETE flag.
74332         * elf/tst-unique4.cc: New file.
74333         * elf/tst-unique4.h: New file.
74334         * elf/tst-unique4lib.cc: New file.
74335         * elf/Makefile: Add rules to build and run tst-unique4.
74336         Patch by Piotr Bury <pbury@goahead.com>.
74337
74338 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74339
74340         [BZ #12052]
74341         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74342
74343         [BZ #12625]
74344         * misc/mntent_r.c (addmntent): Flush the stream after the output
74345
74346         [BZ #12393]
74347         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74348         (is_trusted_path_normalize): Skip initial colon.  Append slash
74349         to empty buffer.  Duplicate is_trusted_path code but allow
74350         constructed patch to be prefix.
74351         (is_dst): Allow $ORIGIN followed by /.
74352         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74353         Correct testing of result of is_trusted_path_normalize
74354         (decompose_rpath): Fix warning.
74355
74356 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74357
74358         [BZ #11257]
74359         * grp/initgroups.c (internal_getgrouplist): When we found the service
74360         list through the initgroups entry in nsswitch.conf do not always
74361         continue on a successful lookup.  Don't always use the
74362         __nss_group_database value if it is set.
74363         * nss/nsswitch.conf (initgroups): Change action for successful db
74364         lookup to continue for compatibility.
74365
74366 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74367
74368         [BZ #11532]
74369         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74370         and CP774 modules.
74371         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74372         and CP774 modules.
74373         * iconvdata/tst-tables.sh: Likewise.
74374         * iconvdata/cp770.c: New file.
74375         * iconvdata/cp771.c: New file.
74376         * iconvdata/cp772.c: New file.
74377         * iconvdata/cp773.c: New file.
74378         * iconvdata/cp774.c: New file.
74379         * iconvdata/testdata/CP770: New file.
74380         * iconvdata/testdata/CP770..UTF8: New file.
74381         * iconvdata/testdata/CP771: New file.
74382         * iconvdata/testdata/CP771..UTF8: New file.
74383         * iconvdata/testdata/CP772: New file.
74384         * iconvdata/testdata/CP772..UTF8: New file.
74385         * iconvdata/testdata/CP773: New file.
74386         * iconvdata/testdata/CP773..UTF8: New file.
74387         * iconvdata/testdata/CP774: New file.
74388         * iconvdata/testdata/CP774..UTF8: New file.
74389
74390         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74391         END CHARMAP line.
74392         * iconvdata/gen-8bit-gap.sh: Likewise.
74393         * iconvdata/gen-8bit.sh: Likewise.
74394
74395         * locale/iso-639.def: Add ary entry.
74396
74397         [BZ #11258]
74398         * locale/C-translit.h.in: Add U20A1 transliteration.
74399
74400         [BZ #12178]
74401         * locale/iso-639.def: Add wae entry.
74402         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74403
74404         [BZ #12545]
74405         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74406         for n.
74407
74408         [BZ #12711]
74409         * locale/C-translit.h.in: Add entry for U20B9.
74410         Patch by pravin.d.s@gmail.com.
74411
74412 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74413
74414         [BZ #12713]
74415         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74416         ENAMETOOLONG use generic getcwd.
74417         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74418         in rtld.  Use *stat64.
74419         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74420         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74421         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74422         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74423         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74424         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74425         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74426         __fstatat64 macros.
74427         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74428         * dirent/rewinddir.c: Add libc_hidden_def.
74429         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74430         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74431
74432         * include/dirent.h (__alloc_dir): Add flags parameter.
74433         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74434         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74435         __alloc_dir.
74436         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74437         from fdopendir if O_CLOEXEC is already set.
74438
74439 2011-03-15  Alan Modra  <amodra@gmail.com>
74440
74441         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74442         l_tls_firstbyte_offset non-zero.  Save padding offset in
74443         l_tls_firstbyte_offset for later use.
74444         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74445         freeing static tls block.
74446
74447 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74448
74449         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74450         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74451         being defined by the kernel headers.
74452
74453 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74454
74455         [BZ #12734]
74456         * resolv/resolv.h: Define RES_NOTLDQUERY.
74457         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74458         no-tld-query and set RES_NOTLDQUERY.
74459         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74460         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74461         modern BIND to search name as TLD unless forbidden.
74462
74463 2011-05-07  Petr Baudis  <pasky@suse.cz>
74464             Ulrich Drepper  <drepper@gmail.com>
74465
74466         [BZ #12393]
74467         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74468         (is_trusted_path): ...to here.
74469         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74470         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74471         using is_trusted_path_normalize() in setuid scripts.
74472
74473 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74474
74475         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74476         __BEGIN/__END_DECLS.
74477
74478 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74479
74480         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74481         NSS_STATUS_NOTFOUND if no record was found.
74482
74483 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74484
74485         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74486         (headers-not-in-tirpc): Remove rpc/netdb.h
74487         * resolv/netdb.h: Revert last change.
74488
74489 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74490
74491         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74492         circular dependency between libgcc.a and libc.a.
74493
74494 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74495
74496         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74497         * nis/Makefile: Don't install rpcsvc/*.
74498         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74499         instead of <rpc/types.h>.
74500         (MAXHOSTNAMELEN): Define.
74501
74502 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74503
74504         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74505
74506 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74507
74508         [BZ #12714]
74509         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74510         gethostbyname4_r when IPv6 results are possible.
74511
74512 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74513
74514         [BZ #12723]
74515         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74516         _PC_PIPE_BUF handling.
74517
74518 2011-04-30  Bruno Haible  <bruno@clisp.org>
74519
74520         [BZ #12717]
74521         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74522         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74523         to 'int'.
74524         * inet/getnameinfo.c (getnameinfo): Likewise.
74525
74526 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74527
74528         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74529         to groups setting in database lookup.
74530         * nss/nsswitch.conf: Add initgroups entry.
74531
74532 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74533
74534         [BZ #12685]
74535         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74536         mode string.
74537         Patch by Eric Blake <eblake@redhat.com>.
74538
74539 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74540
74541         * sunrpc/Makefile (need-export-routines): Add svc_run.
74542         (routines): Remove svc_run.
74543         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74544         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74545         * sunrpc/svc_run.c (svc_run): Likewise.
74546         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74547
74548 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74549
74550         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74551         problem in reallocation in last patch.
74552
74553 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74554
74555         * sunrpc/Makefile: Move inclusion of Rules.
74556
74557 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74558
74559         * nss/nss_files/files-initgroups.c: New file.
74560         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74561         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74562         _nss_files_initgroups_dyn.
74563
74564 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74565
74566         * elf/elf.h (R_ARM_IRELATIVE): Define.
74567
74568 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74569
74570         * po/ru.po: Update from translation team.
74571
74572 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74573
74574         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74575         dependencies.
74576
74577 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74578
74579         [BZ #12653]
74580         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74581         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74582         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74583         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74584         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74585
74586 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74587
74588         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74589         differing bytes.
74590         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74591         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74592         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74593
74594 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74595
74596         [BZ #12420]
74597         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74598         storing it.
74599         * stdlib/bug-getcontext.c: New file.
74600         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74601
74602 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74603
74604         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74605         instructions into .machine "z9-109".
74606         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74607         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74608
74609 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74610
74611         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74612         between environment variables and auxiliary vector.
74613
74614 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74615
74616         * Makefile: Add rules to build linkobj/libc.so.
74617         * include/libc-symbols.h: Define libc_hidden_nolink.
74618         * include/rpc/auth.h: Mark functions which are to be hidden.
74619         * include/rpc/auth_des.h: Likewise.
74620         * include/rpc/auth_unix.h: Likewise.
74621         * include/rpc/clnt.h: Likewise.
74622         * include/rpc/des_crypt.h: Likewise.
74623         * include/rpc/key_prot.h: Likewise.
74624         * include/rpc/pmap_clnt.h: Likewise.
74625         * include/rpc/pmap_prot.h: Likewise.
74626         * include/rpc/pmap_rmt.h: Likewise.
74627         * include/rpc/rpc_msg.h: Likewise.
74628         * include/rpc/svc.h: Likewise.
74629         * include/rpc/svc_auth.h: Likewise.
74630         * include/rpc/xdr.h: Likewise.
74631         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74632         * nss/Makefile: Likewise.
74633         * sunrpc/Makefile: Don't install headers.  Build library with normal
74634         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74635         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74636         for the compat linking library.  Remove use of INTDEF/INTUSE.
74637         * sunrpc/auth_none.c: Likewise.
74638         * sunrpc/auth_unix.c: Likewise.
74639         * sunrpc/authdes_prot.c: Likewise.
74640         * sunrpc/authuxprot.c: Likewise.
74641         * sunrpc/clnt_gen.c: Likewise.
74642         * sunrpc/clnt_perr.c: Likewise.
74643         * sunrpc/clnt_raw.c: Likewise.
74644         * sunrpc/clnt_simp.c: Likewise.
74645         * sunrpc/clnt_tcp.c: Likewise.
74646         * sunrpc/clnt_udp.c: Likewise.
74647         * sunrpc/clnt_unix.c: Likewise.
74648         * sunrpc/des_crypt.c: Likewise.
74649         * sunrpc/des_soft.c: Likewise.
74650         * sunrpc/get_myaddr.c: Likewise.
74651         * sunrpc/key_call.c: Likewise.
74652         * sunrpc/key_prot.c: Likewise.
74653         * sunrpc/netname.c: Likewise.
74654         * sunrpc/pm_getmaps.c: Likewise.
74655         * sunrpc/pm_getport.c: Likewise.
74656         * sunrpc/pmap_clnt.c: Likewise.
74657         * sunrpc/pmap_prot.c: Likewise.
74658         * sunrpc/pmap_prot2.c: Likewise.
74659         * sunrpc/pmap_rmt.c: Likewise.
74660         * sunrpc/publickey.c: Likewise.
74661         * sunrpc/rpc_cmsg.c: Likewise.
74662         * sunrpc/rpc_common.c: Likewise.
74663         * sunrpc/rpc_dtable.c: Likewise.
74664         * sunrpc/rpc_prot.c: Likewise.
74665         * sunrpc/rpc_thread.c: Likewise.
74666         * sunrpc/rtime.c: Likewise.
74667         * sunrpc/svc.c: Likewise.
74668         * sunrpc/svc_auth.c: Likewise.
74669         * sunrpc/svc_authux.c: Likewise.
74670         * sunrpc/svc_raw.c: Likewise.
74671         * sunrpc/svc_run.c: Likewise.
74672         * sunrpc/svc_simple.c: Likewise.
74673         * sunrpc/svc_tcp.c: Likewise.
74674         * sunrpc/svc_udp.c: Likewise.
74675         * sunrpc/svc_unix.c: Likewise.
74676         * sunrpc/svcauth_des.c: Likewise.
74677         * sunrpc/xcrypt.c: Likewise.
74678         * sunrpc/xdr.c: Likewise.
74679         * sunrpc/xdr_array.c: Likewise.
74680         * sunrpc/xdr_float.c: Likewise.
74681         * sunrpc/xdr_intXX_t.c: Likewise.
74682         * sunrpc/xdr_mem.c: Likewise.
74683         * sunrpc/xdr_rec.c: Likewise.
74684         * sunrpc/xdr_ref.c: Likewise.
74685         * sunrpc/xdr_sizeof.c: Likewise.
74686         * sunrpc/xdr_stdio.c: Likewise.
74687
74688 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74689
74690         [BZ #12650]
74691         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74692         * sysdeps/ia64/dl-tls.h: Likewise.
74693         * sysdeps/powerpc/dl-tls.h: Likewise.
74694         * sysdeps/s390/dl-tls.h: Likewise.
74695         * sysdeps/sh/dl-tls.h: Likewise.
74696         * sysdeps/sparc/dl-tls.h: Likewise.
74697         * sysdeps/x86_64/dl-tls.h: Likewise.
74698         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74699
74700 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74701
74702         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74703         rpath element also skip the following colon.
74704         (expand_dynamic_string_token): Add is_path parameter and pass
74705         down to DL_DST_REQUIRED and _dl_dst_substitute.
74706         (decompose_rpath): Call expand_dynamic_string_token with
74707         non-zero is_path.  Ignore empty rpaths.
74708         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74709         with zero is_path.
74710
74711 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74712
74713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74714         Make cancelable.
74715
74716 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74717
74718         [BZ #12655]
74719         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74720         Patch by Filipe David Manana <fdmanana@apache.org>.
74721
74722 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74723
74724         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74725         Maintain aligned stack.
74726         (CHECK_RSP): Remove unused macro.
74727
74728 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74729
74730         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74731         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74732
74733 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74734
74735         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74736
74737         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74738
74739 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74740
74741         [BZ #12518]
74742         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74743         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74744         * sysdeps/x86_64/memmove.c: New file.
74745         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74746         (memcpy): Renamed to ...
74747         (__new_memcpy): This.
74748         (memcpy): Provide GLIBC_2_14 memcpy.
74749         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74750         (memcpy): Provide GLIBC_2_2_5 memcpy.
74751
74752 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74753
74754         [BZ #12631]
74755         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74756
74757 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74758
74759         * misc/syncfs.c: New file.
74760         * misc/Makefile (routines): Add syncfs.
74761         * posix/unistd.h: Declare syncfs.
74762         * sysdeps/unix/syscalls.list: Add syncfs.
74763
74764 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74765
74766         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
74767         open_by_handle_at.
74768         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74769         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74770         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74771         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74772         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74773         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
74774         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74775
74776 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74777
74778         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
74779         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74780         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
74781         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74782         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74783         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74784         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74785
74786         * io/Makefile: Compile fallocate.c, fallocate64.c, and
74787         sync_file_range.c with -fexceptions.
74788         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
74789         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
74790         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
74791         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
74792         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
74793         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
74794         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
74795         sync_file_range as cancellation point
74796         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
74797         now a wrapper around __call_sync_file_range with cancellation handling.
74798         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
74799         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
74800         function name to __call_sync_file_range.
74801         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
74802         Add call_sync_file_range.
74803
74804 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74805
74806         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74807         bits/timex.h.
74808
74809 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74810
74811         * iconv/iconv.h: Fix typo in comment.
74812         * io/fcntl.h: Likewise.
74813         * libio/stdio.h: Likewise.
74814         * posix/spawn.h: Likewise.
74815         * posix/unistd.h: Likewise.
74816         * stdlib/stdlib.h: Likewise.
74817         * time/time.h: Likewise.
74818         * wcsmbs/wchar.h: Likewise.
74819
74820         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
74821         open_by_handle): Add.
74822         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
74823         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
74824         Augment a few comments.
74825         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74826         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74827         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74828         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74829         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74830         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
74831         open_by_handle.
74832
74833         * io/fcntl.h (AT_EMPTY_PATH): Define.
74834
74835 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
74836
74837         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
74838         * sysdeps/unix/sysv/linux/bits/time.h: New file.
74839         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
74840         to...
74841         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
74842         * Versions.def: Add GLIBC_2.14.
74843         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
74844         Export.
74845
74846 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
74847
74848         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
74849         round counter.
74850         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74851
74852 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
74853
74854         [BZ #12597]
74855         * string/test-strncmp.c (do_page_test): New function.
74856         (check2): Likewise.
74857         (test_main): Call check2.
74858         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
74859
74860 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
74861
74862         [BZ #12587]
74863         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
74864         Handle cache information in CPU leaf 4.
74865         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74866
74867 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
74868
74869         [BZ #12583]
74870         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
74871         character representation.
74872         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
74873
74874 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
74875
74876         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
74877         END(__isnan) to END(__isnanf) to match function entry point/label
74878         EALIGN(__isnanf,...).
74879
74880 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
74881
74882         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
74883
74884 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
74885
74886         [BZ #12510]
74887         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
74888         copy from the symbol referenced in the relocation to initialize the
74889         used variable.
74890         Patch by Piotr Bury <pbury@goahead.com>.
74891         * elf/Makefile: Add rules to build and tst-unique3.
74892         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
74893         * elf/tst-unique3.cc: New file.
74894         * elf/tst-unique3.h: New file.
74895         * elf/tst-unique3lib.cc: New file.
74896         * elf/tst-unique3lib2.cc: New file.
74897
74898         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
74899
74900 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
74901
74902         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
74903         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
74904         to _start.
74905
74906 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
74907
74908         * elf/dl-load.c (_dl_map_object): If we are looking for the first
74909         to-be-loaded object along a path to loader is ld.so.
74910
74911 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74912             Ulrich Drepper  <drepper@gmail.com>
74913
74914         * sysdeps/x86_64/memset.S: After aligning destination, code
74915         branches to different locations depending on the value of
74916         misalignment, when multiarch is enabled. Fix this.
74917
74918 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74919
74920         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
74921         Set _x86_64_preferred_memory_instruction for AMD processsors.
74922         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74923         Set bit_Prefer_SSE_for_memop for AMD processors.
74924
74925 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
74926
74927         * libio/fmemopen.c (fmemopen): Optimize a bit.
74928
74929 2011-03-03  Andreas Schwab  <schwab@redhat.com>
74930
74931         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
74932
74933 2011-03-03  Roland McGrath  <roland@redhat.com>
74934
74935         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
74936
74937 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
74938
74939         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
74940         __bzero_ultra1 instead of __memset_ultra1.
74941
74942 2011-02-23  Andreas Schwab  <schwab@redhat.com>
74943             Ulrich Drepper  <drepper@gmail.com>
74944
74945         [BZ #12509]
74946         * include/link.h (struct link_map): Add l_orig_initfini.
74947         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
74948         returning unsuccessfully.
74949         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
74950         close of a file loaded at startup, restore the original l_initfini
74951         list.
74952         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
74953         list, store the pointer.
74954         * elf/Makefile ($(objpfx)noload-mem): New rule.
74955         (noload-ENV): Define.
74956         (tests): Add $(objpfx)noload-mem.
74957         * elf/noload.c: Include <memcheck.h>.
74958         (main): Call mtrace.  Close all opened handles.
74959
74960 2011-02-17  Andreas Schwab  <schwab@redhat.com>
74961
74962         [BZ #12454]
74963         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
74964         dependencies are missing.
74965
74966 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74967
74968         Fix __if_freereq crash: Unlike the generic version which uses free,
74969         Hurd needs munmap.
74970         * sysdeps/mach/hurd/ifreq.h: New file.
74971
74972 2011-01-27  Petr Baudis  <pasky@suse.cz>
74973             Ulrich Drepper  <drepper@gmail.com>
74974
74975         [BZ 12445]#
74976         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
74977         to extend_alloca().
74978         * stdio-common/bug23.c: New file.
74979         * stdio-common/Makefile (tests): Add bug23.
74980
74981 2010-09-28  Andreas Schwab  <schwab@redhat.com>
74982             Ulrich Drepper  <drepper@gmail.com>
74983
74984         [BZ #12489]
74985         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
74986         before performing relro protection.  At old place add assertion
74987         to make sure nothing changed.
74988
74989 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
74990             Glauber de Oliveira Costa  <glommer@gmail.com>
74991
74992         * elf/elf.h: Add new ARM TLS relocs.
74993
74994 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
74995
74996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
74997         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
74998         cast from r3.
74999         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75000         'tests' variable.
75001         * sysdeps/wordsize-64/tst-writev.c: New file.
75002
75003 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75004
75005         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75006         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75007         insns in _dl_start to prevent a TOC reference before relocs are
75008         resolved.
75009
75010 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75011
75012         [BZ #12469]
75013         * Makeconfig: Remove RANLIB definition.
75014         * Makerules: Don't use RANLIB.
75015         * aclocal.m4: Remove ranlib test.
75016         * configure.in: No need to check for ranlib.
75017         * elf/rtld-Rules: Don't use RANLIB.
75018
75019 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75020
75021         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75022         protection macro.
75023         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75024         inclusion protection macro.
75025
75026         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75027         SIGRTMIN and SIGRTMAX and print information in that case only when
75028         SIGRTMIN is defined.
75029
75030 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75031
75032         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75033         arginfo fn returning -1.
75034
75035         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75036         and thousands string is zero terminated.
75037
75038 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75039
75040         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75041         sysdeps/unix/sysv/linux/bits/socket.h.
75042
75043 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75044
75045         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75046         (__CPU_COUNT): Remove old macros.
75047         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75048         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75049         (__CPU_ALLOC, __CPU_FREE): Add macros.
75050         (__sched_cpualloc, __sched_cpufree): Add declarations.
75051
75052 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75053
75054         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75055         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75056         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75057         (readdhstai): Return value of addhstaiX call.
75058         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75059         (addgrbyX): Return value returned by cache_addgr.
75060         (readdgrbyname): Return value returned by addgrbyX.
75061         (readdgrbygid): Likewise.
75062         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75063         (addpwbyX): Return value returned by cache_addpw.
75064         (readdpwbyname): Return value returned by addhstbyX.
75065         (readdpwbyuid): Likewise.
75066         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75067         (addservbyX): Return value returned by cache_addserv.
75068         (readdservbyname): Return value returned by addservbyX:
75069         (readdservbyport): Likewise.
75070         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75071         (addhstbyX): Return value returned by cache_addhst.
75072         (readdhstbyname): Return value returned by addhstbyX.
75073         (readdhstbyaddr): Likewise.
75074         (readdhstbynamev6): Likewise.
75075         (readdhstbyaddrv6): Likewise.
75076         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75077         (readdinitgroups): Return value returned by addinitgroupsX.
75078         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75079         (prune_cache): Keep track of timeout value of re-added entries.
75080         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75081         * nscd/nscd.h: Adjust prototypes of readd* functions.
75082
75083 2011-02-04  Roland McGrath  <roland@redhat.com>
75084
75085         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75086         (nis_stats): Likewise.
75087         * nis/nis_modify.c (nis_modify): Likewise.
75088         * nis/nis_remove.c (nis_remove): Likewise.
75089         * nis/nis_add.c (nis_add): Likewise.
75090
75091         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75092
75093         * posix/fnmatch_loop.c: Add some consts.
75094
75095         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75096
75097 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75098
75099         [BZ #12460]
75100         * config.make.in (config-cflags-novzeroupper): Define.
75101         * configure.in: Substitute libc_cv_cc_novzeroupper.
75102         * elf/Makefile (AVX-CFLAGS): Define.
75103         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75104         (CFLAGS-tst-auditmod4a.c): Likewise.
75105         (CFLAGS-tst-auditmod4b.c): Likewise.
75106         (CFLAGS-tst-auditmod6b.c): Likewise.
75107         (CFLAGS-tst-auditmod6c.c): Likewise.
75108         (CFLAGS-tst-auditmod7b.c): Likewise.
75109         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75110
75111 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75112
75113         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75114         function to the callback.
75115         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75116
75117 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75118
75119         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75120         of errno.
75121
75122 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75123
75124         [BZ #11724]
75125         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75126         of constructors.
75127         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75128         of destructors.
75129         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75130
75131         [BZ #11724]
75132         * elf/Makefile: Add rules to build and run new test.
75133         * elf/tst-initorder.c: New file.
75134         * elf/tst-initorder.exp: New file.
75135         * elf/tst-initordera1.c: New file.
75136         * elf/tst-initordera2.c: New file.
75137         * elf/tst-initordera3.c: New file.
75138         * elf/tst-initordera4.c: New file.
75139         * elf/tst-initorderb1.c: New file.
75140         * elf/tst-initorderb2.c: New file.
75141         * elf/tst-order-a1.c: New file.
75142         * elf/tst-order-a2.c: New file.
75143         * elf/tst-order-a3.c: New file.
75144         * elf/tst-order-a4.c: New file.
75145         * elf/tst-order-b1.c: New file.
75146         * elf/tst-order-b2.c: New file.
75147         * elf/tst-order-main.c: New file.
75148         New test case by George Gensure <werkt0@gmail.com>.
75149
75150 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75151
75152         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75153         decoding ACE if AI_CANONIDN.
75154
75155 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75156
75157         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75158
75159 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75160
75161         * version.h (RELEASE): Bump for 2.13 release.
75162         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75163
75164         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75165
75166         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75167         MADV_NOHUGEPAGE.
75168         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75169         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75170         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75171         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75172         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75173         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75174
75175         * posix/getconf.c: Update copyright year.
75176         * catgets/gencat.c: Likewise.
75177         * csu/version.c: Likewise.
75178         * debug/catchsegv.sh: Likewise.
75179         * debug/xtrace.sh: Likewise.
75180         * elf/ldconfig.c: Likewise.
75181         * elf/ldd.bash.in: Likewise.
75182         * elf/sprof.c (print_version): Likewise.
75183         * iconv/iconv_prog.c: Likewise.
75184         * iconv/iconvconfig.c: Likewise.
75185         * locale/programs/locale.c: Likewise.
75186         * locale/programs/localedef.c: Likewise.
75187         * malloc/memusage.sh: Likewise.
75188         * malloc/mtrace.pl: Likewise.
75189         * nscd/nscd.c (print_version): Likewise.
75190         * nss/getent.c: Likewise.
75191
75192         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75193         PF_CAIF, and PF_ALG.
75194         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75195
75196 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75197
75198         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75199         (modules-names): Use them.
75200         (ifunc-test-modules, ifunc-pie-tests): Define.
75201         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75202         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75203         (test-extras): Likewise.
75204         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75205         $(compile-command.c).
75206         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75207         (all-built-dso): Define.
75208         (check-textrel.out, check-execstack.out): Depend on it.
75209
75210         * configure.in: Don't override --enable-multi-arch.
75211
75212 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75213
75214         [BZ #6812]
75215         * nscd/hstcache.c (tryagain): Define.
75216         (cache_addhst): Return tryagain not notfound for temporary errors.
75217         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75218         failed.
75219
75220 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75221
75222         [BZ #10563]
75223         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75224         to make the syscall.
75225         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75226
75227         [BZ #12378]
75228         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75229         and fall back to matching as normal character if the string ends before
75230         the matching ']' is found.  This is what POSIX requires.
75231         * posix/testfnm.c: Adjust test result.
75232         * posix/globtest.sh: Adjust test result.  Add new test.
75233         * posix/tst-fnmatch.input: Likewise.
75234         * posix/tst-fnmatch2.c: Add new test.
75235
75236 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75237
75238         * elf/Makefile (check-execstack): Revert last change.  Depend on
75239         check-execstack.h.
75240         (check-execstack.h): New target.
75241         (generated): Add check-execstack.h.
75242         * elf/check-execstack.c: Include "check-execstack.h".
75243         (main): Revert last change.
75244         (handle_file): Return zero if GNU_STACK is absent and
75245         DEFAULT_STACK_PERMS doesn't include PF_X.
75246
75247 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75248
75249         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75250         in child fails because the descriptor is already closed.
75251         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75252         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75253         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75254
75255         [BZ #12397]
75256         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75257         syscall.
75258
75259         [BZ #10484]
75260         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75261         temporary buffer used to handle multi lookups locally.
75262         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75263
75264 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75265
75266         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75267         loader is ld.so.
75268
75269 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75270
75271         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75272         alignment for SSE2.
75273
75274 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75275
75276         [BZ #12394]
75277         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75278         characters.  When rounding increased number of integer digits recompute
75279         number of groups.
75280         * stdio-common/tst-grouping.c: New file.
75281         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75282
75283 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75284
75285         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75286         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75287
75288         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75289         void.
75290         * bits/select.h: Likewise.
75291
75292 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75293
75294         * po/ja.po: Update from translation team.
75295
75296 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75297
75298         [BZ #11155]
75299         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75300         implementation just like for lxstat, fxstatat, et al.
75301
75302 2010-12-27  Jim Meyering  <meyering@redhat.com>
75303
75304         [BZ #12348]
75305         * posix/regexec.c (build_trtable): Return failure indication upon
75306         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75307
75308 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75309
75310         [BZ #12201]
75311         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75312         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75313         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75314         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75315
75316         [BZ #12207]
75317         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75318
75319         [BZ #12204]
75320         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75321         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75322
75323 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75324
75325         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75326         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75327         script has SORT_BY_INIT_PRIORITY.
75328         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75329         NO_CTORS_DTORS_SECTIONS is defined.
75330         * elf/soinit.c: Likewise.
75331         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75332         NO_CTORS_DTORS_SECTIONS is defined.
75333         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75334         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75335         * sysdeps/sh/init-first.c: Likewise.
75336         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75337
75338 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75339
75340         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75341         always use the slow path.
75342
75343 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75344
75345         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75346         similar rule which adds the sysdep directories to the header search in
75347         order to pick up the correct platform stackinfo.h.
75348         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75349         perform test if it is, otherwise return successfully without testing.
75350         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75351         DEFAULT_STACK_PERMS define in stackinfo.h.
75352         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75353         defined in stackinfo.h.
75354         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75355         DEFAULT_STACK_PERMS defined in stackinfo.h.
75356         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75357         * sysdeps/ia64/stackinfo.h: Likewise.
75358         * sysdeps/s390/stackinfo.h: Likewise.
75359         * sysdeps/sh/stackinfo.h: Likewise.
75360         * sysdeps/sparc/stackinfo.h: Likewise.
75361         * sysdeps/x86_64/stackinfo.h: Likewise.
75362         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75363         PF_X for powerpc64.  Retain PF_X for powerpc32.
75364
75365 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75366
75367         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75368         accurately.
75369         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75370         GETDENTS_64BIT_ALIGNED.
75371
75372 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75373
75374         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75375
75376 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75377
75378         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75379         _GNU_SOURCE.
75380
75381         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75382         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75383         Remove __restrict.
75384         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75385         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75386
75387 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75388
75389         [BZ #11655]
75390         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75391         are initialized.
75392
75393 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75394
75395         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75396
75397 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75398
75399         * po/it.po: Update from translation team.
75400
75401 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75402
75403         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75404         unused codes.
75405
75406 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75407
75408         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75409
75410 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75411
75412         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75413         specially.
75414         (gaih_getanswer_slice): Likewise.
75415
75416 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75417
75418         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75419
75420 2010-05-31  Petr Baudis  <pasky@suse.cz>
75421
75422         [BZ #11149]
75423         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75424         silently even in the chroot mode.
75425
75426 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75427
75428         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75429         last patch a bit.  Pretty printing
75430
75431 2010-05-31  Petr Baudis <pasky@suse.cz>
75432
75433         [BZ #10085]
75434         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75435         initialization of skip_initgroups_dyn.
75436
75437 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75438
75439         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75440         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75441
75442 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75443
75444         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75445
75446 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75447
75448         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75449         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75450         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75451         ($(objpfx)tst-fnmatch-mem): New rule.
75452         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75453         * posix/tst-fnmatch.c (main): Call mtrace.
75454
75455 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75456
75457         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75458         Support Intel processor model 6 and model 0x2c.
75459
75460 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75461
75462         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75463           signed comparison.
75464
75465 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75466
75467         [BZ #12205]
75468         * string/test-strncasecmp.c (check_result): New function.
75469         (do_one_test): Use it.
75470         (check1): New function.
75471         (test_main): Use it.
75472         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75473         Support strcasecmp and strncasecmp.
75474
75475 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75476
75477         [BZ #12194]
75478         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75479         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75480
75481 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75482
75483         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75484         IFUNC support.
75485         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75486         memset-x86-64.
75487         * sysdeps/x86_64/multiarch/bzero.S: New file.
75488         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75489         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75490         * sysdeps/x86_64/multiarch/memset.S: New file.
75491         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75492         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75493         Set bit_Prefer_SSE_for_memop for Intel processors.
75494         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75495         Define.
75496         (index_Prefer_SSE_for_memop): Define.
75497         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75498
75499 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75500
75501         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75502         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75503
75504 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75505
75506         [BZ #12191]
75507         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75508         (__x86_64_raw_data_cache_size_half): Likewise.
75509         (__x86_64_raw_shared_cache_size): Likewise.
75510         (__x86_64_raw_shared_cache_size_half): Likewise.
75511
75512         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75513         (__x86_64_raw_data_cache_size_half): Likewise.
75514         (__x86_64_raw_shared_cache_size): Likewise.
75515         (__x86_64_raw_shared_cache_size_half): Likewise.
75516         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75517         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75518         and __x86_64_raw_shared_cache_size_half.  Round
75519         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75520         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75521         to multiple of 256 bytes.
75522
75523 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75524
75525         [BZ #12167]
75526         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75527         of inacessible symlinks.  Verify result of symlink before returning it.
75528         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75529         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75530
75531 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75532
75533         * math/math.h (isinf): Fix typo in comment.
75534
75535 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75536
75537         * po/da.po: Update from translation team.
75538
75539 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75540
75541         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75542         is added to the list.
75543
75544 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75545             Ulrich Drepper  <drepper@gmail.com>
75546
75547         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75548         the global list here.  Move code to...
75549         (_dl_add_to_namespace_list): ...here.  New function.
75550         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75551         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75552         * elf/dl-load.c (lose): Don't remove the element from the list.
75553         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75554         (_dl_map_object): Likewise.
75555
75556 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75557
75558         [BZ #12159]
75559         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75560         into all bytes of SSE register.
75561         Patch by Richard Li <richardpku@gmail.com>.
75562
75563 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75564
75565         [BZ #12140]
75566         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75567         perturbing.
75568
75569 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75570
75571         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75572         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75573         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75574         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75576         submachine.
75577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75578
75579 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75580
75581         * include/dlfcn.h (__RTLD_SECURE): Define.
75582         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75583         mode & __RTLD_SECURE instead.
75584         (open_path): Rename preloaded parameter to secure.
75585         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75586         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75587         * elf/dl-deps.c (openaux): Likewise.
75588         * elf/rtld.c (struct map_args): Remove is_preloaded.
75589         (map_doit): Don't use it.
75590         (dl_main): Likewise.
75591         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75592         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75593
75594 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75595
75596         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75597         (sysd-rules-targets): Remove duplicates.
75598         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75599         rtld-%.$o dependency.
75600
75601 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75602
75603         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75604         _dl_map_object do it.
75605
75606 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75607
75608         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75609         fast fma builtins, define the macros in the C99 standard.
75610         (FP_FAST_FMAF): Likewise.
75611         (FP_FAST_FMAL): Likewise.
75612         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75613
75614         * bits/mathdef.h: Update copyright year.
75615         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75616
75617 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75618
75619         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75620         builtins, define the macros in the C99 standard.
75621         (FP_FAST_FMAF): Likewise.
75622         (FP_FAST_FMAL): Likewise.
75623         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75624         multiply/add.
75625         (FP_FAST_FMAF): Likewise.
75626
75627 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75628
75629         [BZ #3268]
75630         * math/libm-test.inc (fma_test): Some new testcases.
75631         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75632         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75633         y and infinite z.  Do multiplication by C already in long double.
75634         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75635         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75636         y and infinite z.  Do bitwise or of inexact bit into u.d.
75637         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75638         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75639         * sysdeps/i386/fpu/s_fma.S: Removed.
75640         * sysdeps/i386/fpu/s_fmal.S: Removed.
75641
75642 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75643
75644         [BZ #3268]
75645         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75646         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75647         computation is not scheduled after fetestexcept.  Fix value
75648         of minimum denormal long double.
75649
75650 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75651
75652         [BZ #3268]
75653         * math/libm-test.inc (fma_test): Add some more tests.
75654         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75655         correctly.
75656
75657 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75658
75659         * scripts/data/localplt-s390-linux-gnu.data: New file.
75660         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75661
75662 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75663
75664         [BZ #3268]
75665         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75666         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75667         instead of dbl-64.
75668         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75669         inlines.
75670         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75671         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75672         if one of x and y is very large and the other is subnormal.
75673         * sysdeps/s390/fpu/s_fmaf.c: New file.
75674         * sysdeps/s390/fpu/s_fma.c: New file.
75675         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75676         * sysdeps/powerpc/fpu/s_fma.S: New file.
75677         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75678         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75679         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75680
75681 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75682
75683         [BZ #3268]
75684         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75685         fma tests.
75686         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75687         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75688         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75689         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75690         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75691         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75692         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75693
75694 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75695
75696         [BZ #12078]
75697         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75698         * posix/bug-regex31.input: Add test case.
75699
75700 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75701
75702         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75703         * posix/bug-regex31.input: New file.
75704
75705         [BZ #12078]
75706         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75707         (parse_sub_exp): Fix last change, use postorder.
75708
75709         * posix/bug-regex31.c: New file.
75710         * posix/Makefile: Add rules to build and run bug-regex31.
75711
75712         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75713
75714         [BZ #12078]
75715         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75716
75717         [BZ #12108]
75718         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75719         to have entries in sys_siglist.
75720
75721         [BZ #12093]
75722         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75723         be NULL.
75724
75725 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75726
75727         [BZ #3268]
75728         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75729         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75730         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75731         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75732         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75733         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75734         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75735         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75736         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75737         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75738         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75739         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75740         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75741         * math/ftestexcept.c (fetestexcept): Likewise.
75742         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75743         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75744         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75745         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75746         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75747         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75748         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75749
75750 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75751
75752         [BZ #12107]
75753         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75754         newline.
75755
75756 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75757
75758         * string/bug-strstr1.c: New file.
75759         * string/Makefile: Add rules to build and run bug-strstr1.
75760
75761 2010-10-05  Eric Blake  <eblake@redhat.com>
75762
75763         [BZ #12092]
75764         * string/str-two-way.h (two_way_long_needle): Always clear memory
75765         when skipping input due to the shift table.
75766
75767 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
75768
75769         [BZ #12005]
75770         * malloc/mcheck.c: Handle large requests.
75771
75772         [BZ #12077]
75773         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
75774         for strncmp and strncasecmp.
75775         * string/stratcliff.c: Add tests for strcmp and strncmp.
75776         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
75777
75778 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
75779
75780         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
75781         __set_fpscr.
75782
75783 2010-09-30  Andreas Jaeger  <aj@suse.de>
75784
75785         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
75786         (CGROUP_SUPER_MAGIC): Define.
75787         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
75788         Handle btrfs and cgroup file systems.
75789         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
75790         Likewise.
75791
75792 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
75793
75794         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
75795         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
75796
75797 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75798
75799         [BZ #12067]
75800         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
75801         trying to locate the ELF header.
75802
75803 2010-09-27  Andreas Schwab  <schwab@redhat.com>
75804
75805         [BZ #11611]
75806         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
75807         Mask out sign-bit copies when constructing f_fsid.
75808
75809 2010-09-24  Petr Baudis <pasky@suse.cz>
75810
75811         * debug/stack_chk_fail_local.c: Add missing licence exception.
75812         * debug/warning-nop.c: Likewise.
75813
75814 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
75815
75816         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
75817         implementing getdents64 using getdents syscall, set d_type if
75818         __ASSUME_GETDENTS32_D_TYPE.
75819
75820 2010-09-16  Andreas Schwab  <schwab@redhat.com>
75821
75822         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
75823         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
75824
75825 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
75826
75827         [BZ #12037]
75828         * posix/unistd.h: Undo change of feature selection for ftruncate from
75829         2010-01-11.
75830
75831 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
75832
75833         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
75834         detection.
75835
75836 2010-09-20  Andreas Schwab  <schwab@redhat.com>
75837
75838         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
75839         fanotify_mark.
75840         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
75841
75842 2010-09-14  Andreas Schwab  <schwab@redhat.com>
75843
75844         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
75845         variables after CHECK_SP call.
75846         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
75847
75848 2010-09-13  Andreas Schwab  <schwab@redhat.com>
75849             Ulrich Drepper  <drepper@redhat.com>
75850
75851         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
75852         re-relocationg ld.so.
75853         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
75854         _dl_init_paths call.
75855         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
75856         here anymore.
75857
75858 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
75859
75860         * resolv/res_init.c (__res_vinit): Count the default server we added.
75861
75862 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
75863             Ulrich Drepper  <drepper@redhat.com>
75864
75865         [BZ #11968]
75866         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75867         (____longjmp_chk): Use %ebx for saving value across system call.
75868         Add unwind info.
75869
75870 2010-09-06  Andreas Schwab  <schwab@redhat.com>
75871
75872         * manual/Makefile: Don't mix pattern rules with normal rules.
75873
75874 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75875
75876         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
75877         operation.
75878         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
75879         * libio/iofopncook.c (_IO_cookie_init): Likewise.
75880         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
75881         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
75882         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75883         Likewise.
75884
75885 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
75886
75887         [BZ #11979]
75888         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
75889         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
75890
75891 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
75892
75893         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
75894         * sysdeps/x86_64/addmul_1.S: Likewise.
75895         * sysdeps/x86_64/lshift.S: Likewise.
75896         * sysdeps/x86_64/mul_1.S: Likewise.
75897         * sysdeps/x86_64/rshift.S: Likewise.
75898         * sysdeps/x86_64/sub_n.S: Likewise.
75899         * sysdeps/x86_64/submul_1.S: Likewise.
75900
75901 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75902
75903         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
75904         Define __sched_param instead of SCHED_* and sched_param when
75905         <bits/sched.h> is included with __need_schedparam defined.
75906         * bits/sched.h [__need_schedparam]
75907         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
75908         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
75909         (__defined_schedparam): Define to 1.
75910         (__sched_param): New structure, identical to sched_param.
75911         (__need_schedparam): Undefine.
75912
75913 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
75914
75915         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
75916         (epoll_create1): Declare.
75917
75918         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
75919
75920 2010-08-31  Andreas Schwab  <schwab@redhat.com>
75921
75922         [BZ #7066]
75923         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
75924         shifting retval into place.
75925
75926 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
75927
75928         * nis/rpcsvc/nis.h: Update copyright notice.
75929         * nis/rpcsvc/nis.x: Likewise.
75930         * nis/rpcsvc/nis_callback.h: Likewise.
75931         * nis/rpcsvc/nis_callback.x: Likewise.
75932         * nis/rpcsvc/nis_object.x: Likewise.
75933         * nis/rpcsvc/nis_tags.h: Likewise.
75934         * nis/rpcsvc/yp.h: Likewise.
75935         * nis/rpcsvc/yp.x: Likewise.
75936         * nis/rpcsvc/ypupd.h: Likewise.
75937         * nis/yp_xdr.c: Likewise.
75938         * nis/ypupdate_xdr.c: Likewise.
75939
75940         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
75941         mainly the body of pmap_getport.  Add parameters to specify timeouts.
75942         (pmap_getport): Use __libc_rpc_getport.
75943         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
75944         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
75945         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
75946
75947 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
75948
75949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
75950         fanotify_mark.
75951
75952 2010-08-27  Roland McGrath  <roland@redhat.com>
75953
75954         * sysdeps/i386/i686/multiarch/Makefile
75955         (CFLAGS-varshift.c): New variable.
75956
75957 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
75958
75959         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
75960         * sysdeps/i386/i686/multiarch/varshift.c: New file.
75961
75962         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
75963
75964         * sysdeps/x86_64/strlen.S: Minimal code improvement.
75965
75966 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
75967
75968         * sysdeps/x86_64/strlen.S: Unroll the loop.
75969         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75970         strlen-sse2 strlen-sse2-bsf.
75971         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
75972         __strlen_no_bsf if bit_Slow_BSF is set.
75973         (__strlen_sse42): Removed.
75974         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
75975         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
75976
75977 2010-08-25  Roland McGrath  <roland@redhat.com>
75978
75979         * sysdeps/x86_64/multiarch/varshift.S: File removed.
75980         * sysdeps/x86_64/multiarch/varshift.c: New file.
75981         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
75982         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
75983         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
75984         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
75985
75986 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
75987
75988         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75989         strlen-sse2 strlen-sse2-bsf.
75990         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
75991         __strlen_sse2_bsf if bit_Slow_BSF is unset.
75992         (__strlen_sse2): Removed.
75993         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
75994         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
75995         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
75996         bit_Slow_BSF for Atom.
75997         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
75998         (index_Slow_BSF): Define.
75999         (HAS_SLOW_BSF): Define.
76000
76001 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76002
76003         [BZ #10851]
76004         * resolv/res_init.c (__res_vinit): When no server address at all
76005         is given default to loopback.
76006
76007 2010-08-24  Roland McGrath  <roland@redhat.com>
76008
76009         * configure.in: Remove config-name.h generation.
76010         * configure: Regenerated.
76011         * config-name.in: File removed.
76012         * scripts/config-uname.sh: New file.
76013         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76014         ($(objdir)config-name.h): New target.
76015
76016         * sunrpc/rpc_parse.h: Avoid nested comment.
76017
76018 2010-08-24  Richard Henderson  <rth@redhat.com>
76019             Ulrich Drepper  <drepper@redhat.com>
76020             H.J. Lu  <hongjiu.lu@intel.com>
76021
76022         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76023         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76024         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76025         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76026         _mm_alignr_epi8 with _mm_loadu_si128.
76027         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76028         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76029         (__m128i_shift_right): Removed.
76030         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76031         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76032         * sysdeps/x86_64/multiarch/varshift.h: New file.
76033         * sysdeps/x86_64/multiarch/varshift.S: New file.
76034
76035 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76036
76037         * configure.in: Move assembler checks to before sysdep dir checking.
76038
76039 2010-08-20  Petr Baudis  <pasky@suse.cz>
76040
76041         * LICENSES: Sync the sunrpc license.
76042
76043 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76044
76045         * sunrpc/auth_des.c: Update copyright notice once again.
76046         * sunrpc/auth_none.c: Likewise.
76047         * sunrpc/auth_unix.c: Likewise.
76048         * sunrpc/authdes_prot.c: Likewise.
76049         * sunrpc/authuxprot.c: Likewise.
76050         * sunrpc/bindrsvprt.c: Likewise.
76051         * sunrpc/clnt_gen.c: Likewise.
76052         * sunrpc/clnt_perr.c: Likewise.
76053         * sunrpc/clnt_raw.c: Likewise.
76054         * sunrpc/clnt_simp.c: Likewise.
76055         * sunrpc/clnt_tcp.c: Likewise.
76056         * sunrpc/clnt_udp.c: Likewise.
76057         * sunrpc/clnt_unix.c: Likewise.
76058         * sunrpc/des_crypt.c: Likewise.
76059         * sunrpc/des_soft.c: Likewise.
76060         * sunrpc/get_myaddr.c: Likewise.
76061         * sunrpc/getrpcport.c: Likewise.
76062         * sunrpc/key_call.c: Likewise.
76063         * sunrpc/key_prot.c: Likewise.
76064         * sunrpc/openchild.c: Likewise.
76065         * sunrpc/pm_getmaps.c: Likewise.
76066         * sunrpc/pm_getport.c: Likewise.
76067         * sunrpc/pmap_clnt.c: Likewise.
76068         * sunrpc/pmap_prot.c: Likewise.
76069         * sunrpc/pmap_prot2.c: Likewise.
76070         * sunrpc/pmap_rmt.c: Likewise.
76071         * sunrpc/rpc/auth.h: Likewise.
76072         * sunrpc/rpc/auth_unix.h: Likewise.
76073         * sunrpc/rpc/clnt.h: Likewise.
76074         * sunrpc/rpc/des_crypt.h: Likewise.
76075         * sunrpc/rpc/key_prot.h: Likewise.
76076         * sunrpc/rpc/netdb.h: Likewise.
76077         * sunrpc/rpc/pmap_clnt.h: Likewise.
76078         * sunrpc/rpc/pmap_prot.h: Likewise.
76079         * sunrpc/rpc/pmap_rmt.h: Likewise.
76080         * sunrpc/rpc/rpc.h: Likewise.
76081         * sunrpc/rpc/rpc_des.h: Likewise.
76082         * sunrpc/rpc/rpc_msg.h: Likewise.
76083         * sunrpc/rpc/svc.h: Likewise.
76084         * sunrpc/rpc/svc_auth.h: Likewise.
76085         * sunrpc/rpc/types.h: Likewise.
76086         * sunrpc/rpc/xdr.h: Likewise.
76087         * sunrpc/rpc_clntout.c: Likewise.
76088         * sunrpc/rpc_cmsg.c: Likewise.
76089         * sunrpc/rpc_common.c: Likewise.
76090         * sunrpc/rpc_cout.c: Likewise.
76091         * sunrpc/rpc_dtable.c: Likewise.
76092         * sunrpc/rpc_hout.c: Likewise.
76093         * sunrpc/rpc_main.c: Likewise.
76094         * sunrpc/rpc_parse.c: Likewise.
76095         * sunrpc/rpc_parse.h: Likewise.
76096         * sunrpc/rpc_prot.c: Likewise.
76097         * sunrpc/rpc_sample.c: Likewise.
76098         * sunrpc/rpc_scan.c: Likewise.
76099         * sunrpc/rpc_scan.h: Likewise.
76100         * sunrpc/rpc_svcout.c: Likewise.
76101         * sunrpc/rpc_tblout.c: Likewise.
76102         * sunrpc/rpc_util.c: Likewise.
76103         * sunrpc/rpc_util.h: Likewise.
76104         * sunrpc/rpcinfo.c: Likewise.
76105         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76106         * sunrpc/rpcsvc/key_prot.x: Likewise.
76107         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76108         * sunrpc/rpcsvc/mount.x: Likewise.
76109         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76110         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76111         * sunrpc/rpcsvc/rex.x: Likewise.
76112         * sunrpc/rpcsvc/rstat.x: Likewise.
76113         * sunrpc/rpcsvc/rusers.x: Likewise.
76114         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76115         * sunrpc/rpcsvc/spray.x: Likewise.
76116         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76117         * sunrpc/rtime.c: Likewise.
76118         * sunrpc/svc.c: Likewise.
76119         * sunrpc/svc_auth.c: Likewise.
76120         * sunrpc/svc_authux.c: Likewise.
76121         * sunrpc/svc_raw.c: Likewise.
76122         * sunrpc/svc_run.c: Likewise.
76123         * sunrpc/svc_simple.c: Likewise.
76124         * sunrpc/svc_tcp.c: Likewise.
76125         * sunrpc/svc_udp.c: Likewise.
76126         * sunrpc/svc_unix.c: Likewise.
76127         * sunrpc/svcauth_des.c: Likewise.
76128         * sunrpc/xcrypt.c: Likewise.
76129         * sunrpc/xdr.c: Likewise.
76130         * sunrpc/xdr_array.c: Likewise.
76131         * sunrpc/xdr_float.c: Likewise.
76132         * sunrpc/xdr_mem.c: Likewise.
76133         * sunrpc/xdr_rec.c: Likewise.
76134         * sunrpc/xdr_ref.c: Likewise.
76135         * sunrpc/xdr_sizeof.c: Likewise.
76136         * sunrpc/xdr_stdio.c: Likewise.
76137
76138         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76139         handling.
76140
76141 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76142
76143         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76144
76145 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76146
76147         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76148         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76149         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76150         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76151         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76152         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76153         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76154         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76155         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76156         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76157         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76158         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76159         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76160         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76161
76162 2010-07-26  Anton Blanchard  <anton@samba.org>
76163
76164         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76165         * malloc/arena.c (heap_trim): Likewise.
76166
76167 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76168
76169         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76170         here.  Not...
76171         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76172         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76173
76174 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76175
76176         * sysdeps/i386/elf/Makefile: New file.
76177
76178 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76179
76180         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76181         from fanotify_init.
76182         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76183         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76184
76185 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76186
76187         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76188         of strncasecmp_l.
76189         * sysdeps/multiarch/strcmp.S: Likewise.
76190
76191 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76192
76193         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76194         strncase_l-nonascii.
76195         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76196         Add strncase_l-ssse3.
76197         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76198         * sysdeps/x86_64/strcmp.S: Likewise.
76199         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76200         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76201         * sysdeps/x86_64/strncase.S: New file.
76202         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76203         * sysdeps/x86_64/strncase_l.S: New file.
76204         * string/Makefile (strop-tests): Add strncasecmp.
76205         * string/test-strncasecmp.c: New file.
76206
76207         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76208         warning.
76209
76210         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76211         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76212
76213 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76214
76215         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76216
76217 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76218
76219         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76220         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76221         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76222
76223 2010-05-01  Alan Modra  <amodra@gmail.com>
76224
76225         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76226         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76227         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76228         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76229         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76230         tidying.  Don't tail-call __sigjmp_save for static lib.
76231         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76232         save location.
76233         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76234         (CALL_MCOUNT): Add eh info, and nop after bl.
76235         (TAIL_CALL_SYSCALL_ERROR): New macro.
76236         (PSEUDO_RET): Use it.
76237         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76238         Correct save location of integer regs and cr.
76239         (_dl_profile_resolve): Correct cr save location.  Delete nops
76240         after bl when SHARED.  Reduce cfi size a little by better
76241         placement of cfi directives.
76242         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76243         make a stack frame.  Instead use parm save area as a temp.
76244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76245         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76247         Don't make a stack frame for parent, use parm save area.
76248         Increase child stack frame to 112 bytes.  Don't save unused reg,
76249         and adjust reg usage.  Set up cfi on error recovery and
76250         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76252         (__makecontext): Add dummy nop after jump to exit.
76253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76254         Use correct parm save area and cr save, reduce stack frame.
76255         Correct cfi for possible PSEUDO_RET frame setup.
76256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76257         Branch to local label emitted by PSEUDO_RET rather than
76258         __syscall_error.
76259
76260 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76261
76262         [BZ #11904]
76263         * locale/programs/locale.c (print_assignment): New function.
76264         (show_locale_vars): Use it.
76265
76266 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76267
76268         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76269         field.
76270         (struct statfs64): Likewise.
76271         (_STATFS_F_FLAGS): Define.
76272         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76273         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76274         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76275         (ST_VALID): Define locally.
76276         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76277         __statvfs_getflags, use the provided value.
76278         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76279         __ASSUME_STATFS_F_FLAGS.
76280
76281         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76282
76283         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76284         Add sys/fanotify.h.
76285         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76286         fanotify_mask for GLIBC_2.13.
76287         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76288         fanotify_init and fanotify_mark.
76289         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76290         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76291
76292         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76293         Add prlimit.
76294         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76295         prlimit64 for GLIBC_2.13.
76296         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76297         prlimit64.
76298         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76299         syscall.
76300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76301         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76302         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76303         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76304         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76305         add prlimit alias.
76306         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76307
76308         [BZ #11903]
76309         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76310         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76311
76312         * nss/Makefile: Add rules to build and run tst-nss-test1.
76313         * shlib-versions: Add entry for libnss_test1.
76314         * nss/nss_test1.c: New file.
76315         * nss/tst-nss-test1.c: New file.
76316
76317         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76318         (__nss_configure_lookup): Set appropriate entry in
76319         __nss_configure_lookup to true.
76320         * nss/nsswitch.h: Define enum with indeces of databases in
76321         databases and __nss_database_custom arrays.  Declare
76322         __nss_database_custom.
76323         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76324         to avoid using nscd when custom rules are installed.
76325         * nss/getXXbyYY_r.c: Likewise.
76326         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76327
76328         * nss/nss_files/files-parse.c: Whitespace fixes.
76329
76330 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76331
76332         [BZ #11883]
76333         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76334         * posix/fnmatch_loop.c: Likewise.
76335
76336 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76337
76338         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76339         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76340         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76341         * Versions.def [GLIBC_2.13]: Add.
76342
76343 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76344
76345         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76346         Also fail if tpwd after pwuid call is NULL.
76347
76348 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76349
76350         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76351         when converting to ms.
76352
76353 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76354
76355         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76356         EOPNOTSUPP errors with ENOTTY.
76357         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76358         EOPNOTSUPP errors with ENOTTY.
76359
76360 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76361
76362         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76363         Add strcasecmp_l-ssse3.
76364         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76365         strcasecmp.
76366         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76367         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76368         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76369
76370 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76371
76372         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76373
76374         * string/Makefile (strop-tests): Add strcasecmp.
76375         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76376         strcasecmp_l-nonascii.
76377         (gen-as-const-headers): Add locale-defines.sym.
76378         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76379         * sysdeps/x86_64/strcasecmp.S: New file.
76380         * sysdeps/x86_64/strcasecmp_l.S: New file.
76381         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76382         * sysdeps/x86_64/locale-defines.sym: New file.
76383         * string/test-strcasecmp.c: New file.
76384
76385         * string/test-strcasestr.c: Test both ends of the range of characters.
76386         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76387
76388 2010-07-29  Roland McGrath  <roland@redhat.com>
76389
76390         [BZ #11856]
76391         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76392
76393 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76394
76395         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76396         for ld.so.
76397
76398 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76399
76400         * manual/memory.texi (Malloc Tunable Parameters): Document
76401         M_PERTURB.
76402
76403 2010-07-26  Roland McGrath  <roland@redhat.com>
76404
76405         [BZ #11840]
76406         * configure.in (-fgnu89-inline check): Set and substitute
76407         gnu89_inline, not libc_cv_gnu89_inline.
76408         * configure: Regenerated.
76409         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76410
76411 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76412
76413         * string/test-strnlen.c: New file.
76414         * string/Makefile (strop-tests): Add strnlen.
76415         * string/tester.c (test_strnlen): Add a few more test cases.
76416         * string/tst-strlen.c: Better error reporting.
76417
76418         * sysdeps/x86_64/strnlen.S: New file.
76419
76420 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76421
76422         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76423         lower-latency instructions.
76424
76425 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76426
76427         * string/test-strcasestr.c: New file.
76428         * string/test-strstr.c: New file.
76429         * string/Makefile (strop-tests): Add strstr and strcasestr.
76430         * string/str-two-way.h: Don't undefine MAX.
76431         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76432
76433 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76434
76435         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76436         strcasestr-nonascii.
76437         (CFLAGS-strcasestr-nonascii.c): Define.
76438         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76439         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76440         Remove unused attribute.
76441
76442 2010-07-20  Roland McGrath  <roland@redhat.com>
76443
76444         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76445         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76446         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76447         like LD_HWCAP_MASK can disable hwcaps.
76448
76449 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76450
76451         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76452
76453 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76454
76455         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76456         call in strcasestr.
76457         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76458         __strcasestr_sse42_nonascii.
76459         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76460         strcasestr-nonascii.c.
76461         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76462
76463 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76464
76465         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76466         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76467         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76468         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76469
76470 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76471
76472         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76473         fcntl.
76474
76475 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76476
76477         [BZ #11577]
76478         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76479         dl_signal_cerror.
76480
76481 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76482
76483         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76484         _PC_PIPE_BUF using F_GETPIPE_SZ.
76485
76486 2010-07-05  Roland McGrath  <roland@redhat.com>
76487
76488         * manual/arith.texi (Rounding Functions): Fix rint description
76489         implicit in round description.
76490
76491 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76492
76493         * elf/Makefile: Fix linking for a few tests to make recent linker
76494         happy.
76495
76496 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76497
76498         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76499         $(common-objpfx)libc_nonshared.a.
76500
76501 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76502
76503         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76504         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76505         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76506         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76507         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76508         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76509         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76510         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76525         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76526         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76527         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76528         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76529         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76530         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76531         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76532         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76533         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76534         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76535         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76536         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76551
76552 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76553
76554         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76555         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76556         * string/memmove.c (memmove): Renamed to ...
76557         (MEMMOVE): ...this.  Default to memmove.
76558         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76559         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76560         (END_CHK): Define.
76561         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76562         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76563         mempcpy-ssse3-back memmove-ssse3-back.
76564         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76565         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76566         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76567         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76568         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76569         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76570         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76571         * sysdeps/x86_64/multiarch/memmove.c: New file.
76572         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76573         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76574         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76575         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76576         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76577         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76578         Define.
76579         (index_Fast_Copy_Backward): Define.
76580         (HAS_ARCH_FEATURE): Define.
76581         (HAS_FAST_REP_STRING): Define.
76582         (HAS_FAST_COPY_BACKWARD): Define.
76583
76584 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76585
76586         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76587         Restore proper fallback handling.
76588
76589 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76590
76591         [BZ #11701]
76592         * posix/group_member.c (__group_member): Correct checking loop.
76593
76594         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76595         OOM in getpwuid_r correctly.  Return error number when the caller
76596         should return, otherwise -1.
76597         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76598         call returning > 0 value.
76599         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76600
76601 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76602
76603         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76604         libc_nonshared.a from targets in modules-names.
76605
76606 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76607
76608         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76609         requires it.
76610
76611 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76612
76613         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76614         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76615         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76616         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76617
76618 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76619
76620         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76621
76622 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76623
76624         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76625         and F_GETPIPE_SZ.
76626         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76627         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76628         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76629         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76630         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76631         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76632
76633 2010-06-14  Roland McGrath  <roland@redhat.com>
76634
76635         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76636
76637 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76638
76639         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76640         __REDIRECT followed by __THROW.
76641         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76642         * posix/getopt.h (getopt): Likewise.
76643
76644 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76645
76646         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76647         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76648         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76649         in AT_FLAGS.
76650         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76651         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76652
76653 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76654
76655         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76656
76657 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76658
76659         [BZ #11640]
76660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76661         Properly check family and model.
76662
76663 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76664
76665         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76666
76667 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76668
76669         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76670
76671 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76672
76673         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76674         symbol reference.
76675
76676 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76677
76678         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76679         symbol reference.
76680
76681 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76682
76683         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76684         and internal_recvmmsg.
76685         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76686         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76687         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76688         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76689
76690         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76691         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76692         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76693
76694 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76695
76696         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76697
76698 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76699
76700         POWER7 optimizations.
76701         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76702         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76703
76704 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76705
76706         * version.h: Update for 2.13 development version.
76707
76708 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76709
76710         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76711         exceptions.  Return 0.
76712
76713 2010-05-07  Roland McGrath  <roland@redhat.com>
76714
76715         * elf/ldconfig.c (main): Add a const.
76716
76717 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76718
76719         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76720         (args_options): Add no-idn option.
76721         (ahosts_keys_int): Add idn_flags to ai_flags.
76722         (parse_option): Handle 'i' option to clear idn_flags.
76723
76724         * malloc/malloc.c (_int_free): Possible race in the most recently
76725         added check.  Only act on the data if no current modification
76726         happened.
76727
76728 See ChangeLog.17 for earlier changes.